libs/flake
KoShapeDistributeCommand Class Reference
The undo / redo command for distributing shapes. More...
#include <KoShapeDistributeCommand.h>
Inheritance diagram for KoShapeDistributeCommand:

Public Types | |
| enum | Distribute { HorizontalCenterDistribution, HorizontalGapsDistribution, HorizontalLeftDistribution, HorizontalRightDistribution, VerticalCenterDistribution, VerticalGapsDistribution, VerticalBottomDistribution, VerticalTopDistribution } |
Public Member Functions | |
| KoShapeDistributeCommand (const QList< KoShape * > &shapes, Distribute distribute, QRectF boundingRect, QUndoCommand *parent=0) | |
| virtual | ~KoShapeDistributeCommand () |
| virtual void | redo () |
| virtual void | undo () |
Detailed Description
The undo / redo command for distributing shapes.
Definition at line 33 of file KoShapeDistributeCommand.h.
Member Enumeration Documentation
The different options to ditribute with this command.
- Enumerator:
Definition at line 37 of file KoShapeDistributeCommand.h.
Constructor & Destructor Documentation
| KoShapeDistributeCommand::KoShapeDistributeCommand | ( | const QList< KoShape * > & | shapes, | |
| Distribute | distribute, | |||
| QRectF | boundingRect, | |||
| QUndoCommand * | parent = 0 | |||
| ) |
Command to align a set of shapes in a rect.
- Parameters:
-
shapes a set of all the shapes that should be distributed distribute the distribution type boundingRect the rect the shapes will be distributed in parent the parent command used for macro commands
Definition at line 38 of file KoShapeDistributeCommand.cpp.
| KoShapeDistributeCommand::~KoShapeDistributeCommand | ( | ) | [virtual] |
Definition at line 128 of file KoShapeDistributeCommand.cpp.
Member Function Documentation
| void KoShapeDistributeCommand::redo | ( | ) | [virtual] |
redo the command
Reimplemented from QUndoCommand.
Definition at line 133 of file KoShapeDistributeCommand.cpp.
| void KoShapeDistributeCommand::undo | ( | ) | [virtual] |
revert the actions done in redo
Reimplemented from QUndoCommand.
Definition at line 139 of file KoShapeDistributeCommand.cpp.
The documentation for this class was generated from the following files:
