libs/flake
KoShapeGroupCommand Class Reference
The undo / redo command for grouping shapes. More...
#include <KoShapeGroupCommand.h>

Public Member Functions | |
| KoShapeGroupCommand (KoShapeGroup *container, QList< KoShape * > shapes, QUndoCommand *parent=0) | |
| KoShapeGroupCommand (KoShapeContainer *container, QList< KoShape * > shapes, QList< bool > clipped, QUndoCommand *parent=0) | |
| virtual | ~KoShapeGroupCommand () |
| virtual void | redo () |
| virtual void | undo () |
Static Public Member Functions | |
| static KoShapeGroupCommand * | createCommand (KoShapeGroup *container, QList< KoShape * > shapes, QUndoCommand *parent=0) |
Protected Member Functions | |
| KoShapeGroupCommand (QUndoCommand *parent=0) | |
Protected Attributes | |
| QList< bool > | m_clipped |
| KoShapeContainer * | m_container |
| QList< bool > | m_oldClipped |
| QList< KoShapeContainer * > | m_oldParents |
| QList< int > | m_oldZIndex |
| QList< KoShape * > | m_shapes |
Detailed Description
The undo / redo command for grouping shapes.
Definition at line 35 of file KoShapeGroupCommand.h.
Constructor & Destructor Documentation
| KoShapeGroupCommand::KoShapeGroupCommand | ( | KoShapeContainer * | container, | |
| QList< KoShape * > | shapes, | |||
| QList< bool > | clipped, | |||
| QUndoCommand * | parent = 0 | |||
| ) |
Command to group a set of shapes into a predefined container.
- Parameters:
-
container the container to group the shapes under. shapes a list of all the shapes that should be grouped. clipped a list of the same length as the shapes list with one bool for each shape. See KoShapeContainer::childClipped() parent the parent command used for macro commands
Definition at line 42 of file KoShapeGroupCommand.cpp.
| KoShapeGroupCommand::KoShapeGroupCommand | ( | KoShapeGroup * | container, | |
| QList< KoShape * > | shapes, | |||
| QUndoCommand * | parent = 0 | |||
| ) |
Command to group a set of shapes into a predefined container.
Convenience constructor since KoShapeGroup does not allow clipping.
- Parameters:
-
container the group to group the shapes under. parent the parent command if the resulting command is a compound undo command. shapes a list of all the shapes that should be grouped.
Definition at line 53 of file KoShapeGroupCommand.cpp.
| virtual KoShapeGroupCommand::~KoShapeGroupCommand | ( | ) | [inline, virtual] |
Definition at line 68 of file KoShapeGroupCommand.h.
| KoShapeGroupCommand::KoShapeGroupCommand | ( | QUndoCommand * | parent = 0 |
) | [protected] |
protected constructor for child classes
Definition at line 64 of file KoShapeGroupCommand.cpp.
Member Function Documentation
| KoShapeGroupCommand * KoShapeGroupCommand::createCommand | ( | KoShapeGroup * | container, | |
| QList< KoShape * > | shapes, | |||
| QUndoCommand * | parent = 0 | |||
| ) | [static] |
Create command to group a set of shapes into a predefined container.
This used the KoShapeGroupCommand( KoShapeGroup *container, QList<KoShape *> shapes, QUndoCommand *parent = 0 ); constructor. The createCommand will make sure that the group will have the z-index and the parent of the top most shape in the group.
- Parameters:
-
container the group to group the shapes under. parent the parent command if the resulting command is a compound undo command. shapes a list of all the shapes that should be grouped.
Definition at line 28 of file KoShapeGroupCommand.cpp.
| void KoShapeGroupCommand::redo | ( | ) | [virtual] |
redo the command
Reimplemented from QUndoCommand.
Reimplemented in KoShapeUngroupCommand.
Definition at line 85 of file KoShapeGroupCommand.cpp.
| void KoShapeGroupCommand::undo | ( | ) | [virtual] |
revert the actions done in redo
Reimplemented from QUndoCommand.
Reimplemented in KoShapeUngroupCommand.
Definition at line 123 of file KoShapeGroupCommand.cpp.
Member Data Documentation
QList<bool> KoShapeGroupCommand::m_clipped [protected] |
list of booleas to specify the shape of the same index to eb clipped
Definition at line 77 of file KoShapeGroupCommand.h.
KoShapeContainer* KoShapeGroupCommand::m_container [protected] |
the container where the grouping should be for.
Definition at line 78 of file KoShapeGroupCommand.h.
QList<bool> KoShapeGroupCommand::m_oldClipped [protected] |
if the shape was clipped in the old parent
Definition at line 80 of file KoShapeGroupCommand.h.
QList<KoShapeContainer*> KoShapeGroupCommand::m_oldParents [protected] |
the old parents of the shapes
Definition at line 79 of file KoShapeGroupCommand.h.
QList<int> KoShapeGroupCommand::m_oldZIndex [protected] |
the old z-index of the shapes
Definition at line 81 of file KoShapeGroupCommand.h.
QList<KoShape*> KoShapeGroupCommand::m_shapes [protected] |
list of shapes to be grouped
Definition at line 76 of file KoShapeGroupCommand.h.
The documentation for this class was generated from the following files:
