|
|
| ScItemState (const QString &name, const QString &description=0, QPixmap *pixmap=0) |
| |
|
void | setItem (const C &c) |
| |
|
C | getItem () const |
| |
| | SimpleState (const QString &name, const QString &description=0, QPixmap *pixmap=0) |
| | Creates a new SimpleState instance. More...
|
| |
| bool | contains (const QString &key) |
| | Returns true if parameter key exists in the map. More...
|
| |
| QString | get (const QString &key, const QString &def="") |
| | Returns the QString value attached to the key. More...
|
| |
| int | getInt (const QString &key, int def=0) |
| | Returns the int value attached to the key. More...
|
| |
| uint | getUInt (const QString &key, uint def=0) |
| | Returns the uint value attached to the key. More...
|
| |
| double | getDouble (const QString &key, double def=0.0) |
| | Returns the double value attached to the key. More...
|
| |
| bool | getBool (const QString &key, bool def=false) |
| | Returns the boolean value attached to the key. More...
|
| |
| void | set (const QString &key, const QString &value) |
| | Set a value for the key. More...
|
| |
| void | set (const QString &key, int value) |
| | Set a value for the key. More...
|
| |
| void | set (const QString &key, uint value) |
| | Set a value for the key. More...
|
| |
| void | set (const QString &key, double value) |
| | Set a value for the key. More...
|
| |
| void | set (const QString &key, bool value) |
| | Set a value for the key. More...
|
| |
| | UndoState (const QString &name, const QString &description=0, QPixmap *pixmap=0) |
| | Creates a new UndoState instance. More...
|
| |
| virtual QString | getName () |
| | Returns name of the state (action). More...
|
| |
| virtual void | setName (const QString &newName) |
| | Set the name for this UndoState. More...
|
| |
| virtual QString | getDescription () |
| | Returns description of the state. More...
|
| |
| virtual void | setDescription (const QString &newDescription) |
| | Set the description for this UndoState. More...
|
| |
| virtual QPixmap * | getPixmap () |
| | Returns a pointer to the icon attached to the state. More...
|
| |
| virtual void | setPixmap (QPixmap *newPixmap) |
| | Set the icon for this UndoState. More...
|
| |
| virtual void | undo () |
| | undo the state described by this UndoState, More...
|
| |
| virtual void | redo () |
| | redo the state described by this UndoState, More...
|
| |
|
virtual bool | isTransaction () |
| | To know if the state is a transaction.
|
| |
|
virtual void | setUndoObject (UndoObject *object) |
| | Set the UndoObject this state belongs to.
|
| |
|
virtual UndoObject * | undoObject () |
| | return the UndoObject this state belongs to
|
| |