#include <stateDialogs.h>
Public Types | |
enum | EMode { eAdd, eEdit } |
Public Member Functions | |
StateDialog (Editor *editor, const QList< QString > &typeList, EMode mode=eAdd, bool hasInitial=false, QWidget *parent=0) | |
QString | getLabel () const |
QString | getName () const |
int | getType () const |
bool | isAutoNammed () const |
bool | isDimmed () const |
bool | quickInitial () const |
void | setAutoNammed (bool aN) |
void | setDimmed (bool dim) |
void | setLabel (const QString &label) |
void | setName (const QString &name, bool editing=true) |
void | setType (int type) |
Protected Slots | |
void | changeAutoName () |
void | testAccept () |
Protected Member Functions | |
bool | nameBraceMatch () |
Protected Attributes | |
QCheckBox * | checkAutoName |
QCheckBox * | checkDimmed |
QCheckBox * | checkQuickInitial |
QComboBox * | comboType |
QString | currentStateName |
Editor * | editor |
Definition at line 30 of file stateDialogs.h.
enum StateDialog::EMode |
Definition at line 34 of file stateDialogs.h.
StateDialog::StateDialog | ( | Editor * | editor, | |
const QList< QString > & | typeList, | |||
EMode | mode = eAdd , |
|||
bool | hasInitial = false , |
|||
QWidget * | parent = 0 | |||
) |
Definition at line 74 of file stateDialogs.cpp.
References changeAutoName(), checkAutoName, checkDimmed, checkQuickInitial, comboType, eAdd, NameAcceptDialog::edtLabel, NameAcceptDialog::edtName, and testAccept().
void StateDialog::changeAutoName | ( | ) | [protected, slot] |
Definition at line 194 of file stateDialogs.cpp.
References checkAutoName, currentStateName, editor, NameAcceptDialog::edtName, and Editor::getUniqueAutoName().
Referenced by StateDialog().
QString StateDialog::getLabel | ( | ) | const |
Definition at line 145 of file stateDialogs.cpp.
References NameAcceptDialog::edtLabel.
Referenced by StateManager::createState().
QString StateDialog::getName | ( | ) | const |
Definition at line 140 of file stateDialogs.cpp.
References NameAcceptDialog::edtName.
Referenced by StateManager::createState().
int StateDialog::getType | ( | ) | const |
Definition at line 150 of file stateDialogs.cpp.
References comboType.
Referenced by StateManager::createState().
bool StateDialog::isAutoNammed | ( | ) | const |
Definition at line 160 of file stateDialogs.cpp.
References checkAutoName.
bool StateDialog::isDimmed | ( | ) | const |
Definition at line 155 of file stateDialogs.cpp.
References checkDimmed.
Referenced by StateManager::createState().
bool StateDialog::nameBraceMatch | ( | ) | [protected] |
Definition at line 224 of file stateDialogs.cpp.
References NameAcceptDialog::edtName.
Referenced by testAccept().
bool StateDialog::quickInitial | ( | ) | const |
Definition at line 135 of file stateDialogs.cpp.
References checkQuickInitial.
void StateDialog::setAutoNammed | ( | bool | aN | ) |
Definition at line 186 of file stateDialogs.cpp.
References checkAutoName, and NameAcceptDialog::edtName.
void StateDialog::setDimmed | ( | bool | dim | ) |
Definition at line 181 of file stateDialogs.cpp.
References checkDimmed.
void StateDialog::setLabel | ( | const QString & | label | ) |
Definition at line 171 of file stateDialogs.cpp.
References NameAcceptDialog::edtLabel.
void StateDialog::setName | ( | const QString & | name, | |
bool | editing = true | |||
) |
Definition at line 165 of file stateDialogs.cpp.
References currentStateName, and NameAcceptDialog::edtName.
void StateDialog::setType | ( | int | type | ) |
Definition at line 176 of file stateDialogs.cpp.
References comboType.
void StateDialog::testAccept | ( | ) | [protected, slot] |
Definition at line 249 of file stateDialogs.cpp.
References checkAutoName, currentStateName, editor, NameAcceptDialog::edtName, NameAcceptDialog::myAccept(), nameBraceMatch(), NameAcceptDialog::showMessage(), and Editor::testStateName().
Referenced by StateDialog().
QCheckBox* StateDialog::checkAutoName [protected] |
Definition at line 55 of file stateDialogs.h.
Referenced by changeAutoName(), isAutoNammed(), setAutoNammed(), StateDialog(), and testAccept().
QCheckBox* StateDialog::checkDimmed [protected] |
Definition at line 57 of file stateDialogs.h.
Referenced by isDimmed(), setDimmed(), and StateDialog().
QCheckBox* StateDialog::checkQuickInitial [protected] |
Definition at line 58 of file stateDialogs.h.
Referenced by quickInitial(), and StateDialog().
QComboBox* StateDialog::comboType [protected] |
Definition at line 56 of file stateDialogs.h.
Referenced by getType(), setType(), and StateDialog().
QString StateDialog::currentStateName [protected] |
Definition at line 61 of file stateDialogs.h.
Referenced by changeAutoName(), setName(), and testAccept().
Editor* StateDialog::editor [protected] |
Definition at line 60 of file stateDialogs.h.
Referenced by changeAutoName(), and testAccept().