#include <commands.h>
Public Member Functions | |
StateEditWithDelCommand (Editor *editor, State *state_backup, State *state_new, QUndoCommand *parent=0) | |
~StateEditWithDelCommand () | |
void | copyExtendedParameters (State *s1, State *const s2) |
void | redo () |
void | undo () |
Private Attributes | |
Editor * | editor |
State * | state_backup |
State * | state_new |
QList< Transition * > | transitionList |
bool | wasUndo |
Definition at line 104 of file commands.h.
StateEditWithDelCommand::StateEditWithDelCommand | ( | Editor * | editor, | |
State * | state_backup, | |||
State * | state_new, | |||
QUndoCommand * | parent = 0 | |||
) |
Definition at line 224 of file commands.cpp.
References State::getTransitionList(), and transitionList.
StateEditWithDelCommand::~StateEditWithDelCommand | ( | ) |
Definition at line 231 of file commands.cpp.
References state_backup, state_new, and wasUndo.
Definition at line 286 of file commands.cpp.
References State::dimStateFillColor, State::dimStateLabelColor, State::dimStateLineCoef, State::dimStateLineColor, State::dimStateLineStyle, State::setDimStateLineCoef(), State::setStateLabelScale(), State::setStateLineDoubleCoef(), State::setStateLineDoubleSep(), State::setStateLineWidth(), State::stateFillColor, State::stateFillStatus, State::stateLabelColor, State::stateLabelScale, State::stateLineColor, State::stateLineDoubleCoef, State::stateLineDoubleSep, State::stateLineStyle, and State::stateLineWidth.
Referenced by redo().
void StateEditWithDelCommand::redo | ( | ) |
Definition at line 264 of file commands.cpp.
References Editor::addToListsAndScene(), State::adjustTransitions(), State::clearTransitionList(), copyExtendedParameters(), editor, Editor::removeFromListsAndScene(), State::setTransitionList(), state_backup, state_new, transitionList, and wasUndo.
void StateEditWithDelCommand::undo | ( | ) |
Definition at line 243 of file commands.cpp.
References Editor::addToListsAndScene(), State::adjustTransitions(), State::clearTransitionList(), editor, Editor::removeFromListsAndScene(), State::setTransitionList(), state_backup, state_new, transitionList, and wasUndo.
Editor* StateEditWithDelCommand::editor [private] |
Definition at line 116 of file commands.h.
State* StateEditWithDelCommand::state_backup [private] |
Definition at line 117 of file commands.h.
Referenced by redo(), undo(), and ~StateEditWithDelCommand().
State * StateEditWithDelCommand::state_new [private] |
Definition at line 117 of file commands.h.
Referenced by redo(), undo(), and ~StateEditWithDelCommand().
QList<Transition *> StateEditWithDelCommand::transitionList [private] |
Definition at line 118 of file commands.h.
Referenced by redo(), StateEditWithDelCommand(), and undo().
bool StateEditWithDelCommand::wasUndo [private] |
Definition at line 120 of file commands.h.
Referenced by redo(), undo(), and ~StateEditWithDelCommand().