VR-Engage  2.2
Loading...
Searching...
No Matches
makVrv::DtRadioStackWidget Class Reference

Detailed Description

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>

Inheritance diagram for makVrv::DtRadioStackWidget:
[legend]

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
 

Constructor & Destructor Documentation

◆ DtRadioStackWidget()

makVrv::DtRadioStackWidget::DtRadioStackWidget ( DtVrvRadioManager * mgr,
QWidget * parent = 0,
Qt::WindowFlags f = 0 )

Constructor.

Parameters
mgrThe radio manager providing access to radio functionality
parentThe parent widget (optional)
fWindow flags (optional)

Creates a new radio stack widget with the specified radio manager and parent.

◆ ~DtRadioStackWidget()

virtual makVrv::DtRadioStackWidget::~DtRadioStackWidget ( )
virtual

Virtual destructor.

Cleans up resources used by the radio stack widget.

Member Function Documentation

◆ addEntity()

virtual void makVrv::DtRadioStackWidget::addEntity ( std::string markingText)
virtual

Adds an entity to the radio system.

Parameters
markingTextThe 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.

◆ removeEntity()

virtual void makVrv::DtRadioStackWidget::removeEntity ( std::string markingText)
virtual

Removes an entity from the radio system.

Parameters
markingTextThe marking text identifying the entity to remove

Removes an entity with the specified marking text from the radio system, disconnecting it from radio communications.

◆ radioManager()

virtual DtVrvRadioManager & makVrv::DtRadioStackWidget::radioManager ( )
virtual

Gets the radio manager.

Returns
Reference to the radio manager

Returns a reference to the radio manager used by this stack widget.

◆ entityChanged

virtual void makVrv::DtRadioStackWidget::entityChanged ( int idx)
virtualslot

Slot called when the selected entity changes.

Parameters
idxThe index of the newly selected entity

Updates the radio display to show the radios for the newly selected entity.

◆ masterVolumeChanged

virtual void makVrv::DtRadioStackWidget::masterVolumeChanged ( int value)
virtualslot

Slot called when the master volume changes.

Parameters
valueThe new volume value

Updates the volume for all radio channels.

◆ masterVoxChanged

virtual void makVrv::DtRadioStackWidget::masterVoxChanged ( int value)
virtualslot

Slot called when the master VOX setting changes.

Parameters
valueThe new VOX threshold value

Updates the voice activation detection threshold for all radio channels.

◆ masterPttPressed

virtual void makVrv::DtRadioStackWidget::masterPttPressed ( )
virtualslot

Slot called when the master push-to-talk button is pressed.

Activates transmission on all active radio channels.

◆ masterPttReleased

virtual void makVrv::DtRadioStackWidget::masterPttReleased ( )
virtualslot

Slot called when the master push-to-talk button is released.

Deactivates transmission on all active radio channels.

◆ updateRadios

virtual void makVrv::DtRadioStackWidget::updateRadios ( )
virtualslot

Updates the radio display.

Refreshes the display of all radio controls to reflect current state.

◆ updateLevels

virtual void makVrv::DtRadioStackWidget::updateLevels ( )
virtualslot

Updates signal level indicators.

Updates the signal level indicators for all active radio channels.

◆ createRadios()

virtual void makVrv::DtRadioStackWidget::createRadios ( )
protectedvirtual

Creates radio widgets for the current entity.

Creates and initializes the radio widgets for the currently selected entity.

◆ eventFilter()

virtual bool makVrv::DtRadioStackWidget::eventFilter ( QObject * watched,
QEvent * event )
protectedvirtual

Filters events for radio widgets.

Parameters
watchedThe object being watched
eventThe event that occurred
Returns
True if the event was handled, false otherwise

Handles events for radio widgets, particularly keyboard shortcuts for PTT.

◆ setupUi()

void makVrv::DtRadioStackWidget::setupUi ( QWidget * p)
protected

Sets up the contents of the widget onto the supplied parent.

Parameters
pThe 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.

Member Data Documentation

◆ myUI

Ui::DtRadioStackWidgetUI makVrv::DtRadioStackWidget::myUI
protected

The UI components for this widget.

Contains the actual UI components defined in the UI file.

◆ myModel

QStandardItemModel* makVrv::DtRadioStackWidget::myModel
protected

Data model for the entity list.

Stores entity data for display in the entity selection list.

◆ myProxy

QSortFilterProxyModel* makVrv::DtRadioStackWidget::myProxy
protected

Proxy model for filtering the entity list.

Provides filtering and sorting capabilities for the entity list.

◆ myManager

DtVrvRadioManager* makVrv::DtRadioStackWidget::myManager
protected

The radio manager handling radio functionality.

Manages the underlying radio simulation functionality.

◆ myLevelsTimer

QTimer* makVrv::DtRadioStackWidget::myLevelsTimer
protected

Timer for updating signal levels.

Periodically triggers updates to the signal level indicators.


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