|
Krita Source Code Documentation
|
A command to add a connection between two shapes. More...
#include <KoShapeConnectionChangeCommand.h>
Inheritance diagram for KoShapeConnectionChangeCommand:Public Member Functions | |
| KoShapeConnectionChangeCommand (KoConnectionShape *connection, KoConnectionShape::HandleId connectionHandle, KoShape *oldConnectedShape, int oldConnectionPointId, KoShape *newConnectedShape, int newConnectionPointId, KUndo2Command *parent=0) | |
| Private () | |
| void | redo () override |
| redo the command | |
| void | undo () override |
| revert the actions done in redo | |
| ~KoShapeConnectionChangeCommand () override | |
| Destroys the command. | |
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 | 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 | undoMergedCommands () |
| virtual | ~KUndo2Command () |
Public Attributes | |
| KoConnectionShape * | connection |
| KoConnectionShape::HandleId | connectionHandle |
| KoShape * | newConnectedShape |
| int | newConnectionPointId |
| KoShape * | oldConnectedShape |
| int | oldConnectionPointId |
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) | |
A command to add a connection between two shapes.
Definition at line 9 of file KoShapeConnectionChangeCommand.cpp.
| KoShapeConnectionChangeCommand::KoShapeConnectionChangeCommand | ( | KoConnectionShape * | connection, |
| KoConnectionShape::HandleId | connectionHandle, | ||
| KoShape * | oldConnectedShape, | ||
| int | oldConnectionPointId, | ||
| KoShape * | newConnectedShape, | ||
| int | newConnectionPointId, | ||
| KUndo2Command * | parent = 0 ) |
Creates command to connect a connection shape to a shape
| connection | the connection shape to connect to the shape |
| connectionHandle | the handle of the connection to connect to |
| oldConnectedShape | the old shape we were connected to |
| newConnectedShape | the new shape to connect to |
| connectionPointId | the id of the connection point to connect to |
| parent | the parent undo command |
Definition at line 27 of file KoShapeConnectionChangeCommand.cpp.
References connection, connectionHandle, d, newConnectedShape, newConnectionPointId, oldConnectedShape, and oldConnectionPointId.
|
override |
Destroys the command.
Definition at line 41 of file KoShapeConnectionChangeCommand.cpp.
References d.
|
inline |
Definition at line 12 of file KoShapeConnectionChangeCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 46 of file KoShapeConnectionChangeCommand.cpp.
References d, and KUndo2Command::redo().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 60 of file KoShapeConnectionChangeCommand.cpp.
References d, and KUndo2Command::undo().
| KoConnectionShape* KoShapeConnectionChangeCommand::connection |
Definition at line 18 of file KoShapeConnectionChangeCommand.cpp.
| KoConnectionShape::HandleId KoShapeConnectionChangeCommand::connectionHandle |
Definition at line 19 of file KoShapeConnectionChangeCommand.cpp.
|
private |
Definition at line 41 of file KoShapeConnectionChangeCommand.h.
| KoShape* KoShapeConnectionChangeCommand::newConnectedShape |
Definition at line 20 of file KoShapeConnectionChangeCommand.cpp.
| int KoShapeConnectionChangeCommand::newConnectionPointId |
Definition at line 22 of file KoShapeConnectionChangeCommand.cpp.
| KoShape* KoShapeConnectionChangeCommand::oldConnectedShape |
Definition at line 21 of file KoShapeConnectionChangeCommand.cpp.
| int KoShapeConnectionChangeCommand::oldConnectionPointId |
Definition at line 23 of file KoShapeConnectionChangeCommand.cpp.