rop_other.rss
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:14k
源码类别:

Symbian

开发平台:

C/C++

  1. /*============================================================================*
  2.  *
  3.  * (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
  4.  *
  5.  *============================================================================*/
  6.    
  7. // >>> controls
  8. /*******************************************************************
  9. >>> arrays
  10. note: settings lists require two lists to be fully 
  11. implemented; the array with AVKON_ENUMERATED_TEXT items is used
  12.     in the settings list box itself; the other array that has LBUF 
  13. items is used in the setting page (i.e., when you select change)
  14. *******************************************************************/
  15. RESOURCE ARRAY r_rop_array_save_playlist_or_clip
  16. {
  17. items =
  18. {
  19. // order is important
  20. LBUF {txt = qtn_save_item_playlist; },
  21. LBUF {txt = qtn_save_item_clip; }
  22. };
  23. }
  24. RESOURCE ARRAY r_rop_array_insert_before_after
  25. {
  26. items =
  27. {
  28. // order is important
  29. LBUF {txt = qtn_insert_before; },
  30. LBUF {txt = qtn_insert_after; }
  31. };
  32. }
  33. RESOURCE ARRAY r_rop_array_connection_bw
  34. {
  35. items =
  36. {
  37. AVKON_ENUMERATED_TEXT { value = 0/*9050*/; text = set_bw_1_text; }, 
  38. AVKON_ENUMERATED_TEXT { value = 1/*13400*/; text = set_bw_2_text; }, 
  39. AVKON_ENUMERATED_TEXT { value = 2/*19000*/; text = set_bw_3_text; }, 
  40. AVKON_ENUMERATED_TEXT { value = 3/*26800*/; text = set_bw_4_text; },
  41. AVKON_ENUMERATED_TEXT { value = 4/*28500*/; text = set_bw_5_text; },
  42. AVKON_ENUMERATED_TEXT { value = 5/*40200*/; text = set_bw_6_text; }
  43. };
  44. }
  45. RESOURCE ARRAY r_rop_array_connection_bw_
  46. {
  47. items = 
  48. {
  49. LBUF{ txt = set_bw_1_text;},
  50. LBUF{ txt = set_bw_2_text;},
  51. LBUF{ txt = set_bw_3_text;},
  52. LBUF{ txt = set_bw_4_text;},
  53. LBUF{ txt = set_bw_5_text;},
  54. LBUF{ txt = set_bw_6_text;}
  55. };
  56. }
  57. //
  58. // SCAN TIME aka CLIP INTRO 
  59. //
  60. RESOURCE ARRAY r_rop_array_scan_time
  61. {
  62. items =
  63. {
  64. AVKON_ENUMERATED_TEXT { value = 0; text = set_scan_time_0; }, 
  65. AVKON_ENUMERATED_TEXT { value = 1; text = set_scan_time_1; }, 
  66. AVKON_ENUMERATED_TEXT { value = 2; text = set_scan_time_2; }, 
  67. AVKON_ENUMERATED_TEXT { value = 3; text = set_scan_time_3; },
  68. AVKON_ENUMERATED_TEXT { value = 4; text = set_scan_time_4; },
  69. AVKON_ENUMERATED_TEXT { value = 5; text = set_scan_time_5; }
  70. };
  71. }
  72. RESOURCE ARRAY r_rop_array_scan_time_
  73. {
  74. items = 
  75. {
  76. LBUF{ txt = set_scan_time_0;},
  77. LBUF{ txt = set_scan_time_1;},
  78. LBUF{ txt = set_scan_time_2;},
  79. LBUF{ txt = set_scan_time_3;},
  80. LBUF{ txt = set_scan_time_4;},
  81. LBUF{ txt = set_scan_time_5;}
  82. };
  83. }
  84. //
  85. // ON OFF
  86. //
  87. RESOURCE ARRAY r_rop_array_settings_on_off_text
  88. {
  89. items =
  90. {
  91. AVKON_ENUMERATED_TEXT
  92. {
  93. value = 1; text = qtn_mrp_setting_on;
  94. },
  95. AVKON_ENUMERATED_TEXT
  96. {
  97. value = 0; text = qtn_mrp_setting_off;
  98. }
  99. };
  100. }
  101. RESOURCE ARRAY r_rop_array_settings_on_off_text_
  102. {
  103. items = {
  104. LBUF{ txt = qtn_mrp_setting_on;},
  105. LBUF{ txt = qtn_mrp_setting_off;}
  106. };
  107. }
  108. //
  109. // REPEAT ON/OFF
  110. //
  111. RESOURCE ARRAY r_avp_settings_repeat_on_off_text_array
  112. {
  113. items =
  114. {
  115. AVKON_ENUMERATED_TEXT
  116. {
  117. value = 1; text = qtn_mrp_setting_on_repeat;
  118. },
  119. AVKON_ENUMERATED_TEXT
  120. {
  121. value = 0; text = qtn_mrp_setting_off_repeat;
  122. }
  123. };
  124. }
  125. RESOURCE ARRAY r_avp_settings_repeat_on_off_text_array_
  126. {
  127. items = {
  128. LBUF{ txt = qtn_mrp_setting_on_repeat;},
  129. LBUF{ txt = qtn_mrp_setting_off_repeat;}
  130. };
  131. }
  132. //
  133. // PERFORMANCE (POSTFILTER) ON/OFF
  134. //
  135. RESOURCE ARRAY r_rop_array_settings_postfilter_on_off_text
  136. {
  137. items =
  138. {
  139. AVKON_ENUMERATED_TEXT
  140. {
  141. value = 1; text = qtn_mrp_setting_postfilter_on;
  142. },
  143. AVKON_ENUMERATED_TEXT
  144. {
  145. value = 0; text = qtn_mrp_setting_postfilter_off;
  146. }
  147. };
  148. }
  149. RESOURCE ARRAY r_rop_array_settings_postfilter_on_off_text_
  150. {
  151. items = {
  152. LBUF{ txt = qtn_mrp_setting_postfilter_on;},
  153. LBUF{ txt = qtn_mrp_setting_postfilter_off;}
  154. };
  155. }
  156. RESOURCE ARRAY r_rop_array_settings_enable_disable_text
  157. {
  158. items =
  159. {
  160. AVKON_ENUMERATED_TEXT
  161. {
  162. value = 1; text = qtn_mrp_setting_enable;
  163. },
  164. AVKON_ENUMERATED_TEXT
  165. {
  166. value = 0; text = qtn_mrp_setting_disable;
  167. }
  168. };
  169. }
  170. RESOURCE ARRAY r_rop_array_settings_enable_disable_text_
  171. {
  172. items = {
  173. LBUF{ txt = qtn_mrp_setting_enable;},
  174. LBUF{ txt = qtn_mrp_setting_disable;}
  175. };
  176. }
  177. RESOURCE ARRAY r_rop_array_settings_man_auto_text
  178. {
  179. items =
  180. {
  181. AVKON_ENUMERATED_TEXT
  182. {
  183. value = 1; text = qtn_mrp_settings_manual;
  184. },
  185. AVKON_ENUMERATED_TEXT
  186. {
  187. value = 0; text = qtn_mrp_settings_auto;
  188. }
  189. };
  190. }
  191. RESOURCE ARRAY r_rop_array_settings_man_auto_text_
  192. {
  193. items = {
  194. LBUF{ txt = qtn_mrp_settings_manual;},
  195. LBUF{ txt = qtn_mrp_settings_auto;}
  196. };
  197. }
  198. /*******************************************************************
  199. >>> controls
  200. *******************************************************************/
  201. RESOURCE EDWIN r_avp_setting_list_edwin
  202. {
  203. width = 20;
  204. lines = 1;
  205. maxlength = 256;
  206. }
  207. RESOURCE AVKON_INTEGER_EDWIN r_avp_setting_list_int_edwin_percent
  208. {
  209. min = 0; 
  210. max = 100;
  211. }
  212. RESOURCE AVKON_INTEGER_EDWIN r_avp_setting_list_int_edwin_bw
  213. {
  214. min = 0; 
  215. max = 100000000;
  216. }
  217. RESOURCE AVKON_INTEGER_EDWIN r_avp_setting_list_int_edwin_port
  218. {
  219. min = 0; 
  220. max = 65535;
  221. }
  222. RESOURCE AVKON_INTEGER_EDWIN r_avp_setting_list_int_edwin_data_port
  223. {
  224. min = 6970; 
  225. max = 32000;
  226. }
  227. // <**>slider
  228. RESOURCE SLIDER r_avp_setting_list_timeout_slider
  229. {
  230. layout = EAknSettingsItemSliderLayout;
  231. minvalue = 10;
  232. maxvalue = 120;
  233. step = 5;
  234. valuelabel = qtn_timeout_slider_valuelabel;
  235. minlabel = qtn_timeout_slider_minlabel;
  236. maxlabel = qtn_timeout_slider_maxlabel;
  237. }
  238. /*******************************************************************
  239. >>> settings pages // pops up when you select an item for editing
  240. *******************************************************************/
  241. //
  242. // binary popup setting page
  243. //
  244. RESOURCE AVKON_SETTING_PAGE r_avp_default_binary_setting_page
  245. {
  246. number = EAknSettingPageNoOrdinalDisplayed;
  247.     label = ""; // not used?
  248. type = EAknCtPopupSettingList;
  249. editor_resource_id = r_avp_popup_setting_list_binary;
  250. }
  251. //
  252. // enumerated list setting page
  253. //
  254. RESOURCE AVKON_SETTING_PAGE r_avp_default_enum_list_setting_page
  255. {
  256. number = EAknSettingPageNoOrdinalDisplayed;
  257. type = EAknCtPopupSettingList;
  258. editor_resource_id = r_avp_popup_setting_list_default;
  259. }
  260. //
  261. // integer edwin settings
  262. //
  263. RESOURCE AVKON_SETTING_PAGE r_avp_setting_page_proxy_port
  264. {
  265. label = qtn_mrp_setting_proxy_port;
  266. type = EAknCtIntegerEdwin;
  267. editor_resource_id = r_avp_setting_list_int_edwin_port;
  268. }
  269. RESOURCE AVKON_SETTING_PAGE r_avp_setting_page_min_data_port
  270. {
  271. label = qtn_mrp_sett_min_port;
  272. type = EAknCtIntegerEdwin;
  273. editor_resource_id = r_avp_setting_list_int_edwin_data_port;
  274. }
  275. RESOURCE AVKON_SETTING_PAGE r_avp_setting_page_max_data_port
  276. {
  277. label = qtn_mrp_sett_max_port;
  278. type = EAknCtIntegerEdwin;
  279. editor_resource_id = r_avp_setting_list_int_edwin_data_port;
  280. }
  281. RESOURCE AVKON_SETTING_PAGE r_avp_setting_page_min_delivery_bw
  282. {
  283. label = MRP_SETTING_MIN_DEL_BW;
  284. type = EAknCtIntegerEdwin;
  285. editor_resource_id = r_avp_setting_list_int_edwin_bw;
  286. }
  287. RESOURCE AVKON_SETTING_PAGE r_avp_setting_page_max_delivery_bw
  288. {
  289. label = MRP_SETTING_MAX_DEL_BW;
  290. type = EAknCtIntegerEdwin;
  291. editor_resource_id = r_avp_setting_list_int_edwin_bw;
  292. }
  293. //
  294. // slider settings
  295. //
  296. RESOURCE AVKON_SETTING_PAGE r_avp_setting_page_connection_timeout
  297. {
  298. label = qtn_mrp_setting_connect_timeout;
  299. type = EAknCtSlider;
  300. editor_resource_id = r_avp_setting_list_timeout_slider;
  301. }
  302. RESOURCE AVKON_SETTING_PAGE r_avp_setting_page_server_timeout
  303. {
  304. label = qtn_mrp_settings_server_timeout;
  305. type = EAknCtSlider;
  306. editor_resource_id = r_avp_setting_list_timeout_slider;
  307. }
  308. //
  309. // text settings
  310. //
  311. RESOURCE AVKON_SETTING_PAGE r_avp_setting_page_proxy_host
  312. {
  313. label = qtn_mrp_setting_proxy_host;
  314. type = EEikCtEdwin;
  315. editor_resource_id = r_avp_setting_list_edwin;
  316. }
  317. /*******************************************************************
  318. >>> popup settings lists
  319. *******************************************************************/
  320. // for lists
  321. RESOURCE POPUP_SETTING_LIST r_avp_popup_setting_list_default
  322. {
  323. flags = 0; //EAknPopupSettingListFlagAllowsUserDefinedEntry;
  324. }
  325. // for binary items
  326. RESOURCE POPUP_SETTING_LIST r_avp_popup_setting_list_binary
  327. {
  328. flags = 0;
  329. }
  330. /*******************************************************************
  331. >>> settings texts // aggregate arrays of text
  332. *******************************************************************/
  333. RESOURCE AVKON_POPUP_SETTING_TEXTS r_avp_settings_on_off_texts
  334. {
  335. flags = 0;
  336. setting_texts_resource = r_rop_array_settings_on_off_text;
  337. popped_up_texts_resource = r_rop_array_settings_on_off_text_;
  338. }
  339. RESOURCE AVKON_POPUP_SETTING_TEXTS r_avp_settings_repeat_on_off_texts
  340. {
  341. flags = 0;
  342. setting_texts_resource = r_avp_settings_repeat_on_off_text_array;
  343. popped_up_texts_resource = r_avp_settings_repeat_on_off_text_array_;
  344. }
  345. RESOURCE AVKON_POPUP_SETTING_TEXTS r_avp_settings_postfilter_on_off_texts
  346. {
  347. flags = 0;
  348. setting_texts_resource = r_rop_array_settings_postfilter_on_off_text;
  349. popped_up_texts_resource = r_rop_array_settings_postfilter_on_off_text_;
  350. }
  351. RESOURCE AVKON_POPUP_SETTING_TEXTS r_avp_settings_enable_disable_texts
  352. {
  353. flags = 0;
  354. setting_texts_resource = r_rop_array_settings_enable_disable_text;
  355. popped_up_texts_resource = r_rop_array_settings_enable_disable_text_;
  356. }
  357. RESOURCE AVKON_POPUP_SETTING_TEXTS r_avp_settings_man_auto_texts
  358. {
  359. flags = 0;
  360. setting_texts_resource = r_rop_array_settings_man_auto_text;
  361. popped_up_texts_resource = r_rop_array_settings_man_auto_text_;
  362. }
  363. RESOURCE AVKON_POPUP_SETTING_TEXTS r_avp_settings_bw_selection_texts
  364. {
  365. flags = 0;
  366. setting_texts_resource = r_rop_array_connection_bw;
  367. popped_up_texts_resource = r_rop_array_connection_bw_;
  368. }
  369. RESOURCE AVKON_POPUP_SETTING_TEXTS r_avp_settings_scantime_selection_texts
  370. {
  371. flags = 0;
  372. setting_texts_resource = r_rop_array_scan_time;
  373. popped_up_texts_resource = r_rop_array_scan_time_;
  374. }
  375. /*******************************************************************
  376. >>> settings lists
  377. *******************************************************************/
  378. //
  379. // video settings list
  380. //
  381. RESOURCE AVKON_SETTING_ITEM_LIST r_avp_video_settings_list
  382. {
  383. flags = EAknSettingPageNoOrdinalDisplayed;
  384. title = qtn_mrp_sett_title_video;
  385. items =
  386. {
  387. AVKON_SETTING_ITEM
  388. {
  389. identifier = ESetPostFilter;
  390. setting_page_resource = r_avp_default_binary_setting_page;
  391. associated_resource = r_avp_settings_postfilter_on_off_texts;
  392. name = qtn_mrp_setting_post_filter;
  393. },
  394. AVKON_SETTING_ITEM
  395. {
  396. identifier = ESetAutoScaleVideo;
  397. setting_page_resource = r_avp_default_binary_setting_page;
  398. associated_resource = r_avp_settings_on_off_texts;
  399. name = qtn_mrp_sett_auto_scale_video;
  400. }
  401. };
  402. }
  403. RESOURCE AVKON_SETTING_ITEM_LIST r_avp_playback_settings_list
  404. {
  405. flags = EAknSettingPageNoOrdinalDisplayed;
  406. title = qtn_mrp_sett_title_playback;
  407. items =
  408. {
  409. AVKON_SETTING_ITEM
  410. {
  411. identifier = ESetLoopMode;
  412. setting_page_resource = r_avp_default_binary_setting_page;
  413. associated_resource = r_avp_settings_repeat_on_off_texts;
  414. name = qtn_mrp_settings_repeat;
  415. },
  416.         AVKON_SETTING_ITEM
  417. {
  418. identifier = ESetShuffleMode;
  419. setting_page_resource = r_avp_default_binary_setting_page;
  420. associated_resource = r_avp_settings_repeat_on_off_texts;
  421. name = qtn_mrp_settings_shuffle_mode;
  422. },
  423.         AVKON_SETTING_ITEM
  424. {
  425. identifier = ESetClipIntroSecs;
  426. setting_page_resource = r_avp_default_enum_list_setting_page;
  427. associated_resource = r_avp_settings_scantime_selection_texts;
  428. name = qtn_mrp_settings_clip_intro_secs;
  429. }
  430. };
  431. }
  432. //
  433. // network settings list
  434. //
  435. RESOURCE AVKON_SETTING_ITEM_LIST r_avp_network_settings_list
  436. {
  437. flags = EAknSettingPageNoOrdinalDisplayed;
  438. title = qtn_mrp_sett_title_network;
  439. items =
  440. {
  441. AVKON_SETTING_ITEM
  442. {
  443. identifier = ESetDefaultAccessPoint;
  444. name = qtn_mrp_sett_default_ap;
  445. },
  446.         /*
  447. AVKON_SETTING_ITEM
  448. {
  449. identifier = ESetUseManualBW;
  450. setting_page_resource = r_avp_default_binary_setting_page;
  451. associated_resource = r_avp_settings_man_auto_texts;
  452. name = qtn_mrp_settings_automatic_bw;
  453. },*/
  454. AVKON_SETTING_ITEM
  455. {
  456. identifier = ESetNetworkBandwidth;
  457. setting_page_resource = r_avp_default_enum_list_setting_page;
  458. associated_resource = r_avp_settings_bw_selection_texts;
  459. name = qtn_mrp_setting_bw;
  460. },
  461. AVKON_SETTING_ITEM
  462. {
  463. identifier = ESetConnectTimeOut;
  464. setting_page_resource = r_avp_setting_page_connection_timeout;
  465. name = qtn_mrp_setting_connect_timeout;
  466. },
  467. AVKON_SETTING_ITEM
  468. {
  469. identifier = ESetServerTimeOut;
  470. setting_page_resource = r_avp_setting_page_server_timeout;
  471. name = qtn_mrp_settings_server_timeout;
  472. },
  473. AVKON_SETTING_ITEM
  474. {
  475. identifier = ESetMinUdpPort;
  476. setting_page_resource = r_avp_setting_page_min_data_port;
  477. name = qtn_mrp_sett_min_port;
  478. },
  479. AVKON_SETTING_ITEM
  480. {
  481. identifier = ESetMaxUdpPort;
  482. setting_page_resource = r_avp_setting_page_max_data_port;
  483. name = qtn_mrp_sett_max_port;
  484. }
  485. };
  486. }
  487. //
  488. // proxy settings list
  489. //
  490. RESOURCE AVKON_SETTING_ITEM_LIST r_avp_proxy_settings_list
  491. {
  492. flags = EAknSettingPageNoOrdinalDisplayed;
  493. title = qtn_mrp_sett_title_proxy;
  494. items =
  495. {
  496. AVKON_SETTING_ITEM
  497. {
  498. identifier = ESetUseProxyHost;
  499. setting_page_resource = r_avp_default_binary_setting_page;
  500. associated_resource = r_avp_settings_enable_disable_texts;
  501. name = qtn_mrp_settings_use_proxy;
  502. },
  503. AVKON_SETTING_ITEM
  504. {
  505. identifier = ESetProxyHost;
  506. setting_page_resource = r_avp_setting_page_proxy_host;
  507. name = qtn_mrp_setting_proxy_host;
  508. },
  509. AVKON_SETTING_ITEM
  510. {
  511. identifier = ESetProxyPort;
  512. setting_page_resource = r_avp_setting_page_proxy_port;
  513. name = qtn_mrp_setting_proxy_port;
  514. }
  515. };
  516. }