|
Krita Source Code Documentation
|
#include <SvgTextChangeCommand.h>
Inheritance diagram for SvgTextChangeCommand:Public Member Functions | |
| void | redo () override |
| redo the command | |
| SvgTextChangeCommand (KoSvgTextShape *shape, const QString &svg, const QString &defs, KUndo2Command *parent=0) | |
| void | undo () override |
| revert the actions done in redo | |
| virtual | ~SvgTextChangeCommand () |
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 () |
Private Attributes | |
| QString | m_defs |
| QString | m_oldDefs |
| QString | m_oldSvg |
| KoSvgTextShape * | m_shape |
| QString | m_svg |
Definition at line 14 of file SvgTextChangeCommand.h.
| SvgTextChangeCommand::SvgTextChangeCommand | ( | KoSvgTextShape * | shape, |
| const QString & | svg, | ||
| const QString & | defs, | ||
| KUndo2Command * | parent = 0 ) |
Definition at line 15 of file SvgTextChangeCommand.cpp.
References KoSvgTextShapeMarkupConverter::convertToSvg(), kundo2_i18n(), m_oldDefs, m_oldSvg, m_shape, and KUndo2Command::setText().
|
virtual |
Definition at line 30 of file SvgTextChangeCommand.cpp.
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 34 of file SvgTextChangeCommand.cpp.
References KoSvgTextShape::boundingRect(), KoSvgTextShapeMarkupConverter::convertFromSvg(), m_defs, m_shape, m_svg, and KoShape::update().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 43 of file SvgTextChangeCommand.cpp.
References KoSvgTextShape::boundingRect(), KoSvgTextShapeMarkupConverter::convertFromSvg(), m_oldDefs, m_oldSvg, m_shape, and KoShape::update().
|
private |
Definition at line 31 of file SvgTextChangeCommand.h.
|
private |
Definition at line 33 of file SvgTextChangeCommand.h.
|
private |
Definition at line 32 of file SvgTextChangeCommand.h.
|
private |
Definition at line 29 of file SvgTextChangeCommand.h.
|
private |
Definition at line 30 of file SvgTextChangeCommand.h.