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
16
class
CGUIInputField
;
17
class
CGUIEditableText
;
18
class
CGUIButton
;
19
class
CGUIValidator
;
20
22
48
class
CGUIComboBoxHeader
:
public
CGUICompositeObject
49
{
50
public
:
61
CGUIComboBoxHeader
(
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
76
CGUIComboBoxHeader
(
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
86
CGUIComboBoxHeader
(
const
CGUIComboBoxHeader
& kSource);
87
92
CGUIComboBoxHeader
&
operator=
(
const
CGUIComboBoxHeader
& kSource);
93
97
CGUIComboBoxHeader
(
void
);
98
100
~CGUIComboBoxHeader
(
void
);
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
147
void
SetInputFieldImages
(
148
const
ImageResource_t
&eStandard,
149
const
ImageResource_t
&eHighlighted,
150
const
ImageResource_t
&eFocussed,
151
const
ImageResource_t
&eGrayedOut);
152
161
void
SetButtonImages
(
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
176
void
SetInputFieldBorderWidths
(
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
198
void
SetLabel
(
CGUIEditableText
* pkText);
199
204
CGUIEditableText
*
GetLabel
();
205
210
void
SetSelectedTextColor
(eC_UInt uiCol);
211
216
eC_UInt
GetSelectedTextColor
();
217
225
void
AddInputStartedObserver
(
CGUIObserver
* pObserver);
226
230
void
RemoveInputStartedObserver
(
CGUIObserver
* pObserver);
231
239
void
AddInputFinishedObserver
(
CGUIObserver
* pObserver);
240
244
void
RemoveInputFinishedObserver
(
CGUIObserver
* pObserver);
245
249
void
SetValidator
(
CGUIValidator
* pValidator);
250
251
private
:
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
ImageResource_t
Enumeration of image resource ids.
Definition:
GUIImageResource.h:126
ObjectHandle_t
ObjectHandle_t
List of object resource ids.
Definition:
GUIObjectHandleResource.h:55
CGUIButton
Button specialization that uses images for graphical representation.
Definition:
GUIButton.h:69
CGUIComboBoxHeader
Represents the header part of a combo box control.
Definition:
GUIComboBoxHeader.h:49
CGUIComboBoxHeader::~CGUIComboBoxHeader
~CGUIComboBoxHeader(void)
CGUIComboBoxHeader::RemoveInputStartedObserver
void RemoveInputStartedObserver(CGUIObserver *pObserver)
CGUIComboBoxHeader::CGUIComboBoxHeader
CGUIComboBoxHeader(CGUICompositeObject *const pkParent, const CGUIRect &kRect, const eC_String &rkText, const eC_Value &vButtonWidth, const ObjectHandle_t &eID=NO_HANDLE)
CGUIComboBoxHeader::SetText
virtual void SetText(const eC_String &rkTextString)
CGUIComboBoxHeader::SetSelectedTextColor
void SetSelectedTextColor(eC_UInt uiCol)
CGUIComboBoxHeader::RemoveInputFinishedObserver
void RemoveInputFinishedObserver(CGUIObserver *pObserver)
CGUIComboBoxHeader::GetSelectedTextColor
eC_UInt GetSelectedTextColor()
CGUIComboBoxHeader::WriteToStream
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
CGUIComboBoxHeader::SetInputFieldImages
void SetInputFieldImages(const ImageResource_t &eStandard, const ImageResource_t &eHighlighted, const ImageResource_t &eFocussed, const ImageResource_t &eGrayedOut)
CGUIComboBoxHeader::SetButtonImages
void SetButtonImages(const ImageResource_t &eBtnStandard, const ImageResource_t &eBtnPressed, const ImageResource_t &eBtnHighlighted, const ImageResource_t &eBtnGrayedOut, const ImageResource_t &eBtnFocused)
CGUIComboBoxHeader::SetButtonWidth
void SetButtonWidth(const eC_Value &vWidth)
CGUIComboBoxHeader::SetWidth
virtual void SetWidth(const eC_Value &vWidth)
CGUIComboBoxHeader::SetEditable
void SetEditable(const eC_Bool &bEditable)
CGUIComboBoxHeader::SetValidator
void SetValidator(CGUIValidator *pValidator)
CGUIComboBoxHeader::ReadFromStream
virtual void ReadFromStream()
CGUIComboBoxHeader::CGUIComboBoxHeader
CGUIComboBoxHeader(void)
CGUIComboBoxHeader::CGUIComboBoxHeader
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)
CGUIComboBoxHeader::GetInputField
CGUIInputField * GetInputField() const
Definition:
GUIComboBoxHeader.h:138
CGUIComboBoxHeader::SetLabel
void SetLabel(CGUIEditableText *pkText)
CGUIComboBoxHeader::GetButton
CGUIButton * GetButton() const
Definition:
GUIComboBoxHeader.h:133
CGUIComboBoxHeader::GetLabel
CGUIEditableText * GetLabel()
CGUIComboBoxHeader::GetText
eC_String GetText()
CGUIComboBoxHeader::operator=
CGUIComboBoxHeader & operator=(const CGUIComboBoxHeader &kSource)
CGUIComboBoxHeader::CGUIComboBoxHeader
CGUIComboBoxHeader(const CGUIComboBoxHeader &kSource)
CGUIComboBoxHeader::SetInputFieldBorderWidths
void SetInputFieldBorderWidths(eC_Value vLeftBorder, eC_Value vRightBorder, eC_Value vTopBorder, eC_Value vBottomBorder)
CGUIComboBoxHeader::SetHeight
virtual void SetHeight(const eC_Value &vHeight)
CGUICompositeObject
This is the Guiliani base class for all composite objects.
Definition:
GUICompositeObject.h:70
CGUIEditableText
Specialization of CGUIText that allows for modification and selection of text.
Definition:
GUIEditableText.h:61
CGUIInputField
Input field specialization that uses images for graphical representation.
Definition:
GUIInputField.h:69
CGUIObserver
Observer Base class for Observer-Design-Pattern within Guiliani.
Definition:
GUIObserver.h:28
CGUIRect
Helper class to supply a platform independent rectangle implementation.
Definition:
GUIRect.h:63
CGUIValidator
Interface for validators that provide checking and changing of user input.
Definition:
GUIValidator.h:25
CGUIComboBoxHeader::AddInputStartedObserver
void AddInputStartedObserver(CGUIObserver *pObserver)
CGUIComboBoxHeader::AddInputFinishedObserver
void AddInputFinishedObserver(CGUIObserver *pObserver)
Include
Core
Control
GUIComboBoxHeader.h
Generated by
1.9.4