OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Protected Attributes | List of all members
KeyboardEventHandler Class Reference

Handles KeyboardEvent. More...

Inheritance diagram for KeyboardEventHandler:
[legend]

Public Member Functions

 KeyboardEventHandler ()
 
void triggerKeyPressed (const KeyboardEvent &)
 
void triggerKeyReleased (const KeyboardEvent &)
 
bool hasEvent () const
 
const KeyboardEventevent () const
 
bool isHandled () const
 
void setHandled (bool yn)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Public Attributes

Notifier< KeyboardEventHandlerkeyPressed
 
Notifier< KeyboardEventHandlerkeyReleased
 

Protected Attributes

const KeyboardEventevent_
 
bool ishandled_
 

Additional Inherited Members

- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Detailed Description

Handles KeyboardEvent.

Constructor & Destructor Documentation

KeyboardEventHandler::KeyboardEventHandler ( )

Member Function Documentation

const KeyboardEvent& KeyboardEventHandler::event ( ) const
inline
Note
only ok to call in function triggered by an event from this class.
bool KeyboardEventHandler::hasEvent ( ) const
inline
bool KeyboardEventHandler::isHandled ( ) const
inline
void KeyboardEventHandler::setHandled ( bool  yn)
inline
void KeyboardEventHandler::triggerKeyPressed ( const KeyboardEvent )
void KeyboardEventHandler::triggerKeyReleased ( const KeyboardEvent )

Member Data Documentation

const KeyboardEvent* KeyboardEventHandler::event_
protected
bool KeyboardEventHandler::ishandled_
protected
Notifier<KeyboardEventHandler> KeyboardEventHandler::keyPressed
Notifier<KeyboardEventHandler> KeyboardEventHandler::keyReleased

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019