#include <commands.h>
Collaboration diagram for ItemsAddCommand: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.
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function: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().
1.7.0