|
Krita Source Code Documentation
|
The undo / redo command for deleting shapes. More...
#include <KoShapeDeleteCommand.h>
Inheritance diagram for KoShapeDeleteCommand:Public Attributes | |
| KoShapeControllerBase * | controller |
| the shape controller to use for removing/readding | |
| bool | deleteShapes |
| shows if shapes should be deleted when deleting the command | |
| QList< KoShapeContainer * > | oldParents |
| the old parents of the shapes | |
| QList< KoShape * > | shapes |
| the list of shapes to delete | |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
The undo / redo command for deleting shapes.
Definition at line 14 of file KoShapeDeleteCommand.cpp.
|
inline |
Definition at line 22 of file KoShapeDeleteCommand.cpp.
| KoShapeDeleteCommand::KoShapeDeleteCommand | ( | KoShapeControllerBase * | controller, |
| KoShape * | shape, | ||
| KUndo2Command * | parent = 0 ) |
Command to delete a single shape by means of a shape controller.
| controller | the controller to used for deleting. |
| shape | a single shape that should be deleted. |
| parent | the parent command used for macro commands |
Definition at line 36 of file KoShapeDeleteCommand.cpp.
References d, kundo2_i18nc(), KoShape::parent(), and KUndo2Command::setText().
| KoShapeDeleteCommand::KoShapeDeleteCommand | ( | KoShapeControllerBase * | controller, |
| const QList< KoShape * > & | shapes, | ||
| KUndo2Command * | parent = 0 ) |
Command to delete a set of shapes by means of a shape controller.
| controller | the controller to used for deleting. |
| shapes | a set of all the shapes that should be deleted. |
| parent | the parent command used for macro commands |
Definition at line 46 of file KoShapeDeleteCommand.cpp.
References d, kundo2_i18np(), KoShape::parent(), KUndo2Command::setText(), and shapes.
|
override |
|
inline |
Definition at line 17 of file KoShapeDeleteCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Reimplemented in RemoveReferenceImagesCommand.
Definition at line 64 of file KoShapeDeleteCommand.cpp.
References d, and KUndo2Command::redo().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Reimplemented in RemoveReferenceImagesCommand.
Definition at line 78 of file KoShapeDeleteCommand.cpp.
References d, and KUndo2Command::undo().
| KoShapeControllerBase* KoShapeDeleteCommand::controller |
the shape controller to use for removing/readding
Definition at line 30 of file KoShapeDeleteCommand.cpp.
|
private |
Definition at line 43 of file KoShapeDeleteCommand.h.
| bool KoShapeDeleteCommand::deleteShapes |
shows if shapes should be deleted when deleting the command
Definition at line 33 of file KoShapeDeleteCommand.cpp.
| QList<KoShapeContainer*> KoShapeDeleteCommand::oldParents |
the old parents of the shapes
Definition at line 32 of file KoShapeDeleteCommand.cpp.
the list of shapes to delete
Definition at line 31 of file KoShapeDeleteCommand.cpp.