Mercurial > public > ostc4
annotate Discovery/Src/tMenuEditCustom.c @ 830:b7d93ff6b3b2 Evo_2_23
Added selection if an active gas shall be used for deco calculation or not:
In previous version selecting a gas as deco gas automatically activated the gas for deco calculation. Some divers prever to have the deco time displayed which matches to the gas currently in use. These divers kept the gas deactivated unless they switch to it. Features like gas usability visualization or easy gas change using quick selection were not usable for these divers. With introduction of the new option the gas switching / visualization features may be used without having the gas been considered for calculation in the background. The option may be operated in the gas selection menu.
author | Ideenmodellierer |
---|---|
date | Thu, 16 Nov 2023 20:32:09 +0100 |
parents | 7322adb00305 |
children | 2a8af51ab04d |
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 */ |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
47 #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
|
48 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
49 #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
|
50 |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
51 static uint8_t customviewsSubpage = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
52 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
|
53 static const uint8_t* pcv_curchangelist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
54 /* Private function prototypes -----------------------------------------------*/ |
520 | 55 void openEdit_Customview(void); |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
56 void openEdit_BigScreen(void); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
57 void openEdit_MotionCtrl(void); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
58 void openEdit_ViewPort(void); |
520 | 59 void refresh_Customviews(void); |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
60 char customview_TXT2BYTE_helper(uint8_t customViewId); |
820 | 61 char customviewBF_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; |
820 | 114 text[5] = customviewBF_TXT2BYTE_helper(settingsGetPointer()->tX_customViewPrimaryBF); |
541
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 | |
751 | 178 #ifdef ENABLE_CO2_SUPPORT |
179 case LCC_CO2: | |
180 text[4] = TXT_CO2Sensor; | |
181 break; | |
182 #endif | |
737
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
183 case LLC_Compass: |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
184 text[4] = TXT_2BYTE; |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
185 text[5] = TXT2BYTE_Compass; |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
186 |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
187 break; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
188 /* none */ |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
189 case LLC_Empty: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
190 text[4] = '-'; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
191 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
192 default: |
630 | 193 text[4] = 'X'; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
194 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
195 } |
737
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
196 if (text[4] != TXT_2BYTE) { |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
197 text[5] = 0; |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
198 } else { |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
199 text[6] = 0; |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
200 } |
5071d554aaa5
NEW: Add mini compass with marker declination indication
heinrichsweikamp
parents:
706
diff
changeset
|
201 |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
202 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
|
203 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
204 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
205 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
206 |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
207 void refresh_ViewPort(void) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
208 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
209 char text[32]; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
210 uint8_t textIndex = 0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
211 float distance = 0.0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
212 SSettings* pSettings = settingsGetPointer(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
213 GFX_DrawCfgScreen* pdrawScreen; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
214 point_t lowerleft = {0,0}; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
215 point_t upperright = {799,479}; |
575
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
216 float localLimit = 0.1; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
217 uint8_t spotSize = (pSettings->viewPortMode >> 5) & 0x03; |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
218 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
219 text[0] = '\001'; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
220 text[1] = TXT_2BYTE; |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
221 text[2] = TXT2BYTE_MotionCtrl; |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
222 text[3] = 0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
223 write_topline(text); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
224 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
225 text[0] = TXT_2BYTE; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
226 text[1] = TXT2BYTE_CalibView; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
227 text[2] = 0; |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
228 write_label_var( 30, 700, ME_Y_LINE2, &FontT48, text); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
229 |
626
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 textIndex = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
232 text[textIndex++] = TXT_2BYTE; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
233 text[textIndex++] = TXT2BYTE_FocusSpotSize; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
234 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
235 write_label_var( 30, 340, ME_Y_LINE3, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
236 |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
237 textIndex = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
238 text[textIndex++] = TXT_2BYTE; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
239 switch(spotSize) |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
240 { |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
241 case 2: text[textIndex++] = TXT2BYTE_Minimum; break; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
242 case 1: text[textIndex++] = TXT2BYTE_Normal; break; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
243 default: |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
244 case 0: text[textIndex++] = TXT2BYTE_Maximum; break; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
245 } |
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( 500, 800, ME_Y_LINE3, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
248 |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
249 textIndex = 0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
250 text[textIndex++] = TXT_2BYTE; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
251 text[textIndex++] = TXT2BYTE_IndicateFrame; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
252 text[textIndex++] = 0; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
253 write_label_var( 30, 340, ME_Y_LINE4, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
254 textIndex = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
255 text[textIndex++] = '\006' - ((settingsGetPointer()->viewPortMode >> 4) & 1); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
256 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
257 write_label_var( 500, 800, ME_Y_LINE4, &FontT48, text); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
258 textIndex = 0; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
259 text[textIndex++] = TXT_2BYTE; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
260 text[textIndex++] = TXT2BYTE_BoostBacklight; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
261 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
262 write_label_var( 30, 340, ME_Y_LINE5, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
263 textIndex = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
264 snprintf(&text[textIndex],32,"%d",(settingsGetPointer()->viewPortMode & 0x3)); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
265 write_label_var( 500, 800, ME_Y_LINE5, &FontT48, text); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
266 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
267 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
268 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
269 /* test if we are in focus */ |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
270 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
|
271 { |
625
028d8f3a9410
Switch Sector / Scroll detection to vector implementation:
Ideenmodellierer
parents:
604
diff
changeset
|
272 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
|
273 |
575
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
274 /* show "bar graph" indicating the distance to the center point */ |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
275 textIndex = 0; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
276 text[textIndex++] = '\001'; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
277 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
278 if(fabs(distance) < localLimit) |
575
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++] = '+'; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
281 } |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
282 else |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
283 { |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
284 while (localLimit < 0.6) |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
285 { |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
286 localLimit += 0.1; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
287 text[textIndex++] = '-'; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
288 text[textIndex++] = '-'; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
289 if(fabs(distance) < localLimit) |
575
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
290 { |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
291 break; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
292 } |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
293 } |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
294 } |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
295 text[textIndex] = 0; |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
296 write_label_var( 30, 700, ME_Y_LINE1, &FontT48, text); |
86c4baa6ba29
Change style of viewport calibration menu:
Ideenmodellierer
parents:
572
diff
changeset
|
297 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
298 /* MotionCtrl */ |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
299 textIndex = 0; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
300 |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
301 text[textIndex++] = TXT_2BYTE; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
302 text[textIndex++] = TXT2BYTE_MotionCtrl; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
303 text[textIndex++] = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
304 write_label_var( 30, 340, ME_Y_LINE6, &FontT48, text); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
305 textIndex = 0; |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
306 text[textIndex++] = TXT_2BYTE; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
307 switch(settingsGetPointer()->MotionDetection) |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
308 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
309 case MOTION_DETECT_OFF: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
310 text[textIndex++] = TXT2BYTE_MoCtrlNone; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
311 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
312 case MOTION_DETECT_MOVE: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
313 text[textIndex++] = TXT2BYTE_MoCtrlPitch; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
314 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
315 case MOTION_DETECT_SECTOR: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
316 text[textIndex++] = TXT2BYTE_MoCtrlSector; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
317 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
318 case MOTION_DETECT_SCROLL: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
319 text[textIndex++] = TXT2BYTE_MoCtrlScroll; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
320 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
321 default: |
630 | 322 textIndex += snprintf(&text[4],4,"%u",settingsGetPointer()->MotionDetection); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
323 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
324 } |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
325 text[textIndex] = 0; |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
326 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
|
327 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
328 |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
329 if(viewInFocus()) |
552
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 set_Backlight_Boost(settingsGetPointer()->viewPortMode & 0x03); |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
332 if((pSettings->viewPortMode >> 4) & 0x01) |
552
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 pdrawScreen = getMenuEditScreen(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
335 GFX_draw_box(pdrawScreen,lowerleft,upperright,0,CLUT_NiceGreen); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
336 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
337 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
338 else |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
339 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
340 set_Backlight_Boost(0); |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
341 if((pSettings->viewPortMode >> 4) & 0x01) |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
342 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
343 pdrawScreen = getMenuEditScreen(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
344 GFX_draw_box(pdrawScreen,lowerleft,upperright,0,CLUT_MenuTopBackground); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
345 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
346 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
347 resetFocusState(); /* no other instance shall be impacted by the local detection */ |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
348 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
349 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
350 |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
351 void openEdit_Custom(uint8_t line) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
352 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
353 set_globalState_Menu_Line(line); |
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 switch(line) |
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 case 1: |
706
10b7d271b9c4
Bugfix: only reset menu if a new sub menu is created:
Ideenmodellierer
parents:
700
diff
changeset
|
358 default: openEdit_Customview(); |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
359 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
360 case 2: openEdit_BigScreen(); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
361 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
362 case 3: openEdit_CustomviewDivemode(cv_changelist); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
363 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
364 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
|
365 break; |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
366 case 5: openEdit_ViewPort(); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
367 break; |
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 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
370 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
371 /* Private functions ---------------------------------------------------------*/ |
520 | 372 void openEdit_Customview(void) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
373 { |
706
10b7d271b9c4
Bugfix: only reset menu if a new sub menu is created:
Ideenmodellierer
parents:
700
diff
changeset
|
374 resetMenuEdit(CLUT_MenuPageCustomView); |
520 | 375 refresh_Customviews(); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
376 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
377 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
|
378 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
|
379 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
|
380 |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
381 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
|
382 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
|
383 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
384 setEvent(StMCustom1_CViewTimeout, (uint32_t)OnAction_CViewTimeout); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
385 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
|
386 setEvent(StMCustom1_CViewStandardBF, (uint32_t)OnAction_CViewStandardBF); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
387 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
388 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
|
389 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
|
390 } |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
391 |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
392 void openEdit_BigScreen(void) |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
393 { |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
394 uint8_t newValue = 0; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
395 SSettings *pSettings = settingsGetPointer(); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
396 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
397 newValue = pSettings->extraDisplay + 1; |
739 | 398 |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
399 if(newValue >= EXTRADISPLAY_END) |
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 newValue = EXTRADISPLAY_none; |
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 pSettings->extraDisplay = newValue; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
404 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
405 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
|
406 } |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
407 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
408 void openEdit_MotionCtrl(void) |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
409 { |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
410 uint8_t newValue = 0; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
411 SSettings *pSettings = settingsGetPointer(); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
412 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
413 switch(pSettings->MotionDetection) |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
414 { |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
415 case MOTION_DETECT_OFF: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
416 newValue = MOTION_DETECT_MOVE; |
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 case MOTION_DETECT_MOVE: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
419 newValue = MOTION_DETECT_SECTOR; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
420 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
421 case MOTION_DETECT_SECTOR: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
422 newValue = MOTION_DETECT_SCROLL; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
423 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
424 case MOTION_DETECT_SCROLL: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
425 newValue = MOTION_DETECT_OFF; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
426 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
427 default: |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
428 newValue = MOTION_DETECT_OFF; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
429 break; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
430 } |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
431 pSettings->MotionDetection = newValue; |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
432 InitMotionDetection(); |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
433 |
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
434 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
|
435 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
436 |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
437 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
438 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
439 void openEdit_ViewPort(void) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
440 { |
706
10b7d271b9c4
Bugfix: only reset menu if a new sub menu is created:
Ideenmodellierer
parents:
700
diff
changeset
|
441 resetMenuEdit(CLUT_MenuPageCustomView); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
442 refresh_ViewPort(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
443 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
444 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
|
445 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
|
446 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
|
447 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
|
448 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
|
449 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
450 setEvent(StMCustom5_CViewPortCalib, (uint32_t)OnAction_CViewPortCalib); |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
451 setEvent(StMCustom5_CViewPortSpotSize, (uint32_t)OnAction_CViewPortSpot); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
452 setEvent(StMCustom5_CViewPortLayout, (uint32_t)OnAction_CViewPortLayout); |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
453 setEvent(StMCustom5_CViewPortAmbient, (uint32_t)OnAction_CViewPortAmbient); |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
454 setEvent(StMCustom5_CViewPortControl, (uint32_t)OnAction_CViewPortControl); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
455 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
456 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
457 |
520 | 458 char customview_TXT2BYTE_helper(uint8_t customViewId) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
459 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
460 char text = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
461 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
462 switch(customViewId) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
463 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
464 case CVIEW_sensors: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
465 text = TXT2BYTE_O2monitor; |
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_sensors_mV: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
468 text = TXT2BYTE_O2voltage; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
469 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
470 case CVIEW_Compass: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
471 text = TXT2BYTE_Compass; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
472 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
473 case CVIEW_Decolist: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
474 text = TXT2BYTE_Decolist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
475 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
476 case CVIEW_Tissues: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
477 text = TXT2BYTE_Tissues; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
478 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
479 case CVIEW_Profile: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
480 text = TXT2BYTE_Profile; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
481 break; |
531 | 482 case CVIEW_Gaslist: |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
483 text = TXT2BYTE_Gaslist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
484 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
485 case CVIEW_EADTime: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
486 text = TXT2BYTE_Info; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
487 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
488 case CVIEW_SummaryOfLeftCorner: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
489 text = TXT2BYTE_Summary; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
490 break; |
805
dd7ce655db26
Adds a simple countdown timer, available as a custom view in surface and dive mode.
heinrichsweikamp
parents:
751
diff
changeset
|
491 case CVIEW_Timer: |
dd7ce655db26
Adds a simple countdown timer, available as a custom view in surface and dive mode.
heinrichsweikamp
parents:
751
diff
changeset
|
492 text = TXT2BYTE_Timer; |
dd7ce655db26
Adds a simple countdown timer, available as a custom view in surface and dive mode.
heinrichsweikamp
parents:
751
diff
changeset
|
493 break; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
494 case CVIEW_noneOrDebug: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
495 text = TXT2BYTE_DispNoneDbg; |
820 | 496 break; |
497 default: | |
498 break; | |
499 } | |
500 return text; | |
501 } | |
502 char customviewBF_TXT2BYTE_helper(uint8_t customViewId) | |
503 { | |
504 char text = 0; | |
505 | |
506 switch(customViewId) | |
507 { | |
508 case CVIEW_T3_noneOrDebug: | |
509 text = TXT2BYTE_DispNoneDbg; | |
510 break; | |
511 case CVIEW_T3_sensors: | |
512 text = TXT2BYTE_O2monitor; | |
513 break; | |
514 case CVIEW_T3_Compass: | |
515 text = TXT2BYTE_Compass; | |
516 break; | |
517 case CVIEW_T3_Decostop: | |
518 text = TXT2BYTE_Decolist; | |
519 break; | |
520 #ifdef ENABLE_T3_PROFILE_VIEW | |
521 case CVIEW_T3_Profile: | |
522 text = TXT2BYTE_Profile; | |
523 break; | |
524 #endif | |
525 case CVIEW_T3_GasList: | |
526 text = TXT2BYTE_Gaslist; | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
527 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
528 case CVIEW_T3_MaxDepth: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
529 text = TXT2BYTE_MaxDepth; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
530 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
531 case CVIEW_T3_StopWatch: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
532 text = TXT2BYTE_Stopwatch; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
533 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
534 case CVIEW_T3_TTS: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
535 text = TXT2BYTE_TTS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
536 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
537 case CVIEW_T3_ppO2andGas: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
538 text = TXT2BYTE_ppoNair; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
539 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
540 case CVIEW_T3_Navigation: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
541 text = TXT2BYTE_Navigation; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
542 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
543 case CVIEW_T3_DepthData: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
544 text = TXT2BYTE_DepthData; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
545 break; |
542
6960df7ddb09
Added new t3 view showing first deco stop and tts in parallel:
Ideenmodellierer
parents:
541
diff
changeset
|
546 case CVIEW_T3_DecoTTS: |
6960df7ddb09
Added new t3 view showing first deco stop and tts in parallel:
Ideenmodellierer
parents:
541
diff
changeset
|
547 text = TXT2BYTE_DecoTTS; |
6960df7ddb09
Added new t3 view showing first deco stop and tts in parallel:
Ideenmodellierer
parents:
541
diff
changeset
|
548 break; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
549 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
550 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
551 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
552 return text; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
553 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
554 |
520 | 555 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
|
556 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
557 uint8_t value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
558 value = settingsGetPointer()->tX_customViewTimeout; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
559 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
560 if(value < 5) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
561 value = 5; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
562 else if(value < 10) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
563 value = 10; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
564 else if(value < 15) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
565 value = 15; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
566 else if(value < 20) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
567 value = 20; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
568 else if(value < 30) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
569 value = 30; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
570 else if(value < 45) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
571 value = 45; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
572 else if(value < 60) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
573 value = 60; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
574 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
575 value = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
576 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
577 settingsGetPointer()->tX_customViewTimeout = value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
578 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
579 } |
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 |
520 | 582 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
|
583 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
584 uint8_t newValue; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
585 switch(settingsGetPointer()->tX_customViewPrimary) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
586 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
587 case CVIEW_sensors: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
588 newValue = CVIEW_sensors_mV; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
589 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
590 case CVIEW_sensors_mV: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
591 newValue = CVIEW_Compass; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
592 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
593 case CVIEW_Compass: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
594 newValue = CVIEW_Decolist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
595 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
596 case CVIEW_Decolist: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
597 newValue = CVIEW_Tissues; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
598 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
599 case CVIEW_Tissues: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
600 newValue = CVIEW_Profile; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
601 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
602 case CVIEW_Profile: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
603 newValue = CVIEW_Gaslist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
604 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
605 case CVIEW_Gaslist: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
606 newValue = CVIEW_EADTime; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
607 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
608 case CVIEW_EADTime: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
609 newValue = CVIEW_SummaryOfLeftCorner; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
610 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
611 case CVIEW_SummaryOfLeftCorner: |
805
dd7ce655db26
Adds a simple countdown timer, available as a custom view in surface and dive mode.
heinrichsweikamp
parents:
751
diff
changeset
|
612 newValue = CVIEW_Timer; |
dd7ce655db26
Adds a simple countdown timer, available as a custom view in surface and dive mode.
heinrichsweikamp
parents:
751
diff
changeset
|
613 break; |
dd7ce655db26
Adds a simple countdown timer, available as a custom view in surface and dive mode.
heinrichsweikamp
parents:
751
diff
changeset
|
614 case CVIEW_Timer: |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
615 newValue = CVIEW_noneOrDebug; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
616 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
617 case CVIEW_noneOrDebug: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
618 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
619 newValue = CVIEW_sensors; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
620 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
621 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
622 settingsGetPointer()->tX_customViewPrimary = newValue; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
623 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
624 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
625 |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
626 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
|
627 { |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
628 uint8_t index = 0; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
629 uint8_t newValue; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
630 |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
631 /* list contains all views which may be selected => get index of current setting */ |
820 | 632 while((settingsGetPointer()->tX_customViewPrimaryBF != cv_changelist_BS[index]) && (cv_changelist_BS[index] != CVIEW_T3_END)) |
541
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
633 { |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
634 index++; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
635 } |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
636 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
|
637 { |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
638 newValue = cv_changelist_BS[0]; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
639 } |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
640 else |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
641 { |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
642 newValue = cv_changelist_BS[index + 1]; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
643 } |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
644 |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
645 settingsGetPointer()->tX_customViewPrimaryBF = newValue; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
646 return UPDATE_DIVESETTINGS; |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
647 } |
6fbf7cd391cb
Added default view selection and auto return to view to t3 visualization:
Ideenmodellierer
parents:
531
diff
changeset
|
648 |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
649 |
520 | 650 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
|
651 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
652 uint8_t value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
653 value = settingsGetPointer()->tX_userselectedLeftLowerCornerTimeout; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
654 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
655 if(value < 5) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
656 value = 5; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
657 else if(value < 10) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
658 value = 10; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
659 else if(value < 15) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
660 value = 15; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
661 else if(value < 20) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
662 value = 20; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
663 else if(value < 30) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
664 value = 30; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
665 else if(value < 45) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
666 value = 45; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
667 else if(value < 60) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
668 value = 60; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
669 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
670 value = 0; |
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 settingsGetPointer()->tX_userselectedLeftLowerCornerTimeout = value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
673 return UPDATE_DIVESETTINGS; |
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 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
676 |
520 | 677 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
|
678 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
679 uint8_t value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
680 value = settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
681 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
682 value += 1; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
683 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
684 if(value >= LLC_END) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
685 value = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
686 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
687 settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary = value; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
688 return UPDATE_DIVESETTINGS; |
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 |
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 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
|
693 { |
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 uint8_t line = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
696 SSettings *pSettings = settingsGetPointer(); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
697 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
698 switch(editId) |
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 case StMCustom3_CViewSelection1: line = 1; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
701 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
702 case StMCustom3_CViewSelection2: line = 2; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
703 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
704 case StMCustom3_CViewSelection3: line = 3; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
705 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
706 case StMCustom3_CViewSelection4: line = 4; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
707 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
708 case StMCustom3_CViewSelection5: line = 5; |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
709 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
710 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
711 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
712 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
713 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
714 if(pcv_curchangelist == cv_changelist) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
715 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
716 pSettings->cv_configuration ^= 1 << (pcv_curchangelist[customviewsSubpage * 5 + line-1]); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
717 if(t7_GetEnabled_customviews() == 0) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
718 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
719 pSettings->cv_configuration ^= (1 << CVIEW_noneOrDebug); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
720 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
721 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
722 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
723 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
724 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
|
725 if(t3_GetEnabled_customviews() == 0) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
726 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
727 pSettings->cv_config_BigScreen ^= (1 << CVIEW_noneOrDebug); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
728 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
729 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
730 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
731 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
732 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
733 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
734 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
|
735 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
736 customviewsSubpage++; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
737 if(customviewsSubpage == customviewsSubpageMax) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
738 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
739 customviewsSubpage = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
740 } |
750
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
741 CustomviewDivemode_refresh(); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
742 return UPDATE_DIVESETTINGS; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
743 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
744 |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
745 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
|
746 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
747 float heading; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
748 if(settingsGetPointer()->compassInertia) |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
749 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
750 heading = (uint16_t)compass_getCompensated(); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
751 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
752 else |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
753 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
754 heading = (uint16_t)stateUsed->lifeData.compass_heading; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
755 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
756 calibrateViewport(stateUsed->lifeData.compass_roll,stateUsed->lifeData.compass_pitch,heading); |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
757 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
758 return UPDATE_DIVESETTINGS; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
759 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
760 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
|
761 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
762 SSettings* pSettings = settingsGetPointer(); |
700 | 763 if((pSettings->viewPortMode & 0x10) != 0) |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
764 { |
640 | 765 pSettings->viewPortMode &= 0xEF; /* 1110 1111 */ |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
766 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
767 else |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
768 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
769 pSettings->viewPortMode |= 0x10; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
770 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
771 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
772 return UPDATE_DIVESETTINGS; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
773 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
774 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
|
775 { |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
776 SSettings* pSettings = settingsGetPointer(); |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
777 if(((pSettings->viewPortMode +1) & 0x03) <= MAX_BACKLIGHT_BOOST) |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
778 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
779 pSettings->viewPortMode++; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
780 } |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
781 else |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
782 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
783 pSettings->viewPortMode &= 0xFC; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
784 } |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
785 |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
786 return UPDATE_DIVESETTINGS; |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
787 } |
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
788 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
789 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
|
790 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
791 uint8_t newValue = 0; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
792 SSettings *pSettings = settingsGetPointer(); |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
793 |
604
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
794 switch(pSettings->MotionDetection) |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
795 { |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
796 case MOTION_DETECT_OFF: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
797 newValue = MOTION_DETECT_MOVE; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
798 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
799 case MOTION_DETECT_MOVE: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
800 newValue = MOTION_DETECT_SECTOR; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
801 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
802 case MOTION_DETECT_SECTOR: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
803 newValue = MOTION_DETECT_SCROLL; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
804 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
805 case MOTION_DETECT_SCROLL: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
806 newValue = MOTION_DETECT_OFF; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
807 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
808 default: |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
809 newValue = MOTION_DETECT_OFF; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
810 break; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
811 } |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
812 pSettings->MotionDetection = newValue; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
813 return UPDATE_DIVESETTINGS; |
fb5bb04ad914
Merged menu items of viewport and motion control:
Ideenmodellierer
parents:
600
diff
changeset
|
814 } |
552
531e7818b737
Added menu structure to acces viewport calibration:
Ideenmodellierer
parents:
542
diff
changeset
|
815 |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
816 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
|
817 { |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
818 uint8_t newValue = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
819 SSettings *pSettings = settingsGetPointer(); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
820 |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
821 newValue = ((pSettings->viewPortMode >> 5) + 1) & 0x03; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
822 if(newValue > MAX_FOCUS_LIMITER) |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
823 { |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
824 newValue = 0; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
825 } |
640 | 826 pSettings->viewPortMode &= 0x9F; /* 1001 1111 */ |
626
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
827 pSettings->viewPortMode |= (newValue << 5); |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
828 return UPDATE_DIVESETTINGS; |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
829 } |
3e1a0e267f38
Added option to select sensitivity of focus detection:
Ideenmodellierer
parents:
625
diff
changeset
|
830 |
520 | 831 void openEdit_CustomviewDivemode(const uint8_t* pcv_changelist) |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
832 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
833 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
834 SSettings *pSettings = settingsGetPointer(); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
835 char text[MAX_PAGE_TEXTSIZE]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
836 uint8_t textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
837 uint32_t id; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
838 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
839 uint8_t i; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
840 |
706
10b7d271b9c4
Bugfix: only reset menu if a new sub menu is created:
Ideenmodellierer
parents:
700
diff
changeset
|
841 resetMenuEdit(CLUT_MenuPageCustomView); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
842 customviewsSubpageMax = (tHome_getNumberOfAvailableCVs(pcv_changelist) / CV_PER_PAGE) + 1; |
531 | 843 |
844 if(pcv_curchangelist != pcv_changelist) /* new selection base? => reset page index */ | |
845 { | |
846 customviewsSubpage = 0; | |
847 } | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
848 pcv_curchangelist = pcv_changelist; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
849 |
520 | 850 CustomviewDivemode_refresh(pcv_changelist); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
851 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
852 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
|
853 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
854 textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
855 id = pcv_changelist[customviewsSubpage * 5 + i]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
856 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
|
857 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
858 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
859 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
860 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
861 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
862 if(pcv_changelist == cv_changelist) |
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 text[textPointer++] = '\006' - CHECK_BIT_THOME(pSettings->cv_configuration,id); |
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 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
|
869 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
870 text[textPointer++] = ' '; |
520 | 871 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
|
872 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
873 switch(i) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
874 { |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
875 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
|
876 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
877 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
|
878 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
879 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
|
880 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
881 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
|
882 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
883 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
|
884 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
885 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
886 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
887 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
888 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
889 } |
750
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
890 for(;i<5;i++) /* clear empty lines in case menu shows less than 5 entries */ |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
891 { |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
892 switch(i) |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
893 { |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
894 case 0: write_label_var( 30, 800, ME_Y_LINE1, &FontT48, ""); |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
895 break; |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
896 case 1: write_label_var( 30, 800, ME_Y_LINE2, &FontT48, ""); |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
897 break; |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
898 case 2: write_label_var( 30, 800, ME_Y_LINE3, &FontT48, ""); |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
899 break; |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
900 case 3: write_label_var( 30, 800, ME_Y_LINE4, &FontT48, ""); |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
901 break; |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
902 case 4: write_label_var( 30, 800, ME_Y_LINE5, &FontT48, ""); |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
903 break; |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
904 default: |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
905 break; |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
906 }; |
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
907 } |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
908 if(customviewsSubpageMax != 1) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
909 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
910 textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
911 text[textPointer++] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
912 text[textPointer++] = TXT2BYTE_ButtonNext; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
913 text[textPointer] = 0; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
914 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
|
915 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
916 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
917 /* 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
|
918 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
|
919 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
920 id = pcv_changelist[customviewsSubpage * 5 + i]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
921 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
|
922 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
923 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
924 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
925 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
926 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
927 switch(i) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
928 { |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
929 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
|
930 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
931 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
|
932 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
933 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
|
934 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
935 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
|
936 break; |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
937 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
|
938 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
939 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
940 default: |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
941 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
942 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
943 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
944 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
945 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
946 if(customviewsSubpageMax != 1) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
947 { |
521
e221cf762f45
Move Bigfont and motion Ctrl selection menu out of custom view submenu:
Ideenmodellierer
parents:
520
diff
changeset
|
948 setEvent(StMCustom3_CViewSelection6,(uint32_t)OnAction_Customview_NextPage); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
949 } |
750
6bd21ebe1a93
Avoid blinking in customer view selection page:
Ideenmodellierer
parents:
739
diff
changeset
|
950 |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
951 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
952 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
953 |
520 | 954 void openEdit_CustomviewDivemodeMenu(uint8_t line) |
955 { | |
956 static uint8_t customviewsSubpage = 0; | |
957 SSettings *pSettings = settingsGetPointer(); | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
958 |
815
ce8f71217f45
Bugfix CustomView selection during dive mode:
Ideenmodellierer
parents:
805
diff
changeset
|
959 customviewsSubpageMax = (tHome_getNumberOfAvailableCVs(cv_changelist) / CV_PER_PAGE) + 1; |
520 | 960 |
961 if((line == 6) || (cv_changelist[customviewsSubpage * 5 + line-1] == CVIEW_END)) /* select next set of views */ | |
962 { | |
963 customviewsSubpage++; | |
815
ce8f71217f45
Bugfix CustomView selection during dive mode:
Ideenmodellierer
parents:
805
diff
changeset
|
964 if(customviewsSubpage == customviewsSubpageMax) |
520 | 965 { |
966 customviewsSubpage = 0; | |
967 } | |
968 set_CustomsviewsSubpage(customviewsSubpage); | |
969 /* rebuild the selection page with the next set of customer views */ | |
815
ce8f71217f45
Bugfix CustomView selection during dive mode:
Ideenmodellierer
parents:
805
diff
changeset
|
970 updateSpecificMenu(StMSYS); |
520 | 971 openMenu(0); |
972 } | |
973 else | |
974 { | |
975 pSettings->cv_configuration ^= 1 << (cv_changelist[customviewsSubpage * 5 + line-1]); | |
976 if(t7_GetEnabled_customviews() == 0) | |
977 { | |
978 pSettings->cv_configuration ^= (1 << CVIEW_noneOrDebug); | |
979 } | |
980 InitMotionDetection(); /* consider new view setup for view selection by motion */ | |
981 exitMenuEdit_to_Menu_with_Menu_Update(); | |
982 } | |
983 } | |
984 | |
985 uint8_t OnAction_ExtraDisplay (uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) | |
986 { | |
987 uint8_t newValue; | |
988 | |
989 newValue = settingsGetPointer()->extraDisplay + 1; | |
739 | 990 |
520 | 991 if(newValue >= EXTRADISPLAY_END) |
992 { | |
993 newValue = EXTRADISPLAY_none; | |
994 } | |
995 settingsGetPointer()->extraDisplay = newValue; | |
996 return UNSPECIFIC_RETURN; | |
997 } | |
998 | |
999 void CustomviewDivemode_refresh() | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1000 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1001 SSettings *pSettings = settingsGetPointer(); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1002 char text[MAX_PAGE_TEXTSIZE]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1003 uint8_t textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1004 uint32_t id; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1005 |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1006 uint8_t i; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1007 |
531 | 1008 text[textPointer++] = '\001'; |
1009 text[textPointer++] = TXT_2BYTE; | |
1010 text[textPointer++] = TXT2BYTE_SelectCustomviews; | |
1011 text[textPointer++] = ' '; | |
1012 text[textPointer++] = '1' + customviewsSubpage; | |
1013 text[textPointer++] = 0; | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1014 write_topline(text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1015 |
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 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
|
1018 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1019 textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1020 id = pcv_curchangelist[customviewsSubpage * 5 + i]; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1021 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
|
1022 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1023 break; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1024 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1025 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1026 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1027 if(pcv_curchangelist == cv_changelist) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1028 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1029 text[textPointer++] = '\006' - CHECK_BIT_THOME(pSettings->cv_configuration,id); |
820 | 1030 text[textPointer++] = ' '; |
1031 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
|
1032 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1033 else |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1034 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1035 text[textPointer++] = '\006' - CHECK_BIT_THOME(pSettings->cv_config_BigScreen,id); |
820 | 1036 text[textPointer++] = ' '; |
1037 textPointer += snprintf(&text[textPointer], 60, "%c%c\n\r", TXT_2BYTE, customviewBF_TXT2BYTE_helper(id)); | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1038 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1039 |
820 | 1040 switch(i) |
1041 { | |
1042 case 0: write_label_var( 30, 800, ME_Y_LINE1, &FontT48, text); | |
1043 break; | |
1044 case 1: write_label_var( 30, 800, ME_Y_LINE2, &FontT48, text); | |
1045 break; | |
1046 case 2: write_label_var( 30, 800, ME_Y_LINE3, &FontT48, text); | |
1047 break; | |
1048 case 3: write_label_var( 30, 800, ME_Y_LINE4, &FontT48, text); | |
1049 break; | |
1050 case 4: write_label_var( 30, 800, ME_Y_LINE5, &FontT48, text); | |
1051 break; | |
1052 default: | |
1053 break; | |
1054 } | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1055 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1056 } |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1057 if(customviewsSubpageMax != 1) |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1058 { |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1059 textPointer = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1060 text[textPointer++] = TXT_2BYTE; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1061 text[textPointer++] = TXT2BYTE_ButtonNext; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1062 text[textPointer] = 0; |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1063 write_label_var( 30, 800, ME_Y_LINE6, &FontT48, text); |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1064 } |
515
218ac999e96b
Added missing display of button labels in refresh function:
Ideenmodellierer
parents:
506
diff
changeset
|
1065 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
diff
changeset
|
1066 } |