VReplacingCmd Class Reference
#include <vreplacingcmd.h>
Inheritance diagram for VReplacingCmd:
Public Member Functions | |
| virtual void | execute () |
| virtual void | unexecute () |
Public Member Functions inherited from VCommand | |
| VCommand (VDocument *doc, const TQString &name, const TQString &icon="14_action") | |
| virtual | ~VCommand () |
| virtual bool | changesSelection () const |
| TQString | name () const |
| void | setName (const TQString &name) |
| TQString | icon () const |
| VDocument * | document () const |
Public Member Functions inherited from VVisitor | |
| VVisitor () | |
| virtual bool | visit (VObject &object) |
| virtual void | visitVObject (VObject &object) |
| virtual void | visitVPath (VPath &composite) |
| virtual void | visitVDocument (VDocument &document) |
| virtual void | visitVGroup (VGroup &group) |
| virtual void | visitVLayer (VLayer &layer) |
| virtual void | visitVSubpath (VSubpath &path) |
| virtual void | visitVSelection (VSelection &selection) |
| virtual void | visitVText (VText &text) |
| virtual void | visitVImage (VImage &img) |
| bool | success () const |
Protected Member Functions | |
| VReplacingCmd (VDocument *doc, const TQString &name) | |
Protected Member Functions inherited from VVisitor | |
| virtual | ~VVisitor () |
| void | setSuccess (bool success=true) |
Detailed Description
VReplacingCmd is a generic command.
Derive from it if you plan to do complex transformations upon selected objects which make it necessary to replace each object as a whole with a new object.
Definition at line 36 of file vreplacingcmd.h.
Constructor & Destructor Documentation
◆ VReplacingCmd()
|
protected |
Make it "abstract".
Definition at line 25 of file vreplacingcmd.cpp.
◆ ~VReplacingCmd()
|
protectedvirtual |
Definition at line 33 of file vreplacingcmd.cpp.
Member Function Documentation
◆ execute()
|
virtual |
Executes the command.
All the changes to the document are done here. All commands have to implement this function.
Implements VCommand.
Definition at line 40 of file vreplacingcmd.cpp.
◆ unexecute()
|
virtual |
Unexecutes the command.
All changes to the document have to be undone here.
Reimplemented from VCommand.
Definition at line 118 of file vreplacingcmd.cpp.
The documentation for this class was generated from the following files:

Public Member Functions inherited from