Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes

StateDialog Class Reference

#include <stateDialogs.h>

Inheritance diagram for StateDialog:
Collaboration diagram for StateDialog:

List of all members.

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
Editoreditor

Detailed Description

Definition at line 30 of file stateDialogs.h.


Member Enumeration Documentation

Enumerator:
eAdd 
eEdit 

Definition at line 34 of file stateDialogs.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

QString StateDialog::getLabel (  )  const

Definition at line 145 of file stateDialogs.cpp.

References NameAcceptDialog::edtLabel.

Referenced by StateManager::createState().

Here is the caller graph for this function:

QString StateDialog::getName (  )  const

Definition at line 140 of file stateDialogs.cpp.

References NameAcceptDialog::edtName.

Referenced by StateManager::createState().

Here is the caller graph for this function:

int StateDialog::getType (  )  const

Definition at line 150 of file stateDialogs.cpp.

References comboType.

Referenced by StateManager::createState().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

bool StateDialog::nameBraceMatch (  )  [protected]

Definition at line 224 of file stateDialogs.cpp.

References NameAcceptDialog::edtName.

Referenced by testAccept().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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().

Definition at line 60 of file stateDialogs.h.

Referenced by changeAutoName(), and testAccept().


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