TV_IDM_PingTest.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. /***************************************************************/
  2. /** This file is generated, do not edit
  3. * @file TV_IDM_PingTest.c
  4. * @brief menu resource
  5. * Generator Version 6.2.57.711
  6. * Source File Name and Date
  7. *
  8. *
  9. * @note Copyright (c) 2006-2008, Sunplus Technology Co., Ltd.
  10. * All rights reserved.
  11. *
  12. * This software is copyrighted by and is the property of Sunplus
  13. * Technology Co., Ltd. All rights are reserved by Sunplus Technology
  14. * Co., Ltd. This software may only be used in accordance with the
  15. * corresponding license agreement. Any unauthorized use, duplication,
  16. * distribution, or disclosure of this software is expressly forbidden.
  17. *
  18. * This Copyright notice MUST not be removed or modified without prior
  19. * written consent of Sunplus Technology Co., Ltd.
  20. *
  21. * Sunplus Technology Co., Ltd. reserves the right to modify this
  22. * software without notice.
  23. *
  24. * Sunplus Technology Co., Ltd.
  25. * 19, Innovation First Road, Science-Based Industrial Park,
  26. * Hsin-Chu, Taiwan, R.O.C.
  27. *
  28. ***************************************************************/
  29. #include "gui_eng/gui_engine.h"
  30. #include "TV_icon_info.h"
  31. #include "TV_color_info.h"
  32. #include "TV_bitmap_config.h"
  33. #include "TV_strid.h"
  34. #include "TV_IDM_PingTest.h"
  35. #include "TV_font_style_define.h"
  36. bg_t TV_IDC_Ping_Test_BG11 = {
  37. &TV_BG_78_bg_color, /* background color */
  38. NULL /*background bitmap id */
  39. };
  40. icon_t TV_IDC_Ping_Test_Pic_Left11 =
  41. {
  42. &TV_BG_33_bg_icon
  43. };
  44. btn_text_t TV_IDC_Ping_Test_Bottom11 = {
  45. {271,269,512,36}, /* Positon of the button */
  46. &TV_BG_0_bg_color, /* Bg color */
  47. &TV_BG_35_bg_icon, /* Bg icon */
  48. 8, /* Side size */
  49. 0, /* Fix Char Width */
  50. &TV_69_text_color, /* Text Color */
  51. {408,269,120,8}, /*Position of the text*/
  52. STRING_ID_INVALID, /* Fg string id */
  53. NULL /* Marrquee */
  54. };
  55. icon_t TV_IDC_Ping_Test_Pic_Right11 =
  56. {
  57. &TV_BG_34_bg_icon
  58. };
  59. btn_text_t TV_IDC_IDS_String_Ping_Test = {
  60. {271,53,512,36}, /* Positon of the button */
  61. &TV_BG_13_bg_color, /* Bg color */
  62. &TV_BG_32_bg_icon, /* Bg icon */
  63. 8, /* Side size */
  64. 0, /* Fix Char Width */
  65. &TV_79_text_color, /* Text Color */
  66. {281,56,492,33}, /*Position of the text*/
  67. TV_IDS_String_Ping_Test, /* Fg string id */
  68. NULL /* Marrquee */
  69. };
  70. text_box_t TV_IDC_Ping_Test_TextBox_Times =
  71. {
  72. 0, /* Language name */
  73. &TV_BG_78_bg_color, /* Bg color */
  74. &TV_20_text_color, /* Text Color */
  75. {281,100,220,33}, /*Position of the text*/
  76. TV_IDS_String_Timers, /* Fg string id */
  77. NULL, /* String */
  78. NULL, /* Marrquee */
  79. 0 /* Fix Char Width */
  80. };
  81. text_box_t TV_IDC_Ping_Test_TextBox_Bytes =
  82. {
  83. 0, /* Language name */
  84. &TV_BG_78_bg_color, /* Bg color */
  85. &TV_20_text_color, /* Text Color */
  86. {281,140,220,33}, /*Position of the text*/
  87. TV_IDS_String_Ping_Test_Byte, /* Fg string id */
  88. NULL, /* String */
  89. NULL, /* Marrquee */
  90. 0 /* Fix Char Width */
  91. };
  92. text_box_t TV_IDC_Ping_Test_TextBox_OKs =
  93. {
  94. 0, /* Language name */
  95. &TV_BG_78_bg_color, /* Bg color */
  96. &TV_20_text_color, /* Text Color */
  97. {281,180,220,33}, /*Position of the text*/
  98. TV_IDS_String_OK, /* Fg string id */
  99. NULL, /* String */
  100. NULL, /* Marrquee */
  101. 0 /* Fix Char Width */
  102. };
  103. text_box_t TV_IDC_Ping_Test_TextBox_Bads =
  104. {
  105. 0, /* Language name */
  106. &TV_BG_78_bg_color, /* Bg color */
  107. &TV_20_text_color, /* Text Color */
  108. {281,220,220,33}, /*Position of the text*/
  109. TV_IDS_String_Ping_Test_Bad, /* Fg string id */
  110. NULL, /* String */
  111. NULL, /* Marrquee */
  112. 0 /* Fix Char Width */
  113. };
  114. text_box_t TV_IDC_Ping_Test_TextBox_Times1 =
  115. {
  116. 0, /* Language name */
  117. &TV_BG_78_bg_color, /* Bg color */
  118. &TV_20_text_color, /* Text Color */
  119. {531,100,220,33}, /*Position of the text*/
  120. TV_IDS_String_0, /* Fg string id */
  121. NULL, /* String */
  122. NULL, /* Marrquee */
  123. 0 /* Fix Char Width */
  124. };
  125. text_box_t TV_IDC_Ping_Test_TextBox_Bytes1 =
  126. {
  127. 0, /* Language name */
  128. &TV_BG_78_bg_color, /* Bg color */
  129. &TV_20_text_color, /* Text Color */
  130. {531,140,220,33}, /*Position of the text*/
  131. TV_IDS_String_0, /* Fg string id */
  132. NULL, /* String */
  133. NULL, /* Marrquee */
  134. 0 /* Fix Char Width */
  135. };
  136. text_box_t TV_IDC_Ping_Test_TextBox_OKs1 =
  137. {
  138. 0, /* Language name */
  139. &TV_BG_78_bg_color, /* Bg color */
  140. &TV_20_text_color, /* Text Color */
  141. {531,180,220,33}, /*Position of the text*/
  142. TV_IDS_String_0, /* Fg string id */
  143. NULL, /* String */
  144. NULL, /* Marrquee */
  145. 0 /* Fix Char Width */
  146. };
  147. text_box_t TV_IDC_Ping_Test_TextBox_Bads1 =
  148. {
  149. 0, /* Language name */
  150. &TV_BG_78_bg_color, /* Bg color */
  151. &TV_20_text_color, /* Text Color */
  152. {531,220,220,33}, /*Position of the text*/
  153. TV_IDS_String_0, /* Fg string id */
  154. NULL, /* String */
  155. NULL, /* Marrquee */
  156. 0 /* Fix Char Width */
  157. };
  158. /* window controls */
  159. WinControl_t TV_IDM_PingTest_control[] = {
  160. {
  161. NULL, /* Handle to the control */
  162. CLASS_BACKGROUND, /* Type of the control */
  163. 0, /* Common Style of the widget */
  164. S_BG_COLOR, /* Particular Style of the widget */
  165. STATE_NORMAL, /* State of the control */
  166. {0, 0, 0, 0}, /* Font style for each state */
  167. 278, /* Start X position of the control */
  168. 89, /* Start Y position of the control */
  169. 498, /* Width of the control */
  170. 180, /* Height of the control */
  171. 255, /* Region index */
  172. (PVOID)&TV_IDC_Ping_Test_BG11, /* Pointer to its specific param */
  173. NULL, /* Pointer to a child control list */
  174. },
  175. {
  176. NULL, /* Handle to the control */
  177. CLASS_ICON, /* Type of the control */
  178. CS_PIC_REPEAT, /* Common Style of the widget */
  179. S_ICON_H_CENTER|S_ICON_V_CENTER, /* Particular Style of the widget */
  180. STATE_NORMAL, /* State of the control */
  181. {0, 0, 0, 0}, /* Font style for each state */
  182. 271, /* Start X position of the control */
  183. 89, /* Start Y position of the control */
  184. 7, /* Width of the control */
  185. 180, /* Height of the control */
  186. 255, /* Region index */
  187. (PVOID)&TV_IDC_Ping_Test_Pic_Left11, /* Pointer to its specific param */
  188. NULL, /* Pointer to a child control list */
  189. },
  190. {
  191. NULL, /* Handle to the control */
  192. CLASS_BUTTON, /* Type of the control */
  193. CS_FONT_CENTER|CS_FONT_V_TOP|CS_SIDE_H, /* Common Style of the widget */
  194. S_BTN_TEXT, /* Particular Style of the widget */
  195. STATE_NORMAL, /* State of the control */
  196. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  197. 271, /* Start X position of the control */
  198. 269, /* Start Y position of the control */
  199. 512, /* Width of the control */
  200. 36, /* Height of the control */
  201. 255, /* Region index */
  202. (PVOID)&TV_IDC_Ping_Test_Bottom11, /* Pointer to its specific param */
  203. NULL, /* Pointer to a child control list */
  204. },
  205. {
  206. NULL, /* Handle to the control */
  207. CLASS_ICON, /* Type of the control */
  208. CS_PIC_REPEAT, /* Common Style of the widget */
  209. S_ICON_H_CENTER|S_ICON_V_CENTER, /* Particular Style of the widget */
  210. STATE_NORMAL, /* State of the control */
  211. {0, 0, 0, 0}, /* Font style for each state */
  212. 776, /* Start X position of the control */
  213. 89, /* Start Y position of the control */
  214. 7, /* Width of the control */
  215. 180, /* Height of the control */
  216. 255, /* Region index */
  217. (PVOID)&TV_IDC_Ping_Test_Pic_Right11, /* Pointer to its specific param */
  218. NULL, /* Pointer to a child control list */
  219. },
  220. {
  221. NULL, /* Handle to the control */
  222. CLASS_BUTTON, /* Type of the control */
  223. CS_FONT_CENTER|CS_FONT_V_TOP|CS_SIDE_H, /* Common Style of the widget */
  224. S_BTN_TEXT, /* Particular Style of the widget */
  225. STATE_NORMAL, /* State of the control */
  226. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  227. 271, /* Start X position of the control */
  228. 53, /* Start Y position of the control */
  229. 512, /* Width of the control */
  230. 36, /* Height of the control */
  231. 255, /* Region index */
  232. (PVOID)&TV_IDC_IDS_String_Ping_Test, /* Pointer to its specific param */
  233. NULL, /* Pointer to a child control list */
  234. },
  235. {
  236. NULL, /* Handle to the control */
  237. CLASS_TEXT, /* Type of the control */
  238. CS_FONT_CENTER|CS_FONT_V_TOP, /* Common Style of the widget */
  239. 0, /* Particular Style of the widget */
  240. STATE_NORMAL, /* State of the control */
  241. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  242. 281, /* Start X position of the control */
  243. 100, /* Start Y position of the control */
  244. 220, /* Width of the control */
  245. 33, /* Height of the control */
  246. 255, /* Region index */
  247. (PVOID)&TV_IDC_Ping_Test_TextBox_Times, /* Pointer to its specific param */
  248. NULL, /* Pointer to a child control list */
  249. },
  250. {
  251. NULL, /* Handle to the control */
  252. CLASS_TEXT, /* Type of the control */
  253. CS_FONT_CENTER|CS_FONT_V_TOP, /* Common Style of the widget */
  254. 0, /* Particular Style of the widget */
  255. STATE_NORMAL, /* State of the control */
  256. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  257. 281, /* Start X position of the control */
  258. 140, /* Start Y position of the control */
  259. 220, /* Width of the control */
  260. 33, /* Height of the control */
  261. 255, /* Region index */
  262. (PVOID)&TV_IDC_Ping_Test_TextBox_Bytes, /* Pointer to its specific param */
  263. NULL, /* Pointer to a child control list */
  264. },
  265. {
  266. NULL, /* Handle to the control */
  267. CLASS_TEXT, /* Type of the control */
  268. CS_FONT_CENTER|CS_FONT_V_TOP, /* Common Style of the widget */
  269. 0, /* Particular Style of the widget */
  270. STATE_NORMAL, /* State of the control */
  271. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  272. 281, /* Start X position of the control */
  273. 180, /* Start Y position of the control */
  274. 220, /* Width of the control */
  275. 33, /* Height of the control */
  276. 255, /* Region index */
  277. (PVOID)&TV_IDC_Ping_Test_TextBox_OKs, /* Pointer to its specific param */
  278. NULL, /* Pointer to a child control list */
  279. },
  280. {
  281. NULL, /* Handle to the control */
  282. CLASS_TEXT, /* Type of the control */
  283. CS_FONT_CENTER|CS_FONT_V_TOP, /* Common Style of the widget */
  284. 0, /* Particular Style of the widget */
  285. STATE_NORMAL, /* State of the control */
  286. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  287. 281, /* Start X position of the control */
  288. 220, /* Start Y position of the control */
  289. 220, /* Width of the control */
  290. 33, /* Height of the control */
  291. 255, /* Region index */
  292. (PVOID)&TV_IDC_Ping_Test_TextBox_Bads, /* Pointer to its specific param */
  293. NULL, /* Pointer to a child control list */
  294. },
  295. {
  296. NULL, /* Handle to the control */
  297. CLASS_TEXT, /* Type of the control */
  298. CS_FONT_CENTER|CS_FONT_V_TOP, /* Common Style of the widget */
  299. 0, /* Particular Style of the widget */
  300. STATE_NORMAL, /* State of the control */
  301. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  302. 531, /* Start X position of the control */
  303. 100, /* Start Y position of the control */
  304. 220, /* Width of the control */
  305. 33, /* Height of the control */
  306. 255, /* Region index */
  307. (PVOID)&TV_IDC_Ping_Test_TextBox_Times1, /* Pointer to its specific param */
  308. NULL, /* Pointer to a child control list */
  309. },
  310. {
  311. NULL, /* Handle to the control */
  312. CLASS_TEXT, /* Type of the control */
  313. CS_FONT_CENTER|CS_FONT_V_TOP, /* Common Style of the widget */
  314. 0, /* Particular Style of the widget */
  315. STATE_NORMAL, /* State of the control */
  316. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  317. 531, /* Start X position of the control */
  318. 140, /* Start Y position of the control */
  319. 220, /* Width of the control */
  320. 33, /* Height of the control */
  321. 255, /* Region index */
  322. (PVOID)&TV_IDC_Ping_Test_TextBox_Bytes1, /* Pointer to its specific param */
  323. NULL, /* Pointer to a child control list */
  324. },
  325. {
  326. NULL, /* Handle to the control */
  327. CLASS_TEXT, /* Type of the control */
  328. CS_FONT_CENTER|CS_FONT_V_TOP, /* Common Style of the widget */
  329. 0, /* Particular Style of the widget */
  330. STATE_NORMAL, /* State of the control */
  331. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  332. 531, /* Start X position of the control */
  333. 180, /* Start Y position of the control */
  334. 220, /* Width of the control */
  335. 33, /* Height of the control */
  336. 255, /* Region index */
  337. (PVOID)&TV_IDC_Ping_Test_TextBox_OKs1, /* Pointer to its specific param */
  338. NULL, /* Pointer to a child control list */
  339. },
  340. {
  341. NULL, /* Handle to the control */
  342. CLASS_TEXT, /* Type of the control */
  343. CS_FONT_CENTER|CS_FONT_V_TOP, /* Common Style of the widget */
  344. 0, /* Particular Style of the widget */
  345. STATE_NORMAL, /* State of the control */
  346. {TV_Standard, TV_Standard, TV_Standard, TV_Standard}, /* Font style for each state */
  347. 531, /* Start X position of the control */
  348. 220, /* Start Y position of the control */
  349. 220, /* Width of the control */
  350. 33, /* Height of the control */
  351. 255, /* Region index */
  352. (PVOID)&TV_IDC_Ping_Test_TextBox_Bads1, /* Pointer to its specific param */
  353. NULL, /* Pointer to a child control list */
  354. },
  355. };
  356. /* applet structure */
  357. STRUCT_APPLET TV_IDM_PingTest_applet = {
  358. 0, /* Current Focus Item */
  359. sizeof(TV_IDM_PingTest_control) / sizeof(TV_IDM_PingTest_control[0]), /* Number of controls */
  360. (WinControl_t*)TV_IDM_PingTest_control, /* Pointer to an array of a control list */
  361. };
  362. /* window structure */
  363. WinControl_t TV_IDM_PingTest_window= {
  364. NULL, /* Handle to the control */
  365. CLASS_POPUP, /* Type of the control */
  366. CAPTURE, /* Style of the control */
  367. 0,
  368. WIN_NORMAL, /* State of the control */
  369. {0, 0, 0, 0}, /* State of the control */
  370. 256, /* Start X position of the control */
  371. 141, /* Start Y position of the control */
  372. 960, /* Width of the control */
  373. 519, /* Height of the control */
  374. 1, /* Region index */
  375. NULL, /* Pointer to its specific param */
  376. (PVOID)&TV_IDM_PingTest_applet, /* Pointer to a child control list */
  377. };