Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIBehaviourDecorator.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 GUIBEHAVIOURDECORATOR__H_
11#define GUIBEHAVIOURDECORATOR__H_
12
13#include "GUIBehaviour.h"
14#include "GUIObject.h"
15
17
19
78{
87
88#ifdef GUILIANI_STREAM_GUI
90#endif
91
92public:
97 virtual CGUIBehaviourDecorator* Clone() const;
98
102
109 virtual eC_Bool IsCompositeBehaviour() const {return false;}
110
111protected:
116 CGUIBehaviourDecorator(CGUIObject* const pkObject = NULL);
117
123
128 virtual void AssociatedObjectChanges(CGUIObject * const pkNewAssociatedObject);
129
133
134private:
138
140 void SetObject(CGUIObject* const pkObject);
141
145 void SetParentBehaviour(CGUICompositeBehaviour* pkParent);
146
148 CGUIObject* m_pkObject;
149
153 CGUICompositeBehaviour* m_pkParent;
154};
155
156#endif
GUIBehaviourDecorator base class.
Definition: GUIBehaviourDecorator.h:78
CGUIBehaviourDecorator(const CGUIBehaviourDecorator &kSource)
virtual eC_Bool IsCompositeBehaviour() const
Definition: GUIBehaviourDecorator.h:109
virtual void AssociatedObjectChanges(CGUIObject *const pkNewAssociatedObject)
virtual ~CGUIBehaviourDecorator()
CGUIObject * GetAssociatedObject() const
CGUIBehaviourDecorator(CGUIObject *const pkObject=NULL)
virtual CGUIBehaviourDecorator * Clone() const
CGUIBehaviour base class.
Definition: GUIBehaviour.h:73
Contains other behaviours and forwards events to them.
Definition: GUICompositeBehaviour.h:46
CGUICompositeBehaviour & operator=(const CGUICompositeBehaviour &rSource)
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:81
virtual void ReadFromStream()
virtual ~CGUIObject()
void SetBehaviour(CGUIBehaviourDecorator *pkBehaviour)