![]() |
VR-Forces 4.10 Class Documentation
|
DtAudioVolumeWidget is a toolbar widget that combines a button to enable and disable audio, and a drop-down button to bring up a slider for the audio. More...

Public Member Functions | |
| DtAudioVolumeWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Initializing Constructor. More... | |
| virtual | ~DtAudioVolumeWidget () |
| Virtual Destructor. More... | |
| virtual void | setupGui () |
| Sets up the user interface. More... | |
| virtual void | setAudioEnabled (bool enabled) |
| Sets audio to be enabled/disabled. More... | |
| virtual void | setVolume (int vol) |
| Sets the audio volume level. More... | |
Public Member Functions inherited from makVrv::DtToolbarWidget | |
| DtToolbarWidget (QWidget *p=0, Qt::WindowFlags f=0) | |
| CTOR The parent widget should be a QToolBar so that we can connect to its toolButtonStyleChanged(Qt::ToolButtonStyle) signal. More... | |
| virtual | ~DtToolbarWidget () |
| DTOR. More... | |
| void | setToolButtonChecked (bool checked) |
| Set/Get whether or not the tool button is checked. More... | |
| bool | isToolButtonChecked () const |
| void | setToolButtonStyle (Qt::ToolButtonStyle style) |
| Set/Get the current toolbutton style If myToolButton is uninitialized, the getter defaults to returning Qt::ToolButtonFollowStyle. More... | |
| Qt::ToolButtonStyle | toolButtonStyle () const |
Public Member Functions inherited from makVrv::DtAudioVolumeWidgetInterface | |
| DtAudioVolumeWidgetInterface () | |
| Default CTOR. More... | |
| virtual | ~DtAudioVolumeWidgetInterface () |
| Virtual DTOR. More... | |
Protected Slots | |
| virtual void | on_volumeSliderChanged (int val) |
| Connected to the internal model scale slider toggle button. More... | |
| virtual void | on_toolButtonClicked (bool checked) |
| Slot when this widget's toolbutton has been clicked. More... | |
Protected Slots inherited from makVrv::DtToolbarWidget | |
| virtual void | on_toolButtonStyleChanged (Qt::ToolButtonStyle val) |
| Updates widget to match the new ToolButtonStyle. More... | |
| virtual void | on_toolButtonClicked (bool checked)=0 |
| Slot when this widget's toolbutton has been clicked. More... | |
| virtual void | on_aboutToShow () |
| Slot for when the menu for this widget is about to be shown The slot is only used if this toolbar widget is configured to have a menu. More... | |
Protected Member Functions | |
| virtual void | setWidgetsVisible (bool visible) |
| Called whenever the ToolButtonStyle has changed. More... | |
Protected Member Functions inherited from makVrv::DtToolbarWidget | |
| virtual void | configureToolButton (const QString &text, const QString &tooltip, const QString &iconPath, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup) |
| Configure the QToolButton for this toolbar widget. More... | |
Private Member Functions | |
| DtAudioVolumeWidget () | |
| Default CTOR. More... | |
| DtAudioVolumeWidget (const DtAudioVolumeWidget &) | |
| Copy CTOR. More... | |
| DtAudioVolumeWidget & | operator= (const DtAudioVolumeWidget &) |
| Copy operator. More... | |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtAudioVolumeWidgetInterface | |
| boost::signalslib::signal < void(bool)> | signal_AudioEnabledChanged |
| Signals emitted when the user changes the data in the widget. More... | |
| boost::signalslib::signal < void(int)> | signal_VolumeChanged |
Protected Attributes inherited from makVrv::DtToolbarWidget | |
| QToolButton * | myToolButton |
| QHBoxLayout * | myWidgetLayout |
DtAudioVolumeWidget is a toolbar widget that combines a button to enable and disable audio, and a drop-down button to bring up a slider for the audio.
| makVrv::DtAudioVolumeWidget::DtAudioVolumeWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
Initializing Constructor.
| [in] | de | is the display engine for this instance. |
| [in] | parent | is the parent widget for this instance. |
| [in] | f | is a set of window flags for this widget. |
|
virtual |
Virtual Destructor.
|
private |
Default CTOR.
|
private |
Copy CTOR.
|
private |
Copy operator.
|
virtual |
Sets up the user interface.
|
virtual |
Sets audio to be enabled/disabled.
| [in] | enabled | is the new state of audio. |
Implements makVrv::DtAudioVolumeWidgetInterface.
|
virtual |
Sets the audio volume level.
| [in] | vol | is the new volume level. |
Implements makVrv::DtAudioVolumeWidgetInterface.
|
protectedvirtualslot |
Connected to the internal model scale slider toggle button.
|
protectedvirtualslot |
Slot when this widget's toolbutton has been clicked.
| checked | Whether or not the QToolButton is checked or not Enables/Disables sound via slot DtAudioVolumeLogic::slot_AudioEnabledChanged |
|
protectedvirtual |
Called whenever the ToolButtonStyle has changed.
| visible | Whether or not any custom widgets are visible This function updates the visibility of mySliderEnableButton |
Reimplemented from makVrv::DtToolbarWidget.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |