Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
KeyInterface Class Reference

Keyboard Event Interface. More...

#include <OpenFlipper/BasePlugin/KeyInterface.hh>

Inheritance diagram for KeyInterface:
BackupPlugin BSplineCurveSelectionPlugin BSplineSurfaceSelectionPlugin DataControlPlugin MaterialPicker MeshObjectSelectionPlugin MouseAndKeyPlugin MovePlugin ObjectSelectionPlugin PolyLinePlugin PolyLineSelectionPlugin PrintPlugin PropertyVisPlugin SelectionBasePlugin SkeletonEditingPlugin SplatCloudObjectSelectionPlugin TopologyPlugin TypeHexahedralMeshPlugin TypePolyhedralMeshPlugin VolumeMeshSelectionPlugin

Public Slots

virtual void slotKeyEvent (QKeyEvent *_event)
 Key Event from Main App. More...
 

Signals

virtual void registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false)
 Register a key-combination for your plugin. More...
 

Public Member Functions

virtual void slotKeyReleaseEvent (QKeyEvent *_event)
 Key Release Event from Main App. More...
 
virtual ~KeyInterface ()
 Destructor.
 

Detailed Description

Keyboard Event Interface.

Detailed description
Using this interface you can react on key events.

Definition at line 76 of file KeyInterface.hh.

Member Function Documentation

virtual void KeyInterface::registerKey ( int  _key,
Qt::KeyboardModifiers  _modifiers,
QString  _description,
bool  _multiUse = false 
)
inlinevirtualsignal

Register a key-combination for your plugin.

To obtain key events from the viewer for a certain key-combination, you have to register that combination first

Parameters
_keythe key that should be registered
_modifiersthe keyboard modifiers
_descriptiona short description about the functionality (Will be used in the Options Widget)
_multiUsecan the key additionally be registered by another plugin (You could make a key exclusive by this)

Definition at line 88 of file KeyInterface.hh.

virtual void KeyInterface::slotKeyEvent ( QKeyEvent *  _event)
inlinevirtualslot

Key Event from Main App.

This slot is called if a key event occurred in the Viewer

Parameters
_eventKey event

Definition at line 97 of file KeyInterface.hh.

virtual void KeyInterface::slotKeyReleaseEvent ( QKeyEvent *  _event)
inlinevirtual

Key Release Event from Main App.

This slot is called if a key release event occurred in the Viewer

Parameters
_eventKey event

Definition at line 104 of file KeyInterface.hh.


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