examples/Stdlib/GUIApp/GUIApp.rss

00001 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 //
00015 
00016 
00017 NAME slsm
00018                 // Include definitions of resource STRUCTS used by this
00019                 // resource script 
00020 
00021 #include <eikon.rh>
00022 #include <eikon.rsg>
00023 
00024 #include "GUIApp.hrh"
00025 
00026 
00027 RESOURCE RSS_SIGNATURE
00028         {
00029         }
00030         
00031 RESOURCE TBUF { buf=""; } // default document name. if "empty" eikon takes 
00032                           // the iCaption value in ApaProcess
00033 
00034 RESOURCE EIK_APP_INFO
00035         {       
00036         hotkeys=r_example_hotkeys; 
00037         menubar=r_example_main_menubar; 
00038         }
00039 
00040 
00042 //
00043 // Short cut keys
00044 //
00046 RESOURCE HOTKEYS r_example_hotkeys
00047     {
00048         control=
00049                         {
00050                         HOTKEY {command=EEikCmdExit;                 key='e';},
00051                         HOTKEY {command=EExampleCmdChecksum;         key='c';},
00052                         HOTKEY {command=EExampleCmdViewChecksums;    key='k';}
00053                         };
00054     }
00055 
00057 //
00058 // The menu bar
00059 //
00061 RESOURCE MENU_BAR r_example_main_menubar
00062     {
00063     titles=
00064         {
00065                 MENU_TITLE { menu_pane=r_example_file_menu;   txt="File"; }
00066                 };
00067     }
00068 
00070 //
00071 // The "file" menu pane hung directly from the menu bar
00072 //
00074 RESOURCE MENU_PANE r_example_file_menu
00075     {
00076     items=
00077                 {
00078                 MENU_ITEM
00079                         {
00080                         command=EExampleCmdChecksum;
00081                         txt="Calculate checksum...";
00082                         },
00083                 MENU_ITEM
00084                         {
00085                         command=EExampleCmdViewChecksums;
00086                         txt="View checksums...";
00087                         flags=EEikMenuItemSeparatorAfter; 
00088                         },
00089                 MENU_ITEM 
00090                         { 
00091                         command=EEikCmdExit; 
00092                         txt="Close";
00093                         }
00094                 };
00095     }
00096 
00097 
00099 //
00100 // Dialog to select a file and calculate a checksum
00101 //
00103 RESOURCE DIALOG r_example_checksum_dialog
00104         {
00105         title="Calculate checksum";
00106         buttons=R_EIK_BUTTONS_CONTINUE;
00107         flags=EEikDialogFlagWait;
00108         items=
00109                 {
00110                 DLG_LINE
00111                         {
00112             prompt="Name";
00113             type=EEikCtFileNameSel;
00114             id=EEikCidFileNameSel;
00115             control=FILENAMESELECTOR {};
00116             },
00117         DLG_LINE
00118             {
00119             prompt="Folder";
00120             type=EEikCtFolderNameSel;
00121             id=EEikCidFolderNameSel;
00122             control=FOLDERNAMESELECTOR {};
00123             },
00124         DLG_LINE
00125             {
00126             prompt="Disk";
00127             type=EEikCtDriveNameSel;
00128             id=EEikCidDriveNameSel;
00129             control=DRIVENAMESELECTOR {};
00130           }
00131                 };
00132         }
00133 
00135 //
00136 // Dialog to view all checksums
00137 //
00139 RESOURCE DIALOG r_example_checksum_info_dialog
00140         {
00141         title = "Checksum information";
00142         buttons=R_EIK_BUTTONS_CONTINUE;
00143         flags=EEikDialogFlagWait;
00144         items =
00145                 {
00146                 DLG_LINE
00147                         {
00148                         type = EEikCtListBox;
00149                         id = EExampleChecksumListBox;
00150                         control = LISTBOX
00151                                 {
00152                                 flags = EEikListBoxIncrementalMatching;
00153                                 };
00154                         }
00155                 };
00156         }
00157 
00159 //
00160 // Text used for the info messages
00161 //
00163 RESOURCE TBUF r_example_text_cksum                         { buf="Checksum = %u"; }
00164 RESOURCE TBUF r_example_text_error                         { buf="Error opening file %S"; }
00165 RESOURCE TBUF r_example_text_cksum_error           { buf="Error assigning checksum"; }
00166 

Generated by  doxygen 1.6.2