|
Krita Source Code Documentation
|
The KoSvgTextReorderShapeInsideCommand class Within a text shape, the order of the shapes inside determines the order in which the shapes are evaluated for filling. This command allows changing that order. More...
#include <KoSvgTextReorderShapeInsideCommand.h>
Inheritance diagram for KoSvgTextReorderShapeInsideCommand:Classes | |
| struct | Private |
Public Types | |
| enum | MoveShapeType { MoveEarlier , MoveLater , BringToFront , SendToBack } |
Private Attributes | |
| QScopedPointer< Private > | d |
The KoSvgTextReorderShapeInsideCommand class Within a text shape, the order of the shapes inside determines the order in which the shapes are evaluated for filling. This command allows changing that order.
Definition at line 21 of file KoSvgTextReorderShapeInsideCommand.h.
| Enumerator | |
|---|---|
| MoveEarlier | |
| MoveLater | |
| BringToFront | |
| SendToBack | |
Definition at line 24 of file KoSvgTextReorderShapeInsideCommand.h.
| KoSvgTextReorderShapeInsideCommand::KoSvgTextReorderShapeInsideCommand | ( | KoSvgTextShape * | textShape, |
| QList< KoShape * > | shape, | ||
| MoveShapeType | type, | ||
| KUndo2Command * | parent = nullptr ) |
Definition at line 34 of file KoSvgTextReorderShapeInsideCommand.cpp.
| KoSvgTextReorderShapeInsideCommand::~KoSvgTextReorderShapeInsideCommand | ( | ) |
Definition at line 41 of file KoSvgTextReorderShapeInsideCommand.cpp.
|
overridevirtual |
Applies a change to the document. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to undefined behavior.
The default implementation calls redo() on all child commands.
Reimplemented from KUndo2Command.
Definition at line 46 of file KoSvgTextReorderShapeInsideCommand.cpp.
References BringToFront, KoShapeBulkActionLock::bulkShapesUpdate(), d, MoveEarlier, MoveLater, and KoShapeBulkActionLock::unlock().
|
overridevirtual |
Reverts a change to the document. After undo() is called, the state of the document should be the same as before redo() was called. This function must be implemented in the derived class. Calling KUndo2QStack::push(), KUndo2QStack::undo() or KUndo2QStack::redo() from this function leads to undefined behavior.
The default implementation calls undo() on all child commands in reverse order.
Reimplemented from KUndo2Command.
Definition at line 88 of file KoSvgTextReorderShapeInsideCommand.cpp.
References BringToFront, KoShapeBulkActionLock::bulkShapesUpdate(), d, MoveEarlier, and KoShapeBulkActionLock::unlock().
|
private |
Definition at line 38 of file KoSvgTextReorderShapeInsideCommand.h.