Mercurial > public > ostc4
comparison Discovery/Src/tMenuCustom.c @ 506:998529b3e142
Added new top level menu for customization of views
In the previous versions all menus were occupied by menu option. To indroduce the selection views for data visualization a new tab had to be added.
The menu "Customize views" has been moded to the new tab but not yet removed from the previous one. In addition a view for selection of big font options has been added (including multilanguage strings and other infrastructure)
| author | Ideenmodellierer |
|---|---|
| date | Sun, 30 Aug 2020 17:19:23 +0200 |
| parents | |
| children | e221cf762f45 |
comparison
equal
deleted
inserted
replaced
| 505:06b21f1e47a5 | 506:998529b3e142 |
|---|---|
| 1 /////////////////////////////////////////////////////////////////////////////// | |
| 2 /// -*- coding: UTF-8 -*- | |
| 3 /// | |
| 4 /// \file Discovery/Src/tMenuCustom.c | |
| 5 /// \brief Menu Custom - Provide access to custom view options | |
| 6 /// \author heinrichs weikamp gmbh | |
| 7 /// \date 25-Aug-2020 | |
| 8 /// | |
| 9 /// \details | |
| 10 /// | |
| 11 /// $Id$ | |
| 12 /////////////////////////////////////////////////////////////////////////////// | |
| 13 /// \par Copyright (c) 2014-2020 Heinrichs Weikamp gmbh | |
| 14 /// | |
| 15 /// This program is free software: you can redistribute it and/or modify | |
| 16 /// it under the terms of the GNU General Public License as published by | |
| 17 /// the Free Software Foundation, either version 3 of the License, or | |
| 18 /// (at your option) any later version. | |
| 19 /// | |
| 20 /// This program is distributed in the hope that it will be useful, | |
| 21 /// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 22 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 23 /// GNU General Public License for more details. | |
| 24 /// | |
| 25 /// You should have received a copy of the GNU General Public License | |
| 26 /// along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 27 ////////////////////////////////////////////////////////////////////////////// | |
| 28 | |
| 29 /* Includes ------------------------------------------------------------------*/ | |
| 30 #include <stdio.h> | |
| 31 #include <string.h> | |
| 32 #include "tMenu.h" | |
| 33 #include "tStructure.h" | |
| 34 #include "tMenuCustom.h" | |
| 35 #include "text_multilanguage.h" | |
| 36 #include "data_central.h" | |
| 37 | |
| 38 | |
| 39 /* Exported functions --------------------------------------------------------*/ | |
| 40 | |
| 41 uint32_t tMCustom_refresh(uint8_t line, char *text, uint16_t *tab, char *subtext) | |
| 42 { | |
| 43 uint8_t textPointer; | |
| 44 | |
| 45 textPointer = 0; | |
| 46 *tab = 550; | |
| 47 *subtext = 0; | |
| 48 | |
| 49 if((line == 0) || (line == 1)) | |
| 50 { | |
| 51 text[textPointer++] = TXT_2BYTE; | |
| 52 text[textPointer++] = TXT2BYTE_Customviews; | |
| 53 } | |
| 54 text[textPointer++] = '\n'; | |
| 55 text[textPointer++] = '\r'; | |
| 56 text[textPointer] = 0; | |
| 57 | |
| 58 if((line == 0) || (line == 2)) | |
| 59 { | |
| 60 text[textPointer++] = TXT_2BYTE; | |
| 61 text[textPointer++] = TXT2BYTE_SelectCustomviews; | |
| 62 } | |
| 63 strcpy(&text[textPointer],"\n\r"); | |
| 64 textPointer += 2; | |
| 65 | |
| 66 if((line == 0) || (line == 3)) | |
| 67 { | |
| 68 text[textPointer++] = TXT_2BYTE; | |
| 69 text[textPointer++] = TXT2BYTE_SelectBigFont; | |
| 70 } | |
| 71 strcpy(&text[textPointer],"\n\r"); | |
| 72 textPointer += 2; | |
| 73 | |
| 74 return StMCustom; | |
| 75 } | |
| 76 |
