Mercurial > public > ostc4
annotate Discovery/Src/tMenuEditCustom.c @ 676:c855753af9a6 Betatest
Allow longer scrubber time
Do not limit the user.
Signed-off-by: Jan Mulder <jan@jlmulder.nl>
author | Jan Mulder <jan@jlmulder.nl> |
---|---|
date | Mon, 22 Nov 2021 19:39:11 +0100 |
parents | 1b995079c045 |
children | c28c09017210 |
rev | line source |
---|---|
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1 /////////////////////////////////////////////////////////////////////////////// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
2 /// -*- coding: UTF-8 -*- |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
3 /// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
4 /// \file Discovery/Src/tMenuEditXtra.c |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
5 /// \brief Menu Edit Xtra - Specials in Divemode like Reset Stopwatch |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
6 /// \author heinrichs weikamp gmbh |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
7 /// \date 02-Mar-2015 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
8 /// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
9 /// \details |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
10 /// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
11 /// $Id$ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
12 /////////////////////////////////////////////////////////////////////////////// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
13 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
14 /// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
15 /// This program is free software: you can redistribute it and/or modify |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
16 /// it under the terms of the GNU General Public License as published by |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
17 /// the Free Software Foundation, either version 3 of the License, or |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
18 /// (at your option) any later version. |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
19 /// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
20 /// This program is distributed in the hope that it will be useful, |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
21 /// but WITHOUT ANY WARRANTY; without even the implied warranty of |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
22 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
23 /// GNU General Public License for more details. |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
24 /// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
25 /// You should have received a copy of the GNU General Public License |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
26 /// along with this program. If not, see <http://www.gnu.org/licenses/>. |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
27 ////////////////////////////////////////////////////////////////////////////// |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
28 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
29 /* Includes ------------------------------------------------------------------*/ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
30 #include "tMenuEditCustom.h" |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
31 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
32 #include "gfx_fonts.h" |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
33 #include "simulation.h" |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
34 #include "timer.h" |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
35 #include "tMenuEdit.h" |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
36 #include "tHome.h" // for enum CUSTOMVIEWS and init_t7_compass() |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
37 #include "t3.h" |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
38 #include "t7.h" |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
39 #include "data_exchange_main.h" |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
40 #include "motion.h" |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
41 #include "tMenu.h" |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
42 #include "tMenuSystem.h" |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
43 #include <math.h> |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
44 |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
45 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
46 #define CV_PER_PAGE (5u) /* number of cv selections shown at one page */ |
520 | 47 #define CV_SUBPAGE_MAX (2u) /* max number of customer view selection pages */ |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
48 #define MAX_BACKLIGHT_BOOST (2u) /* max number of backlight levels which may be increased during focus state */ |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
49 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
50 #define MAX_FOCUS_LIMITER (2u) /* max number for reducing the spot used for focus detection */ |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
51 |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
52 static uint8_t customviewsSubpage = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
53 static uint8_t customviewsSubpageMax = 0; /* number of pages needed to display all selectable views */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
54 static const uint8_t* pcv_curchangelist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
55 /* Private function prototypes -----------------------------------------------*/ |
520 | 56 void openEdit_Customview(void); |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
57 void openEdit_BigScreen(void); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
58 void openEdit_MotionCtrl(void); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
59 void openEdit_ViewPort(void); |
520 | 60 void refresh_Customviews(void); |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
61 char customview_TXT2BYTE_helper(uint8_t customViewId); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
62 /* Announced function prototypes -----------------------------------------------*/ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
63 uint8_t OnAction_CViewTimeout (uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
64 uint8_t OnAction_CViewStandard (uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
65 uint8_t OnAction_CViewStandardBF(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
66 uint8_t OnAction_CornerTimeout (uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
67 uint8_t OnAction_CornerStandard(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
68 uint8_t OnAction_CViewPortCalib(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
69 uint8_t OnAction_CViewPortLayout(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
70 uint8_t OnAction_CViewPortAmbient(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
71 uint8_t OnAction_CViewPortControl(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
72 uint8_t OnAction_CViewPortSpot(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
73 /* Exported functions --------------------------------------------------------*/ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
74 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
75 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
76 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
77 |
520 | 78 void refresh_Customviews(void) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
79 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
80 char text[32]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
81 uint8_t textpointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
82 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
83 // header |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
84 text[0] = '\001'; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
85 text[1] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
86 text[2] = TXT2BYTE_Customviews; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
87 text[3] = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
88 write_topline(text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
89 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
90 // custom view center return |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
91 textpointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
92 text[textpointer++] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
93 text[textpointer++] = TXT2BYTE_CViewTimeout; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
94 textpointer += snprintf(&text[textpointer],11," %02u\016\016 %c\017",settingsGetPointer()->tX_customViewTimeout,TXT_Seconds); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
95 write_label_var( 30, 700, ME_Y_LINE1, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
96 |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
97 // custom view center primary |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
98 text[0] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
99 text[1] = TXT2BYTE_CViewStandard; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
100 text[2] = ' '; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
101 text[3] = ' '; |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
102 |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
103 text[4] = TXT_2BYTE; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
104 text[5] = customview_TXT2BYTE_helper(settingsGetPointer()->tX_customViewPrimary); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
105 text[6] = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
106 write_label_var( 30, 700, ME_Y_LINE2, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
107 |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
108 // custom view big font |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
109 text[0] = TXT_2BYTE; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
110 text[1] = TXT2BYTE_ExtraDisplay; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
111 text[2] = ' '; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
112 text[3] = ' '; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
113 text[4] = TXT_2BYTE; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
114 text[5] = customview_TXT2BYTE_helper(settingsGetPointer()->tX_customViewPrimaryBF); |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
115 text[6] = 0; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
116 write_label_var( 30, 700, ME_Y_LINE3, &FontT48, text); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
117 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
118 // field corner return |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
119 textpointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
120 text[textpointer++] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
121 text[textpointer++] = TXT2BYTE_CornerTimeout; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
122 textpointer += snprintf(&text[textpointer],11," %02u\016\016 %c\017",settingsGetPointer()->tX_userselectedLeftLowerCornerTimeout,TXT_Seconds); |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
123 write_label_var( 30, 700, ME_Y_LINE5, &FontT48, text); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
124 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
125 // field corner primary |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
126 text[0] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
127 text[1] = TXT2BYTE_CornerStandard; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
128 text[2] = ' '; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
129 text[3] = ' '; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
130 switch(settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
131 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
132 /* Temperature */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
133 case LLC_Temperature: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
134 text[4] = TXT_Temperature; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
135 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
136 /* Average Depth */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
137 case LLC_AverageDepth: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
138 text[4] = TXT_AvgDepth; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
139 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
140 /* ppO2 */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
141 case LLC_ppO2: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
142 text[4] = TXT_ppO2; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
143 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
144 /* Stop Uhr */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
145 case LLC_Stopwatch: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
146 text[4] = TXT_Stopwatch; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
147 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
148 /* Ceiling */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
149 case LLC_Ceiling: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
150 text[4] = TXT_Ceiling; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
151 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
152 /* Future TTS */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
153 case LLC_FutureTTS: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
154 text[4] = TXT_FutureTTS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
155 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
156 /* CNS */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
157 case LLC_CNS: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
158 text[4] = TXT_CNS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
159 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
160 case LLC_GF: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
161 text[4] = TXT_ActualGradient; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
162 break; |
656 | 163 case LLC_ScrubberTime: |
164 text[4] = TXT_ScrubTime; | |
165 break; | |
166 | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
167 #ifdef ENABLE_BOTTLE_SENSOR |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
168 case LCC_BottleBar: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
169 text[4] = TXT_AtemGasVorrat; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
170 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
171 #endif |
662 | 172 |
173 #ifdef ENABLE_PSCR_MODE | |
174 case LCC_SimPpo2: | |
175 text[4] = TXT_SimPpo2; | |
176 break; | |
177 #endif | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
178 /* none */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
179 case LLC_Empty: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
180 text[4] = '-'; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
181 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
182 default: |
630 | 183 text[4] = 'X'; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
184 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
185 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
186 text[5] = 0; |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
187 write_label_var( 30, 700, ME_Y_LINE6, &FontT48, text); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
188 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
189 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
190 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
191 |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
192 void refresh_ViewPort(void) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
193 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
194 char text[32]; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
195 uint8_t textIndex = 0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
196 float distance = 0.0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
197 SSettings* pSettings = settingsGetPointer(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
198 GFX_DrawCfgScreen* pdrawScreen; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
199 point_t lowerleft = {0,0}; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
200 point_t upperright = {799,479}; |
575
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
201 float localLimit = 0.1; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
202 uint8_t spotSize = (pSettings->viewPortMode >> 5) & 0x03; |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
203 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
204 text[0] = '\001'; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
205 text[1] = TXT_2BYTE; |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
206 text[2] = TXT2BYTE_MotionCtrl; |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
207 text[3] = 0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
208 write_topline(text); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
209 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
210 text[0] = TXT_2BYTE; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
211 text[1] = TXT2BYTE_CalibView; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
212 text[2] = 0; |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
213 write_label_var( 30, 700, ME_Y_LINE2, &FontT48, text); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
214 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
215 |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
216 textIndex = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
217 text[textIndex++] = TXT_2BYTE; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
218 text[textIndex++] = TXT2BYTE_FocusSpotSize; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
219 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
220 write_label_var( 30, 340, ME_Y_LINE3, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
221 |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
222 textIndex = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
223 text[textIndex++] = TXT_2BYTE; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
224 switch(spotSize) |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
225 { |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
226 case 2: text[textIndex++] = TXT2BYTE_Minimum; break; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
227 case 1: text[textIndex++] = TXT2BYTE_Normal; break; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
228 default: |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
229 case 0: text[textIndex++] = TXT2BYTE_Maximum; break; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
230 } |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
231 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
232 write_label_var( 500, 800, ME_Y_LINE3, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
233 |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
234 textIndex = 0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
235 text[textIndex++] = TXT_2BYTE; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
236 text[textIndex++] = TXT2BYTE_IndicateFrame; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
237 text[textIndex++] = 0; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
238 write_label_var( 30, 340, ME_Y_LINE4, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
239 textIndex = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
240 text[textIndex++] = '\006' - ((settingsGetPointer()->viewPortMode >> 4) & 1); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
241 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
242 write_label_var( 500, 800, ME_Y_LINE4, &FontT48, text); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
243 textIndex = 0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
244 text[textIndex++] = TXT_2BYTE; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
245 text[textIndex++] = TXT2BYTE_BoostBacklight; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
246 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
247 write_label_var( 30, 340, ME_Y_LINE5, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
248 textIndex = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
249 snprintf(&text[textIndex],32,"%d",(settingsGetPointer()->viewPortMode & 0x3)); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
250 write_label_var( 500, 800, ME_Y_LINE5, &FontT48, text); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
251 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
252 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
253 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
254 /* test if we are in focus */ |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
255 if((pSettings->viewPitch != 0.0) || (pSettings->viewRoll != 0.0) || (pSettings->viewYaw != 0.0)) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
256 { |
625
028d8f3a9410
Switch Sector / Scroll detection to vector implementation:
Ideenmodellierer
parents:
604
diff
changeset
|
257 distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading, MOTION_ENABLE_ALL); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
258 |
575
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
259 /* show "bar graph" indicating the distance to the center point */ |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
260 textIndex = 0; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
261 text[textIndex++] = '\001'; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
262 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
263 if(fabs(distance) < localLimit) |
575
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
264 { |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
265 text[textIndex++] = '+'; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
266 } |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
267 else |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
268 { |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
269 while (localLimit < 0.6) |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
270 { |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
271 localLimit += 0.1; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
272 text[textIndex++] = '-'; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
273 text[textIndex++] = '-'; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
274 if(fabs(distance) < localLimit) |
575
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
275 { |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
276 break; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
277 } |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
278 } |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
279 } |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
280 text[textIndex] = 0; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
281 write_label_var( 30, 700, ME_Y_LINE1, &FontT48, text); |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
282 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
283 /* MotionCtrl */ |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
284 textIndex = 0; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
285 |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
286 text[textIndex++] = TXT_2BYTE; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
287 text[textIndex++] = TXT2BYTE_MotionCtrl; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
288 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
289 write_label_var( 30, 340, ME_Y_LINE6, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
290 textIndex = 0; |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
291 text[textIndex++] = TXT_2BYTE; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
292 switch(settingsGetPointer()->MotionDetection) |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
293 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
294 case MOTION_DETECT_OFF: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
295 text[textIndex++] = TXT2BYTE_MoCtrlNone; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
296 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
297 case MOTION_DETECT_MOVE: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
298 text[textIndex++] = TXT2BYTE_MoCtrlPitch; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
299 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
300 case MOTION_DETECT_SECTOR: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
301 text[textIndex++] = TXT2BYTE_MoCtrlSector; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
302 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
303 case MOTION_DETECT_SCROLL: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
304 text[textIndex++] = TXT2BYTE_MoCtrlScroll; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
305 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
306 default: |
630 | 307 textIndex += snprintf(&text[4],4,"%u",settingsGetPointer()->MotionDetection); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
308 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
309 } |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
310 text[textIndex] = 0; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
311 write_label_var(500, 800, ME_Y_LINE6, &FontT48, text); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
312 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
313 |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
314 if(viewInFocus()) |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
315 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
316 set_Backlight_Boost(settingsGetPointer()->viewPortMode & 0x03); |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
317 if((pSettings->viewPortMode >> 4) & 0x01) |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
318 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
319 pdrawScreen = getMenuEditScreen(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
320 GFX_draw_box(pdrawScreen,lowerleft,upperright,0,CLUT_NiceGreen); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
321 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
322 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
323 else |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
324 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
325 set_Backlight_Boost(0); |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
326 if((pSettings->viewPortMode >> 4) & 0x01) |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
327 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
328 pdrawScreen = getMenuEditScreen(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
329 GFX_draw_box(pdrawScreen,lowerleft,upperright,0,CLUT_MenuTopBackground); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
330 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
331 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
332 resetFocusState(); /* no other instance shall be impacted by the local detection */ |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
333 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
334 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
335 |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
336 void openEdit_Custom(uint8_t line) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
337 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
338 set_globalState_Menu_Line(line); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
339 resetMenuEdit(CLUT_MenuPageCustomView); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
340 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
341 switch(line) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
342 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
343 case 1: |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
344 default: openEdit_Customview(); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
345 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
346 case 2: openEdit_BigScreen(); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
347 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
348 case 3: openEdit_CustomviewDivemode(cv_changelist); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
349 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
350 case 4: openEdit_CustomviewDivemode(cv_changelist_BS); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
351 break; |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
352 case 5: openEdit_ViewPort(); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
353 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
354 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
355 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
356 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
357 /* Private functions ---------------------------------------------------------*/ |
520 | 358 void openEdit_Customview(void) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
359 { |
520 | 360 refresh_Customviews(); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
361 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
362 write_field_button(StMCustom1_CViewTimeout, 400, 700, ME_Y_LINE1, &FontT48, ""); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
363 write_field_button(StMCustom1_CViewStandard, 400, 700, ME_Y_LINE2, &FontT48, ""); |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
364 write_field_button(StMCustom1_CViewStandardBF, 400, 700, ME_Y_LINE3, &FontT48, ""); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
365 |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
366 write_field_button(StMCustom1_CornerTimeout, 400, 700, ME_Y_LINE5, &FontT48, ""); |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
367 write_field_button(StMCustom1_CornerStandard, 400, 700, ME_Y_LINE6, &FontT48, ""); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
368 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
369 setEvent(StMCustom1_CViewTimeout, (uint32_t)OnAction_CViewTimeout); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
370 setEvent(StMCustom1_CViewStandard, (uint32_t)OnAction_CViewStandard); |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
371 setEvent(StMCustom1_CViewStandardBF, (uint32_t)OnAction_CViewStandardBF); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
372 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
373 setEvent(StMCustom1_CornerTimeout, (uint32_t)OnAction_CornerTimeout); |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
374 setEvent(StMCustom1_CornerStandard, (uint32_t)OnAction_CornerStandard); |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
375 } |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
376 |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
377 void openEdit_BigScreen(void) |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
378 { |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
379 uint8_t newValue = 0; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
380 SSettings *pSettings = settingsGetPointer(); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
381 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
382 newValue = pSettings->extraDisplay + 1; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
383 if(newValue == EXTRADISPLAY_DECOGAME) /* Decogame not yet implemented */ |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
384 { |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
385 newValue++; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
386 } |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
387 if(newValue >= EXTRADISPLAY_END) |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
388 { |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
389 newValue = EXTRADISPLAY_none; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
390 } |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
391 pSettings->extraDisplay = newValue; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
392 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
393 exitMenuEdit_to_Menu_with_Menu_Update_do_not_write_settings_for_this_only(); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
394 } |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
395 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
396 void openEdit_MotionCtrl(void) |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
397 { |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
398 uint8_t newValue = 0; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
399 SSettings *pSettings = settingsGetPointer(); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
400 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
401 switch(pSettings->MotionDetection) |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
402 { |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
403 case MOTION_DETECT_OFF: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
404 newValue = MOTION_DETECT_MOVE; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
405 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
406 case MOTION_DETECT_MOVE: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
407 newValue = MOTION_DETECT_SECTOR; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
408 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
409 case MOTION_DETECT_SECTOR: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
410 newValue = MOTION_DETECT_SCROLL; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
411 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
412 case MOTION_DETECT_SCROLL: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
413 newValue = MOTION_DETECT_OFF; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
414 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
415 default: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
416 newValue = MOTION_DETECT_OFF; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
417 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
418 } |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
419 pSettings->MotionDetection = newValue; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
420 InitMotionDetection(); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
421 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
422 exitMenuEdit_to_Menu_with_Menu_Update_do_not_write_settings_for_this_only(); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
423 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
424 |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
425 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
426 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
427 void openEdit_ViewPort(void) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
428 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
429 refresh_ViewPort(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
430 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
431 write_field_button(StMCustom5_CViewPortCalib, 400, 700, ME_Y_LINE2, &FontT48, ""); |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
432 write_field_button(StMCustom5_CViewPortSpotSize,400, 700, ME_Y_LINE3, &FontT48, ""); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
433 write_field_button(StMCustom5_CViewPortLayout, 400, 700, ME_Y_LINE4, &FontT48, ""); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
434 write_field_button(StMCustom5_CViewPortAmbient, 400, 700, ME_Y_LINE5, &FontT48, ""); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
435 write_field_button(StMCustom5_CViewPortControl, 400, 700, ME_Y_LINE6, &FontT48, ""); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
436 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
437 setEvent(StMCustom5_CViewPortCalib, (uint32_t)OnAction_CViewPortCalib); |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
438 setEvent(StMCustom5_CViewPortSpotSize, (uint32_t)OnAction_CViewPortSpot); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
439 setEvent(StMCustom5_CViewPortLayout, (uint32_t)OnAction_CViewPortLayout); |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
440 setEvent(StMCustom5_CViewPortAmbient, (uint32_t)OnAction_CViewPortAmbient); |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
441 setEvent(StMCustom5_CViewPortControl, (uint32_t)OnAction_CViewPortControl); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
442 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
443 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
444 |
520 | 445 char customview_TXT2BYTE_helper(uint8_t customViewId) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
446 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
447 char text = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
448 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
449 switch(customViewId) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
450 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
451 case CVIEW_sensors: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
452 text = TXT2BYTE_O2monitor; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
453 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
454 case CVIEW_sensors_mV: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
455 text = TXT2BYTE_O2voltage; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
456 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
457 case CVIEW_Compass: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
458 text = TXT2BYTE_Compass; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
459 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
460 case CVIEW_Decolist: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
461 case CVIEW_T3_Decostop: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
462 text = TXT2BYTE_Decolist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
463 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
464 case CVIEW_Tissues: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
465 text = TXT2BYTE_Tissues; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
466 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
467 case CVIEW_Profile: |
600
a48a1cd983af
Added compile switch for new T3 View Profile
Ideenmodellierer
parents:
594
diff
changeset
|
468 #ifdef ENABLE_T3_PROFILE_VIEW |
594
280c11153080
Added compile switch for new T3 View Profile
Ideenmodellierer
parents:
575
diff
changeset
|
469 case CVIEW_T3_Profile: |
600
a48a1cd983af
Added compile switch for new T3 View Profile
Ideenmodellierer
parents:
594
diff
changeset
|
470 #endif |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
471 text = TXT2BYTE_Profile; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
472 break; |
531 | 473 case CVIEW_Gaslist: |
515
218ac999e96b
Added missing display of button labels in refresh function:
Ideenmodellierer
parents:
506
diff
changeset
|
474 case CVIEW_T3_GasList: |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
475 text = TXT2BYTE_Gaslist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
476 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
477 case CVIEW_EADTime: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
478 text = TXT2BYTE_Info; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
479 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
480 case CVIEW_SummaryOfLeftCorner: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
481 text = TXT2BYTE_Summary; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
482 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
483 case CVIEW_noneOrDebug: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
484 text = TXT2BYTE_DispNoneDbg; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
485 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
486 case CVIEW_T3_MaxDepth: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
487 text = TXT2BYTE_MaxDepth; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
488 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
489 case CVIEW_T3_StopWatch: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
490 text = TXT2BYTE_Stopwatch; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
491 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
492 case CVIEW_T3_TTS: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
493 text = TXT2BYTE_TTS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
494 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
495 case CVIEW_T3_ppO2andGas: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
496 text = TXT2BYTE_ppoNair; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
497 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
498 case CVIEW_T3_Navigation: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
499 text = TXT2BYTE_Navigation; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
500 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
501 case CVIEW_T3_DepthData: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
502 text = TXT2BYTE_DepthData; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
503 break; |
542
6960df7ddb09
Added new t3 view showing first deco stop and tts in parallel:
Ideenmodellierer
parents:
541
diff
changeset
|
504 case CVIEW_T3_DecoTTS: |
6960df7ddb09
Added new t3 view showing first deco stop and tts in parallel:
Ideenmodellierer
parents:
541
diff
changeset
|
505 text = TXT2BYTE_DecoTTS; |
6960df7ddb09
Added new t3 view showing first deco stop and tts in parallel:
Ideenmodellierer
parents:
541
diff
changeset
|
506 break; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
507 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
508 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
509 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
510 return text; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
511 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
512 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
513 |
520 | 514 uint8_t OnAction_CViewTimeout(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
515 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
516 uint8_t value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
517 value = settingsGetPointer()->tX_customViewTimeout; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
518 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
519 if(value < 5) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
520 value = 5; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
521 else if(value < 10) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
522 value = 10; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
523 else if(value < 15) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
524 value = 15; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
525 else if(value < 20) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
526 value = 20; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
527 else if(value < 30) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
528 value = 30; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
529 else if(value < 45) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
530 value = 45; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
531 else if(value < 60) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
532 value = 60; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
533 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
534 value = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
535 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
536 settingsGetPointer()->tX_customViewTimeout = value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
537 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
538 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
539 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
540 |
520 | 541 uint8_t OnAction_CViewStandard(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
542 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
543 uint8_t newValue; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
544 switch(settingsGetPointer()->tX_customViewPrimary) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
545 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
546 case CVIEW_sensors: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
547 newValue = CVIEW_sensors_mV; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
548 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
549 case CVIEW_sensors_mV: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
550 newValue = CVIEW_Compass; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
551 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
552 case CVIEW_Compass: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
553 newValue = CVIEW_Decolist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
554 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
555 case CVIEW_Decolist: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
556 newValue = CVIEW_Tissues; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
557 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
558 case CVIEW_Tissues: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
559 newValue = CVIEW_Profile; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
560 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
561 case CVIEW_Profile: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
562 newValue = CVIEW_Gaslist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
563 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
564 case CVIEW_Gaslist: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
565 newValue = CVIEW_EADTime; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
566 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
567 case CVIEW_EADTime: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
568 newValue = CVIEW_SummaryOfLeftCorner; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
569 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
570 case CVIEW_SummaryOfLeftCorner: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
571 newValue = CVIEW_noneOrDebug; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
572 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
573 case CVIEW_noneOrDebug: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
574 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
575 newValue = CVIEW_sensors; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
576 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
577 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
578 settingsGetPointer()->tX_customViewPrimary = newValue; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
579 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
580 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
581 |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
582 uint8_t OnAction_CViewStandardBF(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
583 { |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
584 uint8_t index = 0; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
585 uint8_t newValue; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
586 |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
587 /* list contains all views which may be selected => get index of current setting */ |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
588 while((settingsGetPointer()->tX_customViewPrimaryBF != cv_changelist_BS[index]) || (cv_changelist_BS[index] == CVIEW_T3_END)) |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
589 { |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
590 index++; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
591 } |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
592 if((cv_changelist_BS[index] == CVIEW_T3_END) || (cv_changelist_BS[index+1] == CVIEW_T3_END)) /* invalid or last setting */ |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
593 { |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
594 newValue = cv_changelist_BS[0]; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
595 } |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
596 else |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
597 { |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
598 newValue = cv_changelist_BS[index + 1]; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
599 } |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
600 |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
601 settingsGetPointer()->tX_customViewPrimaryBF = newValue; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
602 return UPDATE_DIVESETTINGS; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
603 } |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
604 |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
605 |
520 | 606 uint8_t OnAction_CornerTimeout(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
607 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
608 uint8_t value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
609 value = settingsGetPointer()->tX_userselectedLeftLowerCornerTimeout; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
610 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
611 if(value < 5) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
612 value = 5; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
613 else if(value < 10) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
614 value = 10; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
615 else if(value < 15) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
616 value = 15; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
617 else if(value < 20) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
618 value = 20; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
619 else if(value < 30) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
620 value = 30; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
621 else if(value < 45) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
622 value = 45; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
623 else if(value < 60) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
624 value = 60; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
625 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
626 value = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
627 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
628 settingsGetPointer()->tX_userselectedLeftLowerCornerTimeout = value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
629 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
630 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
631 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
632 |
520 | 633 uint8_t OnAction_CornerStandard(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
634 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
635 uint8_t value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
636 value = settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
637 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
638 value += 1; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
639 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
640 if(value >= LLC_END) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
641 value = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
642 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
643 settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary = value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
644 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
645 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
646 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
647 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
648 uint8_t OnAction_Customview_Toggle(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
649 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
650 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
651 uint8_t line = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
652 SSettings *pSettings = settingsGetPointer(); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
653 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
654 switch(editId) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
655 { |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
656 case StMCustom3_CViewSelection1: line = 1; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
657 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
658 case StMCustom3_CViewSelection2: line = 2; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
659 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
660 case StMCustom3_CViewSelection3: line = 3; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
661 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
662 case StMCustom3_CViewSelection4: line = 4; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
663 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
664 case StMCustom3_CViewSelection5: line = 5; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
665 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
666 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
667 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
668 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
669 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
670 if(pcv_curchangelist == cv_changelist) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
671 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
672 pSettings->cv_configuration ^= 1 << (pcv_curchangelist[customviewsSubpage * 5 + line-1]); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
673 if(t7_GetEnabled_customviews() == 0) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
674 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
675 pSettings->cv_configuration ^= (1 << CVIEW_noneOrDebug); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
676 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
677 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
678 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
679 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
680 pSettings->cv_config_BigScreen ^= 1 << (pcv_curchangelist[customviewsSubpage * 5 + line-1]); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
681 if(t3_GetEnabled_customviews() == 0) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
682 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
683 pSettings->cv_config_BigScreen ^= (1 << CVIEW_noneOrDebug); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
684 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
685 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
686 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
687 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
688 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
689 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
690 uint8_t OnAction_Customview_NextPage(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
691 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
692 customviewsSubpage++; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
693 if(customviewsSubpage == customviewsSubpageMax) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
694 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
695 customviewsSubpage = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
696 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
697 resetMenuEdit(CLUT_MenuPageCustomView); /* rebuild page */ |
520 | 698 openEdit_CustomviewDivemode(pcv_curchangelist); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
699 |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
700 tMenuEdit_select(StMCustom3_CViewSelection6); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
701 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
702 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
703 |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
704 uint8_t OnAction_CViewPortCalib(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
705 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
706 float heading; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
707 if(settingsGetPointer()->compassInertia) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
708 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
709 heading = (uint16_t)compass_getCompensated(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
710 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
711 else |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
712 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
713 heading = (uint16_t)stateUsed->lifeData.compass_heading; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
714 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
715 calibrateViewport(stateUsed->lifeData.compass_roll,stateUsed->lifeData.compass_pitch,heading); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
716 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
717 return UPDATE_DIVESETTINGS; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
718 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
719 uint8_t OnAction_CViewPortLayout(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
720 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
721 SSettings* pSettings = settingsGetPointer(); |
662 | 722 if(((pSettings->viewPortMode >> 4) & 0x10) != 0) |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
723 { |
640 | 724 pSettings->viewPortMode &= 0xEF; /* 1110 1111 */ |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
725 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
726 else |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
727 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
728 pSettings->viewPortMode |= 0x10; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
729 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
730 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
731 return UPDATE_DIVESETTINGS; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
732 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
733 uint8_t OnAction_CViewPortAmbient(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
734 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
735 SSettings* pSettings = settingsGetPointer(); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
736 if(((pSettings->viewPortMode +1) & 0x03) <= MAX_BACKLIGHT_BOOST) |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
737 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
738 pSettings->viewPortMode++; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
739 } |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
740 else |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
741 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
742 pSettings->viewPortMode &= 0xFC; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
743 } |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
744 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
745 return UPDATE_DIVESETTINGS; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
746 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
747 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
748 uint8_t OnAction_CViewPortControl(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
749 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
750 uint8_t newValue = 0; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
751 SSettings *pSettings = settingsGetPointer(); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
752 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
753 switch(pSettings->MotionDetection) |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
754 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
755 case MOTION_DETECT_OFF: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
756 newValue = MOTION_DETECT_MOVE; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
757 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
758 case MOTION_DETECT_MOVE: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
759 newValue = MOTION_DETECT_SECTOR; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
760 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
761 case MOTION_DETECT_SECTOR: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
762 newValue = MOTION_DETECT_SCROLL; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
763 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
764 case MOTION_DETECT_SCROLL: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
765 newValue = MOTION_DETECT_OFF; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
766 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
767 default: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
768 newValue = MOTION_DETECT_OFF; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
769 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
770 } |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
771 pSettings->MotionDetection = newValue; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
772 return UPDATE_DIVESETTINGS; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
773 } |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
774 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
775 uint8_t OnAction_CViewPortSpot(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
776 { |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
777 uint8_t newValue = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
778 SSettings *pSettings = settingsGetPointer(); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
779 |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
780 newValue = ((pSettings->viewPortMode >> 5) + 1) & 0x03; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
781 if(newValue > MAX_FOCUS_LIMITER) |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
782 { |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
783 newValue = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
784 } |
640 | 785 pSettings->viewPortMode &= 0x9F; /* 1001 1111 */ |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
786 pSettings->viewPortMode |= (newValue << 5); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
787 return UPDATE_DIVESETTINGS; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
788 } |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
789 |
520 | 790 void openEdit_CustomviewDivemode(const uint8_t* pcv_changelist) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
791 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
792 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
793 SSettings *pSettings = settingsGetPointer(); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
794 char text[MAX_PAGE_TEXTSIZE]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
795 uint8_t textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
796 uint32_t id; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
797 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
798 uint8_t i; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
799 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
800 customviewsSubpageMax = (tHome_getNumberOfAvailableCVs(pcv_changelist) / CV_PER_PAGE) + 1; |
531 | 801 |
802 if(pcv_curchangelist != pcv_changelist) /* new selection base? => reset page index */ | |
803 { | |
804 customviewsSubpage = 0; | |
805 } | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
806 pcv_curchangelist = pcv_changelist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
807 |
520 | 808 CustomviewDivemode_refresh(pcv_changelist); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
809 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
810 for(i=0; i<5;i++) /* fill maximum 5 items and leave last one for sub page selection */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
811 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
812 textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
813 id = pcv_changelist[customviewsSubpage * 5 + i]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
814 if((id == CVIEW_END) || (id == CVIEW_T3_END)) /* last list item? */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
815 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
816 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
817 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
818 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
819 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
820 if(pcv_changelist == cv_changelist) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
821 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
822 text[textPointer++] = '\006' - CHECK_BIT_THOME(pSettings->cv_configuration,id); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
823 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
824 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
825 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
826 text[textPointer++] = '\006' - CHECK_BIT_THOME(pSettings->cv_config_BigScreen,id); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
827 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
828 text[textPointer++] = ' '; |
520 | 829 textPointer += snprintf(&text[textPointer], 60, "%c%c\n\r", TXT_2BYTE, customview_TXT2BYTE_helper(id)); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
830 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
831 switch(i) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
832 { |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
833 case 0: write_field_button(StMCustom3_CViewSelection1, 30, 800, ME_Y_LINE1, &FontT48, ""); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
834 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
835 case 1: write_field_button(StMCustom3_CViewSelection2, 30, 800, ME_Y_LINE2, &FontT48, ""); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
836 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
837 case 2: write_field_button(StMCustom3_CViewSelection3, 30, 800, ME_Y_LINE3, &FontT48, ""); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
838 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
839 case 3: write_field_button(StMCustom3_CViewSelection4, 30, 800, ME_Y_LINE4, &FontT48, ""); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
840 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
841 case 4: write_field_button(StMCustom3_CViewSelection5, 30, 800, ME_Y_LINE5, &FontT48, ""); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
842 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
843 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
844 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
845 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
846 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
847 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
848 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
849 if(customviewsSubpageMax != 1) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
850 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
851 textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
852 text[textPointer++] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
853 text[textPointer++] = TXT2BYTE_ButtonNext; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
854 text[textPointer] = 0; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
855 write_field_button(StMCustom3_CViewSelection6, 30, 800, ME_Y_LINE6, &FontT48, text); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
856 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
857 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
858 /* because of the ID handling inside of the functions, all buttons needs to be assigned before the events may be set => have the same loop twice */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
859 for(i=0; i<5;i++) /* fill maximum 5 items and leave last one for sub page selection */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
860 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
861 id = pcv_changelist[customviewsSubpage * 5 + i]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
862 if((id == CVIEW_END) || (id == CVIEW_T3_END)) /* last list item? */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
863 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
864 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
865 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
866 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
867 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
868 switch(i) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
869 { |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
870 case 0: setEvent(StMCustom3_CViewSelection1, (uint32_t)OnAction_Customview_Toggle); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
871 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
872 case 1: setEvent(StMCustom3_CViewSelection2, (uint32_t)OnAction_Customview_Toggle); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
873 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
874 case 2: setEvent(StMCustom3_CViewSelection3, (uint32_t)OnAction_Customview_Toggle); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
875 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
876 case 3: setEvent(StMCustom3_CViewSelection4, (uint32_t)OnAction_Customview_Toggle); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
877 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
878 case 4: setEvent(StMCustom3_CViewSelection5, (uint32_t)OnAction_Customview_Toggle); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
879 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
880 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
881 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
882 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
883 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
884 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
885 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
886 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
887 if(customviewsSubpageMax != 1) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
888 { |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
889 setEvent(StMCustom3_CViewSelection6,(uint32_t)OnAction_Customview_NextPage); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
890 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
891 for(;i<5;i++) /* clear empty lines in case menu shows less than 5 entries */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
892 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
893 switch(i) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
894 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
895 case 0: write_label_var( 30, 800, ME_Y_LINE1, &FontT48, ""); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
896 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
897 case 1: write_label_var( 30, 800, ME_Y_LINE2, &FontT48, ""); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
898 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
899 case 2: write_label_var( 30, 800, ME_Y_LINE3, &FontT48, ""); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
900 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
901 case 3: write_label_var( 30, 800, ME_Y_LINE4, &FontT48, ""); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
902 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
903 case 4: write_label_var( 30, 800, ME_Y_LINE5, &FontT48, ""); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
904 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
905 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
906 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
907 }; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
908 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
909 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
910 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
911 |
520 | 912 void openEdit_CustomviewDivemodeMenu(uint8_t line) |
913 { | |
914 static uint8_t customviewsSubpage = 0; | |
915 SSettings *pSettings = settingsGetPointer(); | |
916 char text[MAX_PAGE_TEXTSIZE]; | |
917 uint16_t tabPosition; | |
918 uint32_t id; | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
919 |
520 | 920 |
921 if((line == 6) || (cv_changelist[customviewsSubpage * 5 + line-1] == CVIEW_END)) /* select next set of views */ | |
922 { | |
923 customviewsSubpage++; | |
924 if(customviewsSubpage == CV_SUBPAGE_MAX) | |
925 { | |
926 customviewsSubpage = 0; | |
927 } | |
928 set_CustomsviewsSubpage(customviewsSubpage); | |
929 /* rebuild the selection page with the next set of customer views */ | |
930 id = tMSystem_refresh(0, text, &tabPosition, NULL); | |
931 tM_build_page(id, text, tabPosition, NULL); | |
932 openMenu(0); | |
933 } | |
934 else | |
935 { | |
936 pSettings->cv_configuration ^= 1 << (cv_changelist[customviewsSubpage * 5 + line-1]); | |
937 if(t7_GetEnabled_customviews() == 0) | |
938 { | |
939 pSettings->cv_configuration ^= (1 << CVIEW_noneOrDebug); | |
940 } | |
941 InitMotionDetection(); /* consider new view setup for view selection by motion */ | |
942 exitMenuEdit_to_Menu_with_Menu_Update(); | |
943 } | |
944 } | |
945 | |
946 uint8_t OnAction_ExtraDisplay (uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) | |
947 { | |
948 uint8_t newValue; | |
949 | |
950 newValue = settingsGetPointer()->extraDisplay + 1; | |
951 if(newValue == EXTRADISPLAY_DECOGAME) /* Decogame not yet implemented */ | |
952 { | |
953 newValue++; | |
954 } | |
955 if(newValue >= EXTRADISPLAY_END) | |
956 { | |
957 newValue = EXTRADISPLAY_none; | |
958 } | |
959 settingsGetPointer()->extraDisplay = newValue; | |
960 return UNSPECIFIC_RETURN; | |
961 } | |
962 | |
963 void CustomviewDivemode_refresh() | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
964 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
965 SSettings *pSettings = settingsGetPointer(); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
966 char text[MAX_PAGE_TEXTSIZE]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
967 uint8_t textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
968 uint32_t id; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
969 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
970 uint8_t i; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
971 |
531 | 972 text[textPointer++] = '\001'; |
973 text[textPointer++] = TXT_2BYTE; | |
974 text[textPointer++] = TXT2BYTE_SelectCustomviews; | |
975 text[textPointer++] = ' '; | |
976 text[textPointer++] = '1' + customviewsSubpage; | |
977 text[textPointer++] = 0; | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
978 write_topline(text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
979 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
980 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
981 for(i=0; i<5;i++) /* fill maximum 5 items and leave last one for sub page selection */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
982 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
983 textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
984 id = pcv_curchangelist[customviewsSubpage * 5 + i]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
985 if((id == CVIEW_END) || (id == CVIEW_T3_END)) /* last list item? */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
986 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
987 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
988 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
989 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
990 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
991 if(pcv_curchangelist == cv_changelist) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
992 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
993 text[textPointer++] = '\006' - CHECK_BIT_THOME(pSettings->cv_configuration,id); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
994 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
995 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
996 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
997 text[textPointer++] = '\006' - CHECK_BIT_THOME(pSettings->cv_config_BigScreen,id); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
998 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
999 text[textPointer++] = ' '; |
520 | 1000 textPointer += snprintf(&text[textPointer], 60, "%c%c\n\r", TXT_2BYTE, customview_TXT2BYTE_helper(id)); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1001 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1002 switch(i) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1003 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1004 case 0: write_label_var( 30, 800, ME_Y_LINE1, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1005 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1006 case 1: write_label_var( 30, 800, ME_Y_LINE2, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1007 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1008 case 2: write_label_var( 30, 800, ME_Y_LINE3, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1009 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1010 case 3: write_label_var( 30, 800, ME_Y_LINE4, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1011 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1012 case 4: write_label_var( 30, 800, ME_Y_LINE5, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1013 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1014 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1015 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1016 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1017 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1018 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1019 if(customviewsSubpageMax != 1) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1020 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1021 textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1022 text[textPointer++] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1023 text[textPointer++] = TXT2BYTE_ButtonNext; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1024 text[textPointer] = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1025 write_label_var( 30, 800, ME_Y_LINE6, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1026 } |
515
218ac999e96b
Added missing display of button labels in refresh function:
Ideenmodellierer
parents:
506
diff
changeset
|
1027 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1028 } |