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

Detailed Description

This widget provides a user interface for controlling a single radio channel in the VREngage environment. It includes controls for power, channel selection, volume adjustment, push-to-talk functionality, and jamming capabilities.

#include <radioWidget.h>

Inheritance diagram for makVrv::DtRadioWidget:
[legend]

Public Slots

virtual void powerChanged (bool state)
 
virtual void channelChanged (int channel)
 
virtual void talkButtonPressed ()
 
virtual void talkButtonReleased ()
 
virtual void volumeChanged (int value)
 
virtual void micMuteChanged (bool state)
 
virtual void speakerMuteChanged (bool state)
 
virtual void jammerChanged (bool state)
 
virtual void updateLevels ()
 

Public Member Functions

 DtRadioWidget (makRadio::DtRadio *radio, DtRadioStackWidget *parent)
 
virtual ~DtRadioWidget ()
 
virtual void updateGuiFromRadio ()
 
virtual makRadio::DtRadio * radio ()
 

Protected Member Functions

virtual void updateFrequencyText ()
 

Protected Attributes

makRadio::DtRadio * myRadio
 
makRadio::DtRadio * myJammer
 
DtRadioStackWidgetmyStack
 
Ui::DtRadioWidgetUI myUi
 

Constructor & Destructor Documentation

◆ DtRadioWidget()

makVrv::DtRadioWidget::DtRadioWidget ( makRadio::DtRadio * radio,
DtRadioStackWidget * parent )

Constructor.

Parameters
radioPointer to the radio object this widget controls
parentPointer to the parent radio stack widget

Creates a new radio widget to control the specified radio object within the specified parent stack widget.

References radio().

◆ ~DtRadioWidget()

virtual makVrv::DtRadioWidget::~DtRadioWidget ( )
virtual

Virtual destructor.

Cleans up resources used by the radio widget.

Member Function Documentation

◆ updateGuiFromRadio()

virtual void makVrv::DtRadioWidget::updateGuiFromRadio ( )
virtual

Updates the GUI to reflect the current radio state.

Synchronizes all controls in this widget to match the current state of the underlying radio object. This includes power state, channel, volume, and mute settings.

◆ radio()

virtual makRadio::DtRadio * makVrv::DtRadioWidget::radio ( )
virtual

Gets the radio object controlled by this widget.

Returns
Pointer to the radio object

Returns a pointer to the radio object this widget controls.

Referenced by DtRadioWidget().

◆ powerChanged

virtual void makVrv::DtRadioWidget::powerChanged ( bool state)
virtualslot

Slot called when the power state changes.

Parameters
stateThe new power state (true = on, false = off)

Updates the radio's power state when the power button is toggled.

◆ channelChanged

virtual void makVrv::DtRadioWidget::channelChanged ( int channel)
virtualslot

Slot called when the channel selection changes.

Parameters
channelThe new channel index

Changes the radio's active channel when a new channel is selected.

◆ talkButtonPressed

virtual void makVrv::DtRadioWidget::talkButtonPressed ( )
virtualslot

Slot called when the talk button is pressed.

Activates transmission on this radio channel when the talk button is pressed.

◆ talkButtonReleased

virtual void makVrv::DtRadioWidget::talkButtonReleased ( )
virtualslot

Slot called when the talk button is released.

Deactivates transmission on this radio channel when the talk button is released.

◆ volumeChanged

virtual void makVrv::DtRadioWidget::volumeChanged ( int value)
virtualslot

Slot called when the volume setting changes.

Parameters
valueThe new volume value

Updates the volume level for this radio channel.

◆ micMuteChanged

virtual void makVrv::DtRadioWidget::micMuteChanged ( bool state)
virtualslot

Slot called when the microphone mute state changes.

Parameters
stateThe new mute state (true = muted, false = unmuted)

Mutes or unmutes the microphone input for this radio channel.

◆ speakerMuteChanged

virtual void makVrv::DtRadioWidget::speakerMuteChanged ( bool state)
virtualslot

Slot called when the speaker mute state changes.

Parameters
stateThe new mute state (true = muted, false = unmuted)

Mutes or unmutes the speaker output for this radio channel.

◆ jammerChanged

virtual void makVrv::DtRadioWidget::jammerChanged ( bool state)
virtualslot

Slot called when the jammer state changes.

Parameters
stateThe new jammer state (true = active, false = inactive)

Activates or deactivates jamming capabilities for this radio channel.

◆ updateLevels

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

Updates the signal level indicators.

Updates the visual indicators for signal strength and activity levels.

◆ updateFrequencyText()

virtual void makVrv::DtRadioWidget::updateFrequencyText ( )
protectedvirtual

Updates the frequency display text.

Updates the text display showing the current radio frequency based on the active channel.

Member Data Documentation

◆ myRadio

makRadio::DtRadio* makVrv::DtRadioWidget::myRadio
protected

Pointer to the radio object this widget controls.

References the underlying radio simulation object that this widget controls.

◆ myJammer

makRadio::DtRadio* makVrv::DtRadioWidget::myJammer
protected

Pointer to the jammer radio object.

References the radio object used for jamming functionality, if available.

◆ myStack

DtRadioStackWidget* makVrv::DtRadioWidget::myStack
protected

Pointer to the parent radio stack widget.

References the parent radio stack widget that contains this radio widget.

◆ myUi

Ui::DtRadioWidgetUI makVrv::DtRadioWidget::myUi
protected

The UI components for this widget.

Contains the actual UI components defined in the UI file.


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