|
VR-Engage
2.2
|
This class provides the main user interface for managing VREngage applications, including monitoring application status, assigning roles and entities to applications, and controlling spectator mode settings. It integrates with the VREngage status listener to maintain real-time status information.
#include <vreManagerWidget.h>
Public Slots | |
| virtual void | onTableItemClicked (const QModelIndex &index) |
| virtual void | onSubmit () |
| virtual void | onRevert () |
| virtual void | onUserEditComplete () |
| virtual void | handleVreAppAdded (unsigned long id) |
| virtual void | handleVreAppRemoved (unsigned long id) |
| virtual void | handleVreAppChanged (unsigned long id) |
Public Member Functions | |
| virtual | ~DtVreManagerWidget () override |
| virtual QIcon | icon () override |
| virtual QString | title () override |
| virtual const std::string & | pageClassName () const override |
| virtual void | activate () override |
| virtual void | deactivate () override |
| virtual makVrv::DtQIconConfigurations | qIconConfigurations () const override |
Static Public Member Functions | |
| static void | vreAppAddedCallback (unsigned long id, void *usr) |
| static void | vreAppRemovedCallback (unsigned long id, void *usr) |
| static void | vreAppChangedCallback (unsigned long id, void *usr) |
Protected Member Functions | |
| virtual void | onEntitySelected () |
| virtual void | onEntitySelectionDialogDone () |
| virtual void | onModelSetChanged () |
| virtual void | handleActivate () |
| virtual void | handleDeactivate () |
| DtVreManagerWidget (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setupUi (QWidget *p) |
Protected Attributes | |
| std::string | myClassName |
| Ui::DtVreManagerWidget | myUI |
| DtVreTableModel * | myModel |
| DtVreEntitySelectionDialog * | mySelectEntityDialog |
| DtVreStatusListener * | myVreListener |
| makVrv::DtSignalConnectionManager | myConnectionManager |
| bool | myInEditingState |
| DtFilename | myLoadedSMSFileName |
Friends | |
| class | DtVreManagerWidgetCreator |
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the manager widget, including the table model, entity selection dialog, and VREngage listener.
|
protected |
Constructor.
| de | The distributed environment reference |
| parent | The parent widget |
| f | Window flags to apply to the widget |
Initializes a new VREngage manager widget. This constructor is private and can only be called by the DtVreManagerWidgetCreator.
References de().
|
overridevirtual |
Gets the icon for this page.
Returns the icon representing the VREngage Manager in the application UI.
|
overridevirtual |
Gets the title for this page.
Returns the human-readable title for the VREngage Manager page.
|
overridevirtual |
Gets the class name of the page.
Returns the unique identifier for this page class type. This name is used for page identification and persistence purposes.
|
overridevirtual |
Called when the page is displayed.
Activates the manager widget, setting up the necessary connections, initializing the table model, and refreshing the display. This is called whenever the page becomes visible to the user.
|
overridevirtual |
Called when the page is hidden.
Deactivates the manager widget, cleaning up resources and disconnecting signals. This is called whenever the page becomes invisible to the user.
|
overridevirtual |
Gets the icon configurations for the page.
Returns the configuration settings used to style the page's icon based on application settings and theme.
|
static |
Static callback for VREngage application discovery.
| id | The unique identifier of the discovered application |
| usr | User-defined data (pointer to the manager widget instance) |
Static callback function invoked when a new VREngage application is discovered. Routes the callback to the appropriate instance method.
|
static |
Static callback for VREngage application removal.
| id | The unique identifier of the removed application |
| usr | User-defined data (pointer to the manager widget instance) |
Static callback function invoked when a VREngage application is removed. Routes the callback to the appropriate instance method.
|
static |
Static callback for VREngage application status changes.
| id | The unique identifier of the changed application |
| usr | User-defined data (pointer to the manager widget instance) |
Static callback function invoked when a VREngage application's status changes. Routes the callback to the appropriate instance method.
|
virtualslot |
Handles table item click events.
| index | The model index of the clicked item |
Called when the user clicks on an item in the VREngage manager table. Updates the selection state and UI accordingly.
|
virtualslot |
Handles submission of changes.
Called when the user submits changes to VREngage application settings. Applies the changes to the affected applications.
|
virtualslot |
Handles reverting of changes.
Called when the user cancels changes to VREngage application settings. Reverts any pending changes and refreshes the display.
|
virtualslot |
Handles completion of user edits.
Called when the user completes an edit operation in the manager. Updates internal state and enables/disables UI elements accordingly.
|
virtualslot |
Handles VREngage application addition.
| id | The unique identifier of the added application |
Called when a new VREngage application is discovered. Updates the table model and refreshes the display to show the new application.
|
virtualslot |
Handles VREngage application removal.
| id | The unique identifier of the removed application |
Called when a VREngage application is removed or times out. Updates the table model and refreshes the display to remove the application.
|
virtualslot |
Handles VREngage application status changes.
| id | The unique identifier of the changed application |
Called when a VREngage application's status changes. Updates the table model and refreshes the display to show the updated status.
|
protectedvirtual |
Handles entity selection.
Called when the user selects an entity for assignment to a VREngage application. Shows the entity selection dialog.
|
protectedvirtual |
Handles completion of entity selection dialog.
Called when the entity selection dialog is closed. Processes the selected entity and updates the application settings accordingly.
|
protectedvirtual |
Handles model set changes.
Populates the model sets that could possibly contain VREngage-controllable entities. This includes any SMS (Simulation Model Set) that derives from VR-Engage.sms somewhere in its ancestry. Called when the available model sets change.
|
protectedvirtual |
Internal activation handler.
Implementation of the activation logic. Called by activate().
|
protectedvirtual |
Internal deactivation handler.
Implementation of the deactivation logic. Called by deactivate().
|
protected |
Sets up the UI components.
| p | The parent widget to set up UI on |
Initializes and configures the user interface components of the manager widget. Creates the table, buttons, and other controls, and connects signals and slots.
|
friend |
Allows the creator class to create page instances.
References DtVreManagerWidgetCreator.
Referenced by DtVreManagerWidgetCreator.
|
protected |
Class name for this page type.
Unique string identifier for this page class.
|
protected |
UI components generated from designer file.
|
protected |
Table model for VREngage applications.
Maintains the data model for the applications table.
|
protected |
Entity selection dialog.
Dialog for selecting entities to assign to VREngage applications.
|
protected |
VREngage status listener.
Tracks status information for VREngage applications.
|
protected |
Signal connection manager.
Manages Qt signal/slot connections for cleanup.
|
protected |
Flag indicating if the widget is in editing state.
True when the user is editing application settings, false otherwise.
|
protected |
Currently loaded SMS filename.
The filename of the currently loaded Simulation Model Set.