|
VR-Engage
2.2
|
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>
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 |
| DtRadioStackWidget * | myStack |
| Ui::DtRadioWidgetUI | myUi |
| makVrv::DtRadioWidget::DtRadioWidget | ( | makRadio::DtRadio * | radio, |
| DtRadioStackWidget * | parent ) |
Constructor.
| radio | Pointer to the radio object this widget controls |
| parent | Pointer 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().
|
virtual |
Virtual destructor.
Cleans up resources used by the radio widget.
|
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.
|
virtual |
Gets the radio object controlled by this widget.
Returns a pointer to the radio object this widget controls.
Referenced by DtRadioWidget().
|
virtualslot |
Slot called when the power state changes.
| state | The new power state (true = on, false = off) |
Updates the radio's power state when the power button is toggled.
|
virtualslot |
Slot called when the channel selection changes.
| channel | The new channel index |
Changes the radio's active channel when a new channel is selected.
|
virtualslot |
Slot called when the talk button is pressed.
Activates transmission on this radio channel when the talk button is pressed.
|
virtualslot |
Slot called when the talk button is released.
Deactivates transmission on this radio channel when the talk button is released.
|
virtualslot |
Slot called when the volume setting changes.
| value | The new volume value |
Updates the volume level for this radio channel.
|
virtualslot |
Slot called when the microphone mute state changes.
| state | The new mute state (true = muted, false = unmuted) |
Mutes or unmutes the microphone input for this radio channel.
|
virtualslot |
Slot called when the speaker mute state changes.
| state | The new mute state (true = muted, false = unmuted) |
Mutes or unmutes the speaker output for this radio channel.
|
virtualslot |
Slot called when the jammer state changes.
| state | The new jammer state (true = active, false = inactive) |
Activates or deactivates jamming capabilities for this radio channel.
|
virtualslot |
Updates the signal level indicators.
Updates the visual indicators for signal strength and activity levels.
|
protectedvirtual |
Updates the frequency display text.
Updates the text display showing the current radio frequency based on the active channel.
|
protected |
Pointer to the radio object this widget controls.
References the underlying radio simulation object that this widget controls.
|
protected |
Pointer to the jammer radio object.
References the radio object used for jamming functionality, if available.
|
protected |
Pointer to the parent radio stack widget.
References the parent radio stack widget that contains this radio widget.
|
protected |
The UI components for this widget.
Contains the actual UI components defined in the UI file.