10#ifndef GUI_HOTKEYS_BEHAVIOUR__H_
11#define GUI_HOTKEYS_BEHAVIOUR__H_
13#include "GUIBehaviourDecorator.h"
15#include "GUICommand.h"
16#include "eC_TList_doubleLinked.h"
105 eC_Bool bCheckForModifiers,
107 eC_Bool bAbstractObj,
109 eC_Bool bActivated =
true);
121 eC_Bool bCheckForModifiers);
153 eC_UInt& ruiModifiers,
156#ifdef GUILIANI_STREAM_GUI
159#ifdef GUILIANI_WRITE_GUI
213 eC_UInt uiModifiers = 0,
214 eC_Bool bCheckForModifiers =
false,
216 eC_Bool bAbstractObj =
false,
218 eC_Bool bActivated =
true) :
241 const eC_UInt& uiModifiers);
251 const eC_UInt& uiModifiers);
268 eC_Bool HandleHotKeyContent(
274 eC_Bool m_bMarkAlwaysAsHandled;
GUIKeyIdentifier_t
Platform independent key identifiers.
Definition: GUIEventTypeResource.h:205
Helper Macros in Guiliani
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
GUIBehaviourDecorator base class.
Definition: GUIBehaviourDecorator.h:78
Maps key codes to object IDs and 'clicks' on objects.
Definition: GUIHotkeysBehaviour.h:60
CGUIHotkeysBehaviour(eC_Bool bMarkAlwaysAsHandled=false)
void SetActivated(GUIKeyIdentifier_t eKeyContent, eC_UInt uiModifiers, eC_Bool bActivated)
virtual eC_Bool DoKeyUp(const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers)
virtual CGUIBehaviourDecorator * Clone() const
eC_Bool GetHotKey(GUIKeyIdentifier_t &reKeyIdentifier, eC_UInt &ruiModifiers, ObjectHandle_t eMappedObjID) const
eC_TListDoubleLinked< HotKeyMap_t > m_kHotKeyMapList
The hot key mappings are saved in this list.
Definition: GUIHotkeysBehaviour.h:231
CGUIHotkeysBehaviour(const CGUIHotkeysBehaviour &kSource)
CGUIHotkeysBehaviour & operator=(const CGUIHotkeysBehaviour &kSource)
void AddHotKeyMap(GUIKeyIdentifier_t eKeyIdentifier, eC_UInt uiModifiers, eC_Bool bCheckForModifiers, ObjectHandle_t eMappedObjID, eC_Bool bAbstractObj, CGUICommandPtr pkCommand=NULL, eC_Bool bActivated=true)
virtual eC_Bool DoKeyDown(const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers)
void WriteToStream(const eC_Bool bWriteClassID=false)
void SetMarkAlwaysAsHandled(eC_Bool bMarkAlwaysAsHandled)
void SetModifiers(GUIKeyIdentifier_t eKey, eC_UInt uiModifiers, eC_Bool bCheckForModifiers)
Represents a double linked list template with header and tail node.
Definition: eC_TList_doubleLinked.h:67
Definition of one hot key mapping with all necessary parameters.
Definition: GUIHotkeysBehaviour.h:167
eC_UInt m_uiModifiers
Definition: GUIHotkeysBehaviour.h:172
eC_Bool m_bActivated
Definition: GUIHotkeysBehaviour.h:200
eC_Bool m_bAbstractObj
Definition: GUIHotkeysBehaviour.h:188
ObjectHandle_t m_eMappedObjID
Definition: GUIHotkeysBehaviour.h:180
GUIKeyIdentifier_t m_eKeyID
Definition: GUIHotkeysBehaviour.h:169
eC_Bool m_bCheckForModifiers
Definition: GUIHotkeysBehaviour.h:175
HotKeyMap_t(GUIKeyIdentifier_t eKeyContent=GK_NONE, eC_UInt uiModifiers=0, eC_Bool bCheckForModifiers=false, ObjectHandle_t eMappedObjID=NO_HANDLE, eC_Bool bAbstractObj=false, CGUICommandPtr pkCommand=NULL, eC_Bool bActivated=true)
Definition: GUIHotkeysBehaviour.h:211
CGUICommandPtr m_pkCommand
Definition: GUIHotkeysBehaviour.h:195