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

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

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

Public Member Functions

 DtFireSoundSelectionDialog (DtDe &de, const QString &entity=QString("-1:-1:-1:-1:-1:-1:-1"), const QString &filename=QString(""), float falloff=10.0, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget|Qt::Tool)
 Default CTOR.
virtual ~DtFireSoundSelectionDialog ()
 Virtual DTOR.
- Public Member Functions inherited from makVrv::DtEntitySoundSelectionDialog
 DtEntitySoundSelectionDialog (DtDe &de, const QString &entity=QString("-1:-1:-1:-1:-1:-1:-1"), const QString &filename=QString(""), float decibels=60.0, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget|Qt::Tool)
 Default CTOR.
virtual ~DtEntitySoundSelectionDialog ()
 Virtual DTOR.
void setEntityType (QString entity)
 Set the Entity Type.
QString entityType () const
 Get the Entity Type.
void setSoundFile (const QString &filename)
 Set the sound filename.
QString soundFile () const
 Get the sound filename.
void setSoundDecibels (const float decibels)
 Set the sound decibels.
float soundDecibels () const
 Get the sound decibels.
- Public Member Functions inherited from makVrv::DtBaseSoundSelectionDialog
 DtBaseSoundSelectionDialog (DtDe &de, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget|Qt::Tool)
 Default CTOR.
virtual ~DtBaseSoundSelectionDialog ()
 Virtual DTOR.

Private Member Functions

void setupGui ()
 Set up the structure and layout of the dialog.

Additional Inherited Members

- Signals inherited from makVrv::DtBaseSoundSelectionDialog
void signal_AcceptingSelections (bool enable)
 Signal emitted when enabled state of selection acceptance changes.
- Static Public Member Functions inherited from makVrv::DtEntitySoundSelectionDialog
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.
static const QString & soundDecibelsTip ()
 Get the tooltip for the sound decibels.
- Protected Types inherited from makVrv::DtBaseSoundSelectionDialog
enum  DataRow {
  EntityRow, DetonationRow, FileRow, SoundDecibelsRow,
  ChannelRow
}
 Indices to set which row widgets use in the dialog. More...
- Protected Slots inherited from makVrv::DtEntitySoundSelectionDialog
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 onUpdateDecibels (QString decibels)
- Protected Member Functions inherited from makVrv::DtBaseSoundSelectionDialog
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 inherited from makVrv::DtBaseSoundSelectionDialog
DtDemyDe
 The display engine.
QGridLayout * myWidgetLayout
 The layout for derived classes to populate.

Detailed Description

A base class dialog for creating sound selection maps.

Constructor & Destructor Documentation

makVrv::DtFireSoundSelectionDialog::DtFireSoundSelectionDialog ( DtDe de,
const QString &  entity = QString("-1:-1:-1:-1:-1:-1:-1"),
const QString &  filename = QString(""),
float  falloff = 10.0,
QWidget *  parent = NULL,
Qt::WindowFlags  flags = Qt::Widget|Qt::Tool 
)

Default CTOR.

Parameters
[in]deis the display engine.
[in]entityis the default Entity Type ID to display.
[in]filenameis the default path and name of the sound file.
[in]chanis the channel for the sound to play on.
[in]parentis the parent widget for this dialog.
[in]flagsis an OR'd list of Qt window flags.
virtual makVrv::DtFireSoundSelectionDialog::~DtFireSoundSelectionDialog ( )
virtual

Virtual DTOR.

Member Function Documentation

void makVrv::DtFireSoundSelectionDialog::setupGui ( )
private

Set up the structure and layout of the dialog.


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)