Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIConditionalBehaviour.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 GUI_CONDITIONAL_BEHAVIOUR__H_
11#define GUI_CONDITIONAL_BEHAVIOUR__H_
12
13#include "GUICmdBehaviour.h"
14
19{
20public:
23
25
30
35
40 void SetIndex(const eC_UInt& uiX, const eC_UInt& uiY);
41
46 void GetIndex(eC_UInt& uiX, eC_UInt& uiY) const;
47
52 void SetValue(const CGUIValue& kValue);
53
58
63
68
73
78
79#if defined(GUILIANI_STREAM_GUI)
80 virtual void ReadFromStream();
81#endif
82
83#if defined(GUILIANI_WRITE_GUI)
84 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
85#endif
86
87protected:
93 virtual void ExecuteCommand(const BehaviourType_t& eFromBehaviour);
94
95private:
100
105 CGUIConditionalBehaviour& operator=(const CGUIConditionalBehaviour& kSource);
106
107private:
108 DataPoolResource_t m_eDataPoolID;
109 eC_UInt m_uiX;
110 eC_UInt m_uiY;
111 CGUIValue m_kValue;
112
114 CGUICommandPtr m_pkCommandTrue;
115
117 CGUICommandPtr m_pkCommandFalse;
118};
119
120#endif
DataPoolResource_t
List of data pool resource ids.
Definition: GUIDataPoolResource.h:35
Definition: GUICmdBehaviour.h:22
Behaviour for repeating clicks on object Additional phases can be defined where the start-time of the...
Definition: GUIConditionalBehaviour.h:19
void GetIndex(eC_UInt &uiX, eC_UInt &uiY) const
CGUIConditionalBehaviour()
Default constructor.
CGUICommandPtr GetFalseCommand() const
void SetFalseCommand(CGUICommandPtr pkCmd)
void SetTrueCommand(CGUICommandPtr pkCmd)
virtual void ReadFromStream()
virtual void ExecuteCommand(const BehaviourType_t &eFromBehaviour)
void SetDataPoolID(const DataPoolResource_t &eID)
CGUIValue GetValue() const
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
void SetIndex(const eC_UInt &uiX, const eC_UInt &uiY)
CGUICommandPtr GetTrueCommand() const
void SetValue(const CGUIValue &kValue)
DataPoolResource_t GetDataPoolID() const
CGUIValue stores a single value in one specific type.
Definition: GUIValue.h:25