|
Krita Source Code Documentation
|
The undo / redo command for combining two or more paths into one. More...
#include <KoPathCombineCommand.h>
Inheritance diagram for KoPathCombineCommand:Public Attributes | |
| KoPathShape * | combinedPath |
| KoShapeContainer * | combinedPathParent |
| KoShapeControllerBase * | controller |
| bool | isCombined |
| QList< KoShapeContainer * > | oldParents |
| QList< KoPathShape * > | paths |
| QHash< KoPathShape *, int > | shapeStartSegmentIndex |
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 combining two or more paths into one.
Definition at line 18 of file KoPathCombineCommand.cpp.
|
inline |
Definition at line 31 of file KoPathCombineCommand.cpp.
| KoPathCombineCommand::KoPathCombineCommand | ( | KoShapeControllerBase * | controller, |
| const QList< KoPathShape * > & | paths, | ||
| KUndo2Command * | parent = 0 ) |
Command for combining a list of paths into one single path.
| controller | the controller to used for removing/inserting. |
| paths | the list of paths to combine |
| parent | the parent command used for macro commands |
Definition at line 52 of file KoPathCombineCommand.cpp.
References d, KIS_ASSERT_RECOVER_BREAK, KIS_SAFE_ASSERT_RECOVER_RETURN, and paths.
|
override |
| KoPathShape * KoPathCombineCommand::combinedPath | ( | ) | const |
| KoPathPointData KoPathCombineCommand::originalToCombined | ( | KoPathPointData | pd | ) | const |
Definition at line 118 of file KoPathCombineCommand.cpp.
References d, KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, KoPathPointData::pathShape, and KoPathPointData::pointIndex.
|
inline |
Definition at line 21 of file KoPathCombineCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 79 of file KoPathCombineCommand.cpp.
References d, p, and KUndo2Command::redo().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 94 of file KoPathCombineCommand.cpp.
References d, p, and KUndo2Command::undo().
| KoPathShape * KoPathCombineCommand::combinedPath |
Definition at line 44 of file KoPathCombineCommand.cpp.
| KoShapeContainer* KoPathCombineCommand::combinedPathParent |
Definition at line 45 of file KoPathCombineCommand.cpp.
| KoShapeControllerBase* KoPathCombineCommand::controller |
Definition at line 41 of file KoPathCombineCommand.cpp.
|
private |
Definition at line 41 of file KoPathCombineCommand.h.
| bool KoPathCombineCommand::isCombined |
Definition at line 49 of file KoPathCombineCommand.cpp.
| QList<KoShapeContainer*> KoPathCombineCommand::oldParents |
Definition at line 43 of file KoPathCombineCommand.cpp.
| QList<KoPathShape*> KoPathCombineCommand::paths |
Definition at line 42 of file KoPathCombineCommand.cpp.
| QHash<KoPathShape*, int> KoPathCombineCommand::shapeStartSegmentIndex |
Definition at line 47 of file KoPathCombineCommand.cpp.