14#include "GUIColorPropertyObserver.h"
19#include "GUINinePatch.h"
48 const eC_Value& vX,
const eC_Value& vY,
49 const eC_Value& vWidth,
const eC_Value& vHeight,
61#if defined(GUILIANI_STREAM_GUI)
69#if defined(GUILIANI_WRITE_GUI)
83 const eC_Value& vAbsX,
84 const eC_Value& vAbsY);
87 const eC_Value& vDeltaX,
88 const eC_Value& vDeltaY,
89 const eC_Value& vAbsX,
90 const eC_Value& vAbsY);
93 const eC_Value& vAbsX,
94 const eC_Value& vAbsY);
97 const eC_Value& vAbsX,
98 const eC_Value& vAbsY);
126 void SetDaySize(
const eC_Value& vDayWidth,
const eC_Value& vDayHeight);
132 void GetDaySize(eC_Value& vDayWidth, eC_Value& vDayHeight)
const;
271 void SetMonthText(
const eC_UByte& ubIndex,
const eC_String& kTextString);
289 void SetDayText(
const eC_UByte& ubIndex,
const eC_String& kTextString);
302 void SetDate(
const eC_UByte& ubDay,
const eC_UByte& ubMonth,
const eC_UInt& uiYear);
309 void GetDate(eC_UByte& ubDay, eC_UByte& ubMonth, eC_UInt& uiYear);
335 eC_Bool IsValidInput(
const eC_UByte& ubDay,
const eC_UByte& ubMonth,
const eC_UInt& uiYear)
const;
339#if defined(GUILIANI_STREAM_GUI)
343#if defined(GUILIANI_WRITE_GUI)
349 void PrintDayCentered(
const eC_String& kDay,
const eC_Value& vX,
const eC_Value& vY,
const eC_Value& vAdvanceX,
const eC_Value& vAdvanceY);
351 static eC_Bool IsLeapYear(eC_UInt uiYear);
353 static eC_UByte CalculateNumberOfDays(eC_UByte ubMonth, eC_UInt uiYear);
355 static eC_UByte CalcWeekdayFromDate(eC_UByte ubDay, eC_UByte ubMonth, eC_UInt uiYear);
358 static const eC_UInt INDEX_HEADLINECOLOR;
359 static const eC_UInt INDEX_ACTIVECOLOR;
360 static const eC_UInt INDEX_INACTIVECOLOR;
367 eC_Value m_vDayWidth;
368 eC_Value m_vDayHeight;
370 eC_Bool m_bShowHeadLine;
371 eC_Value m_vHeadlineHeight;
383 eC_Bool m_bShowWeekDays;
385 eC_UByte m_ubFirstDayOfWeek;
386 eC_Bool m_bFillEmptySpaces;
388 eC_Bool m_bTouchControl;
392 eC_String m_kTextMonths[12];
394 eC_String m_kTextDays[7];
397 eC_UByte m_ubFirstWeekDayOfMonth;
398 eC_UByte m_ubNumberOfDays;
399 eC_Value m_vAdvanceX;
400 eC_Value m_vAdvanceY;
401 eC_Value m_vDragStartX;
402 eC_Value m_vDragStartY;
404 eC_UByte m_ubStartCell;
Helper Macros in Guiliani
FontResource_t
List of font resource ids.
Definition: GUIFontResource.h:54
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
GlobalProperty_t
List of property resource ids.
Definition: GUIPropertyResource.h:67
Helper Macros in Guiliani
TextResource_t
List of text resource ids.
Definition: GUITextResource.h:40
Calendar-widget for easy access.
Definition: GUICalendar.h:36
eC_UInt GetHeadlineColor() const
virtual eC_Bool IsHighlightable() const
Definition: GUICalendar.h:59
eC_UByte GetFirstDayOfWeek() const
eC_Bool GetShowWeekDays() const
virtual void SetWidth(const eC_Value &vX)
eC_Bool GetTouchControl() const
CGUICalendar(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)
eC_String GetMonthText(const eC_UByte &ubIndex) const
virtual eC_Bool DoClick(const eC_Value &vAbsX, const eC_Value &vAbsY)
void SetImages(const ImageResource_t &eBackgroundImage, const ImageResource_t &eMarkerImage)
virtual void SetHeight(const eC_Value &vY)
void SetShowHeadLine(const eC_Bool &bShowHeadLine)
void SetMonthText(const eC_UByte &ubIndex, const TextResource_t &eTextID)
void SetTouchControl(const eC_Bool &bTouchControl)
virtual eC_Bool DoDragEnd(const eC_Value &vAbsX, const eC_Value &vAbsY)
FontResource_t GetInactiveFont() const
virtual eC_Bool DoButtonDown(const eC_Value &vAbsX, const eC_Value &vAbsY)
eC_UInt GetFontColor() const
void GetDate(eC_UByte &ubDay, eC_UByte &ubMonth, eC_UInt &uiYear)
virtual void OnNotification()
Called by CGUISubject whenever an observed object triggers an update.
void GetDaySize(eC_Value &vDayWidth, eC_Value &vDayHeight) const
virtual void WriteToStream(const eC_Bool bWriteClassID=false)
CGUINinePatch GetMarkerNinePatch()
void SetHeadlineColor(const eC_UInt &uiHeadlineColor)
void SetHeadlineColor(const GlobalProperty_t &eHeadlineColor)
CGUICalendar()
Default constructor to be used by the factory.
void SetInactiveFontColor(const eC_UInt &uiInactiveFontColor)
eC_Bool GetShowHeadLine() const
FontResource_t GetHeadlineFont() const
void SetDate(const eC_UByte &ubDay, const eC_UByte &ubMonth, const eC_UInt &uiYear)
void SetDaySize(const eC_Value &vDayWidth, const eC_Value &vDayHeight)
void SetInactiveFont(const FontResource_t &eInactiveFont)
void SetShowWeekDays(const eC_Bool &bShowWeekDays)
void SetFontColor(const eC_UInt &uiFontColor)
void SetFirstDayOfWeek(const eC_UByte &ubFirstDayOfWeek)
void GetImages(ImageResource_t &eBackgroundImage, ImageResource_t &eMarkerImage) const
void SetInactiveFontColor(const GlobalProperty_t &eInactiveFontColor)
void SetFont(const FontResource_t &eFont)
void SetDayText(const eC_UByte &ubIndex, const TextResource_t &eTextID)
void SetDayText(const eC_UByte &ubIndex, const eC_String &kTextString)
eC_UInt GetInactiveFontColor() const
virtual eC_Bool DoDrag(const eC_Value &vDeltaX, const eC_Value &vDeltaY, const eC_Value &vAbsX, const eC_Value &vAbsY)
void SetMonthText(const eC_UByte &ubIndex, const eC_String &kTextString)
CGUINinePatch GetBackgroundNinePatch()
void SetFontColor(const GlobalProperty_t &eFontColor)
void SetFillEmptySpaces(const eC_Bool &bFillEmptySpaces)
FontResource_t GetFont() const
eC_Value GetHeadlineHeight() const
void SetHeadlineFont(const FontResource_t &eHeadlineFont)
void SetHeadlineHeight(const eC_Value &vHeadlineHeight)
eC_String GetDayText(const eC_UByte &ubIndex) const
virtual void ReadFromStream()
eC_Bool GetFillEmptySpaces() const
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
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:81