|
VR-Engage
2.2
|
This widget provides a container for managing multiple radio interfaces in the VREngage environment. It allows users to control and monitor multiple radio channels through a single consistent interface, including volume control, push-to-talk functionality, and voice activation detection (VOX).
#include <radioStackWidget.h>
Public Slots | |
| virtual void | entityChanged (int idx) |
| virtual void | masterVolumeChanged (int value) |
| virtual void | masterVoxChanged (int value) |
| virtual void | masterPttPressed () |
| virtual void | masterPttReleased () |
| virtual void | updateRadios () |
| virtual void | updateLevels () |
Public Member Functions | |
| DtRadioStackWidget (DtVrvRadioManager *mgr, QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~DtRadioStackWidget () |
| virtual void | addEntity (std::string markingText) |
| virtual void | removeEntity (std::string markingText) |
| virtual DtVrvRadioManager & | radioManager () |
Protected Member Functions | |
| virtual void | createRadios () |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| void | setupUi (QWidget *p) |
Protected Attributes | |
| Ui::DtRadioStackWidgetUI | myUI |
| QStandardItemModel * | myModel |
| QSortFilterProxyModel * | myProxy |
| DtVrvRadioManager * | myManager |
| QTimer * | myLevelsTimer |
| makVrv::DtRadioStackWidget::DtRadioStackWidget | ( | DtVrvRadioManager * | mgr, |
| QWidget * | parent = 0, | ||
| Qt::WindowFlags | f = 0 ) |
Constructor.
| mgr | The radio manager providing access to radio functionality |
| parent | The parent widget (optional) |
| f | Window flags (optional) |
Creates a new radio stack widget with the specified radio manager and parent.
|
virtual |
Virtual destructor.
Cleans up resources used by the radio stack widget.
|
virtual |
Adds an entity to the radio system.
| markingText | The marking text identifying the entity to add |
Adds an entity with the specified marking text to the radio system, making it available for radio communications.
|
virtual |
Removes an entity from the radio system.
| markingText | The marking text identifying the entity to remove |
Removes an entity with the specified marking text from the radio system, disconnecting it from radio communications.
|
virtual |
Gets the radio manager.
Returns a reference to the radio manager used by this stack widget.
|
virtualslot |
Slot called when the selected entity changes.
| idx | The index of the newly selected entity |
Updates the radio display to show the radios for the newly selected entity.
|
virtualslot |
Slot called when the master volume changes.
| value | The new volume value |
Updates the volume for all radio channels.
|
virtualslot |
Slot called when the master VOX setting changes.
| value | The new VOX threshold value |
Updates the voice activation detection threshold for all radio channels.
|
virtualslot |
Slot called when the master push-to-talk button is pressed.
Activates transmission on all active radio channels.
|
virtualslot |
Slot called when the master push-to-talk button is released.
Deactivates transmission on all active radio channels.
|
virtualslot |
Updates the radio display.
Refreshes the display of all radio controls to reflect current state.
|
virtualslot |
Updates signal level indicators.
Updates the signal level indicators for all active radio channels.
|
protectedvirtual |
Creates radio widgets for the current entity.
Creates and initializes the radio widgets for the currently selected entity.
|
protectedvirtual |
Filters events for radio widgets.
| watched | The object being watched |
| event | The event that occurred |
Handles events for radio widgets, particularly keyboard shortcuts for PTT.
|
protected |
Sets up the contents of the widget onto the supplied parent.
| p | The parent widget to set up the UI on |
Initializes the UI components of the radio stack widget and adds them to the specified parent widget.
|
protected |
The UI components for this widget.
Contains the actual UI components defined in the UI file.
|
protected |
Data model for the entity list.
Stores entity data for display in the entity selection list.
|
protected |
Proxy model for filtering the entity list.
Provides filtering and sorting capabilities for the entity list.
|
protected |
The radio manager handling radio functionality.
Manages the underlying radio simulation functionality.
|
protected |
Timer for updating signal levels.
Periodically triggers updates to the signal level indicators.