Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIComboBoxHeader.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 GUICOMBOBOXHEADER_H_
11#define GUICOMBOBOXHEADER_H_
12
13#include "GUICompositeObject.h"
14#include "GUIResourceManager.h"
15
16class CGUIInputField;
18class CGUIButton;
19class CGUIValidator;
20
22
49{
50public:
62 CGUICompositeObject * const pkParent,
63 const eC_Value& vX,const eC_Value& vY,
64 const eC_Value& vWidth,const eC_Value& vHeight,
65 const eC_String &rkText,
66 const eC_Value& vButtonWidth,
67 const ObjectHandle_t&eID = NO_HANDLE);
68
77 CGUICompositeObject * const pkParent,
78 const CGUIRect &kRect,
79 const eC_String& rkText,
80 const eC_Value& vButtonWidth,
81 const ObjectHandle_t&eID = NO_HANDLE);
82
87
93
98
101
102#ifdef GUILIANI_STREAM_GUI
103 virtual void ReadFromStream();
104#endif
105
106#ifdef GUILIANI_WRITE_GUI
107 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
108#endif
109
113 virtual void SetWidth(const eC_Value& vWidth);
114
118 virtual void SetHeight(const eC_Value& vHeight);
119
123 void SetButtonWidth(const eC_Value& vWidth);
124
128 void SetEditable(const eC_Bool& bEditable);
129
133 inline CGUIButton* GetButton() const { return m_pButton;}
134
138 inline CGUIInputField* GetInputField() const { return m_pEdit;}
139
148 const ImageResource_t &eStandard,
149 const ImageResource_t &eHighlighted,
150 const ImageResource_t &eFocussed,
151 const ImageResource_t &eGrayedOut);
152
162 const ImageResource_t &eBtnStandard,
163 const ImageResource_t &eBtnPressed,
164 const ImageResource_t &eBtnHighlighted,
165 const ImageResource_t &eBtnGrayedOut,
166 const ImageResource_t &eBtnFocused);
167
177 eC_Value vLeftBorder,
178 eC_Value vRightBorder,
179 eC_Value vTopBorder,
180 eC_Value vBottomBorder);
181
185 virtual void SetText(const eC_String& rkTextString);
186
192 eC_String GetText();
193
199
205
210 void SetSelectedTextColor(eC_UInt uiCol);
211
217
226
231
240
245
249 void SetValidator(CGUIValidator* pValidator);
250
251private:
252
254 void Init(const eC_Value& vButtonWidth, const eC_String &rkText);
255
257 void DeInit();
258
260 void CopyAttributes(const CGUIComboBoxHeader& kSource);
261
262 CGUIInputField* m_pEdit;
263
265 CGUIButton* m_pButton;
266};
267#endif
ImageResource_t
Enumeration of image resource ids.
Definition: GUIImageResource.h:126
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
Button specialization that uses images for graphical representation.
Definition: GUIButton.h:69
Represents the header part of a combo box control.
Definition: GUIComboBoxHeader.h:49
void RemoveInputStartedObserver(CGUIObserver *pObserver)
CGUIComboBoxHeader(CGUICompositeObject *const pkParent, const CGUIRect &kRect, const eC_String &rkText, const eC_Value &vButtonWidth, const ObjectHandle_t &eID=NO_HANDLE)
virtual void SetText(const eC_String &rkTextString)
void SetSelectedTextColor(eC_UInt uiCol)
void RemoveInputFinishedObserver(CGUIObserver *pObserver)
eC_UInt GetSelectedTextColor()
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
void SetInputFieldImages(const ImageResource_t &eStandard, const ImageResource_t &eHighlighted, const ImageResource_t &eFocussed, const ImageResource_t &eGrayedOut)
void SetButtonImages(const ImageResource_t &eBtnStandard, const ImageResource_t &eBtnPressed, const ImageResource_t &eBtnHighlighted, const ImageResource_t &eBtnGrayedOut, const ImageResource_t &eBtnFocused)
void SetButtonWidth(const eC_Value &vWidth)
virtual void SetWidth(const eC_Value &vWidth)
void SetEditable(const eC_Bool &bEditable)
void SetValidator(CGUIValidator *pValidator)
virtual void ReadFromStream()
CGUIComboBoxHeader(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_String &rkText, const eC_Value &vButtonWidth, const ObjectHandle_t &eID=NO_HANDLE)
CGUIInputField * GetInputField() const
Definition: GUIComboBoxHeader.h:138
void SetLabel(CGUIEditableText *pkText)
CGUIButton * GetButton() const
Definition: GUIComboBoxHeader.h:133
CGUIEditableText * GetLabel()
eC_String GetText()
CGUIComboBoxHeader & operator=(const CGUIComboBoxHeader &kSource)
CGUIComboBoxHeader(const CGUIComboBoxHeader &kSource)
void SetInputFieldBorderWidths(eC_Value vLeftBorder, eC_Value vRightBorder, eC_Value vTopBorder, eC_Value vBottomBorder)
virtual void SetHeight(const eC_Value &vHeight)
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
Specialization of CGUIText that allows for modification and selection of text.
Definition: GUIEditableText.h:61
Input field specialization that uses images for graphical representation.
Definition: GUIInputField.h:69
Observer Base class for Observer-Design-Pattern within Guiliani.
Definition: GUIObserver.h:28
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
Interface for validators that provide checking and changing of user input.
Definition: GUIValidator.h:25
void AddInputStartedObserver(CGUIObserver *pObserver)
void AddInputFinishedObserver(CGUIObserver *pObserver)