home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / Epoc / Palmtime / files / FrotzS5_src.ZIP / FROTZS5.RSS < prev    next >
Encoding:
Text File  |  1999-12-12  |  5.3 KB  |  246 lines

  1. // FROTZS5.RSS
  2. //
  3.  
  4.  
  5. NAME FRTZ
  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 "frotzs5.hrh"
  26.  
  27.  
  28. RESOURCE RSS_SIGNATURE
  29.     {
  30.     }
  31.     
  32. RESOURCE TBUF { buf="FrotzS5"; }
  33.  
  34.  
  35. RESOURCE EIK_APP_INFO
  36.     {    
  37.     hotkeys=r_example_hotkeys; 
  38.     menubar=r_example_main_menubar; 
  39.     toolbar=r_example_buttons_toolbar;
  40.     }
  41.  
  42. //////////////////////////////////////////////////////////////////////////////
  43. //
  44. // Short cut keys
  45. //
  46. //////////////////////////////////////////////////////////////////////////////
  47. RESOURCE HOTKEYS r_example_hotkeys
  48.     {
  49.     control=
  50.             {
  51.             HOTKEY {command=EEikCmdOpenStory;            key='o';},
  52.             HOTKEY {command=EEikCmdExit;                 key='e';},
  53.             HOTKEY {command=EEikCmdTerminate;            key='k';},
  54.             HOTKEY {command=EEikCmdZoomIn;               key='m';},
  55.             HOTKEY {command=EEikCmdShowToolbar;          key='t';},
  56.             HOTKEY {command=EEikCmdBoldMode;             key='b';}
  57.             };
  58.     shift_control=
  59.             {
  60.             HOTKEY {command=EEikCmdAbout;            key='a';},
  61.             HOTKEY {command=EEikCmdZoomOut;          key='m';}
  62.             };
  63.     }
  64.  
  65.  
  66. RESOURCE MENU_BAR r_example_main_menubar
  67.     {
  68.     titles=
  69.         {
  70.             MENU_TITLE { menu_pane=r_example_file_menu; txt="File"; },
  71.             MENU_TITLE { menu_pane=r_example_view_menu; txt="View"; },
  72.             MENU_TITLE { menu_pane=r_example_tools_menu; txt="Tools"; }
  73.         };
  74.     }
  75.  
  76.  
  77. RESOURCE TOOLBAR r_example_buttons_toolbar
  78.     {
  79.     controls=
  80.         {
  81.         TBAR_CTRL 
  82.             { 
  83.             id=EFrotzCmdFileName;
  84.             type=EEikCtFileNameLabel; 
  85.             flags=EEikToolBarCtrlHasSetMinLength;
  86.             length=KEikStdFileNameLabelHeight;
  87.             },
  88.         TBAR_BUTTON 
  89.                     {
  90.                     id=EEikCmdOpenStory;
  91.                     txt="Open\nStory";
  92.                     flags=EEikToolBarCtrlHasSetMinLength;
  93.                     length=KEikStdToolBarButtonHeight;
  94.                     },
  95.         TBAR_BUTTON 
  96.                     {
  97.                     id=EEikCmdTerminate;
  98.                     txt="Terminate\nStory";
  99.                       flags=EEikToolBarCtrlHasSetMinLength;
  100.                     length=KEikStdToolBarButtonHeight;
  101.                     },
  102.         TBAR_BUTTON 
  103.                     {
  104.                     id=EEikCmdExit;
  105.                     txt="Exit";
  106.                     flags=EEikToolBarCtrlHasSetMinLength;
  107.                     length=KEikStdToolBarButtonHeight;
  108.                     },
  109.         TBAR_CTRL
  110.             {
  111.             type=EEikCtSpacer;
  112.             flags=EEikToolBarCtrlHasSetMinLength|EEikToolBarCtrlIsStretchable;
  113.             length=0;
  114.             control=SPACER;
  115.             },
  116.         TBAR_CTRL
  117.             {
  118.             type=EEikCtClock;
  119.             control=CLOCK { digitalresourceid=R_EIK_DIGITAL_CLOCK; analogresourceid=R_EIK_ANALOG_CLOCK; };
  120.             },
  121.         TBAR_CTRL
  122.             {
  123.             type=EEikCtSpacer;
  124.             flags=EEikToolBarCtrlHasSetMinLength;
  125.             length=KEikStdGapBelowClock;
  126.             control=SPACER;
  127.             }
  128.         };    
  129.     }  
  130.  
  131. RESOURCE MENU_PANE r_example_file_menu
  132.     {
  133.     items=
  134.         {
  135.         MENU_ITEM 
  136.             { 
  137.             command=EEikCmdOpenStory; 
  138.             txt="Open Story"; 
  139.             flags=EEikMenuItemSeparatorAfter; 
  140.             },
  141.         MENU_ITEM 
  142.             { 
  143.             command=EEikCmdExit; 
  144.             txt="Exit"; 
  145.             }
  146.         };
  147.     }
  148.  
  149. RESOURCE MENU_PANE r_example_view_menu
  150.     {
  151.     items=
  152.         {
  153.         MENU_ITEM
  154.             {
  155.             command=EEikCmdZoomIn;
  156.             txt="Zoom in";
  157.             },
  158.         MENU_ITEM
  159.             {
  160.             command=EEikCmdZoomOut;
  161.             txt="Zoom out";
  162.             flags=EEikMenuItemSeparatorAfter; 
  163.             },
  164.         MENU_ITEM 
  165.             { 
  166.             command=EEikCmdBoldMode; 
  167.             txt="Toggle Bold mode"; 
  168.             },
  169.         MENU_ITEM
  170.             {
  171.             command=EEikCmdShowToolbar;
  172.             txt="Toggle toolbar";
  173.             }
  174.         };
  175.     }
  176.  
  177. RESOURCE MENU_PANE r_example_tools_menu
  178.     {
  179.     items=
  180.         {
  181.         MENU_ITEM 
  182.             { 
  183.             command=EEikCmdTerminate; 
  184.             txt="Terminate Story"; 
  185.             flags=EEikMenuItemSeparatorAfter; 
  186.             },
  187.         MENU_ITEM 
  188.             { 
  189.             command=EEikCmdAbout; 
  190.             txt="About"; 
  191.             }
  192.         };
  193.     }
  194.  
  195. RESOURCE DIALOG r_example_about_dialog
  196.     {
  197.     title="About";
  198.     buttons=R_EIK_BUTTONS_CONTINUE;
  199.     flags=EEikDialogFlagWait;
  200.     items=
  201.         {
  202.         DLG_LINE
  203.             {
  204.             type=EEikCtLabel;
  205.             control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="FrotzS5 v1.5"; };
  206.             id=EExampleControlIdAbout1;
  207.             },
  208.         DLG_LINE
  209.             {
  210.             type=EEikCtLabel;
  211.             control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="(c)1999 FrÈdÈric Bouvry & Simon Quinn"; };
  212.             id=EExampleControlIdAbout2;
  213.             },
  214.         DLG_LINE
  215.             {
  216.             type=EEikCtLabel;
  217.             control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Freeware"; };
  218.             id=EExampleControlIdAbout3;
  219.             },
  220.         DLG_LINE
  221.             {
  222.             type=EEikCtLabel;
  223.             control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="www.palmtime.com"; };
  224.             id=EExampleControlIdAbout4;
  225.             }
  226.         };
  227.     }
  228.  
  229. RESOURCE DIALOG r_example_kill_dialog
  230.     {
  231.     title="Terminate Story";
  232.     buttons=R_EIK_BUTTONS_CANCEL_OK;
  233.     flags=EEikDialogFlagWait;
  234.     items=
  235.         {
  236.         DLG_LINE
  237.             {
  238.             type=EEikCtLabel;
  239.             control = LABEL { horiz_align = EEikLabelAlignHCenter;txt="Ready to terminate the active story\n(maybe you didn't save your game)"; };
  240.             id=EExampleControlIdKill1;
  241.             }
  242.         };
  243.     }
  244.  
  245.  
  246.