home *** CD-ROM | disk | FTP | other *** search
- // FROTZS5.RSS
- //
-
-
- NAME FRTZ
-
- #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 "frotzs5.hrh"
-
-
- RESOURCE RSS_SIGNATURE
- {
- }
-
- RESOURCE TBUF { buf="FrotzS5"; }
-
-
- RESOURCE EIK_APP_INFO
- {
- hotkeys=r_example_hotkeys;
- menubar=r_example_main_menubar;
- toolbar=r_example_buttons_toolbar;
- }
-
- //////////////////////////////////////////////////////////////////////////////
- //
- // Short cut keys
- //
- //////////////////////////////////////////////////////////////////////////////
- RESOURCE HOTKEYS r_example_hotkeys
- {
- control=
- {
- HOTKEY {command=EEikCmdOpenStory; key='o';},
- HOTKEY {command=EEikCmdExit; key='e';},
- HOTKEY {command=EEikCmdTerminate; key='k';},
- HOTKEY {command=EEikCmdZoomIn; key='m';},
- HOTKEY {command=EEikCmdShowToolbar; key='t';},
- HOTKEY {command=EEikCmdBoldMode; key='b';}
- };
- shift_control=
- {
- HOTKEY {command=EEikCmdAbout; key='a';},
- HOTKEY {command=EEikCmdZoomOut; key='m';}
- };
- }
-
-
- RESOURCE MENU_BAR r_example_main_menubar
- {
- titles=
- {
- MENU_TITLE { menu_pane=r_example_file_menu; txt="File"; },
- MENU_TITLE { menu_pane=r_example_view_menu; txt="View"; },
- MENU_TITLE { menu_pane=r_example_tools_menu; txt="Tools"; }
- };
- }
-
-
- RESOURCE TOOLBAR r_example_buttons_toolbar
- {
- controls=
- {
- TBAR_CTRL
- {
- id=EFrotzCmdFileName;
- type=EEikCtFileNameLabel;
- flags=EEikToolBarCtrlHasSetMinLength;
- length=KEikStdFileNameLabelHeight;
- },
- TBAR_BUTTON
- {
- id=EEikCmdOpenStory;
- txt="Open\nStory";
- flags=EEikToolBarCtrlHasSetMinLength;
- length=KEikStdToolBarButtonHeight;
- },
- TBAR_BUTTON
- {
- id=EEikCmdTerminate;
- txt="Terminate\nStory";
- flags=EEikToolBarCtrlHasSetMinLength;
- length=KEikStdToolBarButtonHeight;
- },
- TBAR_BUTTON
- {
- id=EEikCmdExit;
- txt="Exit";
- flags=EEikToolBarCtrlHasSetMinLength;
- length=KEikStdToolBarButtonHeight;
- },
- TBAR_CTRL
- {
- type=EEikCtSpacer;
- flags=EEikToolBarCtrlHasSetMinLength|EEikToolBarCtrlIsStretchable;
- length=0;
- control=SPACER;
- },
- TBAR_CTRL
- {
- type=EEikCtClock;
- control=CLOCK { digitalresourceid=R_EIK_DIGITAL_CLOCK; analogresourceid=R_EIK_ANALOG_CLOCK; };
- },
- TBAR_CTRL
- {
- type=EEikCtSpacer;
- flags=EEikToolBarCtrlHasSetMinLength;
- length=KEikStdGapBelowClock;
- control=SPACER;
- }
- };
- }
-
- RESOURCE MENU_PANE r_example_file_menu
- {
- items=
- {
- MENU_ITEM
- {
- command=EEikCmdOpenStory;
- txt="Open Story";
- flags=EEikMenuItemSeparatorAfter;
- },
- MENU_ITEM
- {
- command=EEikCmdExit;
- txt="Exit";
- }
- };
- }
-
- RESOURCE MENU_PANE r_example_view_menu
- {
- items=
- {
- MENU_ITEM
- {
- command=EEikCmdZoomIn;
- txt="Zoom in";
- },
- MENU_ITEM
- {
- command=EEikCmdZoomOut;
- txt="Zoom out";
- flags=EEikMenuItemSeparatorAfter;
- },
- MENU_ITEM
- {
- command=EEikCmdBoldMode;
- txt="Toggle Bold mode";
- },
- MENU_ITEM
- {
- command=EEikCmdShowToolbar;
- txt="Toggle toolbar";
- }
- };
- }
-
- RESOURCE MENU_PANE r_example_tools_menu
- {
- items=
- {
- MENU_ITEM
- {
- command=EEikCmdTerminate;
- txt="Terminate Story";
- 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="FrotzS5 v1.5"; };
- id=EExampleControlIdAbout1;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="(c)1999 FrÈdÈric Bouvry & Simon Quinn"; };
- id=EExampleControlIdAbout2;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Freeware"; };
- id=EExampleControlIdAbout3;
- },
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="www.palmtime.com"; };
- id=EExampleControlIdAbout4;
- }
- };
- }
-
- RESOURCE DIALOG r_example_kill_dialog
- {
- title="Terminate Story";
- buttons=R_EIK_BUTTONS_CANCEL_OK;
- flags=EEikDialogFlagWait;
- items=
- {
- DLG_LINE
- {
- type=EEikCtLabel;
- control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Ready to terminate the active story\n(maybe you didn't save your game)"; };
- id=EExampleControlIdKill1;
- }
- };
- }
-
-
-