|
VR-Engage
2.2
|
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>
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::DtRoleItemDelegate * | myRoleDelegate |
| DtSpectatorItemDelegate * | mySpectatorDelegate |
| makVrv::DtDe * | myDe |
| DtVreTableView::DtVreTableView | ( | QWidget * | parent = Q_NULLPTR | ) |
Constructor.
| parent | The parent widget |
Initializes a new table view for VREngage application data with custom delegates for role selection and spectator mode.
|
overridevirtual |
Destructor.
Cleans up resources used by the table view, including custom delegates.
|
virtual |
Sets the distributed environment reference.
| de | The distributed environment reference |
Sets the distributed environment reference used by the table view and its delegates for accessing simulation state information.
References de().
|
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.
|
overrideprotectedvirtualslot |
Handles committing of editor data to the model.
| editor | The editor widget containing the data to commit |
Overrides QTableView's commitData to emit the userEditComplete signal when data is committed from an editor.
|
protected |
Delegate for role selection columns.
Custom delegate that provides a combobox editor for role selection.
|
protected |
Delegate for spectator mode columns.
Custom delegate that provides a checkbox editor for spectator mode toggling.
|
protected |
Pointer to the distributed environment.
Used to access simulation state information.