source: svn/newcon3bcm2_21bu/dst/app/src/kview/OSD/App_OSD_Common.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1/****************************************************************************
2* NAME: App_OSD_Common.h
3*----------------------------------------------------------------------------
4* Copyright (c) DIGITAL STREAM Technology Inc.
5*----------------------------------------------------------------------------
6* CREATED_BY: Yong Dae Park
7* CREATION_DATE: 2009/10/16
8* $Author: x2silo $
9* $Revision: 1.0 $
10* $Date: 2009/10/16 19:02:09 $
11*----------------------------------------------------------------------------
12* PURPOSE:
13* -
14*****************************************************************************/
15
16#ifndef __APP_OSD_COMMON_H__
17#define __APP_OSD_COMMON_H__
18
19/*_____ I N C L U D E __________________________________________*/
20
21#include "DHL_Graphic.h"
22#include "DMG_Draw.h"
23#include "DMG_Menu.h"
24
25#include "App_Fnc_Time.h"
26#include "App_Fnc_NvRam.h"
27
28#if COMMENT
29____Overview____(){}
30#endif
31
32
33
34
35
36/*_____ D E F I N I T I O N ____________________________________*/
37
38#if COMMENT
39____Config____(){}
40#endif
41
42#define APP_PLANE_DISP  0
43#define APP_PLANE_WRITE 1
44#define APP_PLANE_TEMP1 2
45#define APP_PLANE_TEMP2 3
46
47
48
49#if COMMENT
50____Types____(){}
51#endif
52
53
54
55#if 0
56#define PRINT_STR DMG_PrintStr
57#define PRINT_STR_EX DMG_PrintStrEx
58
59typedef char *tMenuText;
60#else
61typedef struct {
62        char *s1; //eng
63        char *s2; //spa
64        char *s3; //kor
65} tMenuText;
66
67#define GET_STR_TEST(s) \
68{\
69        tMenuText pt={"a", "B", "c"};\
70        char *t;\
71        t=App_NVM_GetMenuLang()==0?pt.s1:App_NVM_GetMenuLang()==1?pt.s2:pt.s3;\
72        strcpy(s, t);\
73}
74
75
76#define GET_STR(s,ps) \
77{\
78        tMenuText pt=ps;\
79        s=App_NVM_GetMenuLang()==0?pt.s1:App_NVM_GetMenuLang()==1?pt.s2:pt.s3;\
80}
81
82#define GET_STR2(s,ps) \
83{\
84        tMenuText pt=ps;\
85        char *t;\
86        t=App_NVM_GetMenuLang()==0?pt.s1:App_NVM_GetMenuLang()==1?pt.s2:pt.s3;\
87        strcpy(s, t);\
88}
89
90#define PRINT_STR(x, y, ps, c) \
91{\
92        tMenuText pt=ps;\
93        char *s=App_NVM_GetMenuLang()==0?pt.s1:App_NVM_GetMenuLang()==1?pt.s2:pt.s3;\
94        DMG_PrintStr(x, y, s, c);\
95}
96       
97#define PRINT_STR_EX(x, y, w, h, ps, c, o) \
98{\
99        tMenuText pt=ps;\
100        char *s=App_NVM_GetMenuLang()==0?pt.s1:App_NVM_GetMenuLang()==1?pt.s2:pt.s3;\
101        DMG_PrintStrEx(x, y, w, h, s, c, o);\
102}
103
104#endif
105#define DRAW_IMAGE DMG_DrawImagePng
106typedef void *tMenuImage;
107
108
109#if COMMENT
110____Variables____(){}
111#endif
112
113
114
115
116
117#if COMMENT
118____NvParam____(){}
119#endif
120
121
122
123
124
125/*_____ F U N C T I O N ________________________________________*/
126
127#if COMMENT
128____Function____(){}
129#endif
130
131/* Scroll */
132void App_OSD_DrawScroll(int x, int y, int id, int num_pos, int cur_pos, BOOL bsel);
133
134/* Screen backup/restore */
135void App_OSD_BackupScreen(int x, int y, int w, int h);
136void App_OSD_RestoreScreen(int x, int y, int w, int h);
137
138void App_MakeDateTimeString(char *buf, APP_TIME_T tm, int nMode);
139
140void App_OSD_CommonBox1(int x, int y, int w, int h, int gap, int lineW, UINT32 outBgColor, UINT32 inBgColor, UINT32 lineColor);
141void App_OSD_CommonBox2(int x, int y, int w, int h, int lineW, UINT32 bgColor, UINT32 inLineColor, UINT32 outLineColor);
142void App_OSD_CommonBox3(int x, int y, int w, int h, UINT32 bgColor);
143void App_OSD_DrawButton(int mode, int x, int y, int w);
144void App_OSD_DrawProgressBar(int mode, int x, int y,  int partWidth, int percent);
145
146#endif /* __APP_OSD_COMMON_H__ */
Note: See TracBrowser for help on using the repository browser.