#include <vdeletecmd.h>
Public Member Functions | |
| VDeleteCmd (VDocument *part) | |
| VDeleteCmd (VDocument *part, VObject *object) | |
| virtual void | execute () |
| virtual void | unexecute () |
| virtual bool | changesSelection () const |
Public Member Functions inherited from VCommand | |
| VCommand (VDocument *doc, const TQString &name, const TQString &icon="14_action") | |
| virtual | ~VCommand () |
| 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 Attributes | |
| VSelection * | m_selection |
Additional Inherited Members | |
Protected Member Functions inherited from VVisitor | |
| virtual | ~VVisitor () |
| void | setSuccess (bool success=true) |
Detailed Description
A class to provide undo/redoable deletion of VObjects.
Definition at line 31 of file vdeletecmd.h.
Constructor & Destructor Documentation
◆ VDeleteCmd() [1/2]
| VDeleteCmd::VDeleteCmd | ( | VDocument * | part | ) |
Definition at line 26 of file vdeletecmd.cpp.
◆ VDeleteCmd() [2/2]
Definition at line 35 of file vdeletecmd.cpp.
◆ ~VDeleteCmd()
|
virtual |
Definition at line 42 of file vdeletecmd.cpp.
Member Function Documentation
◆ changesSelection()
|
inlinevirtual |
Returns if the command changes the actual document selection.
This flag is checked to determine if the document has to be redrawn.
- Returns
- true if the selection is changed, else false
Reimplemented from VCommand.
Definition at line 41 of file vdeletecmd.h.
◆ 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 48 of file vdeletecmd.cpp.
◆ unexecute()
|
virtual |
Unexecutes the command.
All changes to the document have to be undone here.
Reimplemented from VCommand.
Definition at line 61 of file vdeletecmd.cpp.
Member Data Documentation
◆ m_selection
|
protected |
Definition at line 44 of file vdeletecmd.h.
The documentation for this class was generated from the following files:

Public Member Functions inherited from