#include <commands.h>
Public Member Functions | |
ItemsAddCommand (Editor *editor, const QList< State * > &stateList, QRect gr_new, QUndoCommand *parent=0) | |
~ItemsAddCommand () | |
void | redo () |
void | undo () |
Protected Attributes | |
Editor * | editor |
QRect | gridRect_new |
QRect | gridRect_old |
QList< State * > | stateList |
bool | wasUndo |
Definition at line 535 of file commands.h.
ItemsAddCommand::ItemsAddCommand | ( | Editor * | editor, | |
const QList< State * > & | stateList, | |||
QRect | gr_new, | |||
QUndoCommand * | parent = 0 | |||
) |
Definition at line 1298 of file commands.cpp.
References Editor::getGridRect(), and gridRect_old.
ItemsAddCommand::~ItemsAddCommand | ( | ) |
Definition at line 1306 of file commands.cpp.
void ItemsAddCommand::redo | ( | ) |
Definition at line 1337 of file commands.cpp.
References Editor::addToListAndScene(), Editor::addToListsAndScene(), Transition::getStartState(), State::getTransitionList(), gridRect_new, gridRect_old, Editor::setGridRect(), stateList, and wasUndo.
Referenced by Editor::openFile().
void ItemsAddCommand::undo | ( | ) |
Definition at line 1318 of file commands.cpp.
References Transition::getStartState(), State::getTransitionList(), gridRect_new, gridRect_old, Editor::removeFromListAndScene(), Editor::removeFromListsAndScene(), Editor::setGridRect(), stateList, and wasUndo.
Editor* ItemsAddCommand::editor [protected] |
Definition at line 547 of file commands.h.
QRect ItemsAddCommand::gridRect_new [protected] |
Definition at line 550 of file commands.h.
QRect ItemsAddCommand::gridRect_old [protected] |
Definition at line 550 of file commands.h.
Referenced by ItemsAddCommand(), redo(), and undo().
QList<State *> ItemsAddCommand::stateList [protected] |
Definition at line 548 of file commands.h.
Referenced by redo(), undo(), and ~ItemsAddCommand().
bool ItemsAddCommand::wasUndo [protected] |
Definition at line 551 of file commands.h.
Referenced by redo(), undo(), and ~ItemsAddCommand().