#include <vzordercmd.h>
Public Types | |
| enum | VOrder { bringToFront = 0 , up = 1 , down = 2 , sendToBack = 3 } |
Public Member Functions | |
| VZOrderCmd (VDocument *doc, VOrder) | |
| VZOrderCmd (VDocument *doc, VObject *obj, VOrder) | |
| virtual void | execute () |
| virtual void | unexecute () |
| virtual bool | isExecuted () |
| 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 Attributes | |
| VSelection * | m_selection |
| VOrder | m_state |
Additional Inherited Members | |
| Protected Member Functions inherited from VVisitor | |
| virtual | ~VVisitor () |
| void | setSuccess (bool success=true) |
Detailed Description
Command that changes the z-order of the selection within a layer to front, back, one step up, or one step down.
Definition at line 31 of file vzordercmd.h.
Member Enumeration Documentation
◆ VOrder
| enum VZOrderCmd::VOrder |
Definition at line 34 of file vzordercmd.h.
Constructor & Destructor Documentation
◆ VZOrderCmd() [1/2]
| VZOrderCmd::VZOrderCmd | ( | VDocument * | doc, |
| VOrder | state ) |
Definition at line 27 of file vzordercmd.cpp.
◆ VZOrderCmd() [2/2]
Definition at line 33 of file vzordercmd.cpp.
◆ ~VZOrderCmd()
|
virtual |
Definition at line 40 of file vzordercmd.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 46 of file vzordercmd.cpp.
◆ isExecuted()
|
inlinevirtual |
Definition at line 48 of file vzordercmd.h.
◆ unexecute()
|
virtual |
Unexecutes the command.
All changes to the document have to be undone here.
Reimplemented from VCommand.
Definition at line 144 of file vzordercmd.cpp.
Member Data Documentation
◆ m_selection
|
protected |
Definition at line 51 of file vzordercmd.h.
◆ m_state
|
protected |
Definition at line 52 of file vzordercmd.h.
The documentation for this class was generated from the following files:
