23 #include "TextBoxString.h" 24 #include "DecoratorPrimitives.h" 36 DecoratorList _dayLightDecorator;
37 DecoratorList _dayLightSensorWndDecorator;
38 DecoratorList _nightDecorator;
39 DecoratorList _alarmDecorator;
40 DecoratorList _chartDecorator;
55 _dayLightSensorWndDecorator.Add(
new Decorator3DRect(Color::White,Color::Gray));
75 DecoratorList *ChartDecorators()
77 return &_chartDecorator;
79 DecoratorList *AlarmDecorators()
81 return &_alarmDecorator;
83 DecoratorList *NormalDecorators()
85 return _modus==Day?&_dayLightDecorator:&_nightDecorator;
87 DecoratorList *NormalSensorWndDecorators()
89 return _modus==Day?&_dayLightSensorWndDecorator:&_nightDecorator;
91 void SetModus(Modus modus)
113 void updateBackColor()
115 for(
int i=0;i<
Children().Count();i++)
117 Children()[i]->SetDecorators(NormalDecorators());
void RegisterTouchEventReceiver(ITouchEventReceiver *touchEventReceiver)
Registers receiver for touch event.
Definition: Window.h:102
Base class for all window objects. Provides basic window functionality.
Definition: Window.h:34
void SetText(T *text)
Initialize window with text.
Definition: TextBoxString.h:64
void SetFont(uint8_t *font)
Sets font.
Definition: TextBox.h:64
Main window that controls child window appearance (day/night/alarm) for windows like sensor window...
Definition: ViewModusWindow.h:27
ViewModusWindow(int width, int height)
Constructor.
Definition: ViewModusWindow.h:49
LinkedList< Window > & Children()
Returns list of children window.
Definition: Window.h:223
void Invalidate()
If function is called than the window manager updates the window.
Definition: Window.h:157
Decorator primitive for 3D rectangle. Overriden members description see Decorator class documentation...
Definition: DecoratorPrimitives.h:130
Decorator primitive that sets current color. Overriden members description see Decorator class docume...
Definition: DecoratorPrimitives.h:24
Decorator primitive for round rect filled area. Overriden members description see Decorator class doc...
Definition: DecoratorPrimitives.h:79
void AddChild(Window *window)
Adds window child window.
Definition: Window.h:194
void AddDecorator(Decorator *decorator)
Adds decorator to the decaorator list.
Definition: Window.h:86
virtual void SetDecorators(DecoratorList *decorators)
Sets window decorators list.
Definition: Window.h:76
Base class for main application window. Each application has to have one main window, which is root parent for all other application windows.
Definition: MainWindow.h:38
Interface that provides screen touch notifications. If you want receive this notification in the targ...
Definition: ITouchEventReceiver.h:24
void NotifyTouch(Window *wnd)
Switcher for day and night modus.
Definition: ViewModusWindow.h:97
void SetMargins(int offset_x, int offset_y)
Defines offset from left and top for text.
Definition: TextBox.h:58