home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / Epoc / Palmtime / files / Pyramid_src.ZIP / PYRAMID.RSS < prev    next >
Encoding:
Text File  |  1999-12-15  |  6.7 KB  |  309 lines

  1. // PYRAMID.RSS
  2. //
  3.  
  4.  
  5. NAME PRMD
  6.  
  7. #include <eiklabel.rh>
  8. #include <eikdef.rh>
  9. #include <eikmenu.rh>
  10. #include <eiktbar.rh>
  11. #include <eikbutb.hrh>
  12. #include <eikdialg.rh>
  13. #include <eikctrls.hrh>
  14. #include <eikmfne.rh>
  15. #include <eikfpne.rh>
  16. #include <eikseced.rh>
  17. #include <eikhopbt.rh>
  18. #include <eikcmbut.rh>
  19. #include <eikedwin.rh>
  20. #include <eikrted.rh>
  21. #include <eikfsel.rh>
  22. #include <eikspace.rh>
  23. #include <eikclock.rh>
  24. #include <eikon.rsg>
  25. #include "pyramid.hrh"
  26.  
  27.  
  28. RESOURCE RSS_SIGNATURE
  29.     {
  30.     }
  31.     
  32. RESOURCE TBUF { buf="Pyramid"; }
  33.  
  34.  
  35. RESOURCE EIK_APP_INFO
  36.     {       
  37.     hotkeys=r_example_hotkeys; 
  38.     menubar=r_example_main_menubar; 
  39.     }
  40.  
  41. //////////////////////////////////////////////////////////////////////////////
  42. //
  43. // Short cut keys
  44. //
  45. //////////////////////////////////////////////////////////////////////////////
  46. RESOURCE HOTKEYS r_example_hotkeys
  47.     {
  48.     control=
  49.             {
  50.             HOTKEY {command=EEikCmdNewGame;              key='n';},
  51.             HOTKEY {command=EEikCmdStatistics;           key='s';},
  52.             HOTKEY {command=EEikCmdCStatistics;          key='c';},
  53.             HOTKEY {command=EEikCmdPreferences;          key='p';},
  54.             HOTKEY {command=EEikCmdExit;                 key='e';}
  55.             };
  56.     shift_control=
  57.             {
  58.             HOTKEY {command=EEikCmdAbout;            key='a';}
  59.             };
  60.     }
  61.  
  62.  
  63. RESOURCE MENU_BAR r_example_main_menubar
  64.     {
  65.     titles=
  66.     {
  67.         MENU_TITLE { menu_pane=r_example_file_menu; txt="File"; },
  68.         MENU_TITLE { menu_pane=r_example_tools_menu; txt="Tools"; }
  69.         };
  70.     }
  71.  
  72.  
  73. RESOURCE MENU_PANE r_example_file_menu
  74.     {
  75.     items=
  76.     {
  77.     MENU_ITEM 
  78.             { 
  79.             command=EEikCmdNewGame; 
  80.             txt="New game"; 
  81.             flags=EEikMenuItemSeparatorAfter; 
  82.             },
  83.     MENU_ITEM 
  84.             { 
  85.             command=EEikCmdExit; 
  86.             txt="Exit"; 
  87.             }
  88.         };
  89.     }
  90.  
  91. RESOURCE MENU_PANE r_example_tools_menu
  92.     {
  93.     items=
  94.     {
  95.     MENU_ITEM 
  96.             { 
  97.             command=EEikCmdStatistics; 
  98.             txt="Statistics..."; 
  99.             },
  100.     MENU_ITEM 
  101.             { 
  102.             command=EEikCmdCStatistics; 
  103.             txt="Clear Statistics"; 
  104.             },
  105.     MENU_ITEM 
  106.             { 
  107.             command=EEikCmdPreferences; 
  108.             txt="Preferences..."; 
  109.             flags=EEikMenuItemSeparatorAfter; 
  110.             },
  111.     MENU_ITEM 
  112.             { 
  113.             command=EEikCmdAbout; 
  114.             txt="About"; 
  115.             }
  116.         };
  117.     }
  118.  
  119. RESOURCE DIALOG r_example_about_dialog
  120.     {
  121.     title="About";
  122.     buttons=R_EIK_BUTTONS_CONTINUE;
  123.     flags=EEikDialogFlagWait;
  124.     items=
  125.         {
  126.         DLG_LINE
  127.         {
  128.         type=EEikCtLabel;
  129.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Pyramid v1.2"; };
  130.         id=EExampleControlIdAbout1;
  131.         },
  132.         DLG_LINE
  133.         {
  134.         type=EEikCtLabel;
  135.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Written by FrÈdÈric Bouvry in 1998"; };
  136.         id=EExampleControlIdAbout2;
  137.         },
  138.         DLG_LINE
  139.         {
  140.         type=EEikCtLabel;
  141.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Public Domain"; };
  142.         id=EExampleControlIdAbout3;
  143.         },
  144.         DLG_LINE
  145.         {
  146.         type=EEikCtLabel;
  147.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="www.palmtime.com"; };
  148.         id=EExampleControlIdAbout4;
  149.         }
  150.         };
  151.     }
  152.  
  153. RESOURCE DIALOG r_example_kill_dialog
  154.     {
  155.     title="New game";
  156.     buttons=R_EIK_BUTTONS_CANCEL_OK;
  157.     flags=EEikDialogFlagWait;
  158.     items=
  159.         {
  160.         DLG_LINE
  161.         {
  162.         type=EEikCtLabel;
  163.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="The current game will be terminated"; };
  164.         id=EExampleControlIdKill1;
  165.         }
  166.         };
  167.     }
  168.  
  169. RESOURCE DIALOG r_example_cstatistics_dialog
  170.     {
  171.     title="Clear Statistics";
  172.     buttons=R_EIK_BUTTONS_CANCEL_OK;
  173.     flags=EEikDialogFlagWait;
  174.     items=
  175.         {
  176.         DLG_LINE
  177.         {
  178.         type=EEikCtLabel;
  179.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="The statistics will be cleared"; };
  180.         id=EExampleControlIdClearStats;
  181.         }
  182.         };
  183.     }
  184.  
  185. RESOURCE ARRAY r_example_horoption_buttons
  186.     {
  187.     items=
  188.         {
  189.         OPBUT { text="None"; id=EExampleControlIdHorOptButton1; },
  190.         OPBUT { text="1"; id=EExampleControlIdHorOptButton2; },
  191.         OPBUT { text="2"; id=EExampleControlIdHorOptButton3; },
  192.         OPBUT { text="3"; id=EExampleControlIdHorOptButton4; }
  193.         };
  194.     }
  195.  
  196.  
  197. RESOURCE DIALOG r_example_preferences_dialog
  198.     {
  199.     title="Preferences";
  200.     buttons=R_EIK_BUTTONS_CANCEL_OK;
  201.     flags=EEikDialogFlagWait;
  202.     items=
  203.         {
  204.         DLG_LINE
  205.         {
  206.         type=EEikCtHorOptionButList;
  207.         prompt="Redeals allowed:";
  208.         id=EExampleControlIdHorOptButtonList;
  209.         control=HOROPBUT {buttonSpacing=10; array_id=r_example_horoption_buttons;};
  210.         }
  211.         };
  212.     }
  213.  
  214. RESOURCE DIALOG r_example_win_dialog
  215.     {
  216.     title="52 cards discarded";
  217.     buttons=R_EIK_BUTTONS_CONTINUE;
  218.     flags=EEikDialogFlagWait;
  219.     items=
  220.         {
  221.         DLG_LINE
  222.         {
  223.         type=EEikCtLabel;
  224.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Congratulations !!!"; };
  225.         id=EExampleControlIdAbout1;
  226.         },
  227.         DLG_LINE
  228.         {
  229.         type=EEikCtLabel;
  230.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="You won this game."; };
  231.         id=EExampleControlIdAbout2;
  232.         },
  233.         DLG_LINE
  234.         {
  235.         type=EEikCtLabel;
  236.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="This score has been added"; };
  237.         id=EExampleControlIdAbout3;
  238.         },
  239.         DLG_LINE
  240.         {
  241.         type=EEikCtLabel;
  242.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="to the statistics."; };
  243.         id=EExampleControlIdAbout4;
  244.         }
  245.         };
  246.     }
  247.  
  248. RESOURCE DIALOG r_example_addtostatistics_dialog
  249.     {
  250.     title="Statistics";
  251.     buttons=R_EIK_BUTTONS_CANCEL_OK;
  252.     flags=EEikDialogFlagWait;
  253.     items=
  254.         {
  255.         DLG_LINE
  256.         {
  257.         type=EEikCtLabel;
  258.         control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Add this score to the statistics ?"; };
  259.         id=EExampleControlIdAdd1;
  260.         }
  261.         };
  262.     }
  263.  
  264. RESOURCE DIALOG r_example_statistics_dialog
  265.     {
  266.     title="Statistics";
  267.     buttons=R_EIK_BUTTONS_CONTINUE;
  268.     flags=EEikDialogFlagWait;
  269.     items=
  270.         {
  271.         DLG_LINE
  272.         {
  273.         type=EEikCtLabel;
  274.         control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Redeals: None/One/Two/Three"; };
  275.         id=EExampleControlIdStat1;
  276.         },
  277.         DLG_LINE
  278.         {
  279.         type=EEikCtLabel;
  280.         control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Games Played:"; };
  281.         id=EExampleControlIdStat2;
  282.         },
  283.         DLG_LINE
  284.         {
  285.         type=EEikCtLabel;
  286.         control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Games Won:"; };
  287.         id=EExampleControlIdStat3;
  288.         },
  289.         DLG_LINE
  290.         {
  291.         type=EEikCtLabel;
  292.         control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Win Percent:"; };
  293.         id=EExampleControlIdStat4;
  294.         },
  295.         DLG_LINE
  296.         {
  297.         type=EEikCtLabel;
  298.         control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Ave Score:"; };
  299.         id=EExampleControlIdStat5;
  300.         },
  301.         DLG_LINE
  302.         {
  303.         type=EEikCtLabel;
  304.         control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Best Score:"; };
  305.         id=EExampleControlIdStat6;
  306.         }
  307.         };
  308.     }
  309.