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

Logic for controlling the audio settings. More...

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

Public Member Functions

 DtAudioSettingsPageLogic (DtDe &de, DtAudioSettingsWidgetInterface &settingsIFace, DtPersistenceControlsInterface &persistenceIFace)
 Initializing CTOR.
virtual ~DtAudioSettingsPageLogic ()
 Virtual DTOR.
Control settings slots.
virtual void slot_AudioEnabledChanged (bool val)
 Called when the user enables or disables audio.
virtual void slot_VolumeChanged (int val)
 Called when the user changes volume.
virtual void slot_playbackDeviceChanged (const std::string &val)
 Called when the user changes the playback device.
virtual void slot_captureDeviceChanged (const std::string &val)
 Called when the user changes the capture device.
virtual void slot_SpeedOfSoundChanged (double val)
 Called when the user changes the speed of sound.
virtual void slot_MaxVoicesChanged (int val)
 Called when the user changes the maximum number of voices (sounds that can be played simultaneously).
virtual void slot_MaxmimumOutputDecibelCapabilityChanged (double val)
 Called when the user changes the maximum sound the speakers can generate.
virtual void slot_EnvironmentalProcessingEnabledChanged (bool val)
 Called when the user changes whether or not to use environmental processing.
Update GUI slots.
virtual void slot_VolumeUpdated (double val)
 Called when the volume was changed in the settings.
virtual void slot_AudioEnabledUpdated (bool val)
 Called when audio is enabled or disabled in the settings.
virtual void slot_SpeedOfSoundUpdated (double val)
 Called when the speed of sound was changed in the settings.
virtual void slot_playbackDeviceUpdated (const std::string &val)
 Called when the user changes the playback device.
virtual void slot_captureDeviceUpdated (const std::string &val)
 Called when the user changes the capture device.
virtual void slot_MaxVoicesUpdated (int val)
 Called when the maximum number of voices (sounds that can be played simultaneously) are changed in the settings.
virtual void slot_MaxmimumOutputDecibelCapabilityUpdated (double val)
 Called when the maximum sound the speakers can generate changes in the settings.
virtual void slot_EnvironmentalProcessingEnabledUpdated (bool val)
 Called when the environmental processing is changed in the settings.
virtual void slot_EnvironmentalProcessingAvailableUpdated (bool val)
 Called when the environmental processing is available is changed in the settings.
Persistence slots.
virtual void on_saveDefaults ()
 Called when the user saves current settings as defaults.
virtual void on_restoreDefaults ()
 Called when the user reloads the default settings.
virtual void on_import ()
 Called to query the user for the settings file to import.
virtual void on_export ()
 Called to query the user for the settings file to export.
virtual void on_importFilePathChosen (const std::string &filePath)
 Called when the user selects a settings file to import.
virtual void on_exportFilePathChosen (const std::string &filePath)
 Called when the user selects a settings file to export.
virtual void on_restoreFactoryDefaults ()
 Called when the user reloads the factory settings.
virtual void slot_entitySettingsRestored (const DtSettingsBackup *s)
 Called when settings are restored.

Protected Member Functions

virtual void sendSettingsToGui ()
 Update the GUI with settings.
- Protected Member Functions inherited from makVrv::DtSignalConnectionManager
 DtSignalConnectionManager ()
 CTOR.
virtual ~DtSignalConnectionManager ()
 DTOR.
void manageConnection (const boost::signalslib::connection &conn)
 Connect a signal.
DtSignalConnectionManageroperator+= (const boost::signalslib::connection &conn)
 Connect a signal.
int numberOfConnections () const
 Get the number of connections.
void disconnectSignals ()
 Disconnect all signals.
bool blockConnections (bool blocked)
 Blocks/unblocks connections.
bool blockConnection (int index, bool blocked)
 Blocks/unblocks connections.
bool connectionsBlocked () const
 check whether connections are blocked.
bool connectionBlocked (int index) const
 check whether connections are blocked.

Protected Attributes

DtDemyDe
 The display engine for this instance.
DtAudioSettingsWidgetInterfacemyInterface
 The interface to the graphical widget.
DtPersistenceControlsInterfacemyPersistenceControls
 The interface to the persistence toolbar.

Additional Inherited Members

Detailed Description

Logic for controlling the audio settings.

Constructor & Destructor Documentation

makVrv::DtAudioSettingsPageLogic::DtAudioSettingsPageLogic ( DtDe de,
DtAudioSettingsWidgetInterface settingsIFace,
DtPersistenceControlsInterface persistenceIFace 
)

Initializing CTOR.

Parameters
[in]deis the display engine used when creating this instance.
[in]settingsIFaceis the interface to the graphical widget.
[in]persistenceIFaceis the interface to the persistence toolbar.
virtual makVrv::DtAudioSettingsPageLogic::~DtAudioSettingsPageLogic ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrv::DtAudioSettingsPageLogic::slot_AudioEnabledChanged ( bool  val)
virtual

Called when the user enables or disables audio.

Parameters
[in]valis the new audio enabled setting (true=enabled, false=disabled).
virtual void makVrv::DtAudioSettingsPageLogic::slot_VolumeChanged ( int  val)
virtual

Called when the user changes volume.

Parameters
[in]valis the new volume setting (0 - 100).
virtual void makVrv::DtAudioSettingsPageLogic::slot_playbackDeviceChanged ( const std::string &  val)
virtual

Called when the user changes the playback device.

Parameters
[in]valis the name of the new playback device
virtual void makVrv::DtAudioSettingsPageLogic::slot_captureDeviceChanged ( const std::string &  val)
virtual

Called when the user changes the capture device.

Parameters
[in]valis the name of the new capture device
virtual void makVrv::DtAudioSettingsPageLogic::slot_SpeedOfSoundChanged ( double  val)
virtual

Called when the user changes the speed of sound.

Parameters
[in]valis the new speed of sound setting (positive, in meters/second).
virtual void makVrv::DtAudioSettingsPageLogic::slot_MaxVoicesChanged ( int  val)
virtual

Called when the user changes the maximum number of voices (sounds that can be played simultaneously).

Parameters
[in]valis the new number of maximum sounds that can be played simultaneously
virtual void makVrv::DtAudioSettingsPageLogic::slot_MaxmimumOutputDecibelCapabilityChanged ( double  val)
virtual

Called when the user changes the maximum sound the speakers can generate.

Parameters
[in]valis the new maximum sound in decibels
virtual void makVrv::DtAudioSettingsPageLogic::slot_EnvironmentalProcessingEnabledChanged ( bool  val)
virtual

Called when the user changes whether or not to use environmental processing.

Parameters
[in]valis the new setting
virtual void makVrv::DtAudioSettingsPageLogic::slot_VolumeUpdated ( double  val)
virtual

Called when the volume was changed in the settings.

Parameters
[in]valis the new volume setting (0.0 - 1.0).
virtual void makVrv::DtAudioSettingsPageLogic::slot_AudioEnabledUpdated ( bool  val)
virtual

Called when audio is enabled or disabled in the settings.

Parameters
[in]valis the new audio enabled setting (true=enabled, false=disabled).
virtual void makVrv::DtAudioSettingsPageLogic::slot_SpeedOfSoundUpdated ( double  val)
virtual

Called when the speed of sound was changed in the settings.

Parameters
[in]valis the new speed of sound setting .
virtual void makVrv::DtAudioSettingsPageLogic::slot_playbackDeviceUpdated ( const std::string &  val)
virtual

Called when the user changes the playback device.

Parameters
[in]valis the name of the new playback device
virtual void makVrv::DtAudioSettingsPageLogic::slot_captureDeviceUpdated ( const std::string &  val)
virtual

Called when the user changes the capture device.

Parameters
[in]valis the name of the new capture device
virtual void makVrv::DtAudioSettingsPageLogic::slot_MaxVoicesUpdated ( int  val)
virtual

Called when the maximum number of voices (sounds that can be played simultaneously) are changed in the settings.

Parameters
[in]valis the new number of maximum sounds that can be played simultaneously
virtual void makVrv::DtAudioSettingsPageLogic::slot_MaxmimumOutputDecibelCapabilityUpdated ( double  val)
virtual

Called when the maximum sound the speakers can generate changes in the settings.

Parameters
[in]valis the new maximum sound in decibels
virtual void makVrv::DtAudioSettingsPageLogic::slot_EnvironmentalProcessingEnabledUpdated ( bool  val)
virtual

Called when the environmental processing is changed in the settings.

Parameters
[in]valis the new setting
virtual void makVrv::DtAudioSettingsPageLogic::slot_EnvironmentalProcessingAvailableUpdated ( bool  val)
virtual

Called when the environmental processing is available is changed in the settings.

Parameters
[in]valis the new setting
virtual void makVrv::DtAudioSettingsPageLogic::on_saveDefaults ( )
virtual

Called when the user saves current settings as defaults.

virtual void makVrv::DtAudioSettingsPageLogic::on_restoreDefaults ( )
virtual

Called when the user reloads the default settings.

virtual void makVrv::DtAudioSettingsPageLogic::on_import ( )
virtual

Called to query the user for the settings file to import.

virtual void makVrv::DtAudioSettingsPageLogic::on_export ( )
virtual

Called to query the user for the settings file to export.

virtual void makVrv::DtAudioSettingsPageLogic::on_importFilePathChosen ( const std::string &  filePath)
virtual

Called when the user selects a settings file to import.

Parameters
[in]filePathis the path to the file the user has selected.
virtual void makVrv::DtAudioSettingsPageLogic::on_exportFilePathChosen ( const std::string &  filePath)
virtual

Called when the user selects a settings file to export.

Parameters
[in]filePathis the path to the file the user has selected.
virtual void makVrv::DtAudioSettingsPageLogic::on_restoreFactoryDefaults ( )
virtual

Called when the user reloads the factory settings.

virtual void makVrv::DtAudioSettingsPageLogic::slot_entitySettingsRestored ( const DtSettingsBackup s)
virtual

Called when settings are restored.

virtual void makVrv::DtAudioSettingsPageLogic::sendSettingsToGui ( )
protectedvirtual

Update the GUI with settings.

Member Data Documentation

DtDe& makVrv::DtAudioSettingsPageLogic::myDe
protected

The display engine for this instance.

DtAudioSettingsWidgetInterface& makVrv::DtAudioSettingsPageLogic::myInterface
protected

The interface to the graphical widget.

DtPersistenceControlsInterface& makVrv::DtAudioSettingsPageLogic::myPersistenceControls
protected

The interface to the persistence toolbar.


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)