Public Member Functions | Private Attributes

StateMoveCommand Class Reference

#include <commands.h>

Collaboration diagram for StateMoveCommand:

List of all members.

Public Member Functions

 StateMoveCommand (State *state, const QPointF &oldPos, QUndoCommand *parent=0)
void redo ()
void undo ()

Private Attributes

QPointF newPos
QPointF oldPos
Statestate

Detailed Description

Definition at line 38 of file commands.h.


Constructor & Destructor Documentation

StateMoveCommand::StateMoveCommand ( State state,
const QPointF &  oldPos,
QUndoCommand *  parent = 0 
)

Definition at line 77 of file commands.cpp.

References newPos.


Member Function Documentation

void StateMoveCommand::redo (  ) 

Definition at line 91 of file commands.cpp.

References createCommandString(), newPos, and state.

Here is the call graph for this function:

void StateMoveCommand::undo (  ) 

Definition at line 83 of file commands.cpp.

References createCommandString(), newPos, oldPos, and state.

Here is the call graph for this function:


Member Data Documentation

QPointF StateMoveCommand::newPos [private]

Definition at line 49 of file commands.h.

Referenced by redo(), StateMoveCommand(), and undo().

QPointF StateMoveCommand::oldPos [private]

Definition at line 48 of file commands.h.

Referenced by undo().

Definition at line 47 of file commands.h.

Referenced by redo(), and undo().


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