Public Member Functions | Protected Attributes

ItemsAddCommand Class Reference

#include <commands.h>

Collaboration diagram for ItemsAddCommand:

List of all members.

Public Member Functions

 ItemsAddCommand (Editor *editor, const QList< State * > &stateList, QRect gr_new, QUndoCommand *parent=0)
 ~ItemsAddCommand ()
void redo ()
void undo ()

Protected Attributes

Editoreditor
QRect gridRect_new
QRect gridRect_old
QList< State * > stateList
bool wasUndo

Detailed Description

Definition at line 535 of file commands.h.


Constructor & Destructor Documentation

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.

References stateList, and wasUndo.


Member Function Documentation

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 (  ) 

Member Data Documentation

Definition at line 547 of file commands.h.

QRect ItemsAddCommand::gridRect_new [protected]

Definition at line 550 of file commands.h.

Referenced by redo(), and undo().

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().


The documentation for this class was generated from the following files: