📄 uidraw.lst
字号:
C51 COMPILER V8.08 UIDRAW 11/23/2007 07:50:44 PAGE 1
C51 COMPILER V8.08, COMPILATION OF MODULE UIDRAW
OBJECT MODULE PLACED IN .\Object\UIDraw.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE SourceFile\UIDraw.c LARGE BROWSE INCDIR(.\IncludeFile;.\IncludeFile\Panel;.
-\IncludeFile\Font_Icon) DEFINE(T108) DEBUG OBJECTEXTEND PRINT(.\List\UIDraw.lst) OBJECT(.\Object\UIDraw.obj)
line level source
1 #include "Common.h"
2 #include "Global.h"
3 #include "ICControl.h"
4 #include "System.h"
5 #include "Timer0.h"
6 #include "TWICreg.h"
7 //#include "OSD1_Define.h"
8 #include "OSD1CSL.h"
9 //#include "OSD2_Define.h"
10 #include "OSD2CSL.h"
11 #include "E_OSDString.H"
12 #include "IconJigsaw.h"
13 #include "UIDraw.h"
14 #include "Keypad.h"
15 //#define _Myson8957_
16 #include "Myson8957.h"
17
18 void Show_Menu1_ColorAdj(uCHAR ItemNow)
19 {
20 1 //Draw OSD1
21 1 ItemNow=1;
22 1 OSD2InItClearMenu(MENU1);
23 1 OSD1ShowLine(iMenuNoOK_E,5,5,0,0,1);
24 1 OSD1Enable();
25 1 OSD1Menu1Enable();
26 1 //Draw OSD2
27 1
28 1 }
29
30 void Show_Menu1_ItemAdjNum(uCHAR ItemNow)
31 {
32 1 ItemNow=1;
33 1 }
34
35 void Show_Source()
36 {
37 1 EX0 = 0; // Disable Externel Interrup 0
38 1 switch(EepPublic.cSource)
39 1 {
40 2 case 0:
41 2 OSD1ShowLine(iCVBS_1_E,1,2,0,0,1);
42 2 break;
43 2 case 1:
44 2 OSD1ShowLine(iTV_1_E,1,2,0,0,1);
45 2 break;
46 2 }
47 1 OSD1Enable();
48 1 OSD1Menu1Enable();
49 1 Timer0Start();
50 1
51 1 EX0 = 1; // Enable Externel Interrup 0
52 1 }
53
54
C51 COMPILER V8.08 UIDRAW 11/23/2007 07:50:44 PAGE 2
55 #define CALSTRX 10
56 #define CALSTRY 1
57
58
59 code uCHAR *NumArry[10]={Icon0,Icon1,Icon2,Icon3,Icon4,Icon5,Icon6,Icon7,Icon8,Icon9};
60 void Show_CalculateNum(unsigned long Number)
61 {
62 1 int i,j,k;
63 1 for(j=0;j<10;j++)
64 1 OSD2Show4BPIcon(IconUP,CALSTRX+2+j,CALSTRY,0,0,0,1);
65 1 if(Number<10)
66 1 j=1;
67 1 else if(Number<100)
68 1 j=2;
69 1 else if(Number<1000)
70 1 j=3;
71 1 else if(Number<10000)
72 1 j=4;
73 1 else if(Number<100000)
74 1 j=5;
75 1 else if(Number<1000000)
76 1 j=6;
77 1 else if(Number<10000000)
78 1 j=7;
79 1 else if(Number<100000000)
80 1 j=8;
81 1 else
82 1 j=9;
83 1 for(i=0; i<j; i++)
84 1 {
85 2 k=Number%10;
86 2 Number /= 10;
87 2 OSD2Show4BPIcon(NumArry[k],CALSTRX+11-i,CALSTRY+2,0,0,0,1);
88 2 }
89 1
90 1
91 1 }
92
93 void Show_Calculate()
94 {
95 1
96 1 uCHAR j;
97 1 EX0 = 0; // Disable Externel Interrup 0
98 1 /*
99 1 ClosePanel(0, 0x80, 0x80);
100 1 OSD1ClearLine(5,5,0,1);
101 1 OSD1Disable();
102 1 OSD2Show4BPIcon(IconLeftUp,CALSTRX,CALSTRY,0,0,0,1);
103 1 OSD2Show4BPIcon(IconLeftUp,CALSTRX,CALSTRY+4,0,0,0,1);
104 1 for(j=0;j<10;j++)
105 1 OSD2Show4BPIcon(IconUP,CALSTRX+2+j,CALSTRY,0,0,0,1);
106 1 // OSD2Show4BPIcon(Icon0,CALSTRX+2+j-1,CALSTRY+2,0,0,0,1);
107 1 Show_CalculateNum(0);
108 1 OSD2Show4BPIcon(IconRightUP,CALSTRX+2+j,CALSTRY,0,0,0,1);
109 1
110 1 OSD2Show4BPIcon(IconBT7,CALSTRX,CALSTRY+3,0,0,1,1);
111 1 OSD2Show4BPIcon(IconBT8,CALSTRX+3,CALSTRY+3,0,0,0,1);
112 1 OSD2Show4BPIcon(IconBT9,CALSTRX+6,CALSTRY+3,0,0,0,1);
113 1 OSD2Show4BPIcon(IconBTdivd,CALSTRX+9,CALSTRY+3,0,0,0,1);
114 1 OSD2Show4BPIcon(IconLeftBD,CALSTRX+12,CALSTRY+3,0,0,0,1);
115 1 OSD2Show4BPIcon(IconLeftBD,CALSTRX+12,CALSTRY+4,0,0,0,1);
116 1
C51 COMPILER V8.08 UIDRAW 11/23/2007 07:50:44 PAGE 3
117 1 OSD2Show4BPIcon(IconBT4,CALSTRX,CALSTRY+5,0,0,0,1);
118 1 OSD2Show4BPIcon(IconBT5,CALSTRX+3,CALSTRY+5,0,0,0,1);
119 1 OSD2Show4BPIcon(IconBT6,CALSTRX+6,CALSTRY+5,0,0,0,1);
120 1 OSD2Show4BPIcon(IconBTmul,CALSTRX+9,CALSTRY+5,0,0,0,1);
121 1 OSD2Show4BPIcon(IconLeftBD,CALSTRX+12,CALSTRY+5,0,0,0,1);
122 1 OSD2Show4BPIcon(IconLeftBD,CALSTRX+12,CALSTRY+6,0,0,0,1);
123 1
124 1 OSD2Show4BPIcon(IconBT1,CALSTRX,CALSTRY+7,0,0,0,1);
125 1 OSD2Show4BPIcon(IconBT2,CALSTRX+3,CALSTRY+7,0,0,0,1);
126 1 OSD2Show4BPIcon(IconBT3,CALSTRX+6,CALSTRY+7,0,0,0,1);
127 1 OSD2Show4BPIcon(IconBTsub,CALSTRX+9,CALSTRY+7,0,0,0,1);
128 1 OSD2Show4BPIcon(IconLeftBD,CALSTRX+12,CALSTRY+7,0,0,0,1);
129 1 OSD2Show4BPIcon(IconLeftBD,CALSTRX+12,CALSTRY+8,0,0,0,1);
130 1
131 1 OSD2Show4BPIcon(IconBT0,CALSTRX,CALSTRY+9,0,0,0,1);
132 1 OSD2Show4BPIcon(IconBTdot,CALSTRX+3,CALSTRY+9,0,0,0,1);
133 1 OSD2Show4BPIcon(IconBTans,CALSTRX+6,CALSTRY+9,0,0,0,1);
134 1 OSD2Show4BPIcon(IconBTadd,CALSTRX+9,CALSTRY+9,0,0,0,1);
135 1 OSD2Show4BPIcon(IconLeftBD,CALSTRX+12,CALSTRY+9,0,0,0,1);
136 1 OSD2Show4BPIcon(IconLeftBD,CALSTRX+12,CALSTRY+10,0,0,0,1);
137 1
138 1 OSD2Show4BPIcon(IconLeftDown,CALSTRX,CALSTRY+11,0,0,0,1);
139 1 for(j=0;j<11;j++)
140 1 OSD2Show4BPIcon(IconDown,CALSTRX+1+j,CALSTRY+11,0,0,0,1);
141 1 OSD2Show4BPIcon(IconRightDown,CALSTRX+1+j,CALSTRY+11,0,0,0,1);
142 1 */
143 1 OSD2Enable(); //Menu not ready yet
144 1 OSD2Menu1Enable();
145 1
146 1 /* hu test */
147 1 OSD2Show4BPIcon(BoxLeftUp,0,0,0,0,0,1);
148 1 OSD2Show4BPIcon(BoxRightUp,38,0,0,0,0,1);
149 1 OSD2Show4BPIcon(BoxLeftLow,0,12,0,0,0,1);
150 1 OSD2Show4BPIcon(BoxRightLow,38,12,0,0,0,1);
151 1
152 1 for(j=1;j<38;j++) // upper line
153 1 OSD2Show4BPIcon(BoxLine,j,0,0,0,0,1);
154 1 for(j=1;j<38;j++) // lower line
155 1 OSD2Show4BPIcon(BoxLine,j,12,0,0,0,1);
156 1 for(j=1;j<38;j++) // Middle line
157 1 OSD2Show4BPIcon(BoxLine,j,9,0,0,0,1);
158 1
159 1 for(j=1;j<12;j++)
160 1 { // Double side line
161 2 OSD2Show4BPIcon(BoxStraight,0,j,0,0,0,1);
162 2 OSD2Show4BPIcon(BoxStraight,38,j,0,0,0,1);
163 2 }
164 1
165 1 //Exercise/Sport DATA Display Area
166 1 //Group1
167 1 OSD2Show4BPIcon(IconBT1,2,10,0,0,0,1);
168 1 OSD2Show4BPIcon(IconBT2,5,10,0,0,0,1);
169 1 OSD2Show4BPIcon(IconBT3,8,10,0,0,0,1);
170 1 //Group2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -