Main window that controls child window appearance (day/night/alarm) for windows like sensor window. See sensors monitor example. To save board memory this class shares decoration code for child windows.
More...
|
| ViewModusWindow (int width, int height) |
| Constructor. More...
|
|
void | Initialize () |
|
DecoratorList * | ChartDecorators () |
|
DecoratorList * | AlarmDecorators () |
|
DecoratorList * | NormalDecorators () |
|
DecoratorList * | NormalSensorWndDecorators () |
|
void | SetModus (Modus modus) |
|
void | NotifyTouch (Window *wnd) |
| Switcher for day and night modus.
|
|
Public Member Functions inherited from MainWindow |
| MainWindow (int width, int height) |
| Constructor. More...
|
|
void | RegisterDialog (const __FlashStringHelper *id, Dialog *widnow) |
| Registers dialog window. All application dialogs have to be registered.
|
|
Dialog * | FindDialog (const __FlashStringHelper *id) |
| Finds registered dialog by the name.
|
|
DialogResults | ProcessDoDialog (Window *dlg) |
| Starts dialog.
|
|
void | RegisterTimer (ATimer *timer) |
|
LinkedList< ATimer > & | Timers () |
|
void | SetLoopProcess (ILoopProcess *process) |
|
void | NotifyDialogClosed (Window *window, DialogResults results) |
| Process dialog closed notification.
|
|
Window * | ModalWnd () |
| Returns pointer to active modal (window that received all user input, like dialog window) window.
|
|
void | SetModalWindow (Window *modalWindow) |
| Sets active modal (window that received all user input, like dialog window) window.
|
|
void | Move (int left, int top, int width, int height) |
| Changes position and size.
|
|
| Window (const __FlashStringHelper *name, int left, int top, int width, int height) |
| Constructor. More...
|
|
virtual void | SetDecorators (DecoratorList *decorators) |
| Sets window decorators list.
|
|
DecoratorList * | GetDecorators () |
| Returns window decorators list.
|
|
void | AddDecorator (Decorator *decorator) |
| Adds decorator to the decaorator list.
|
|
Dialog * | FindDialog (const __FlashStringHelper *id) |
|
void | RegisterDialog (const __FlashStringHelper *id, Dialog *dlg) |
|
IDialogClosedEventReceiver::DialogResults | DoDialog (Dialog *dlg) |
|
void | RegisterTouchEventReceiver (ITouchEventReceiver *touchEventReceiver) |
| Registers receiver for touch event. More...
|
|
virtual bool | IsAwaitTouch () |
| Returns true if window await touch action (like button) or false if touch manager should ignore this window during processing of touch events.
|
|
virtual void | OnTouching (DC *dc) |
| Touch manager calls this function in the loop as long as touch action proceeds.
|
|
virtual bool | OnTouch (int x, int y) |
| Touch manager calls this function right after touch is released.
|
|
Window * | RootWindow () |
| Returns pointer to root window. MainWindow does not have any parents.
|
|
void | Invalidate () |
| If function is called than the window manager updates the window.
|
|
bool | IsDirty () |
| Returns true if window has to be updated.
|
|
int | Left () |
| Returns window left coordinate relative to the parent window.
|
|
int | Top () |
| Returns window top coordinate relative to the parent window.
|
|
int | Width () |
| Returns window width.
|
|
int | Height () |
| Returns window height.
|
|
void | AddChild (Window *window) |
| Adds window child window.
|
|
Window * | Parent () |
| Returns Parent window.
|
|
void | SetVisible (bool isVisible) |
| Sets window visibility status.
|
|
bool | IsVisible () |
| Returns true if window visible and false is hidden.
|
|
LinkedList< Window > & | Children () |
| Returns list of children window.
|
|
void | Redraw (DC *dc) |
| Performs full window redraw. More...
|
|
Main window that controls child window appearance (day/night/alarm) for windows like sensor window. See sensors monitor example. To save board memory this class shares decoration code for child windows.