A base class dialog for creating sound selection maps.
More...
Protected Slots |
| virtual void | onFileBrowser () |
| | Called when user clicks on the 'Open' button.
|
Protected Member Functions |
| void | setSelectionEnabled (bool enable) |
| | Switch to enable or disable accepting the selection.
|
| bool | selectionEnabled () const |
| | Get the selection enabled state.
|
| QString | titleCreateNew (const QString &name=QString("")) |
| | Get the title string used for creating a new sound mapping.
|
| QString | titleCopyNew (const QString &name=QString("")) |
| | Get the title string used for copying a new sound mapping.
|
Protected Attributes |
| DtDe & | myDe |
| | The display engine.
|
| QGridLayout * | myWidgetLayout |
| | The layout for derived classes to populate.
|
Private Member Functions |
| void | setupGui () |
| | Set up the structure and layout of the dialog.
|
Private Attributes |
| QDialogButtonBox * | mySelectionButtons |
| | The main buttons for accepting or canceling.
|
Detailed Description
A base class dialog for creating sound selection maps.
Member Enumeration Documentation
Indices to set which row widgets use in the dialog.
- Enumerator:
| EntityRow |
|
| DetonationRow |
|
| FileRow |
|
| ChannelRow |
|
Constructor & Destructor Documentation
| makVrv::DtBaseSoundSelectionDialog::DtBaseSoundSelectionDialog |
( |
DtDe & |
de, |
|
|
QWidget * |
parent = NULL, |
|
|
Qt::WindowFlags |
flags = Qt::Widget|Qt::Tool |
|
) |
| |
Default CTOR.
- Parameters
-
| [in] | de | is the display engine. |
| [in] | parent | is the parent widget for this dialog. |
| [in] | flags | is an OR'd list of Qt window flags. |
| virtual makVrv::DtBaseSoundSelectionDialog::~DtBaseSoundSelectionDialog |
( |
| ) |
|
|
virtual |
Member Function Documentation
| void makVrv::DtBaseSoundSelectionDialog::setSelectionEnabled |
( |
bool |
enable | ) |
|
|
protected |
Switch to enable or disable accepting the selection.
When disabled, users can only cancel.
- Parameters
-
| [in] | enable | is the new accepting selections state. |
| bool makVrv::DtBaseSoundSelectionDialog::selectionEnabled |
( |
| ) |
const |
|
protected |
Get the selection enabled state.
- Return values
-
| true | if this dialog is accepting selections. |
| false | otherwise. |
| QString makVrv::DtBaseSoundSelectionDialog::titleCreateNew |
( |
const QString & |
name = QString("") | ) |
|
|
protected |
Get the title string used for creating a new sound mapping.
- Parameters
-
| [in] | name | is the name of the type of sound mapping. |
- Returns
- The title used for creating a new sound mapping.
| QString makVrv::DtBaseSoundSelectionDialog::titleCopyNew |
( |
const QString & |
name = QString("") | ) |
|
|
protected |
Get the title string used for copying a new sound mapping.
- Parameters
-
| [in] | name | is the name of the type of sound mapping. |
- Returns
- The title used for copying a new sound mapping.
| void makVrv::DtBaseSoundSelectionDialog::signal_AcceptingSelections |
( |
bool |
enable | ) |
|
|
signal |
Signal emitted when enabled state of selection acceptance changes.
- Parameters
-
| [in] | enable | is the new accepting selections state. |
| virtual void makVrv::DtBaseSoundSelectionDialog::onFileBrowser |
( |
| ) |
|
|
protectedvirtualslot |
Called when user clicks on the 'Open' button.
- Note
- Derived classes override to open and handle a file browser.
| void makVrv::DtBaseSoundSelectionDialog::setupGui |
( |
| ) |
|
|
private |
Set up the structure and layout of the dialog.
Member Data Documentation
| DtDe& makVrv::DtBaseSoundSelectionDialog::myDe |
|
protected |
| QGridLayout* makVrv::DtBaseSoundSelectionDialog::myWidgetLayout |
|
protected |
The layout for derived classes to populate.
| QDialogButtonBox* makVrv::DtBaseSoundSelectionDialog::mySelectionButtons |
|
private |
The main buttons for accepting or canceling.
The documentation for this class was generated from the following file: