VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
makVrv::DtBaseSoundSelectionDialog Class Reference

A base class dialog for creating sound selection maps. More...

Inheritance diagram for makVrv::DtBaseSoundSelectionDialog:
Inheritance graph
[legend]

Signals

void signal_AcceptingSelections (bool enable)
 Signal emitted when enabled state of selection acceptance changes.

Public Member Functions

 DtBaseSoundSelectionDialog (DtDe &de, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget|Qt::Tool)
 Default CTOR.
virtual ~DtBaseSoundSelectionDialog ()
 Virtual DTOR.

Protected Types

enum  DataRow {
  EntityRow, DetonationRow, FileRow, SoundDecibelsRow,
  ChannelRow
}
 Indices to set which row widgets use in the dialog. 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

DtDemyDe
 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 
SoundDecibelsRow 
ChannelRow 

Constructor & Destructor Documentation

makVrv::DtBaseSoundSelectionDialog::DtBaseSoundSelectionDialog ( DtDe de,
QWidget *  parent = NULL,
Qt::WindowFlags  flags = Qt::Widget|Qt::Tool 
)

Default CTOR.

Parameters
[in]deis the display engine.
[in]parentis the parent widget for this dialog.
[in]flagsis an OR'd list of Qt window flags.
virtual makVrv::DtBaseSoundSelectionDialog::~DtBaseSoundSelectionDialog ( )
virtual

Virtual DTOR.

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]enableis the new accepting selections state.
bool makVrv::DtBaseSoundSelectionDialog::selectionEnabled ( ) const
protected

Get the selection enabled state.

Return values
trueif this dialog is accepting selections.
falseotherwise.
QString makVrv::DtBaseSoundSelectionDialog::titleCreateNew ( const QString &  name = QString(""))
protected

Get the title string used for creating a new sound mapping.

Parameters
[in]nameis 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]nameis 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]enableis 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

The display engine.

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:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)