#include <commands.h>
Public Member Functions | |
StateMoveCommand (State *state, const QPointF &oldPos, QUndoCommand *parent=0) | |
void | redo () |
void | undo () |
Private Attributes | |
QPointF | newPos |
QPointF | oldPos |
State * | state |
Definition at line 38 of file commands.h.
StateMoveCommand::StateMoveCommand | ( | State * | state, | |
const QPointF & | oldPos, | |||
QUndoCommand * | parent = 0 | |||
) |
Definition at line 77 of file commands.cpp.
References newPos.
void StateMoveCommand::redo | ( | ) |
Definition at line 91 of file commands.cpp.
References createCommandString(), newPos, and state.
void StateMoveCommand::undo | ( | ) |
Definition at line 83 of file commands.cpp.
References createCommandString(), newPos, oldPos, and state.
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().
State* StateMoveCommand::state [private] |
Definition at line 47 of file commands.h.