VR-Engage  2.2
Loading...
Searching...
No Matches
DtVreTableView Class Reference

Detailed Description

This class extends QTableView with VREngage-specific functionality, including custom delegates for role selection and spectator mode toggling, and handling of edit completion signals.

#include <vreTableView.h>

Inheritance diagram for DtVreTableView:
[legend]

Signals

void userEditComplete ()
 

Public Member Functions

 DtVreTableView (QWidget *parent=Q_NULLPTR)
 
virtual ~DtVreTableView () override
 
virtual void setDe (makVrv::DtDe &de)
 

Protected Slots

virtual void commitData (QWidget *editor) override
 

Protected Attributes

makVre::DtRoleItemDelegatemyRoleDelegate
 
DtSpectatorItemDelegatemySpectatorDelegate
 
makVrv::DtDe * myDe
 

Constructor & Destructor Documentation

◆ DtVreTableView()

DtVreTableView::DtVreTableView ( QWidget * parent = Q_NULLPTR)

Constructor.

Parameters
parentThe parent widget

Initializes a new table view for VREngage application data with custom delegates for role selection and spectator mode.

◆ ~DtVreTableView()

virtual DtVreTableView::~DtVreTableView ( )
overridevirtual

Destructor.

Cleans up resources used by the table view, including custom delegates.

Member Function Documentation

◆ setDe()

virtual void DtVreTableView::setDe ( makVrv::DtDe & de)
virtual

Sets the distributed environment reference.

Parameters
deThe distributed environment reference

Sets the distributed environment reference used by the table view and its delegates for accessing simulation state information.

References de().

◆ userEditComplete

void DtVreTableView::userEditComplete ( )
signal

Signal emitted when a user completes an edit operation.

This signal is emitted when the user completes an edit in the table, allowing the manager widget to update its state accordingly.

◆ commitData

virtual void DtVreTableView::commitData ( QWidget * editor)
overrideprotectedvirtualslot

Handles committing of editor data to the model.

Parameters
editorThe editor widget containing the data to commit

Overrides QTableView's commitData to emit the userEditComplete signal when data is committed from an editor.

Member Data Documentation

◆ myRoleDelegate

makVre::DtRoleItemDelegate* DtVreTableView::myRoleDelegate
protected

Delegate for role selection columns.

Custom delegate that provides a combobox editor for role selection.

◆ mySpectatorDelegate

DtSpectatorItemDelegate* DtVreTableView::mySpectatorDelegate
protected

Delegate for spectator mode columns.

Custom delegate that provides a checkbox editor for spectator mode toggling.

◆ myDe

makVrv::DtDe* DtVreTableView::myDe
protected

Pointer to the distributed environment.

Used to access simulation state information.


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