|
Krita Source Code Documentation
|
The undo / redo command for setting the shape clip path. More...
#include <KoShapeClipCommand.h>
Inheritance diagram for KoShapeClipCommand:Public Attributes | |
| QList< KoPathShape * > | clipPathShapes |
| KoShapeControllerBase * | controller |
| bool | executed |
| QList< KoClipPath * > | newClipPaths |
| QList< KoClipPath * > | oldClipPaths |
| QList< KoShapeContainer * > | oldParents |
| QList< KoShape * > | shapesToClip |
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 setting the shape clip path.
Definition at line 18 of file KoShapeClipCommand.cpp.
|
inline |
Definition at line 25 of file KoShapeClipCommand.cpp.
| KoShapeClipCommand::KoShapeClipCommand | ( | KoShapeControllerBase * | controller, |
| const QList< KoShape * > & | shapes, | ||
| const QList< KoPathShape * > & | clipPathShapes, | ||
| KUndo2Command * | parent = 0 ) |
Command to set a new shape clipping path for multiple shape.
| controller | the controller to used for deleting. |
| shapes | a set of all the shapes that should get the clipping path. |
| clipPathShapes | the path shapes to be used a clipping path |
| parent | the parent command used for macro commands |
Definition at line 42 of file KoShapeClipCommand.cpp.
References KoShape::clipPath(), clipPathShapes, d, kundo2_i18n(), KUndo2Command::setText(), and KoFlake::UserSpaceOnUse.
| KoShapeClipCommand::KoShapeClipCommand | ( | KoShapeControllerBase * | controller, |
| KoShape * | shape, | ||
| const QList< KoPathShape * > & | clipPathShapes, | ||
| KUndo2Command * | parent = 0 ) |
Command to set a new shape clipping path for a single shape
| controller | the controller to used for deleting. |
| shape | a single shape that should get the new shadow. |
| clipPathShapes | the path shapes to be used a clipping path |
| parent | the parent command used for macro commands |
Definition at line 60 of file KoShapeClipCommand.cpp.
References KoShape::clipPath(), clipPathShapes, d, kundo2_i18n(), KUndo2Command::setText(), and KoFlake::UserSpaceOnUse.
|
override |
|
inline |
Definition at line 21 of file KoShapeClipCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 80 of file KoShapeClipCommand.cpp.
References d, and KUndo2Command::redo().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 100 of file KoShapeClipCommand.cpp.
References d, and KUndo2Command::undo().
| QList<KoPathShape*> KoShapeClipCommand::clipPathShapes |
Definition at line 35 of file KoShapeClipCommand.cpp.
| KoShapeControllerBase* KoShapeClipCommand::controller |
Definition at line 38 of file KoShapeClipCommand.cpp.
|
private |
Definition at line 50 of file KoShapeClipCommand.h.
| bool KoShapeClipCommand::executed |
Definition at line 39 of file KoShapeClipCommand.cpp.
| QList<KoClipPath*> KoShapeClipCommand::newClipPaths |
Definition at line 36 of file KoShapeClipCommand.cpp.
| QList<KoClipPath*> KoShapeClipCommand::oldClipPaths |
Definition at line 34 of file KoShapeClipCommand.cpp.
| QList<KoShapeContainer*> KoShapeClipCommand::oldParents |
Definition at line 37 of file KoShapeClipCommand.cpp.
Definition at line 33 of file KoShapeClipCommand.cpp.