A base class dialog for creating sound selection maps.
More...
Static Public Member Functions |
| static const QString & | browserCaption () |
| | Get the caption string for the sound-file browser.
|
| static const QString & | entityTypeTooltip () |
| | Get the tooltip for the Entity Type.
|
| static const QString & | soundFileTooltip () |
| | Get the tooltip for the sound filename.
|
Protected Slots |
| virtual void | onUpdateEntityType (const QString &entity) |
| | Called when user is typing in the entity type field.
|
| void | onUpdateSoundFile (QString filename) |
| | Called when user changes the sound file.
|
| virtual void | onFileBrowser () |
| | Called when user clicks on the 'Open' button to open a file browser.
|
| virtual void | onFileBrowser () |
| | Called when user clicks on the 'Open' button.
|
Private Member Functions |
| void | setupGui () |
| | Set up the structure and layout of the dialog.
|
Detailed Description
A base class dialog for creating sound selection maps.
Constructor & Destructor Documentation
| makVrv::DtEntitySoundSelectionDialog::DtEntitySoundSelectionDialog |
( |
DtDe & |
de, |
|
|
const QString & |
entity = QString("-1:-1:-1:-1:-1:-1:-1"), |
|
|
const QString & |
filename = QString(""), |
|
|
QWidget * |
parent = NULL, |
|
|
Qt::WindowFlags |
flags = Qt::Widget|Qt::Tool |
|
) |
| |
Default CTOR.
- Parameters
-
| [in] | de | is the display engine. |
| [in] | entity | is the default Entity Type ID to display. |
| [in] | filename | is the default path and name of the sound file. |
| [in] | parent | is the parent widget for this dialog. |
| [in] | flags | is an OR'd list of Qt window flags. |
| virtual makVrv::DtEntitySoundSelectionDialog::~DtEntitySoundSelectionDialog |
( |
| ) |
|
|
virtual |
Member Function Documentation
| static const QString& makVrv::DtEntitySoundSelectionDialog::browserCaption |
( |
| ) |
|
|
static |
Get the caption string for the sound-file browser.
- Returns
- The caption used when instantiating the file browser.
| void makVrv::DtEntitySoundSelectionDialog::setEntityType |
( |
QString |
entity | ) |
|
Set the Entity Type.
- Parameters
-
| [in] | entity | is the Entity Type ID (should be in a valid form). |
| QString makVrv::DtEntitySoundSelectionDialog::entityType |
( |
| ) |
const |
Get the Entity Type.
- Returns
- The Entity Type ID as written by the user.
| static const QString& makVrv::DtEntitySoundSelectionDialog::entityTypeTooltip |
( |
| ) |
|
|
static |
Get the tooltip for the Entity Type.
- Returns
- The tooltip.
| void makVrv::DtEntitySoundSelectionDialog::setSoundFile |
( |
const QString & |
filename | ) |
|
Set the sound filename.
- Parameters
-
| [in] | filename | is the path and name of a sound file. |
- Note
- No validation or checks for existence is made on this filename.
| QString makVrv::DtEntitySoundSelectionDialog::soundFile |
( |
| ) |
const |
Get the sound filename.
- Returns
- The path to the sound file.
- Note
- Users should validation and check for existence on filename.
| static const QString& makVrv::DtEntitySoundSelectionDialog::soundFileTooltip |
( |
| ) |
|
|
static |
Get the tooltip for the sound filename.
- Returns
- The tooltip.
| virtual void makVrv::DtEntitySoundSelectionDialog::onUpdateEntityType |
( |
const QString & |
entity | ) |
|
|
protectedvirtualslot |
Called when user is typing in the entity type field.
- Parameters
-
| [in] | entity | is the new entity type. |
| void makVrv::DtEntitySoundSelectionDialog::onUpdateSoundFile |
( |
QString |
filename | ) |
|
|
protectedslot |
Called when user changes the sound file.
- Parameters
-
| [in] | filename | is the path and name of the sound file. |
| virtual void makVrv::DtEntitySoundSelectionDialog::onFileBrowser |
( |
| ) |
|
|
protectedvirtualslot |
Called when user clicks on the 'Open' button to open a file browser.
| void makVrv::DtEntitySoundSelectionDialog::setupGui |
( |
| ) |
|
|
private |
Set up the structure and layout of the dialog.
Member Data Documentation
| QLineEdit* makVrv::DtEntitySoundSelectionDialog::myEntityType |
|
private |
The text-box for the Entity Type.
| bool makVrv::DtEntitySoundSelectionDialog::myEntityTypeValid |
|
private |
| QLineEdit* makVrv::DtEntitySoundSelectionDialog::mySoundFile |
|
private |
The text-box for the sound filename.
| bool makVrv::DtEntitySoundSelectionDialog::mySoundFileValid |
|
private |
The documentation for this class was generated from the following file: