Projekt

Allgemein

Profil

Eval » Historie » Revision 3

Revision 2 (Maximilian Seesslen, 14.06.2022 15:15) → Revision 3/46 (Maximilian Seesslen, 14.06.2022 15:44)

h1. Eval

h2. Widgets

There is a ODesktop that holds a list of OScreens (or only the curent).
There is a
OScreen that holds a list of OWidgets.
When the touch is pressed, the corresponding button can be determined.
An signal can be emmited.
An press-event can be queued, An release-event can be queued. An click-event can be queued if current button matches original pressed button.

* OButton::draw(): completely draws the widget
* OButton::update(): only draw status-relevant items, e.g. pressed, released, time changed...

All screens can be prepared at start.
A Screen can be active or inactive.

h2. Touch

XCAL_25; XCAL_215;
X=( 25 + ( ( RAW-XCAL_25 ) / ( ( XCAL_215 - XCAL_25 ) / 190 ) )

XCAL_25=100
XCAL_215=2000
( 2000 - 100 ) / 190 = 10 RawPerHektoPixel;

100:
X = 25 + ( ( 100-100) / 10 ) = 100

2000:
X = 25 + ( 1900 / 10 ) = 215

XCAL_25=78
XCAL_215=589
rawPerPixel = (589 - 78) / 190 = approx. 2,6894737
rawPerHektoPixel = ((589 - 78) * 100) / 190 = approx. 268,94737
X = 25 + ( ( ( 589 - 78 ) * 100 ) / 269 ) = approx. 214,96283



h2. Watch

* the OWatch class shows an clock with specific style.

h2. Minutnik

* Main screen; CWatch, Add-Button
* Add-Screen
** Espresso, Weisswurst, Weiches Ei, Hartes Ei, Nudeln, Pizza, Waschmaschine, Cancel; Height 32
* Alarm Screen
* Logo, Splash screen at boot time and stand-by-screen

h2. Release v2.0.0

* Mode-Screen: Minutnik, Clock, StopWatch