Eval » Historie » Version 3
Maximilian Seesslen, 14.06.2022 15:44
1 | 1 | Maximilian Seesslen | h1. Eval |
---|---|---|---|
2 | |||
3 | h2. Widgets |
||
4 | |||
5 | 3 | Maximilian Seesslen | There is a ODesktop that holds a list of OScreens (or only the curent). |
6 | 1 | Maximilian Seesslen | There is a OScreen that holds a list of OWidgets. |
7 | When the touch is pressed, the corresponding button can be determined. |
||
8 | An signal can be emmited. |
||
9 | 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. |
||
10 | |||
11 | * OButton::draw(): completely draws the widget |
||
12 | * OButton::update(): only draw status-relevant items, e.g. pressed, released, time changed... |
||
13 | |||
14 | 2 | Maximilian Seesslen | All screens can be prepared at start. |
15 | 1 | Maximilian Seesslen | A Screen can be active or inactive. |
16 | 3 | Maximilian Seesslen | |
17 | h2. Touch |
||
18 | |||
19 | XCAL_25; XCAL_215; |
||
20 | X=( 25 + ( ( RAW-XCAL_25 ) / ( ( XCAL_215 - XCAL_25 ) / 190 ) ) |
||
21 | |||
22 | XCAL_25=100 |
||
23 | XCAL_215=2000 |
||
24 | ( 2000 - 100 ) / 190 = 10 RawPerHektoPixel; |
||
25 | |||
26 | 100: |
||
27 | X = 25 + ( ( 100-100) / 10 ) = 100 |
||
28 | |||
29 | 2000: |
||
30 | X = 25 + ( 1900 / 10 ) = 215 |
||
31 | |||
32 | |||
33 | XCAL_25=78 |
||
34 | XCAL_215=589 |
||
35 | rawPerPixel = (589 - 78) / 190 = approx. 2,6894737 |
||
36 | rawPerHektoPixel = ((589 - 78) * 100) / 190 = approx. 268,94737 |
||
37 | X = 25 + ( ( ( 589 - 78 ) * 100 ) / 269 ) = approx. 214,96283 |
||
38 | |||
39 | 2 | Maximilian Seesslen | |
40 | 1 | Maximilian Seesslen | |
41 | h2. Watch |
||
42 | |||
43 | * the OWatch class shows an clock with specific style. |
||
44 | |||
45 | h2. Minutnik |
||
46 | |||
47 | * Main screen; CWatch, Add-Button |
||
48 | * Add-Screen |
||
49 | ** Espresso, Weisswurst, Weiches Ei, Hartes Ei, Nudeln, Pizza, Waschmaschine, Cancel; Height 32 |
||
50 | * Alarm Screen |
||
51 | * Logo, Splash screen at boot time and stand-by-screen |
||
52 | |||
53 | h2. Release v2.0.0 |
||
54 | |||
55 | * Mode-Screen: Minutnik, Clock, StopWatch |