home *** CD-ROM | disk | FTP | other *** search
- // PYRAMID.RSS
- //
-
-
- NAME PRMD
-
- #include <eiklabel.rh>
- #include <eikdef.rh>
- #include <eikmenu.rh>
- #include <eiktbar.rh>
- #include <eikbutb.hrh>
- #include <eikdialg.rh>
- #include <eikctrls.hrh>
- #include <eikmfne.rh>
- #include <eikfpne.rh>
- #include <eikseced.rh>
- #include <eikhopbt.rh>
- #include <eikcmbut.rh>
- #include <eikedwin.rh>
- #include <eikrted.rh>
- #include <eikfsel.rh>
- #include <eikspace.rh>
- #include <eikclock.rh>
- #include <eikon.rsg>
- #include "pyramid.hrh"
-
-
- RESOURCE RSS_SIGNATURE
- {
- }
-
- RESOURCE TBUF { buf="Pyramid"; }
-
-
- RESOURCE EIK_APP_INFO
- {
- hotkeys=r_example_hotkeys;
- menubar=r_example_main_menubar;
- }
-
- //////////////////////////////////////////////////////////////////////////////
- //
- // Short cut keys
- //
- //////////////////////////////////////////////////////////////////////////////
- RESOURCE HOTKEYS r_example_hotkeys
- {
- control=
- {
- HOTKEY {command=EEikCmdNewGame; key='n';},
- HOTKEY {command=EEikCmdStatistics; key='s';},
- HOTKEY {command=EEikCmdCStatistics; key='c';},
- HOTKEY {command=EEikCmdPreferences; key='p';},
- HOTKEY {command=EEikCmdExit; key='e';}
- };
- shift_control=
- {
- HOTKEY {command=EEikCmdAbout; key='a';}
- };
- }
-
-
- RESOURCE MENU_BAR r_example_main_menubar
- {
- titles=
- {
- MENU_TITLE { menu_pane=r_example_file_menu; txt="File"; },
- MENU_TITLE { menu_pane=r_example_tools_menu; txt="Tools"; }
- };
- }
-
-
- RESOURCE MENU_PANE r_example_file_menu
- {
- items=
- {
- MENU_ITEM
- {
- command=EEikCmdNewGame;
- txt="New game";
- flags=EEikMenuItemSeparatorAfter;
- },
- MENU_ITEM
- {
- command=EEikCmdExit;
- txt="Exit";
- }
- };
- }
-
- RESOURCE MENU_PANE r_example_tools_menu
- {
- items=
- {
- MENU_ITEM
- {
- command=EEikCmdStatistics;
- txt="Statistics...";
- },
- MENU_ITEM
- {
- command=EEikCmdCStatistics;
- txt="Clear Statistics";
- },
- MENU_ITEM
- {
- command=EEikCmdPreferences;
- txt="Preferences...";
- flags=EEikMenuItemSeparatorAfter;
- },
- MENU_ITEM
- {
- command=EEikCmdAbout;
- txt="About";
- }
- };
- }
-
- RESOURCE DIALOG r_example_about_dialog
- {
- title="About";
- buttons=R_EIK_BUTTONS_CONTINUE;
- flags=EEikDialogFlagWait;
- items=
- {
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Pyramid v1.2"; };
- id=EExampleControlIdAbout1;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Written by FrÈdÈric Bouvry in 1998"; };
- id=EExampleControlIdAbout2;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Public Domain"; };
- id=EExampleControlIdAbout3;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="www.palmtime.com"; };
- id=EExampleControlIdAbout4;
- }
- };
- }
-
- RESOURCE DIALOG r_example_kill_dialog
- {
- title="New game";
- buttons=R_EIK_BUTTONS_CANCEL_OK;
- flags=EEikDialogFlagWait;
- items=
- {
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="The current game will be terminated"; };
- id=EExampleControlIdKill1;
- }
- };
- }
-
- RESOURCE DIALOG r_example_cstatistics_dialog
- {
- title="Clear Statistics";
- buttons=R_EIK_BUTTONS_CANCEL_OK;
- flags=EEikDialogFlagWait;
- items=
- {
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="The statistics will be cleared"; };
- id=EExampleControlIdClearStats;
- }
- };
- }
-
- RESOURCE ARRAY r_example_horoption_buttons
- {
- items=
- {
- OPBUT { text="None"; id=EExampleControlIdHorOptButton1; },
- OPBUT { text="1"; id=EExampleControlIdHorOptButton2; },
- OPBUT { text="2"; id=EExampleControlIdHorOptButton3; },
- OPBUT { text="3"; id=EExampleControlIdHorOptButton4; }
- };
- }
-
-
- RESOURCE DIALOG r_example_preferences_dialog
- {
- title="Preferences";
- buttons=R_EIK_BUTTONS_CANCEL_OK;
- flags=EEikDialogFlagWait;
- items=
- {
- DLG_LINE
- {
- type=EEikCtHorOptionButList;
- prompt="Redeals allowed:";
- id=EExampleControlIdHorOptButtonList;
- control=HOROPBUT {buttonSpacing=10; array_id=r_example_horoption_buttons;};
- }
- };
- }
-
- RESOURCE DIALOG r_example_win_dialog
- {
- title="52 cards discarded";
- buttons=R_EIK_BUTTONS_CONTINUE;
- flags=EEikDialogFlagWait;
- items=
- {
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Congratulations !!!"; };
- id=EExampleControlIdAbout1;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="You won this game."; };
- id=EExampleControlIdAbout2;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="This score has been added"; };
- id=EExampleControlIdAbout3;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="to the statistics."; };
- id=EExampleControlIdAbout4;
- }
- };
- }
-
- RESOURCE DIALOG r_example_addtostatistics_dialog
- {
- title="Statistics";
- buttons=R_EIK_BUTTONS_CANCEL_OK;
- flags=EEikDialogFlagWait;
- items=
- {
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Add this score to the statistics ?"; };
- id=EExampleControlIdAdd1;
- }
- };
- }
-
- RESOURCE DIALOG r_example_statistics_dialog
- {
- title="Statistics";
- buttons=R_EIK_BUTTONS_CONTINUE;
- flags=EEikDialogFlagWait;
- items=
- {
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Redeals: None/One/Two/Three"; };
- id=EExampleControlIdStat1;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Games Played:"; };
- id=EExampleControlIdStat2;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Games Won:"; };
- id=EExampleControlIdStat3;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Win Percent:"; };
- id=EExampleControlIdStat4;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Ave Score:"; };
- id=EExampleControlIdStat5;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHLeft;txt="Best Score:"; };
- id=EExampleControlIdStat6;
- }
- };
- }
-