1#if !defined(ONSCREENKEYBOARD_H)
2#define ONSCREENKEYBOARD_H
6#include "GUIOnscreenKeyboardLayout.h"
8#include "GUIColorPropertyObserver.h"
13#include "GUINinePatch.h"
14#include "GUIGeneralResourceManager.h"
42 void Set(
const eC_UInt& LineIndex,
const eC_UInt& KeyIndex)
65 void SetSubChars(
const eC_UInt& LineIndex,
const eC_UInt& KeyIndex)
77 eC_Bool
Equals(
const eC_UInt& LineIndex,
const eC_UInt& KeyIndex)
106 const eC_Value& vX,
const eC_Value& vY,
107 const eC_Value& vWidth,
const eC_Value& vHeight,
130 eC_Bool
LoadLayout(eC_File* pkFile,
const eC_String& kFileExtension);
313 virtual void DoAnimate(
const eC_Value& vTimes = eC_FromInt(1));
318 const eC_Value& vAbsX = eC_FromInt(-1),
319 const eC_Value& vAbsY = eC_FromInt(-1));
322 const eC_Value& vAbsX = eC_FromInt(-1),
323 const eC_Value& vAbsY = eC_FromInt(-1));
326 const eC_Value& vDeltaX = eC_FromInt(-1),
327 const eC_Value& vDeltaY = eC_FromInt(-1),
328 const eC_Value& vAbsX = eC_FromInt(-1),
329 const eC_Value& vAbsY = eC_FromInt(-1));
331#if defined(GUILIANI_STREAM_GUI)
339#if defined(GUILIANI_WRITE_GUI)
354 const eC_Value& vPosX,
355 const eC_Value& vPosY,
356 const eC_Value& vWidth,
357 const eC_Value& vHeight,
358 const eC_UInt& uiColor);
363 const eC_Value& vAbsX,
const eC_Value& vAbsY,
365 eC_UInt& ruiLineIndex, eC_UInt& ruiKeyIndex)
const;
371 void StartTimer(
const eC_UInt& uiInterval);
374 void ExpandKeyboard(
const eC_Value& vNeededHeight);
375 void ResetKeyboard();
377 void DrawSelectedBackground(
const CGUIRect& kRect);
380 static const eC_UInt INDEX_FONT_COLOR;
381 static const eC_UInt INDEX_FONT_COLOR_SELECTED;
382 static const eC_UInt INDEX_BACKGROUND_COLOR;
383 static const eC_UInt INDEX_BACKGROUND_COLOR_SELECTED;
384 static const eC_UInt INDEX_BACKGROUND_COLOR_OVERLAY;
398 eC_UByte m_ubCurrentPageIndex;
401 eC_Bool m_bShowSubChars;
403 eC_Bool m_bButtonDown;
406 eC_Bool m_bUseOverlay;
407 eC_Bool m_bAllowSubChars;
409 eC_Value m_vOriginalYPos;
410 eC_Value m_vOriginalHeight;
411 eC_Bool m_bTimerTriggered;
425 m_pkObject(pkObject),
426 m_kFileExtension(kFileExtension)
434 if (NULL != m_pkObject)
435 m_pkObject->
LoadLayout(pkFile, m_kFileExtension);
440 eC_String m_kFileExtension;
Helper Macros in Guiliani
FontResource_t
List of font resource ids.
Definition: GUIFontResource.h:54
GeneralResource_t
List of general resource ids.
Definition: GUIGeneralResource.h:52
Helper Macros in Guiliani
ImageResource_t
Enumeration of image resource ids.
Definition: GUIImageResource.h:126
Helper Macros in Guiliani
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
GlobalProperty_t
List of property resource ids.
Definition: GUIPropertyResource.h:67
This observer provides the base-interface for controls when using color-properties.
Definition: GUIColorPropertyObserver.h:23
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
No-frills text input control, not to be used on its own.
Definition: GUIEdit.h:66
Interpreter for general resources.
Definition: GUIGeneralResourceManager.h:52
Helper class to for storing Nine-Patch images.
Definition: GUINinePatch.h:41
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:79
This class represents an onscreenkeyboard.
Definition: GUIOnscreenKeyboard.h:22
void SetUseOverlay(const eC_Bool &bUseOverlay)
virtual eC_Bool DoButtonUp(const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
eC_UInt GetBackgroundColor() const
eC_UInt GetPageIndex() const
virtual eC_Bool DoButtonDown(const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
eC_Bool GetAllowSubChars() const
eC_UInt GetFontColor() const
virtual void ReadFromStream()
ImageResource_t GetBackgroundImageSelected() const
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
void SetFontColorSelected(const eC_UInt &uiColor)
void SetFontColor(const GlobalProperty_t &eProperty)
void SetFontColorSelected(const GlobalProperty_t &eProperty)
void SetBackgroundImageSelected(const ImageResource_t &eImage)
void SetOverlayColor(const eC_UInt &uiColor)
void SetBackgroundColorSelected(const eC_UInt &uiColor)
void SetBackgroundColor(const GlobalProperty_t &eProperty)
CGUIOnscreenKeyboard(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const ObjectHandle_t &eID=NO_HANDLE)
CGUIOnscreenKeyboardLayout * GetLayout() const
eC_UInt GetFontColorSelected() const
eC_Bool LoadLayout(const eC_String &rkLayoutFile)
void SetBackgroundImage(const ImageResource_t &eImage)
virtual eC_Bool DoDrag(const eC_Value &vDeltaX=eC_FromInt(-1), const eC_Value &vDeltaY=eC_FromInt(-1), const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1))
virtual void SetHeight(const eC_Value &vHeight)
ImageResource_t GetBackgroundImage() const
void SetBackgroundColor(const eC_UInt &uiColor)
virtual void SetWidth(const eC_Value &vWidth)
void SetOverlayColor(const GlobalProperty_t &eProperty)
void SetFontColor(const eC_UInt &uiColor)
void SetTargetObject(const ObjectHandle_t &eObjectID)
void SetOverlayImage(const ImageResource_t &eImage)
eC_Bool GetUseOverlay() const
FontResource_t GetFont() const
ImageResource_t GetOverlayImage() const
ObjectHandle_t GetTargetObject() const
void SetAllowSubChars(const eC_Bool &bAllowSubChars)
eC_UInt GetOverlayColor() const
virtual void DoAnimate(const eC_Value &vTimes=eC_FromInt(1))
eC_UInt GetBackgroundColorSelected() const
void LoadLayout(const GeneralResource_t &reResource)
void SetLayout(CGUIOnscreenKeyboardLayout *pkLayout)
void SetFont(const FontResource_t &eFont)
CGUINinePatch & GetNinePatch()
eC_Bool LoadLayout(eC_File *pkFile, const eC_String &kFileExtension)
void SetPageIndex(const eC_UByte &ubPageIndex)
void SetBackgroundColorSelected(const GlobalProperty_t &eProperty)
Layout for an OnScreenKeyboard.
Definition: GUIOnscreenKeyboardLayout.h:13
Helper class to supply a platform independent rectangle implementation.
Definition: GUIRect.h:63
Definition: GUIOnscreenKeyboard.h:417
OnScreenKeyboardLayoutInterpreter(CGUIOnscreenKeyboard *pkObject, const eC_String &kFileExtension)
Definition: GUIOnscreenKeyboard.h:423
virtual void Interpret(eC_File *pkFile)
Definition: GUIOnscreenKeyboard.h:432
struct for a key
Definition: GUIOnscreenKeyboardLayout.h:33