|
Krita Source Code Documentation
|
The undo / redo command for ungrouping shapes. More...
#include <KoShapeUngroupCommand.h>
Inheritance diagram for KoShapeUngroupCommand:Classes | |
| struct | Private |
Public Member Functions | |
| KoShapeUngroupCommand (KoShapeContainer *container, const QList< KoShape * > &shapes, const QList< KoShape * > &topLevelShapes=QList< KoShape * >(), KUndo2Command *parent=0) | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoShapeUngroupCommand () | |
Public Member Functions inherited from KUndo2Command | |
| QString | actionText () const |
| virtual bool | canAnnihilateWith (const KUndo2Command *other) const |
| const KUndo2Command * | child (int index) const |
| int | childCount () const |
| virtual QTime | endTime () const |
| KUndo2CommandExtraData * | extraData () const |
| bool | hasParent () const |
| virtual int | id () const |
| virtual bool | isMerged () const |
| KUndo2Command (const KUndo2MagicString &text, KUndo2Command *parent=0) | |
| KUndo2Command (KUndo2Command *parent=0) | |
| virtual QVector< KUndo2Command * > | mergeCommandsVector () const |
| virtual bool | mergeWith (const KUndo2Command *other) |
| virtual void | redoMergedCommands () |
| void | setEndTime () |
| virtual void | setEndTime (const QTime &time) |
| void | setExtraData (KUndo2CommandExtraData *data) |
| void | setText (const KUndo2MagicString &text) |
| void | setTime () |
| virtual void | setTime (const QTime &time) |
| virtual void | setTimedID (int timedID) |
| KUndo2MagicString | text () const |
| virtual QTime | time () const |
| virtual int | timedId () const |
| virtual bool | timedMergeWith (KUndo2Command *other) |
| virtual void | undoMergedCommands () |
| virtual | ~KUndo2Command () |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
The undo / redo command for ungrouping shapes.
Definition at line 20 of file KoShapeUngroupCommand.h.
| KoShapeUngroupCommand::KoShapeUngroupCommand | ( | KoShapeContainer * | container, |
| const QList< KoShape * > & | shapes, | ||
| const QList< KoShape * > & | topLevelShapes = QList<KoShape*>(), | ||
| KUndo2Command * | parent = 0 ) |
Command to ungroup a set of shapes from one parent container.
| container | the group to ungroup the shapes from. |
| shapes | a list of all the shapes that should be ungrouped. |
| topLevelShapes | a list of top level shapes. |
| parent | the parent command used for macro commands |
Definition at line 37 of file KoShapeUngroupCommand.cpp.
References kundo2_i18n(), and KUndo2Command::setText().
| KoShapeUngroupCommand::~KoShapeUngroupCommand | ( | ) |
Definition at line 45 of file KoShapeUngroupCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 49 of file KoShapeUngroupCommand.cpp.
References KoShape::applyAbsoluteTransformation(), KoShape::compareShapeZIndex(), KoShapeReorderCommand::homogenizeZIndexesLazy(), KIS_SAFE_ASSERT_RECOVER, m_d, KoShape::parent(), KoShape::setParent(), and KoShapeContainer::shapes().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 95 of file KoShapeUngroupCommand.cpp.
References KoShape::applyAbsoluteTransformation(), m_d, and KoShape::setParent().
|
private |
Definition at line 41 of file KoShapeUngroupCommand.h.