S60UIExample.rss
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:5k
源码类别:

Symbian

开发平台:

C/C++

  1. // Copyright (c) 2006 Nokia Corporation.
  2. //  RESOURCE IDENTIFIER
  3. NAME S60U    // 4 letter ID
  4. //  INCLUDES
  5. #include <eikon.rh>
  6. #include <avkon.rh>
  7. #include <avkon.rsg>
  8. #include <appinfo.rh>
  9. #include "S60UIExample.hrh"
  10. #include "S60UIExample.rls"
  11. //  RESOURCE DEFINITIONS
  12. // -----------------------------------------------------------------------------
  13. //
  14. //    Define the resource file signature
  15. //    This resource should be empty.
  16. //
  17. // -----------------------------------------------------------------------------
  18. //
  19. RESOURCE RSS_SIGNATURE
  20.     {
  21.     }
  22. // -----------------------------------------------------------------------------
  23. //
  24. //    Default Document Name
  25. //
  26. // -----------------------------------------------------------------------------
  27. //
  28. RESOURCE TBUF r_default_document_name
  29.     {
  30.     buf="HEWB";
  31.     }
  32. // -----------------------------------------------------------------------------
  33. //
  34. //    Define default menu and CBA key.
  35. //
  36. // -----------------------------------------------------------------------------
  37. //
  38. RESOURCE EIK_APP_INFO
  39.     {
  40.     }
  41. // -----------------------------------------------------------------------------
  42. //
  43. //    r_s60uiexample_initialview
  44. //    Define initial view 
  45. //
  46. // -----------------------------------------------------------------------------
  47. //
  48. RESOURCE AVKON_VIEW r_s60uiexample_initialview
  49.     {
  50.     menubar = r_s60uiexample_initialmenubar;
  51.     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
  52.     }
  53. // -----------------------------------------------------------------------------
  54. //
  55. //   r_s60uiexample_initialmenubar
  56. //   Menu title definition
  57. //
  58. // -----------------------------------------------------------------------------
  59. //
  60. RESOURCE MENU_BAR r_s60uiexample_initialmenubar
  61.     {
  62.     titles =
  63.         {
  64.         MENU_TITLE
  65.             {
  66.             menu_pane = r_s60uiexample_initialmenu;
  67.             }
  68.         };
  69.     }
  70. // -----------------------------------------------------------------------------
  71. //
  72. //   r_s60uiexample_initialmenu
  73. //   Menu for "Options"
  74. //
  75. // -----------------------------------------------------------------------------
  76. //
  77. RESOURCE MENU_PANE r_s60uiexample_initialmenu
  78.     {
  79.     items =
  80.         {
  81.         MENU_ITEM
  82.             {
  83.             command = ES60UIExampleStartGame;
  84.             txt = qtn_startgame;
  85.             },
  86.         MENU_ITEM
  87.             {
  88.             command = ES60UIExampleContinueGame;
  89.             txt = qtn_continuegame;
  90.             },
  91.         MENU_ITEM
  92.             {
  93.             command = EAknSoftkeyExit;
  94.             txt = qtn_exit;
  95.             }
  96.         };
  97.     }
  98. // -----------------------------------------------------------------------------
  99. //
  100. //    r_s60uiexample_playview
  101. //    Define play view 
  102. //
  103. // -----------------------------------------------------------------------------
  104. //
  105. RESOURCE AVKON_VIEW r_s60uiexample_playview
  106.     {
  107.     menubar = r_s60uiexample_playmenubar;
  108.     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
  109.     }
  110. // -----------------------------------------------------------------------------
  111. //
  112. //   r_S60UIExample_playmenubar
  113. //   Menu title definition
  114. //
  115. // -----------------------------------------------------------------------------
  116. //
  117. RESOURCE MENU_BAR r_s60uiexample_playmenubar
  118.     {
  119.         titles =
  120.         {
  121.             MENU_TITLE
  122.             {
  123.             menu_pane = r_s60uiexample_playmenu;
  124.             }
  125.         };
  126.     }
  127. // -----------------------------------------------------------------------------
  128. //
  129. //   r_s60uiexample_playmenu
  130. //   Menu for "Options"
  131. //
  132. // -----------------------------------------------------------------------------
  133. //
  134. RESOURCE MENU_PANE r_s60uiexample_playmenu
  135.     {
  136.     items =
  137.         {
  138.             MENU_ITEM
  139.             {
  140.                 command = ES60UIExampleStopGame;
  141.                 txt = qtn_endgame;
  142.             },
  143.             MENU_ITEM
  144.             {
  145.                 command = ES60UIExampleContinueGame;
  146.                 txt = qtn_continuegame;
  147.             },
  148.             MENU_ITEM
  149.             {
  150.                 command = ES60UIExampleStartGame;
  151.                 txt = qtn_restartgame;
  152.             },
  153.             MENU_ITEM
  154.             {
  155.                 command = ES60UIExamplePauseGame;
  156.                 txt = qtn_pausegame;
  157.             },
  158.             MENU_ITEM
  159.             {
  160.                 command = EAknSoftkeyExit;
  161.                 txt = qtn_exit;
  162.             }
  163.         };
  164.     }
  165.     
  166. // -----------------------------------------------------------------------------
  167. //
  168. // String Resources
  169. //
  170. // -----------------------------------------------------------------------------
  171. //
  172. RESOURCE TBUF32 r_s60uiexample_title_text
  173.     { 
  174.     buf = qtn_s60uiexample_title_text; 
  175.     }
  176. // ---------------------------------------------------------------------------- 
  177. //
  178. // r_localisable_app_info
  179. //
  180. // ---------------------------------------------------------------------------- 
  181. //
  182. RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
  183.     {
  184.     short_caption = qtn_short_caption_string;
  185.     caption_and_icon = 
  186.     CAPTION_AND_ICON_INFO
  187.         {
  188.         caption = qtn_caption_string;
  189.         number_of_icons = 1;
  190.     icon_file = "\resource\apps\S60UIExample_icon.mif";
  191.     };
  192.     }
  193. // End of File