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

Detailed Description

DtVreControlsMappingMenuItem provides a menu item for accessing documentation about control mappings in VR-Engage. When triggered, it opens a web link to the controls mapping documentation, which shows how input devices (keyboard, mouse, controllers) are mapped to actions in the application.

#include <helpMenuItems.h>

Inheritance diagram for DtVreControlsMappingMenuItem:
[legend]

Public Member Functions

 DtVreControlsMappingMenuItem (makVrv::DtDe &de)
 
virtual ~DtVreControlsMappingMenuItem () override
 
virtual QAction * createAction (makVrv::DtDe &, QWidget *parent) override
 

Protected Member Functions

virtual void on_triggered () override
 

Protected Attributes

QAction * myAction
 
makVrv::DtDe & myDe
 

Constructor & Destructor Documentation

◆ DtVreControlsMappingMenuItem()

DtVreControlsMappingMenuItem::DtVreControlsMappingMenuItem ( makVrv::DtDe & de)

Constructor.

Parameters
deReference to the display engine

Creates a new controls mapping menu item associated with the specified display engine.

References de().

◆ ~DtVreControlsMappingMenuItem()

virtual DtVreControlsMappingMenuItem::~DtVreControlsMappingMenuItem ( )
overridevirtual

Virtual destructor.

Ensures proper cleanup of resources.

Member Function Documentation

◆ createAction()

virtual QAction * DtVreControlsMappingMenuItem::createAction ( makVrv::DtDe & ,
QWidget * parent )
overridevirtual

Creates an action for this menu item.

Parameters
deReference to the display engine
parentParent widget that will own the action
Returns
Pointer to the created action

Builds and returns a QAction that represents this menu item in the UI. The action includes the appropriate icon, text, and connection to the menu item's functionality.

◆ on_triggered()

virtual void DtVreControlsMappingMenuItem::on_triggered ( )
overrideprotectedvirtual

Handles menu item activation.

Called when the user selects the controls mapping menu item. Opens the controls mapping documentation in the default web browser.

Member Data Documentation

◆ myAction

QAction* DtVreControlsMappingMenuItem::myAction
protected

Action representing this menu item.

◆ myDe

makVrv::DtDe& DtVreControlsMappingMenuItem::myDe
protected

Reference to the display engine.


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