SHAPER  9.15.0
XGUI_ShortCutListener Class Reference

Processes "Delete" key event of application. More...

Inheritance diagram for XGUI_ShortCutListener:
Inheritance graph

Public Member Functions

 XGUI_ShortCutListener (XGUI_OperationMgr *theOperationMgr)
 Constructor. More...
 
void setActive (const bool theIsActive)
 Switch on short cut listener. More...
 
virtual bool eventFilter (QObject *theObject, QEvent *theEvent)
 Redefinition of virtual function to process Delete key release. More...
 

Detailed Description

Processes "Delete" key event of application.

This key is used by several application actions. There is a logical order of the actions processing. So the key can not be set for actions as a shortcut. The class listens the key event and call operation manager processor.

Constructor & Destructor Documentation

◆ XGUI_ShortCutListener()

XGUI_ShortCutListener::XGUI_ShortCutListener ( XGUI_OperationMgr theOperationMgr)
inline

Constructor.

Parameters
theParentthe parent to be deleted when the parent is deleted
theOperationMgrthe class to perform deletion

Member Function Documentation

◆ setActive()

void XGUI_ShortCutListener::setActive ( const bool  theIsActive)
inline

Switch on short cut listener.

◆ eventFilter()

bool XGUI_ShortCutListener::eventFilter ( QObject theObject,
QEvent theEvent 
)
virtual

Redefinition of virtual function to process Delete key release.