Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIInputField.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 GUIINPUTFIELD__H_
11#define GUIINPUTFIELD__H_
12
13#include "GUIBaseInputField.h"
14#include "GUINinePatch.h"
15#include "GUIImageResource.h"
16
18
19// @guiliani_doxygen toplevel_control Input Field
38// @endguiliani_doxygen
68 : public CGUIBaseInputField
69{
70public:
82 CGUICompositeObject* const pkParent,
83 const eC_Value& vX, const eC_Value& vY,
84 const eC_Value& vWidth, const eC_Value& vHeight,
85 const eC_String &rkText,
87 const ObjectHandle_t &eID = NO_HANDLE);
88
97 CGUICompositeObject* const pkParent,
98 const CGUIRect &kRect,
99 const eC_String &rkText,
101 const ObjectHandle_t &eID = NO_HANDLE);
102
105
110
116
121
126
134 const ImageResource_t& eStandard,
135 const ImageResource_t& eHighlighted,
136 const ImageResource_t& eFocussed,
137 const ImageResource_t& eGrayedOut);
138
142 {
143 return m_kNinePatch;
144 }
145
146#ifdef GUILIANI_STREAM_GUI
147 virtual void ReadFromStream();
148#endif
149
150#ifdef GUILIANI_WRITE_GUI
151 virtual void WriteToStream(const eC_Bool bWriteClassID = false);
152#endif
153
154protected:
159 virtual eC_Bool DoDraw();
160
162
167
168private:
170 void Init();
171
173 void DeInit();
174
178 void CopyAttributes(const CGUIInputField& kSource);
179};
180#endif
Helper Macros in Guiliani
ImageResource_t
Enumeration of image resource ids.
Definition: GUIImageResource.h:126
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
Base class for text input controls.
Definition: GUIBaseInputField.h:94
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
AcceptedChars_t
Sets of characters that are accepted as input in a CGUIEdit.
Definition: GUIEdit.h:70
@ AC_ALL
All characters.
Definition: GUIEdit.h:72
Input field specialization that uses images for graphical representation.
Definition: GUIInputField.h:69
void SetImages(const ImageResource_t &eStandard, const ImageResource_t &eHighlighted, const ImageResource_t &eFocussed, const ImageResource_t &eGrayedOut)
void SetStandardImages()
CGUIInputField(CGUICompositeObject *const pkParent, const CGUIRect &kRect, const eC_String &rkText, CGUIEdit::AcceptedChars_t eAcceptedChars=CGUIEdit::AC_ALL, const ObjectHandle_t &eID=NO_HANDLE)
CGUINinePatch m_kNinePatch
The nine patch.
Definition: GUIInputField.h:161
CGUINinePatch & GetNinePatch()
Definition: GUIInputField.h:141
CGUIInputField(const CGUIInputField &kSource)
ImageResource_t m_eHighlighted
The highlighted image.
Definition: GUIInputField.h:164
virtual void ReadFromStream()
ImageResource_t m_eGrayedOut
The grayed out image.
Definition: GUIInputField.h:165
CGUIInputField & operator=(const CGUIInputField &kSource)
virtual ~CGUIInputField()
ImageResource_t m_eNormal
The standard image.
Definition: GUIInputField.h:163
virtual eC_Bool DoDraw()
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
ImageResource_t m_eFocussed
The focused image.
Definition: GUIInputField.h:166
CGUIInputField(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_String &rkText, CGUIEdit::AcceptedChars_t eAcceptedChars=CGUIEdit::AC_ALL, const ObjectHandle_t &eID=NO_HANDLE)
Helper class to for storing Nine-Patch images.
Definition: GUINinePatch.h:41
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63