|
Developer Documentation
|
Keyboard Event Interface. More...
#include <OpenFlipper/BasePlugin/KeyInterface.hh>
Public Slots | |
| virtual void | slotKeyEvent (QKeyEvent *_event) |
| Key Event from Main App. | |
Signals | |
| virtual void | registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false) |
| Register a key-combination for your plugin. | |
Public Member Functions | |
| virtual void | slotKeyReleaseEvent (QKeyEvent *_event) |
| Key Release Event from Main App. | |
| virtual | ~KeyInterface () |
| Destructor. | |
Keyboard Event Interface.
Detailed description
Using this interface you can react on key events.
Definition at line 59 of file KeyInterface.hh.
|
inlinevirtual |
Destructor.
Definition at line 92 of file KeyInterface.hh.
|
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
| _key | the key that should be registered |
| _modifiers | the keyboard modifiers |
| _description | a short description about the functionality (Will be used in the Options Widget) |
| _multiUse | can the key additionally be registered by another plugin (You could make a key exclusive by this) |
Definition at line 71 of file KeyInterface.hh.
|
inlinevirtualslot |
Key Event from Main App.
This slot is called if a key event occurred in the Viewer
| _event | Key event |
Definition at line 80 of file KeyInterface.hh.
|
inlinevirtual |
Key Release Event from Main App.
This slot is called if a key release event occurred in the Viewer
| _event | Key event |
Definition at line 87 of file KeyInterface.hh.