|
Krita Source Code Documentation
|
The undo / redo command for configuring a star shape. More...
#include <StarShapeConfigCommand.h>
Inheritance diagram for StarShapeConfigCommand:Public Member Functions | |
| void | redo () override |
| redo the command | |
| StarShapeConfigCommand (StarShape *star, uint cornerCount, qreal innerRadius, qreal outerRadius, bool convex, KUndo2Command *parent=0) | |
| void | undo () override |
| revert the actions done in redo | |
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 | |
| bool | m_newConvex |
| uint | m_newCornerCount |
| qreal | m_newInnerRadius |
| qreal | m_newOuterRadius |
| bool | m_oldConvex |
| uint | m_oldCornerCount |
| qreal | m_oldInnerRadius |
| qreal | m_oldOuterRadius |
| StarShape * | m_star |
The undo / redo command for configuring a star shape.
Definition at line 15 of file StarShapeConfigCommand.h.
| StarShapeConfigCommand::StarShapeConfigCommand | ( | StarShape * | star, |
| uint | cornerCount, | ||
| qreal | innerRadius, | ||
| qreal | outerRadius, | ||
| bool | convex, | ||
| KUndo2Command * | parent = 0 ) |
Configures a star shape
| star | the star shape to configure |
| cornerCount | the number of corners to set |
| innerRadius | the inner radius |
| outerRadius | the outer radius |
| convex | indicates whether the star is convex or not |
| parent | the optional parent command |
Definition at line 11 of file StarShapeConfigCommand.cpp.
References StarShape::baseRadius(), StarShape::convex(), StarShape::cornerCount(), kundo2_i18n(), m_oldConvex, m_oldCornerCount, m_oldInnerRadius, m_oldOuterRadius, m_star, KUndo2Command::setText(), and StarShape::tipRadius().
|
overridevirtual |
redo the command
Reimplemented from KUndo2Command.
Definition at line 29 of file StarShapeConfigCommand.cpp.
References KoShape::absolutePosition(), m_newConvex, m_newCornerCount, m_newInnerRadius, m_newOuterRadius, m_oldConvex, m_oldCornerCount, m_oldInnerRadius, m_oldOuterRadius, m_star, KUndo2Command::redo(), KoShape::setAbsolutePosition(), StarShape::setBaseRadius(), StarShape::setConvex(), StarShape::setCornerCount(), StarShape::setTipRadius(), and KoShapeContainer::update().
|
overridevirtual |
revert the actions done in redo
Reimplemented from KUndo2Command.
Definition at line 55 of file StarShapeConfigCommand.cpp.
References KoShape::absolutePosition(), m_newConvex, m_newCornerCount, m_newInnerRadius, m_newOuterRadius, m_oldConvex, m_oldCornerCount, m_oldInnerRadius, m_oldOuterRadius, m_star, KoShape::setAbsolutePosition(), StarShape::setBaseRadius(), StarShape::setConvex(), StarShape::setCornerCount(), StarShape::setTipRadius(), KUndo2Command::undo(), and KoShapeContainer::update().
|
private |
Definition at line 41 of file StarShapeConfigCommand.h.
|
private |
Definition at line 38 of file StarShapeConfigCommand.h.
|
private |
Definition at line 39 of file StarShapeConfigCommand.h.
|
private |
Definition at line 40 of file StarShapeConfigCommand.h.
|
private |
Definition at line 37 of file StarShapeConfigCommand.h.
|
private |
Definition at line 34 of file StarShapeConfigCommand.h.
|
private |
Definition at line 35 of file StarShapeConfigCommand.h.
|
private |
Definition at line 36 of file StarShapeConfigCommand.h.
|
private |
Definition at line 33 of file StarShapeConfigCommand.h.