VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreManagerWidget Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtVreManagerWidget:
[legend]

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
 
DtVreTableModelmyModel
 
DtVreEntitySelectionDialogmySelectEntityDialog
 
DtVreStatusListenermyVreListener
 
makVrv::DtSignalConnectionManager myConnectionManager
 
bool myInEditingState
 
DtFilename myLoadedSMSFileName
 

Friends

class DtVreManagerWidgetCreator
 

Constructor & Destructor Documentation

◆ ~DtVreManagerWidget()

virtual makVre::DtVreManagerWidget::~DtVreManagerWidget ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the manager widget, including the table model, entity selection dialog, and VREngage listener.

◆ DtVreManagerWidget()

makVre::DtVreManagerWidget::DtVreManagerWidget ( makVrv::DtDe & de,
QWidget * parent = 0,
Qt::WindowFlags f = 0 )
protected

Constructor.

Parameters
deThe distributed environment reference
parentThe parent widget
fWindow 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().

Member Function Documentation

◆ icon()

virtual QIcon makVre::DtVreManagerWidget::icon ( )
overridevirtual

Gets the icon for this page.

Returns
Icon to display for this page in the application

Returns the icon representing the VREngage Manager in the application UI.

◆ title()

virtual QString makVre::DtVreManagerWidget::title ( )
overridevirtual

Gets the title for this page.

Returns
Title to display for this page in the application

Returns the human-readable title for the VREngage Manager page.

◆ pageClassName()

virtual const std::string & makVre::DtVreManagerWidget::pageClassName ( ) const
overridevirtual

Gets the class name of the page.

Returns
Reference to the unique class name string

Returns the unique identifier for this page class type. This name is used for page identification and persistence purposes.

◆ activate()

virtual void makVre::DtVreManagerWidget::activate ( )
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.

◆ deactivate()

virtual void makVre::DtVreManagerWidget::deactivate ( )
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.

◆ qIconConfigurations()

virtual makVrv::DtQIconConfigurations makVre::DtVreManagerWidget::qIconConfigurations ( ) const
overridevirtual

Gets the icon configurations for the page.

Returns
The icon configuration settings

Returns the configuration settings used to style the page's icon based on application settings and theme.

◆ vreAppAddedCallback()

static void makVre::DtVreManagerWidget::vreAppAddedCallback ( unsigned long id,
void * usr )
static

Static callback for VREngage application discovery.

Parameters
idThe unique identifier of the discovered application
usrUser-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.

◆ vreAppRemovedCallback()

static void makVre::DtVreManagerWidget::vreAppRemovedCallback ( unsigned long id,
void * usr )
static

Static callback for VREngage application removal.

Parameters
idThe unique identifier of the removed application
usrUser-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.

◆ vreAppChangedCallback()

static void makVre::DtVreManagerWidget::vreAppChangedCallback ( unsigned long id,
void * usr )
static

Static callback for VREngage application status changes.

Parameters
idThe unique identifier of the changed application
usrUser-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.

◆ onTableItemClicked

virtual void makVre::DtVreManagerWidget::onTableItemClicked ( const QModelIndex & index)
virtualslot

Handles table item click events.

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

◆ onSubmit

virtual void makVre::DtVreManagerWidget::onSubmit ( )
virtualslot

Handles submission of changes.

Called when the user submits changes to VREngage application settings. Applies the changes to the affected applications.

◆ onRevert

virtual void makVre::DtVreManagerWidget::onRevert ( )
virtualslot

Handles reverting of changes.

Called when the user cancels changes to VREngage application settings. Reverts any pending changes and refreshes the display.

◆ onUserEditComplete

virtual void makVre::DtVreManagerWidget::onUserEditComplete ( )
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.

◆ handleVreAppAdded

virtual void makVre::DtVreManagerWidget::handleVreAppAdded ( unsigned long id)
virtualslot

Handles VREngage application addition.

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

◆ handleVreAppRemoved

virtual void makVre::DtVreManagerWidget::handleVreAppRemoved ( unsigned long id)
virtualslot

Handles VREngage application removal.

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

◆ handleVreAppChanged

virtual void makVre::DtVreManagerWidget::handleVreAppChanged ( unsigned long id)
virtualslot

Handles VREngage application status changes.

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

◆ onEntitySelected()

virtual void makVre::DtVreManagerWidget::onEntitySelected ( )
protectedvirtual

Handles entity selection.

Called when the user selects an entity for assignment to a VREngage application. Shows the entity selection dialog.

◆ onEntitySelectionDialogDone()

virtual void makVre::DtVreManagerWidget::onEntitySelectionDialogDone ( )
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.

◆ onModelSetChanged()

virtual void makVre::DtVreManagerWidget::onModelSetChanged ( )
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.

◆ handleActivate()

virtual void makVre::DtVreManagerWidget::handleActivate ( )
protectedvirtual

Internal activation handler.

Implementation of the activation logic. Called by activate().

◆ handleDeactivate()

virtual void makVre::DtVreManagerWidget::handleDeactivate ( )
protectedvirtual

Internal deactivation handler.

Implementation of the deactivation logic. Called by deactivate().

◆ setupUi()

void makVre::DtVreManagerWidget::setupUi ( QWidget * p)
protected

Sets up the UI components.

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

Friends And Related Symbol Documentation

◆ DtVreManagerWidgetCreator

friend class DtVreManagerWidgetCreator
friend

Allows the creator class to create page instances.

References DtVreManagerWidgetCreator.

Referenced by DtVreManagerWidgetCreator.

Member Data Documentation

◆ myClassName

std::string makVre::DtVreManagerWidget::myClassName
protected

Class name for this page type.

Unique string identifier for this page class.

◆ myUI

Ui::DtVreManagerWidget makVre::DtVreManagerWidget::myUI
protected

UI components generated from designer file.

◆ myModel

DtVreTableModel* makVre::DtVreManagerWidget::myModel
protected

Table model for VREngage applications.

Maintains the data model for the applications table.

◆ mySelectEntityDialog

DtVreEntitySelectionDialog* makVre::DtVreManagerWidget::mySelectEntityDialog
protected

Entity selection dialog.

Dialog for selecting entities to assign to VREngage applications.

◆ myVreListener

DtVreStatusListener* makVre::DtVreManagerWidget::myVreListener
protected

VREngage status listener.

Tracks status information for VREngage applications.

◆ myConnectionManager

makVrv::DtSignalConnectionManager makVre::DtVreManagerWidget::myConnectionManager
protected

Signal connection manager.

Manages Qt signal/slot connections for cleanup.

◆ myInEditingState

bool makVre::DtVreManagerWidget::myInEditingState
protected

Flag indicating if the widget is in editing state.

True when the user is editing application settings, false otherwise.

◆ myLoadedSMSFileName

DtFilename makVre::DtVreManagerWidget::myLoadedSMSFileName
protected

Currently loaded SMS filename.

The filename of the currently loaded Simulation Model Set.


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