source: svn/newcon3bcm2_21bu/dst/app/src/kview/OSD/App_OSD_SetupWizard.c

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

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

  • Property svn:executable set to *
File size: 16.4 KB
Line 
1
2#include "App_Main.h"
3
4#include "App_OSD_Common.h"
5
6#include "DMW_Channel.h"
7
8#include "App_Fnc_Ucm.h"
9#include "App_Fnc_AutoScan.h"
10
11#include "App_Res_Resources.h"
12
13
14#define C_BG_TB 0xff000000 //top, bottom black
15#define C_BG_BODY 0xff95a4bc   //body 149, 164, 188
16#define C_WHITE 0xffffffff //white
17#define C_YELLOW 0xffffeb00 //yellow
18#define C_PEN1 0xff8ce1ff //Çϴûö
19#define C_PEN2 0xff274370 //ÆÄ¶û»ö
20#define C_BLACK 0xff000000 //°ËÀº»ö
21
22#define MAX_PAGES 5
23
24#define LINE_H 32
25
26static struct {
27        UINT16 id;
28        char *eng;
29        char *spa;
30} p_lang_pool[]={
31        {0, "Setup Wizard", "Asistente de configuraci#f3n"},
32        {1, "Select your language.", "Seleccione su idioma."},
33        {2, ": Select", ": Selecci#f3n"},
34        {3, ": Next", ": Siguiente"},
35        {4, ": Prev.", ": Atr#e1s"},
36        {5, "English", "English"},
37        {6, "Spanish", "Espa#f1ol"},
38        {7, "Spanish", "Espa#f1ol"},
39        {8, "Connect antenna cable to \'ANTENNA IN\'", "Conecte el cable de la antena en"},
40        {9, "connector on converter box.", "\'ANTENNA IN\' del decodificador."},
41        {10, "Confirm that RF cable is correctly connected.", 
42             "Verifique que el cable RF est#e9 conectado\ncorrectamente."},
43        {11, "Press OK to start searching.", "Presione OK para comenzar a buscar."},
44        {12, "%d channels already stored.", "%d canales ya almacenados."},
45        {13, "RF-Air", "RF-Aire"},
46        {14, "Channel", "Canal"},
47        {15, "It takes about 2 minutes to complete.", "La exploraci#f3n durar#e1 aprox. 2 min."}, 
48        {16, "Channel searching..", "Buscando el canal..."},
49        {17, "Restart", "Recomenzar"},
50        {18, "Select your Time Zone", "Seleccione la zona horaria en la que se encuentra"},
51        {19, "Setup is finished.", "La configuraci#f3n ha terminado."},
52        {20, "Use MENU", "Utilice MEN#da cuando necesite"},
53        {21, "Press OK to exit.", "Presione OK para salir."},
54        {22, "%d Channels Searched", "%d Calales Buscados."},
55        {23, "Please check if cable is correctly connected.", 
56                "Por favor compruebe si el cable est#e1\nconectado correctamente"},
57        {24, "Alaska", "Alaska"},
58        {25, "Hawaii", "Hawaii"},
59        {26, "Atlantic", "Atl#e1ntico"},
60        {27, "Estern", "Este"},
61        {28, "Central", "Central"},
62        {29, "Pacific1", "Pac#edfico1"},
63        {30, "Northwest", "Noroeste"},
64//      {29, "Mountain", "Monta#f1a"},
65//      {30, "Pacific", "Pac#edfico"},
66        {31, "Start", "Comenzar"},
67        {32, "Channel %d", "Canal %d"},
68        {33, "OK: Start", "OK: Comenzar"},
69        {34, "OK: Restart", "OK: Recomenzar"},
70        {35, "OK: Stop", "OK: Parar"},
71        {36, "OK: Exit", "OK: Salida"},
72        {37, "%d channels found and stored.", "%d canales encontrados y almacenados."},
73        {38, "to change settings later.", "cambiar la configuraci#f3n."},
74        {39, "Current Time", "Fecha y Hora Actual"},
75        {40, "Pacific2", "Pac#edfico2"},
76};
77
78#define NUM_LANG_POOL (sizeof(p_lang_pool)/sizeof(p_lang_pool[0]))
79
80
81
82
83#define CENTERX(w) ((720-w)/2)
84
85#define LINEH 30
86#define LINEY(i) (90+LINEH*(i))
87
88static struct {
89        UINT16 x;
90        UINT16 y;
91        UINT16 w;
92        UINT16 h;
93} p_image_pos[]=
94{
95        //page1 --0
96        {CENTERX(238), 110, 238, 42}, //welcome
97        {90, LINEY(5), 0, 0}, //select your language
98        {90, LINEY(6), 0, 0}, //selec...½ºÆäÀξî
99        {190, LINEY(7)+10, 18, 18}, //arrow up
100        {190, LINEY(9)+8, 18, 18}, //arrow down
101        {110, LINEY(8)-4, 180, LINEH+8}, //english/spanish
102        {360, LINEY(4), 272, 176},
103       
104        //page2 --7
105        {90, LINEY(0), 0, 0}, //Connect antenna
106        {90, LINEY(1), 0, 0}, //connector
107        {90, LINEY(2), 552, 176}, //image
108        {90, LINEY(8), 540, LINEH*2},
109       
110        //page3 --11
111        {CENTERX(540), LINEY(0)-4, 540, LINEH},
112        {CENTERX(540), LINEY(8), 540, LINEH*2},
113       
114        //page4 --13
115        {CENTERX(540), LINEY(0),  540, LINEH},
116        {CENTERX(18), LINEY(1)+10,  18, LINEH},
117        {CENTERX(180), LINEY(2)-4,  180, LINEH+8},
118        {CENTERX(18), LINEY(3)+8,  18, LINEH},
119        //{CENTERX(360), LINEY(4),  360, LINEH*6},
120        {CENTERX(320), LINEY(4),  320, LINEH*6},
121        {CENTERX(360), LINEY(5)+LINEH/2,  360, LINEH},
122        {CENTERX(360), LINEY(7)+LINEH/2,  360, LINEH},
123       
124        //page5 --18
125        {30, LINEY(2), 360, LINEH},
126        {30, LINEY(4), 360, LINEH},
127    //pagae5 --20
128        {30, LINEY(5), 360, LINEH},
129        {30, LINEY(7), 360, LINEH},
130       
131        {390, LINEY(2), 270, LINEH*6},
132   
133};
134
135#define SPOS(i) p_image_pos[i]
136
137
138
139static struct {
140        UINT8 rf;
141        UINT16 major;
142        UINT16 minor;
143        UINT16 name[16];
144} p_scan_ch_info[5];
145
146static int p_num_scan_ch=0;
147
148static UINT8 p_cur_scan_rf=0; //ÇöÀç scanÇϰí ÀÖ´Â rf ¹øÈ£
149
150static BOOL p_ch_empty; //ä³ÎÀÇ empty »óŸ¦ ³ªÅ¸³¿
151static BOOL p_bfirst=TRUE; //óÀ½ scan ½Ãµµ ¿©ºÎ
152
153static void p_add_scan_ch(int rf, int major, int minor)
154{
155        if(p_num_scan_ch<5) { //¿©ºÐÀÌ Àֱ⠶§¹®¿¡ ¹Ù·Î addÇÔ
156                p_scan_ch_info[p_num_scan_ch].rf=rf;
157                p_scan_ch_info[p_num_scan_ch].major=major;
158                p_scan_ch_info[p_num_scan_ch].minor=minor;
159                p_num_scan_ch++;
160        }
161        else { //°¡µæ Âü.
162                int i;
163               
164                for(i=0; i<4; i++) {
165                        p_scan_ch_info[i].rf=p_scan_ch_info[i+1].rf;
166                        p_scan_ch_info[i].major=p_scan_ch_info[i+1].major;
167                        p_scan_ch_info[i].minor=p_scan_ch_info[i+1].minor;
168                }
169               
170                p_scan_ch_info[4].rf=rf;
171                p_scan_ch_info[4].major=major;
172                p_scan_ch_info[4].minor=minor;
173        }
174}
175
176
177
178void p_print(int x, int y, int id, UINT32 color)
179{
180        int i;
181       
182        for(i=0; i<NUM_LANG_POOL; i++) {
183                if(id==p_lang_pool[i].id) { //µ¿ÀÏÇÑ °ÍÀ» ãÀ½.
184                        break;
185                }
186        }
187       
188        if(i==NUM_LANG_POOL) return;
189       
190        if(App_NVM_GetMenuLang()==0) {
191                DMG_PrintStr(x, y, p_lang_pool[i].eng, color);
192        }
193        else {
194                DMG_PrintStr(x, y, p_lang_pool[i].spa, color);
195        }
196}
197
198void p_print_ex(int x, int y, int w, int h, int id, UINT32 color, int opt)
199{
200        int i;
201       
202        for(i=0; i<NUM_LANG_POOL; i++) {
203                if(id==p_lang_pool[i].id) { //µ¿ÀÏÇÑ °ÍÀ» ãÀ½.
204                        break;
205                }
206        }
207       
208        if(i==NUM_LANG_POOL) return;
209       
210        if(App_NVM_GetMenuLang()==0) {
211                DMG_PrintStrEx(x, y, w, h, p_lang_pool[i].eng, color, opt);
212        }
213        else {
214                DMG_PrintStrEx(x, y, w, h, p_lang_pool[i].spa, color, opt);
215        }
216}
217       
218
219       
220void p_draw_bg()
221{
222        DMG_EraseRect(0, 0, 720, 80, C_BG_TB);
223        DMG_EraseRect(0, 80, 720, 480-160, C_BG_BODY);
224        DMG_EraseRect(0, 400, 720, 80, C_BG_TB);
225}
226
227void p_draw_title_progress(int page_num)
228{
229        #define PROG_BTN_SZ 8
230        #define INTER_PROGRESS_BTN_GAP 4       
231       
232        int i;
233       
234        p_print(90, 45, 0, C_WHITE);
235       
236        for(i=0; i<MAX_PAGES; i++) {
237                DMG_EraseRect(600-2+i*(PROG_BTN_SZ+INTER_PROGRESS_BTN_GAP+4), 60, PROG_BTN_SZ+4, PROG_BTN_SZ, i<=page_num?C_YELLOW:C_WHITE);
238                DMG_EraseRect(600+i*(PROG_BTN_SZ+INTER_PROGRESS_BTN_GAP+4), 60-2, PROG_BTN_SZ, PROG_BTN_SZ+4, i<=page_num?C_YELLOW:C_WHITE);
239        }
240}
241
242static void p_draw_key_guide(int page_num, int mode)
243{
244        #define STRW 120
245        #define LTX 90
246        #define CTX (360-STRW/2)
247        #define RTX (630-STRW)
248        #define STRY 410
249       
250       
251        switch(page_num)
252        {
253                case 0:
254                        //select next
255                        DRAW_IMAGE(CTX, STRY+4, keyguide_arrow_down);
256                        DRAW_IMAGE(CTX+18, STRY+3, keyguide_arrow_up);
257                        p_print(CTX+36+2, STRY, 2, C_WHITE);
258                       
259                        DRAW_IMAGE(RTX, STRY+4, keyguide_arrow_right);
260                        p_print(RTX+18+2, STRY, 3, C_WHITE);
261                        break;
262                       
263                case 1:
264                        DRAW_IMAGE(LTX, STRY+4, keyguide_arrow_left);
265                        p_print(LTX+18+2, STRY, 4, C_WHITE);
266                       
267                        DRAW_IMAGE(RTX, STRY+4, keyguide_arrow_right);
268                        p_print(RTX+18+2, STRY, 3, C_WHITE);
269                        break;
270               
271                case 2:
272                        if(mode==0) { //prev, ok
273                                DRAW_IMAGE(LTX, STRY+4, keyguide_arrow_left);
274                                p_print(LTX+18+2, STRY, 4, C_WHITE);
275                               
276                                p_print(CTX, STRY, 33, C_WHITE);
277                               
278                                if(!p_ch_empty) {//next¸¦ ±×·ÁÁÜ.
279                                        DRAW_IMAGE(RTX, STRY+4, keyguide_arrow_right);
280                                        p_print(RTX+18+2, STRY, 3, C_WHITE);
281                                }
282                        }
283                        else if(mode==1) {//it takes about 2 minutes to complete.
284                                if(App_Ucm_GetChannelNum(FALSE) || !p_bfirst) { //ÀâÈù ä³ÎÀÌ ÀÖÀ¸¸é, OK·Î stopÇÒ ¼ö ÀÖÀ½.
285                                        p_print(CTX, STRY, 35, C_WHITE);
286                                }
287                                else {
288                                        p_print_ex(CENTERX(630), STRY, 630, LINEH, 15, C_WHITE, DMG_OPT_A_CT);
289                                }
290                        }
291                        else if(mode==2) {
292                                DRAW_IMAGE(LTX, STRY+4, keyguide_arrow_left);
293                                p_print(LTX+18+2, STRY, 4, C_WHITE);
294                               
295                                p_print(CTX, STRY, 34, C_WHITE);
296                               
297                                DRAW_IMAGE(RTX, STRY+4, keyguide_arrow_right);
298                                p_print(RTX+18+2, STRY, 3, C_WHITE);
299                               
300                        }
301                       
302                        break;
303                       
304                case 3:
305                        DRAW_IMAGE(LTX, STRY+4, keyguide_arrow_left);
306                        p_print(LTX+18+2, STRY, 4, C_WHITE);
307                       
308                        DRAW_IMAGE(CTX, STRY+4, keyguide_arrow_down);
309                        DRAW_IMAGE(CTX+18, STRY+4, keyguide_arrow_up);
310                        p_print(CTX+36+2, STRY, 2, C_WHITE);
311                       
312                        DRAW_IMAGE(RTX, STRY+4, keyguide_arrow_right);
313                        p_print(RTX+18+2, STRY, 3, C_WHITE);
314                       
315                        break;
316               
317                case 4:
318                        DRAW_IMAGE(LTX, STRY+4, keyguide_arrow_left);
319                        p_print(LTX+18+2, STRY, 4, C_WHITE);
320                       
321                        p_print(CTX, STRY, 36, C_WHITE);
322                        break;
323        }
324       
325}
326
327static void p_draw_scan_body(int scan_mode)
328{
329        int i;
330        char str_buf[16];
331       
332        //¸öÅë
333        App_OSD_CommonBox2(CENTERX(272), LINEY(1), 272, LINEH*7, 
334                2, 0xff2a4879, 0xff213557, 0xff5091d7);
335       
336        //Áß¾Ó ¼¼·ÎÁÙ.
337        DMG_EraseRect(359, LINEY(1)+LINEH/2, 2, LINEH*5+8, 0xff213557);
338        DMG_EraseRect(361, LINEY(1)+LINEH/2, 2, LINEH*5+8, 0xff5091d7);
339       
340        p_print_ex(360-136, LINEY(1), 136, LINEH, 13, C_PEN1, DMG_OPT_A_CT);
341        p_print_ex(360, LINEY(1), 136, LINEH, 14, C_PEN1, DMG_OPT_A_CT);
342       
343        for(i=0; i<p_num_scan_ch; i++) {
344                sprintf(str_buf, "%d", p_scan_ch_info[i].rf);
345                DMG_PrintStrEx(360-136, LINEY(i+2), 136, LINEH, str_buf, C_WHITE, DMG_OPT_A_CT);
346               
347                if(p_scan_ch_info[i].minor==ONE_PART_CHANNEL_INDICATOR)
348                        sprintf(str_buf, "%d", p_scan_ch_info[i].major);
349                else
350                        sprintf(str_buf, "%d-%d", p_scan_ch_info[i].major, p_scan_ch_info[i].minor);
351                DMG_PrintStrEx(360, LINEY(i+2), 136, LINEH, str_buf, C_WHITE, DMG_OPT_A_CT);
352        }
353        //progress bar
354        App_OSD_DrawProgressBar(0x01, CENTERX(250), LINEY(7)+4, 250/3, 
355                scan_mode==1?App_Autoscan_GetProgressPercent():0);
356               
357        if(p_cur_scan_rf!=0 && scan_mode==1) {
358                sprintf(str_buf, 
359                                                App_NVM_GetMenuLang()==0?p_lang_pool[32].eng:p_lang_pool[32].spa,
360                                                p_cur_scan_rf);
361               
362                App_OSD_CommonBox2(CENTERX(272), LINEY(9)-LINEH/2, 272, LINEH+LINEH/2, 
363                        2, 0xff2a4879, 0xff213557, 0xff5091d7);
364                DMG_PrintStrEx(CENTERX(272), LINEY(9)-LINEH/2, 272, LINEH+LINEH/2, str_buf, 
365                        C_YELLOW, DMG_OPT_A_CT);
366        }
367       
368}
369
370void AppO_DrawSetupWizard(int num_page, UINT32 param)
371{
372        char str_buf[64];
373        int temp;
374
375        p_draw_bg();
376        p_draw_title_progress(num_page);
377        p_draw_key_guide(num_page, param);
378
379       
380        switch(num_page)
381        {
382
383                case 0:
384                       
385                        p_ch_empty=App_Ucm_GetChannelNum(FALSE)?FALSE:TRUE;
386                       
387                        //DRAW_IMAGE-welcome
388
389                        if(param)
390                                DRAW_IMAGE(SPOS(0).x, SPOS(0).y, BIENVENIDO);                           
391                        else
392                                DRAW_IMAGE(SPOS(0).x, SPOS(0).y, welcome);
393
394                        App_OSD_CommonBox2(SPOS(5).x, SPOS(5).y, SPOS(5).w, SPOS(5).h, 
395                                2, 0xffffeb00, 0xff000000, 0xff5091d7);
396                       
397                        DMG_PrintStrEx(SPOS(5).x, SPOS(5).y, SPOS(5).w, SPOS(5).h, 
398                                App_NVM_GetMenuLang()==0?"English":"Espa#f1ol", C_BLACK,
399                                DMG_OPT_A_CT);
400                               
401                        DRAW_IMAGE(SPOS(6).x, SPOS(6).y, rcu);
402                       
403                        DMG_PrintStr(SPOS(1).x, SPOS(1).y, p_lang_pool[1].eng, C_PEN2);
404                        DMG_PrintStr(SPOS(2).x, SPOS(2).y, p_lang_pool[1].spa, C_PEN2);
405                       
406                        DRAW_IMAGE(SPOS(3).x, SPOS(3).y, arrow_up);
407                        DRAW_IMAGE(SPOS(4).x, SPOS(4).y, arrow_down);
408                       
409                        //newcon ÇÁ·ÎÁ§Æ®¿¡¼­ ¹«½¼ ¹®Á¦ ¶§¹®ÀÎÁö welcome ¸Þ½ÃÁö°¡ Á¦´ë·Î ÂïÈ÷Áö ¾Ê¾Æ¼­
410                        //¾Æ·¡¿Í °°Àº Äڵ带 Ãß°¡ÇÏ°Ô µÊ
411                       
412                        if(param)
413                        {
414                                DRAW_IMAGE(SPOS(0).x, SPOS(0).y, BIENVENIDO);
415                                DHL_OS_Delay(1);
416                                DRAW_IMAGE(SPOS(0).x, SPOS(0).y, BIENVENIDO);
417                        }
418                        else
419                        {       
420                                DRAW_IMAGE(SPOS(0).x, SPOS(0).y, welcome);
421                                DHL_OS_Delay(1);
422                                DRAW_IMAGE(SPOS(0).x, SPOS(0).y, welcome);
423                        }
424                       
425
426                        break;
427                       
428                case 1:
429                       
430                        p_print(SPOS(7).x, SPOS(7).y, 8, C_PEN2);
431                        p_print(SPOS(8).x, SPOS(8).y, 9, C_PEN2);
432                       
433                        DRAW_IMAGE(SPOS(9).x, SPOS(9).y, 
434                                App_NVM_GetMenuLang()==0?connecting:connecting_spa);
435                               
436                        p_print_ex(SPOS(10).x, SPOS(10).y, SPOS(10).w, SPOS(10).h, 10, C_PEN2, 0);
437                       
438                        break;
439                       
440                case 2:
441                       
442                        switch(param) 
443                        {
444                                case 0 : //first start.
445                                       
446                                        p_ch_empty=App_Ucm_GetChannelNum(FALSE)?FALSE:TRUE;
447                                               
448                                        //p_num_scan_ch=0;
449                                        p_print_ex(SPOS(11).x, SPOS(11).y, SPOS(11).w, SPOS(11).h, 
450                                                11, C_PEN2, DMG_OPT_A_CT); //press ok to start searching
451                                       
452                                        //box body ±×¸®±â.
453                                        p_draw_scan_body(param);
454                                       
455                                        sprintf(str_buf, 
456                                                App_NVM_GetMenuLang()==0?p_lang_pool[12].eng:p_lang_pool[12].spa,
457                                                App_Ucm_GetChannelNum(FALSE));
458                                       
459                                        DMG_PrintStrEx(SPOS(12).x, SPOS(12).y, SPOS(12).w, SPOS(12).h, 
460                                                str_buf, C_PEN2, DMG_OPT_A_CT); //press ok to start searching
461                                       
462                                        break;
463                                       
464                                case 1 : //first ongoing
465                                        p_print_ex(SPOS(11).x, SPOS(11).y, SPOS(11).w, SPOS(11).h, 
466                                                16, C_PEN2, DMG_OPT_A_CT);
467                                       
468                                        //box body ±×¸®±â.
469                                        p_draw_scan_body(param);
470                                       
471                                        //DMG_PrintStrEx(SPOS(12).x, SPOS(12).y, SPOS(12).w, SPOS(12).h, str_buf, C_YELLOW, DMG_OPT_A_CT); //press ok to start searching
472                                       
473                                       
474                                        break;
475                                       
476                                case 2 : //not first start
477                                        p_bfirst=FALSE;
478                                        p_ch_empty=App_Ucm_GetChannelNum(FALSE)?FALSE:TRUE;
479                                       
480                                        if(p_ch_empty) {
481                                                sprintf(str_buf,
482                                                        App_NVM_GetMenuLang()==0?p_lang_pool[22].eng:p_lang_pool[22].spa,
483                                                        App_Ucm_GetChannelNum(FALSE));
484                                        }
485                                        else {
486                                                sprintf(str_buf,
487                                                        App_NVM_GetMenuLang()==0?p_lang_pool[37].eng:p_lang_pool[37].spa,
488                                                        App_Ucm_GetChannelNum(FALSE));
489                                        }
490                                        DMG_PrintStrEx(SPOS(11).x, SPOS(11).y, SPOS(11).w, SPOS(11).h, 
491                                                str_buf, C_PEN2, DMG_OPT_A_CT);
492                                       
493                                        p_draw_scan_body(param);
494                                       
495                                        if(p_ch_empty) {
496                                                p_print_ex(SPOS(12).x, SPOS(12).y, SPOS(12).w, SPOS(12).h, 
497                                                        23, C_PEN2, DMG_OPT_A_CT);
498                                        }
499                                       
500                                        break;
501                        }
502                       
503                       
504                        break;
505                       
506                case 3:
507                        p_print_ex(SPOS(13).x, SPOS(13).y, SPOS(13).w, SPOS(13).h, 18, 
508                                C_PEN2, DMG_OPT_A_CT);
509                       
510                        DRAW_IMAGE(SPOS(14).x, SPOS(14).y, arrow_up);
511                        DRAW_IMAGE(SPOS(16).x, SPOS(16).y, arrow_down);
512                       
513                        App_OSD_CommonBox2(SPOS(15).x, SPOS(15).y, SPOS(15).w, SPOS(15).h, 
514                                2, 0xffffeb00, 0xff000000, 0xff5091d7);
515#if 0
516                        switch(param) { //mexico´Â central/mountain/pacific ¼¼ °³ Á¸ÀçÇÔ.
517                                case 0: temp=26; break; //atlantic
518                                case 1: temp=27; break; //estern
519                                case 2: temp=28; break; //central
520                                case 3: temp=29; break; //mountain
521                                case 4: temp=30; break; //pacific
522                                case 5: temp=24; break; //alaska
523                                case 6: temp=25; break; //hawaii
524                        }
525#else
526                        switch(param) { //mexico´Â central/mountain/pacific ¼¼ °³ Á¸ÀçÇÔ.
527                                case 0: temp=28; break; //central
528                                case 1: temp=29; break; //mountain
529                                //case 2: temp=30; break; //pacific
530                                case 2: temp=40; break; // mountain, daylight saving off
531                                case 3: temp=30; break; // pacific
532                        }
533#endif
534                        p_print_ex(SPOS(15).x, SPOS(15).y, SPOS(15).w, SPOS(15).h, 
535                                temp, C_BLACK, DMG_OPT_A_CT);
536
537                        #if 0
538                        App_OSD_CommonBox2(SPOS(17).x, SPOS(17).y, SPOS(17).w, SPOS(17).h, 2,
539                                0xff2a4879, 0xff213557, 0xff5091d7);
540                       
541                        if(App_Autoscan_IsSttChecked()){ //stt¸¦ ¹Þ¾Æ¼­ timezone º° ÇöÀç ½Ã°¢À» ¾Ë·ÁÁÜ.
542                               
543                                APP_TIME_T curTime;
544                                int status;
545                               
546                                status = AppTime_GetCurTime(&curTime, 0);
547                               
548                                if(status==0) {
549                                        p_print_ex(SPOS(18).x, SPOS(18).y, SPOS(18).w, SPOS(18).h,
550                                                39, C_WHITE, DMG_OPT_A_CT);
551                                        App_MakeDateTimeString(str_buf, curTime, 13);
552                                        DMG_PrintStrEx(SPOS(19).x, SPOS(19).y, SPOS(19).w, SPOS(19).h,
553                                                str_buf, C_WHITE, DMG_OPT_A_CT);
554                                }
555                        }
556                        #else
557                        switch(param)
558                        {
559                                case 0: DRAW_IMAGE(SPOS(17).x, SPOS(17).y, DST_timezone_central_480); break;
560                                case 1: DRAW_IMAGE(SPOS(17).x, SPOS(17).y, DST_timezone_pacific1_480); break;
561                                case 2: DRAW_IMAGE(SPOS(17).x, SPOS(17).y, DST_timezone_pacific2_480); break;
562                                case 3: DRAW_IMAGE(SPOS(17).x, SPOS(17).y, DST_timezone_northwest_480); break;
563                        }
564                        #endif
565                        break;
566                       
567                case 4:
568                                       
569                        p_print_ex(SPOS(20).x, SPOS(20).y, SPOS(20).w, SPOS(20).h, 19, C_PEN2, DMG_OPT_A_CT);
570                        p_print_ex(SPOS(21).x, SPOS(21).y, SPOS(21).w, SPOS(21).h, 20, C_PEN2, DMG_OPT_A_CT);
571                        p_print_ex(SPOS(22).x, SPOS(22).y, SPOS(22).w, SPOS(22).h, 38, C_PEN2, DMG_OPT_A_CT);
572                        p_print_ex(SPOS(23).x, SPOS(23).y, SPOS(23).w, SPOS(23).h, 21, C_PEN2, DMG_OPT_A_CT);
573                       
574                        App_OSD_CommonBox2(SPOS(24).x, SPOS(24).y, SPOS(24).w, SPOS(24).h, 2, 
575                                0xff2a4879, 0xff213557, 0xff5091d7);
576                        DRAW_IMAGE(SPOS(24).x+(SPOS(24).w-90)/2, SPOS(24).y+(SPOS(24).h-46)/2, MENU);
577                        break;
578                       
579        }
580       
581}
582
583void AppO_EraseSetupWizard()
584{
585        DMG_EraseRect(0, 0, 720, 480, 0x0);
586}
587
588
589void AppO_AddScanCh(UINT8 rf, UINT16 major, UINT16 minor)
590{
591        p_add_scan_ch(rf, major, minor);
592}
593
594void AppO_InitScanCh()
595{
596        //scan ä³ÎÀ» ÃʱâÈ­ÇÔ.
597        p_num_scan_ch=0;
598}
599
600
601void AppO_UpdateCurScanRf(UINT8 rf)
602{
603        p_cur_scan_rf=rf;
604       
605}
Note: See TracBrowser for help on using the repository browser.