#include <commands.h>
Public Member Functions | |
GeneratedGraphAddCommand (Editor *editor, const QList< State * > &stateList, QRect gr_new, QUndoCommand *parent=0) | |
~GeneratedGraphAddCommand () | |
void | redo () |
void | undo () |
Private Attributes | |
Editor * | editor |
QRect | gridRect_new |
QRect | gridRect_old |
QList< State * > | stateList |
bool | wasUndo |
Definition at line 517 of file commands.h.
GeneratedGraphAddCommand::GeneratedGraphAddCommand | ( | Editor * | editor, | |
const QList< State * > & | stateList, | |||
QRect | gr_new, | |||
QUndoCommand * | parent = 0 | |||
) |
Definition at line 1240 of file commands.cpp.
References Editor::getGridRect(), and gridRect_old.
GeneratedGraphAddCommand::~GeneratedGraphAddCommand | ( | ) |
Definition at line 1248 of file commands.cpp.
void GeneratedGraphAddCommand::redo | ( | ) |
Definition at line 1274 of file commands.cpp.
References Editor::addToListAndScene(), Editor::addToListsAndScene(), Transition::getStartState(), State::getTransitionList(), gridRect_new, gridRect_old, Editor::setGridRect(), stateList, and wasUndo.
void GeneratedGraphAddCommand::undo | ( | ) |
Definition at line 1256 of file commands.cpp.
References Transition::getStartState(), State::getTransitionList(), gridRect_new, gridRect_old, Editor::removeFromListAndScene(), Editor::removeFromListsAndScene(), Editor::setGridRect(), stateList, and wasUndo.
Editor* GeneratedGraphAddCommand::editor [private] |
Definition at line 528 of file commands.h.
QRect GeneratedGraphAddCommand::gridRect_new [private] |
Definition at line 531 of file commands.h.
QRect GeneratedGraphAddCommand::gridRect_old [private] |
Definition at line 531 of file commands.h.
Referenced by GeneratedGraphAddCommand(), redo(), and undo().
QList<State *> GeneratedGraphAddCommand::stateList [private] |
Definition at line 529 of file commands.h.
Referenced by redo(), undo(), and ~GeneratedGraphAddCommand().
bool GeneratedGraphAddCommand::wasUndo [private] |
Definition at line 532 of file commands.h.
Referenced by redo(), undo(), and ~GeneratedGraphAddCommand().