karbon
VDistributeCmd Class Reference
#include <vdistributecmd.h>
Inheritance diagram for VDistributeCmd:

Detailed Description
A command for distributing objects.
Definition at line 29 of file vdistributecmd.h.
Public Types | |
enum | Distribute { DISTRIBUTE_HORIZONTAL_CENTER, DISTRIBUTE_HORIZONTAL_GAP, DISTRIBUTE_HORIZONTAL_LEFT, DISTRIBUTE_HORIZONTAL_RIGHT, DISTRIBUTE_VERTICAL_CENTER, DISTRIBUTE_VERTICAL_GAP, DISTRIBUTE_VERTICAL_BOTTOM, DISTRIBUTE_VERTICAL_TOP } |
Public Member Functions | |
VDistributeCmd (VDocument *doc, Distribute distribute) | |
virtual | ~VDistributeCmd () |
virtual void | execute () |
virtual void | unexecute () |
virtual bool | changesSelection () const |
Protected Member Functions | |
double | getAvailableSpace (VObject *first, VObject *last, double extent) |
Protected Attributes | |
Distribute | m_distribute |
QPtrList< VTranslateCmd > | m_trafoCmds |
Member Function Documentation
|
Returns if the command changes the actual document selection. This flag is checked to determine if the document has to be redrawn.
Reimplemented from VCommand. Definition at line 48 of file vdistributecmd.h. |
|
Executes the command. All the changes to the document are done here. All commands have to implement this function. Implements VCommand. Definition at line 39 of file vdistributecmd.cc. |
|
Unexecutes the command. All changes to the document have to be undone here. Reimplemented from VCommand. Definition at line 156 of file vdistributecmd.cc. |
The documentation for this class was generated from the following files: