24#include "vselection.h"
25#include "vinsertcmd.h"
26#include "vtransformcmd.h"
29VInsertCmd::VInsertCmd( VDocument *doc, const TQString& name,
32 : VCommand( doc, name, "14_insert" ),
33 m_objects( *objects ),
38VInsertCmd::~VInsertCmd()
46 VObjectListIterator itr( m_objects );
49 for ( ; itr.current() ; ++itr ) {
50 VObject * object = itr.current();
58 if ( m_offset != 0.0 ) {
59 VTranslateCmd cmd( 0L, m_offset, -m_offset );
76 VObjectListIterator itr( m_objects );
77 for ( ; itr.current() ; ++itr ) {
The base class for all karbon commands.
virtual void unexecute() Unexecutes the command.
VDocument * document() const Returns the document the command works on.
virtual void execute()=0 Executes the command.
All non-visual, static doc info is in here.
VSelection * selection() const Returns a pointer to the selection.
void append(VObject *object) Appends a new object to the active layer.
@ deleted deleted, nearly dead
@ normal visible, not active
VState state() const Get the state the object is in.
void append() Adds all objects to the selection.
void clear() Removes the references to all objects, not the objects themselves.
void setSuccess(bool success=true) Set the success property.
|