#include <commands.h>
Collaboration diagram for StateAddCommand:Public Member Functions | |
| StateAddCommand (Editor *editor, State *state, QUndoCommand *parent=0) | |
| ~StateAddCommand () | |
| void | redo () |
| void | undo () |
Private Attributes | |
| Editor * | editor |
| State * | state |
| bool | wasUndo |
Definition at line 52 of file commands.h.
Definition at line 105 of file commands.cpp.
| StateAddCommand::~StateAddCommand | ( | ) |
Definition at line 109 of file commands.cpp.
| void StateAddCommand::redo | ( | ) |
Definition at line 122 of file commands.cpp.
References Editor::addToListsAndScene(), createCommandString(), editor, state, and wasUndo.
Here is the call graph for this function:| void StateAddCommand::undo | ( | ) |
Definition at line 114 of file commands.cpp.
References createCommandString(), editor, Editor::removeFromListsAndScene(), state, and wasUndo.
Here is the call graph for this function:Editor* StateAddCommand::editor [private] |
Definition at line 62 of file commands.h.
State* StateAddCommand::state [private] |
Definition at line 63 of file commands.h.
Referenced by redo(), undo(), and ~StateAddCommand().
bool StateAddCommand::wasUndo [private] |
Definition at line 65 of file commands.h.
Referenced by redo(), undo(), and ~StateAddCommand().
1.7.0