OpendTect  7.0
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 ()
 
const KeyboardEventevent () const
 
bool hasEvent () const
 
bool isHandled () const
 
void setHandled (bool yn)
 
void triggerKeyPressed (const KeyboardEvent &)
 
void triggerKeyReleased (const KeyboardEvent &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Public Attributes

Notifier< KeyboardEventHandlerkeyPressed
 
Notifier< KeyboardEventHandlerkeyReleased
 

Protected Attributes

const KeyboardEventevent_
 
bool ishandled_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

Handles KeyboardEvent.

<>

Constructor & Destructor Documentation

◆ KeyboardEventHandler()

KeyboardEventHandler::KeyboardEventHandler ( )

Member Function Documentation

◆ event()

const KeyboardEvent& KeyboardEventHandler::event ( ) const
inline
Note
only ok to call in function triggered by an event from this class.

◆ hasEvent()

bool KeyboardEventHandler::hasEvent ( ) const
inline

◆ isHandled()

bool KeyboardEventHandler::isHandled ( ) const
inline

◆ setHandled()

void KeyboardEventHandler::setHandled ( bool  yn)
inline

◆ triggerKeyPressed()

void KeyboardEventHandler::triggerKeyPressed ( const KeyboardEvent )

◆ triggerKeyReleased()

void KeyboardEventHandler::triggerKeyReleased ( const KeyboardEvent )

Member Data Documentation

◆ event_

const KeyboardEvent* KeyboardEventHandler::event_
protected

◆ ishandled_

bool KeyboardEventHandler::ishandled_
protected

◆ keyPressed

Notifier<KeyboardEventHandler> KeyboardEventHandler::keyPressed

◆ keyReleased

Notifier<KeyboardEventHandler> KeyboardEventHandler::keyReleased

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