⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdi_strings.c

📁 Gui of OSD programming
💻 C
📖 第 1 页 / 共 5 页
字号:
/******************************************************************************/
/**
 * @file    gdi_strings.c
 *
 * @brief   This module contains all strings for the project and the basic
 *          string writing functions.
 *
 * @note    (c) 2001 - 2003 Micronas GmbH. All rights reserved.
 *          Any use of the Software is permitted only in accordance
 *          with the terms set forth in the Disclaimer text file.
 *
 * @author  ACOM software team
 ******************************************************************************/

#define _SOURCE_GDI_STRINGS_



/******************************************************************************
 *
 *  INCLUDE FILES:
 ******************************************************************************/

#include <system.h>

#include <mnu_main.h>
#include <gdi_main.h>
#ifdef __PFONT__
#include <core_ramset.h>
#include <PFont.h>
#include <PFontTab.h>
#include <ctrl_msgparse.h>
#endif



/******************************************************************************
 *
 *  LOCAL FUNCTIONS PROTOTYPES:
 ******************************************************************************/

static uint16_t GetItemStartPosition(const uint16_t stringId, 
                                     const osdLanguages_t language);
#ifdef __HELP_SYSTEM__
static void WriteHelpString(const uint16_t *pwString, const uint16_t length);
#endif



/******************************************************************************
 *
 *  STATIC VARIABLES:
 ******************************************************************************/

#ifdef __HELP_SYSTEM__
static bool_t writeHelpString;
static bool_t helpMainMenuStrings;
#endif

#ifdef __X_RAM__
static bool_t writeSymbol; /* help flag to tell GDI_WriteStringFromBuffer that
                              curent write is Symbol */
#endif

#ifdef __PFONT__
static uint16_t   nextDrcs1_g;
static uint8_t    monoSpaced_g;
#endif

/******************************************************************************
 *
 *  CODE ARRAYS:
 ******************************************************************************/

code uint8_t code *pointerToLanguage_g[];

uint16_t code symbols[][6] = {
{CHR_SPACE,CHR_SPACE},
{CHR_SPACE,CHR_SPACE},
{CHR_SPACE,CHR_SPACE},
{CHR_SPACE,CHR_SPACE},
{CHR_SPACE,CHR_SPACE},
{CHR_SPACE,CHR_SPACE}    
};

uint16_t code emptyLine_g[] = {
 CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,
 CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,
 CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,
 CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,
 CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,
 CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE,CHR_SPACE};



/******************************************************************************
 *
 *           Please don't modify the following struct directly !!!
 *           Use EXCEL-Sheet as source and copy the data here in.
 ******************************************************************************/

/* --> First line of datablock GDI_STRINGS.C-BASIC [se5ba34apw] from Mints GDI_STRINGS Excel-sheet. Do not modify! */
#ifdef __ENGLISH__
uint8_t code english_g[] = {
0,
16,
18,21,0,5,
21,16,0,5,
23,21,0,5,
17,16,16,0,5,
33,35,38,
33,68,86,65,78,67,69,68,
48,
51,79,85,82,67,69,26,
51,79,85,78,68,26,
35,79,76,79,82,26,
46,73,67,65,77,26,
38,82,69,69,90,69,
42,33,46,
38,37,34,
45,33,50,
33,48,50,
45,33,57,
42,53,46,
42,53,44,
33,53,39,
51,37,48,
47,35,52,
46,47,54,
36,37,35,
54,69,82,83,73,79,78,0,36,65,84,69,26,
34,85,82,78,0,41,78,0,52,73,77,69,26,
48,82,79,86,73,69,87,0,51,72,69,78,58,72,69,78,
51,89,83,84,69,77,0,41,78,0,36,69,66,85,71,71,73,78,71,
54,69,82,83,73,79,78,8,41,18,35,0,47,38,38,9,
34,69,0,34,85,82,78,73,78,71,0,41,78,0,46,79,0,44,73,77,73,84,
34,69,0,34,85,82,78,73,78,71,0,41,78,
45,73,78,85,84,69,83,0,44,69,70,84,
33,80,80,76,73,67,65,84,73,79,78,0,39,85,73,68,69,
33,48,51,
45,65,78,85,65,76,0,51,69,65,82,67,72,
47,43,26,0,51,84,65,82,84,0,33,85,84,79,0,51,89,78,67,
47,43,26,0,51,84,65,82,84,0,51,69,65,82,67,72,73,78,71,
35,79,65,82,83,69,0,83,67,65,78,78,73,78,71,
38,73,78,69,0,83,67,65,78,78,73,78,71,14,14,14,
51,69,65,82,67,72,0,78,65,77,69,14,14,14,
51,79,82,84,73,78,71,0,83,84,65,84,73,79,78,83,14,14,14,
33,85,68,73,79,
33,85,84,79,
33,85,84,79,0,51,89,78,67,
33,54,35,
37,56,52,17,0,8,51,35,33,50,52,17,9,
47,85,84,80,85,84,0,70,79,82,0,37,56,52,17,
41,78,80,85,84,0,79,70,0,37,56,52,17,
37,56,52,17,0,41,78,80,85,84,0,44,69,86,69,76,
37,56,52,18,0,8,51,35,33,50,52,18,9,
47,85,84,80,85,84,0,70,79,82,0,37,56,52,18,
41,78,80,85,84,0,79,70,0,37,56,52,18,
37,56,52,18,0,41,78,80,85,84,0,44,69,86,69,76,
37,56,52,19,0,8,38,82,79,78,84,13,33,54,9,
34,65,67,75,76,73,71,72,84,
34,65,76,65,78,67,69,
34,65,83,83,
34,34,37,
34,39,
34,44,37,
34,76,85,69,0,51,84,82,69,84,67,72,
34,82,73,71,72,84,78,69,83,83,
35,65,80,84,73,79,78,
35,35,13,45,79,68,69,
35,35,13,50,47,45,0,36,65,84,65,
35,35,17,
35,35,18,
35,35,19,
35,35,20,
52,17,
52,18,
52,19,
52,20,
35,35,0,45,85,84,69,
35,35,0,47,70,70,
35,72,65,78,71,69,0,48,41,46,
35,72,65,78,78,69,76,
52,54,
52,65,66,76,69,
35,72,73,76,68,76,79,67,75,
37,
51,
40,36,45,41,18,8,33,54,24,9,
40,36,45,41,17,8,33,54,23,9,
38,73,82,83,84,0,33,48,51,
41,83,0,65,69,82,73,65,76,0,80,76,85,71,71,69,68,0,73,78,31,
48,82,69,83,83,0,47,43,0,84,79,0,83,84,65,82,84,0,33,48,51,
48,82,69,83,83,0,45,37,46,53,0,84,79,0,69,88,73,84,0,33,48,51,
46,47,0,67,72,65,78,78,69,76,83,0,38,79,85,78,68,1,
50,69,67,72,69,67,75,0,65,69,82,73,65,76,
48,82,69,83,83,0,47,43,0,84,79,0,82,69,83,84,65,82,84,0,33,48,51,
47,43,26,51,65,86,69,0,37,56,41,52,26,41,71,78,79,82,69,
54,39,33,8,33,54,22,9,
57,48,66,48,82,8,33,54,21,9,
38,53,44,44,63,51,35,33,50,52,8,33,54,17,9,
47,80,69,78,19,36,
47,51,36,0,50,69,83,69,84,
33,85,84,79,
48,79,87,69,82,0,47,70,70,0,33,70,84,69,82,
51,69,67,79,78,68,83,
51,54,41,36,37,47,8,33,54,20,9,
51,53,34,0,51,47,53,50,35,37,
45,33,41,46,0,51,47,53,50,35,37,
50,69,71,73,79,78,0,35,79,78,70,73,82,77,
40,33,44,38,63,51,35,33,50,52,8,33,54,18,9,
36,52,54,0,51,69,84,85,80,
46,79,84,0,51,85,80,80,79,82,84,
48,76,69,65,83,69,0,48,82,69,83,83,0,37,88,73,84,
35,76,79,67,75,
48,65,84,84,69,82,78,0,17,
48,65,84,84,69,82,78,0,18,
48,65,84,84,69,82,78,0,19,
48,65,84,84,69,82,78,0,20,
48,65,84,84,69,82,78,0,21,
48,65,84,84,69,82,78,0,22,
48,65,84,84,69,82,78,0,23,
48,65,84,84,69,82,78,0,24,
35,79,76,79,85,82,
35,79,76,79,85,82,0,51,84,65,78,68,65,82,68,
35,79,78,70,73,71,85,82,65,84,73,79,78,
35,79,78,70,73,82,77,
35,79,78,78,69,67,84,73,86,73,84,89,
35,79,78,84,82,65,83,84,
35,79,85,78,84,82,89,
33,85,83,84,82,73,65,
53,51,33,
34,69,76,71,73,85,77,
51,87,73,84,90,69,82,76,65,78,68,
35,90,69,67,72,0,50,69,80,14,
39,69,82,77,65,78,89,
36,69,78,77,65,82,75,
51,80,65,73,78,
38,82,65,78,67,69,
38,73,78,76,65,78,68,
53,0,43,
39,82,69,69,67,69,
40,85,78,71,65,82,89,
41,84,65,76,89,
42,65,80,65,78,
46,79,82,87,65,89,
46,69,84,72,69,82,76,65,78,68,83,
47,84,72,69,82,83,
48,79,82,84,85,71,65,76,
48,79,76,65,78,68,
43,79,82,69,65,
51,87,69,68,69,78,
51,76,79,86,69,78,73,65,
51,76,79,86,65,75,73,65,
52,85,82,75,69,89,
35,48,53,0,47,70,70,
35,52,41,
35,54,34,51,0,8,54,73,68,69,79,9,
36,65,89,76,73,71,72,84,
36,65,84,65,0,51,69,82,86,73,67,69,83,
36,35,37,
36,69,76,69,84,69,
36,69,76,69,84,73,78,71,
47,43,26,0,36,69,76,69,84,69,
51,69,82,86,73,67,69,0,36,69,76,69,84,73,78,71,
36,69,77,79,
51,80,76,73,84,0,51,67,82,69,69,78,0,36,69,77,79,
36,69,77,79,0,44,79,79,80,0,17,
36,69,77,79,0,44,79,79,80,0,18,
36,69,77,79,0,44,79,79,80,0,19,
47,51,36,0,36,69,77,79,
40,79,82,73,90,79,78,84,65,76,0,51,73,90,69,
50,65,67,69,0,45,79,68,69,
36,73,65,71,78,79,83,84,73,67,83,
36,73,65,76,79,71,0,35,76,65,82,73,84,89,
36,43,
36,48,33,
34,
36,15,43,
38,45,
39,
41,
44,
44,7,
45,15,46,
48,82,69,70,14,0,36,85,65,76,0,51,79,85,78,68,
36,89,78,14,34,82,73,71,72,84,78,69,83,83,
47,43,26,37,68,73,84,0,78,65,77,69,
37,78,72,65,78,67,69,77,69,78,84,83,
37,78,84,69,82,0,48,41,46,
37,78,84,69,82,0,79,76,68,0,48,41,46,
37,78,84,69,82,0,78,69,87,0,48,41,46,
45,37,46,53,26,34,65,67,75,0,0,47,43,26,51,85,66,
37,81,85,65,76,73,90,69,82,
17,18,16,0,40,90,
21,16,16,0,40,90,
17,14,21,0,75,40,90,
0,0,21,0,75,40,90,
0,17,16,0,75,40,90,
48,82,69,83,69,84,
37,82,82,79,82,
37,88,84,69,82,78,65,76,15,33,54,17,
37,88,84,69,82,78,65,76,15,33,54,18,
37,88,84,69,82,78,65,76,0,83,79,85,82,67,69,83,
51,41,36,37,0,33,54,15,54,41,36,37,47,8,33,54,19,9,
33,54,19,0,8,50,39,34,9,
33,54,19,0,8,57,53,54,9,
33,54,19,0,8,33,85,84,79,9,
33,54,18,0,8,51,13,54,41,36,37,47,9,
33,54,18,0,8,57,15,35,9,
33,54,18,0,8,33,85,84,79,9,
54,41,36,37,47,8,33,54,19,9,
40,36,0,68,73,71,73,84,65,76,
48,35,0,65,78,65,76,79,71,
38,65,86,79,85,82,73,84,69,0,80,65,71,69,83,
38,34,
38,73,78,69,84,85,78,69,
38,45,36,
38,82,69,81,85,69,78,67,89,
39,82,69,69,78,0,51,84,82,69,84,67,72,
40,65,82,68,87,65,82,69,0,54,69,82,83,73,79,78,
#ifdef __HELP_SYSTEM__
40,69,76,80,
40,69,76,80,26,
50,69,84,85,82,78,0,84,79,0,80,82,69,86,73,79,85,83,0,77,69,78,85,0,66,89,0,2,47,43,2,0,75,69,89,14,
51,69,76,69,67,84,0,65,78,0,73,84,69,77,0,66,89,0,2,35,85,82,83,79,82,0,68,79,87,78,15,85,80,0,75,69,89,83,2,14,
38,79,82,0,35,79,78,84,82,65,83,84,0,11,15,13,0,85,83,69,0,2,35,85,82,83,79,82,0,76,69,70,84,15,82,73,71,72,84,2,0,75,69,89,83,14,
38,79,82,0,34,82,73,71,72,84,78,69,83,83,0,11,15,13,0,85,83,69,0,2,35,85,82,83,79,82,0,76,69,70,84,15,82,73,71,72,84,2,0,75,69,89,83,14,
38,79,82,0,51,65,84,85,82,65,84,73,79,78,0,11,15,13,0,85,83,69,0,2,35,85,82,83,79,82,0,76,69,70,84,15,82,73,71,72,84,2,0,75,69,89,83,14,
35,79,77,66,73,78,69,68,0,83,69,84,84,73,78,71,0,79,70,0,48,69,65,75,73,78,71,0,65,78,68,0,44,52,41,13,71,65,73,78,
51,69,84,84,73,78,71,0,79,70,0,54,73,68,69,79,0,46,79,73,83,69,0,50,69,68,85,67,84,73,79,78,14,
47,78,15,47,70,70,0,83,69,84,84,73,78,71,0,79,70,0,35,79,76,79,85,82,0,52,82,65,78,83,73,69,78,84,0,41,77,80,82,79,86,69,77,69,78,84,14,
47,78,15,47,70,70,0,83,69,84,84,73,78,71,0,79,70,0,51,67,65,78,0,54,69,76,79,67,73,84,89,0,45,79,68,85,76,65,84,73,79,78,14,
34,76,85,69,0,51,84,82,69,84,67,72,0,47,78,15,47,70,70,14,
39,82,69,69,78,0,51,84,82,69,84,67,72,0,47,78,15,47,70,70,14,
51,84,65,82,84,83,0,65,78,0,33,52,51,0,82,85,78,14,0,55,65,82,78,73,78,71,26,0,33,76,76,0,67,85,82,82,69,78,84,89,0,73,78,83,84,65,76,76,69,68,0,80,82,79,71,82,65,77,77,69,83,0,87,73,76,76,0,66,69,0,69,82,65,83,69,68,1,
51,69,76,69,67,84,73,79,78,0,79,70,0,65,86,65,73,76,65,66,76,69,0,51,79,85,78,68,77,79,68,69,83,26,0,45,79,78,79,12,51,84,69,82,69,79,12,36,85,65,76,0,33,12,36,85,65,76,0,34,12,46,41,35,33,45,14,
50,65,68,73,79,0,79,78,
48,82,69,83,83,0,2,47,43,2,0,75,69,89,0,84,79,0,71,69,84,0,77,79,82,69,0,73,78,70,79,82,77,65,84,73,79,78,0,84,79,0,84,72,73,83,0,73,84,69,77,
48,82,69,83,83,0,89,69,76,76,79,87,0,75,69,89,0,84,79,0,83,87,73,84,67,72,0,79,78,0,79,82,0,79,70,70,0,82,65,68,73,79,0,77,69,78,85,14,
52,79,0,69,78,84,69,82,0,51,69,82,86,73,67,69,0,77,79,68,69,0,80,82,69,83,83,0,28,51,72,73,70,84,30,11,28,45,85,84,69,30,0,73,78,0,52,54,13,77,79,68,69,
48,82,69,83,83,0,47,43,0,84,79,0,65,67,84,73,86,65,84,69,0,84,72,69,0,47,78,84,73,77,69,82,14,0,52,72,69,0,52,54,13,83,69,84,0,87,73,76,76,0,83,87,73,84,67,72,0,79,70,70,0,73,77,77,69,68,73,65,84,76,89,14,0,33,70,84,69,82,0,84,72,69,0,47,46,52,41,45,37,0,73,78,84,69,82,86,65,76,0,73,84,0,87,73,76,76,0,83,87,73,84,67,72,0,79,78,0,65,71,65,73,78,14,0,
38,79,82,0,83,89,78,67,72,82,79,78,73,90,73,78,71,0,84,72,69,0,52,54,13,67,76,79,67,75,0,80,82,69,83,83,0,47,43,14,0,52,72,69,0,67,76,79,67,75,0,87,73,76,76,0,66,69,0,83,69,84,0,87,73,84,72,0,83,69,67,79,78,68,83,0,65,67,67,85,82,65,67,89,14,0,33,84,84,69,78,84,73,79,78,26,52,52,56,0,84,73,77,69,0,87,73,76,76,0,79,86,69,82,82,85,76,69,0,84,72,73,83,0,83,69,84,84,73,78,71,14,
#ifdef __IPC_NEW__
40,69,76,80,17,
40,69,76,80,18,
#endif
#else /* add a dummy string (~) for each help string here to avoid compiler errors: */
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
#ifdef __IPC_NEW__
0,
0,
#endif
#endif
51,75,73,80,
51,69,82,86,73,67,69,0,40,73,68,73,78,71,
40,73,68,69,0,29,0,10,
40,73,71,72,
40,79,82,73,90,79,78,84,65,76,
41,
41,35,0,35,79,78,70,73,71,85,82,65,84,73,79,78,
41,78,68,73,86,73,68,85,65,76,
41,78,84,69,82,76,65,67,69,
44,
44,7,
36,69,85,84,83,67,72,
36,85,84,67,72,
37,83,80,65,159,79,76,
38,82,65,78,113,65,73,83,
51,85,79,77,73,
37,78,71,76,73,83,72,
40,69,76,76,73,78,73,75,65,
41,84,65,76,73,65,78,
51,86,69,78,83,75,65,
36,65,78,83,75,
48,79,82,84,85,71,85,123,83,
48,79,76,83,75,73,
50,85,83,83,73,65,78,
35,72,73,78,69,83,69,
44,34,
44,34,36,
44,79,87,
44,79,85,68,78,69,83,83,
40,69,65,68,80,72,79,78,69,
45,
45,0,42,65,80,65,78,
45,0,34,52,51,35,
45,0,43,79,82,69,65,
54,79,76,85,77,69,
34,65,76,65,78,67,69,
14,14,14,47,43,
40,79,82,73,90,79,78,84,65,76,0,48,79,83,73,84,73,79,78,
54,69,82,84,73,67,65,76,0,48,79,83,73,84,73,79,78,
51,65,86,69,
45,69,78,85,
44,65,78,71,85,65,71,69,
44,65,78,71,85,65,71,69,
45,73,67,82,79,78,65,83,0,34,33,51,51,
54,79,73,67,69,
45,73,67,14,0,33,50,47,53,46,36,0,54,73,82,84,14,
45,73,67,14,0,33,50,47,53,46,36,0,45,79,78,79,
45,73,68,
54,73,86,73,68,
45,73,76,68,
35,85,83,84,79,77,
45,79,86,73,69,
45,85,83,73,67,
45,85,84,69,
50,69,78,65,77,69,
51,69,82,86,73,67,69,0,46,65,77,73,78,71,
46,65,86,73,71,65,84,79,82,
46,69,85,84,82,65,76,
46,79,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -