comparison Discovery/Inc/tHome.h @ 493:b560e474e319

Added possibility to switch between "classic" bigfont views and a selection with a new information combination New strings for the selection have been added and the menu handling has been updated to enable the selection.
author Ideenmodellierer
date Mon, 24 Aug 2020 19:36:18 +0200
parents 39c147e47c1c
children 06b21f1e47a5
comparison
equal deleted inserted replaced
492:4ce932235578 493:b560e474e319
40 #include "text_multilanguage.h" 40 #include "text_multilanguage.h"
41 #include "settings.h" 41 #include "settings.h"
42 #include "data_central.h" 42 #include "data_central.h"
43 #include "data_exchange.h" 43 #include "data_exchange.h"
44 #include "check_warning.h" 44 #include "check_warning.h"
45 #include "configuration.h"
45 46
46 extern const uint16_t BigFontSeperationLeftRight; // in t3.c 47 extern const uint16_t BigFontSeperationLeftRight; // in t3.c
47 extern const uint16_t BigFontSeperationTopBottom; // in t3.c 48 extern const uint16_t BigFontSeperationTopBottom; // in t3.c
48 49
49 #define MAX_AGE_DECOINFO_MS (120000) 50 #define MAX_AGE_DECOINFO_MS (120000)
51 enum EXTRADISPLAYS 52 enum EXTRADISPLAYS
52 { 53 {
53 EXTRADISPLAY_none = 0, 54 EXTRADISPLAY_none = 0,
54 EXTRADISPLAY_BIGFONT, 55 EXTRADISPLAY_BIGFONT,
55 EXTRADISPLAY_DECOGAME, 56 EXTRADISPLAY_DECOGAME,
57 #ifdef ENABLE_BIGFONT_VX
58 EXTRADISPLAY_BIGFONT2,
59 #endif
56 EXTRADISPLAY_END 60 EXTRADISPLAY_END
57 }; 61 };
58 62
59 enum CUSTOMVIEWS 63 enum CUSTOMVIEWS
60 { 64 {
77 CVIEW_T3_ppO2andGas, 81 CVIEW_T3_ppO2andGas,
78 CVIEW_T3_StopWatch, 82 CVIEW_T3_StopWatch,
79 CVIEW_T3_GasList, 83 CVIEW_T3_GasList,
80 CVIEW_T3_Temperature, 84 CVIEW_T3_Temperature,
81 CVIEW_T3_ApnoeSurfaceInfo, 85 CVIEW_T3_ApnoeSurfaceInfo,
86 #ifdef ENABLE_BIGFONT_VX
87 CVIEW_T3_Navigation,
88 CVIEW_T3_DepthData,
89 #endif
82 CVIEW_T3_END 90 CVIEW_T3_END
83 }; 91 };
84 92
85 // for custom view switch on/off 161122 hw 93 // for custom view switch on/off 161122 hw
86 extern const uint8_t cv_changelist[]; 94 extern const uint8_t cv_changelist[];
95 extern const uint8_t cv_changelist_BS[];
96 #ifdef ENABLE_BIGFONT_VX
97 extern const uint8_t cv_changelist_BSV2[];
98 #endif
99
87 #define CHECK_BIT_THOME(var,pos) (((var)>>(pos)) & 1) 100 #define CHECK_BIT_THOME(var,pos) (((var)>>(pos)) & 1)
88 101
89 typedef struct 102 typedef struct
90 { 103 {
91 uint16_t Hours; 104 uint16_t Hours;
132 void t3_basics_show_customview_warnings(GFX_DrawCfgWindow* tXc1); 145 void t3_basics_show_customview_warnings(GFX_DrawCfgWindow* tXc1);
133 void t3_basics_refresh_customview(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode); 146 void t3_basics_refresh_customview(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode);
134 void t3_basics_refresh_apnoeRight(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode); 147 void t3_basics_refresh_apnoeRight(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode);
135 //void _findNextStop(const uint16_t *list, uint8_t *depthOut, uint16_t *lengthOut); 148 //void _findNextStop(const uint16_t *list, uint8_t *depthOut, uint16_t *lengthOut);
136 void t3_basics_colorscheme_mod(char *text); 149 void t3_basics_colorscheme_mod(char *text);
137 void t3_basics_change_customview(uint8_t *tX_selection_customview, const uint8_t *tX_customviews, uint8_t action); 150 void t3_basics_change_customview(uint8_t *tX_selection_customview, uint8_t *tX_customviews, uint8_t action);
138 151
139 uint8_t tHome_show_lost_connection_count(GFX_DrawCfgScreen *ScreenToWriteOn); 152 uint8_t tHome_show_lost_connection_count(GFX_DrawCfgScreen *ScreenToWriteOn);
140 153
141 #endif /* THOME_H */ 154 #endif /* THOME_H */