Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIObjectStateBehaviour.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUIOBJECTSTATEBEHAVIOUR__H_
11#define GUIOBJECTSTATEBEHAVIOUR__H_
12
13#include "GUIBehaviourDecorator.h"
15
18{
19public:
29 ObjectHandle_t eObjID,
30 eC_Bool bToggle,
31 eC_Bool bFocusable,
32 eC_Bool bInvisible,
33 eC_Bool bGrayedOut,
34 eC_Bool bDisabled);
35
38
39#if defined(GUILIANI_STREAM_GUI)
44 virtual void ReadFromStream();
45#endif
46
47#if defined(GUILIANI_WRITE_GUI)
53 virtual void WriteToStream(const eC_Bool bWriteClassID=false);
54#endif
55
56protected:
57 virtual eC_Bool DoClick(
58 const eC_Value& vAbsX,
59 const eC_Value& vAbsY);
60
61private:
62 ObjectHandle_t m_eObjID;
63
65 eC_Bool m_bToggle;
66
67 // Object states which can be changed through this command
68 eC_Bool m_bFocusable;
69 eC_Bool m_bInvisible;
70 eC_Bool m_bGrayedOut;
71 eC_Bool m_bDisabled;
72};
73
74#endif
Helper Macros in Guiliani
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
GUIBehaviourDecorator base class.
Definition: GUIBehaviourDecorator.h:78
Behaviour for processing object state changes.
Definition: GUIObjectStateBehaviour.h:18
virtual eC_Bool DoClick(const eC_Value &vAbsX, const eC_Value &vAbsY)
virtual void ReadFromStream()
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
CGUIObjectStateBehaviour(ObjectHandle_t eObjID, eC_Bool bToggle, eC_Bool bFocusable, eC_Bool bInvisible, eC_Bool bGrayedOut, eC_Bool bDisabled)
CGUIObjectStateBehaviour()
Default constructor.