|
VR-Engage
2.2
|
This class provides a control page for radio communications in the VREngage user interface. It manages radio widgets, processes radio events, and allows users to interact with the radio simulation subsystem through a graphical interface.
#include <radioPage.h>
Public Member Functions | |
| virtual | ~DtRadioPage () |
| virtual QIcon | icon () |
| virtual QString | title () |
| virtual const std::string & | pageClassName () const |
| virtual void | activate () |
| virtual void | deactivate () |
| virtual DtEntityIdentifier | findEntityIdFromMarkingText (const std::string &markingText) |
Protected Member Functions | |
| virtual void | handleActivate () |
| virtual void | handleDeactivate () |
| DtRadioPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual void | findExistingEntites () |
| virtual void | slot_elementsReadyToProcess (const DtElementData::ElementIdList &elements) |
| virtual void | slot_elementsRemoved (const DtElementData::ElementIdList &elements) |
| void | setupUi (QWidget *p) |
Protected Attributes | |
| std::string | myClassName |
| DtRadioStackWidget * | myRadioStack |
| DtVrvRadioManager * | myManager |
| DtRadioEventProcessor * | myEventHandler |
Friends | |
| class | DtRadioPageCreator |
|
virtual |
Virtual destructor.
Cleans up resources used by the radio page, including event connections and radio widgets.
|
protected |
Constructor.
| de | The document environment providing access to application resources |
| parent | The parent widget (optional) |
| f | Window flags (optional) |
Creates a new radio page with the specified document environment and parent. This constructor is protected to enforce creation through the factory pattern.
References de().
|
virtual |
Gets the icon for this page.
Returns the icon that represents this page in menus and tabs.
|
virtual |
Gets the title for this page.
Returns the title that identifies this page in menus and tabs.
|
virtual |
Gets the class name of the page.
Returns the unique class name that identifies this page type in the system.
|
virtual |
Activates the page when it is displayed.
Called when the page is displayed to the user. Initializes radio connections and starts processing radio events.
|
virtual |
Deactivates the page when it is hidden.
Called when the page is hidden from the user. Disconnects from radio events to prevent unnecessary processing while not visible.
|
virtual |
Finds an entity identifier from its marking text.
| markingText | The marking text to search for |
Searches for an entity with the specified marking text and returns its identifier. This is used to associate radio communications with specific entities.
|
protectedvirtual |
Handles activation-specific tasks.
Called by the activate() method to perform implementation-specific activation tasks.
|
protectedvirtual |
Handles deactivation-specific tasks.
Called by the deactivate() method to perform implementation-specific deactivation tasks.
|
protectedvirtual |
Finds and processes existing entities when the page is activated.
Searches for and processes all existing entities in the simulation when the page is activated, to ensure all relevant entities are included in the radio communications system.
|
protectedvirtual |
Slot called when elements are ready to be processed.
| elements | List of element identifiers that are ready for processing |
Processes elements that have been added or modified in the simulation. Updates the radio system with information about these elements.
|
protectedvirtual |
Slot called when elements are removed from the simulation.
| elements | List of element identifiers that have been removed |
Handles cleanup and updates the radio system when elements are removed from the simulation.
|
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 page and adds them to the specified parent widget.
|
friend |
Allows the page creator to create instances of this class.
This friendship declaration grants the creator class access to the protected constructor of this class.
References DtRadioPageCreator.
Referenced by DtRadioPageCreator.
|
protected |
The class name of this page.
Stores the class name string that uniquely identifies this page type.
|
protected |
The radio stack widget containing the radio controls.
Contains the actual radio UI components displayed on this page.
|
protected |
The radio manager handling radio functionality.
Manages the underlying radio simulation functionality.
|
protected |
The event processor for radio events.
Processes radio events from the simulation and updates the UI accordingly.