Public Member Functions | Private Attributes

StateAddCommand Class Reference

#include <commands.h>

Collaboration diagram for StateAddCommand:

List of all members.

Public Member Functions

 StateAddCommand (Editor *editor, State *state, QUndoCommand *parent=0)
 ~StateAddCommand ()
void redo ()
void undo ()

Private Attributes

Editoreditor
Statestate
bool wasUndo

Detailed Description

Definition at line 52 of file commands.h.


Constructor & Destructor Documentation

StateAddCommand::StateAddCommand ( Editor editor,
State state,
QUndoCommand *  parent = 0 
)

Definition at line 105 of file commands.cpp.

StateAddCommand::~StateAddCommand (  ) 

Definition at line 109 of file commands.cpp.

References state, and wasUndo.


Member Function Documentation

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:


Member Data Documentation

Definition at line 62 of file commands.h.

Referenced by redo(), and undo().

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


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