#include <commands.h>
Public Member Functions | |
StateEditCommand (Editor *editor, State *state, QString label, QString name, bool db, bool dimmed, bool autoNammed, QUndoCommand *parent=0) | |
void | redo () |
void | undo () |
Private Attributes | |
bool | an_new |
bool | an_old |
bool | db_new |
bool | db_old |
bool | dimmed_new |
bool | dimmed_old |
Editor * | editor |
QString | label_new |
QString | label_old |
QString | name_new |
QString | name_old |
State * | state |
Definition at line 85 of file commands.h.
StateEditCommand::StateEditCommand | ( | Editor * | editor, | |
State * | state, | |||
QString | label, | |||
QString | name, | |||
bool | db, | |||
bool | dimmed, | |||
bool | autoNammed, | |||
QUndoCommand * | parent = 0 | |||
) |
Definition at line 184 of file commands.cpp.
References an_old, db_old, dimmed_old, State::getLabel(), State::getName(), State::isAutoNammed(), State::isDimmed(), State::isDoubleBorder(), label_old, and name_old.
void StateEditCommand::redo | ( | ) |
Definition at line 207 of file commands.cpp.
References an_new, createCommandString(), db_new, dimmed_new, editor, label_new, name_new, Editor::renameState(), State::setAutoNammed(), State::setDimmed(), State::setDoubleBorder(), State::setLabel(), and state.
void StateEditCommand::undo | ( | ) |
Definition at line 196 of file commands.cpp.
References an_old, createCommandString(), db_old, dimmed_old, editor, label_old, name_old, Editor::renameState(), State::setAutoNammed(), State::setDimmed(), State::setDoubleBorder(), State::setLabel(), and state.
bool StateEditCommand::an_new [private] |
Definition at line 101 of file commands.h.
Referenced by redo().
bool StateEditCommand::an_old [private] |
Definition at line 101 of file commands.h.
Referenced by StateEditCommand(), and undo().
bool StateEditCommand::db_new [private] |
Definition at line 99 of file commands.h.
Referenced by redo().
bool StateEditCommand::db_old [private] |
Definition at line 99 of file commands.h.
Referenced by StateEditCommand(), and undo().
bool StateEditCommand::dimmed_new [private] |
Definition at line 100 of file commands.h.
Referenced by redo().
bool StateEditCommand::dimmed_old [private] |
Definition at line 100 of file commands.h.
Referenced by StateEditCommand(), and undo().
Editor* StateEditCommand::editor [private] |
Definition at line 94 of file commands.h.
QString StateEditCommand::label_new [private] |
Definition at line 97 of file commands.h.
Referenced by redo().
QString StateEditCommand::label_old [private] |
Definition at line 97 of file commands.h.
Referenced by StateEditCommand(), and undo().
QString StateEditCommand::name_new [private] |
Definition at line 98 of file commands.h.
Referenced by redo().
QString StateEditCommand::name_old [private] |
Definition at line 98 of file commands.h.
Referenced by StateEditCommand(), and undo().
State* StateEditCommand::state [private] |
Definition at line 95 of file commands.h.