![]() |
VR-Forces Development_Version Class Documentation
|
A dialog for naming or selecting an Environment Condition. More...

Public Member Functions | |
| DtEnvironmentConditionsDialog (DtDe &de, const QString &name, const QStringList &excludeNames, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget|Qt::Tool) | |
| Editor CTOR. | |
| DtEnvironmentConditionsDialog (DtDe &de, const QString &name, const QString &defName, QStringList nameList, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget|Qt::Tool) | |
| Selector CTOR. | |
| virtual | ~DtEnvironmentConditionsDialog () |
| Virtual DTOR. | |
| const QString & | name () const |
| Get the final selection from the user. | |
Child widget accessors. | |
Getters for the field widgets. | |
| QLabel & | descriptionLabel () const |
| QLabel & | widgetLabel () const |
| QLineEdit & | editorWidget () const |
| QComboBox & | selectorWidget () const |
Protected Slots | |
Slots for handling user input. | |
| virtual void | onNameEdited (const QString &text) |
| virtual void | onNameSelected (const QString &text) |
Protected Attributes | |
| DtDe & | myDe |
| QLabel * | myDescriptionLabel |
| QLabel * | myNameLabel |
| QLineEdit * | myNameEditor |
| QComboBox * | myNameSelector |
| QDialogButtonBox * | mySelectionButtons |
| QStringList | myExcludeList |
| QString | myNameString |
Private Member Functions | |
| void | setupLayouts (QHBoxLayout *controlLayout) |
| Set the basic layouts for GUI elements. | |
A dialog for naming or selecting an Environment Condition.
This dialog performs two actions, when instantiated with the default (editor) constructor the dialog provides the user with a text-edit widget to type in a name for an environment condition. When the alternate (selector) constructor is used, the dialog provides the user with a list of existing environment names to choose from.
| makVrv::DtEnvironmentConditionsDialog::DtEnvironmentConditionsDialog | ( | DtDe & | de, |
| const QString & | name, | ||
| const QStringList & | excludeNames, | ||
| QWidget * | parent = NULL, |
||
| Qt::WindowFlags | flags = Qt::Widget|Qt::Tool |
||
| ) |
Editor CTOR.
| [in] | de | is the display engine. |
| [in] | name | is a name for the current environment condition. |
| [in] | excludeNames | is a list of names to not accept. |
| [in] | parent | is the parent widget for this dialog. |
| [in] | flags | is an OR'd list of Qt window flags. |
| makVrv::DtEnvironmentConditionsDialog::DtEnvironmentConditionsDialog | ( | DtDe & | de, |
| const QString & | name, | ||
| const QString & | defName, | ||
| QStringList | nameList, | ||
| QWidget * | parent = NULL, |
||
| Qt::WindowFlags | flags = Qt::Widget|Qt::Tool |
||
| ) |
Selector CTOR.
| [in] | de | is the display engine. |
| [in] | name | is a name for the current environment condition. |
| [in] | defName | is the name of the default condition. |
| [in] | nameList | is a list of names user may select from. |
| [in] | parent | is the parent widget for this dialog. |
| [in] | flags | is an OR'd list of Qt window flags. |
|
virtual |
Virtual DTOR.
| const QString& makVrv::DtEnvironmentConditionsDialog::name | ( | ) | const |
Get the final selection from the user.
| QLabel& makVrv::DtEnvironmentConditionsDialog::descriptionLabel | ( | ) | const |
| QLabel& makVrv::DtEnvironmentConditionsDialog::widgetLabel | ( | ) | const |
| QLineEdit& makVrv::DtEnvironmentConditionsDialog::editorWidget | ( | ) | const |
| QComboBox& makVrv::DtEnvironmentConditionsDialog::selectorWidget | ( | ) | const |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
private |
Set the basic layouts for GUI elements.
| [in] | controlLayout | is the layout for the control widgets. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |