|
Krita Source Code Documentation
|
the base command for commands altering a path shape More...
#include <KoPathBaseCommand.h>
Inheritance diagram for KoPathBaseCommand:Public Member Functions | |
| KoPathBaseCommand (KoPathShape *shape, KUndo2Command *parent=0) | |
| KoPathBaseCommand (KUndo2Command *parent=0) | |
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 | redo () |
| 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 | undo () |
| virtual void | undoMergedCommands () |
| virtual | ~KUndo2Command () |
Protected Member Functions | |
| void | repaint (bool normalizeShapes) |
Protected Attributes | |
| QSet< KoPathShape * > | m_shapes |
| the shapes the command operates on | |
the base command for commands altering a path shape
Definition at line 17 of file KoPathBaseCommand.h.
|
explicit |
| parent | the parent command used for macro commands |
Definition at line 11 of file KoPathBaseCommand.cpp.
|
explicit |
initialize the base command with a single shape
| shape | the shape |
| parent | the parent command used for macro commands |
Definition at line 16 of file KoPathBaseCommand.cpp.
References m_shapes.
|
protected |
Schedules repainting of all shapes control point rects.
| normalizeShapes | controls if paths are normalized before painting |
Definition at line 22 of file KoPathBaseCommand.cpp.
References m_shapes, KoPathShape::normalize(), and KoShapeContainer::update().
|
protected |
the shapes the command operates on
Definition at line 38 of file KoPathBaseCommand.h.