examples/ForumNokia/DBMS/data/DBMS.rss

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 NAME DBMS // Can be any four letter ID.
00006 
00007 //  INCLUDES
00008 
00009 #include <eikon.rh>
00010 #include <avkon.rh>
00011 #include <avkon.rsg>
00012 #include "DBMS.hrh"
00013 
00014 // ---------------------------------------------------------
00015 //   
00016 //    Define the resource file signature 
00017 //    This resource should be empty.
00018 //
00019 // ---------------------------------------------------------
00020 //
00021 RESOURCE RSS_SIGNATURE 
00022     { 
00023     }
00024 
00025 // ---------------------------------------------------------
00026 //   
00027 //    Default Document Name
00028 //
00029 // ---------------------------------------------------------
00030 //
00031 RESOURCE TBUF 
00032     { 
00033     buf=""; 
00034     }
00035 
00036 // ---------------------------------------------------------
00037 //   
00038 //    Define default menu and CBA key.
00039 //
00040 // ---------------------------------------------------------
00041 //
00042 RESOURCE EIK_APP_INFO
00043     {
00044     menubar = r_main_menubar;
00045     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00046     }
00047 
00048 // ---------------------------------------------------------
00049 //   
00050 //   r_main_menubar
00051 //   Main menubar
00052 //
00053 // ---------------------------------------------------------
00054 //
00055 RESOURCE MENU_BAR r_main_menubar
00056     {
00057     titles =
00058         {
00059         MENU_TITLE 
00060             {
00061             menu_pane = r_main_menu;
00062             }
00063         };
00064     }
00065 
00066 
00067 // ---------------------------------------------------------
00068 //   
00069 //   r_main_menu
00070 //   Menu for "Options"
00071 //   See BookstoreDb.hrh for commands
00072 //
00073 // ---------------------------------------------------------
00074 //
00075 RESOURCE MENU_PANE r_main_menu
00076     {
00077     items = 
00078         {
00079         MENU_ITEM { command = EOpenCmd; txt = "Open"; },
00080         MENU_ITEM { command = ECreateCmd; txt = "New database"; },
00081         MENU_ITEM { command = ERemoveDbCmd; txt = "Remove database"; },
00082         MENU_ITEM { command = EAddBookCmd; txt = "Add a book"; },
00083         MENU_ITEM { command = EBackCmd; txt = "Back"; },        
00084         MENU_ITEM { command = EAddBookAPICmd; txt = "Add using API"; },
00085         MENU_ITEM { command = EAddBookSQLCmd; txt = "Add with SQL"; },
00086         MENU_ITEM { command = ERemoveBookCmd; txt = "Remove"; },   
00087         MENU_ITEM { command = ERemoveAllBooksCmd; txt = "Remove all books"; },        
00088         MENU_ITEM { command = EChangeTitleCmd; txt = "Change title"; },           
00089         MENU_ITEM { command = EGetAllBooksCmd; txt = "Get All books"; },
00090         MENU_ITEM { command = ESearchBooksCmd; txt = "Multiple search"; },
00091         MENU_ITEM { command = EQuickFindCmd; txt = "Details"; },
00092         MENU_ITEM { command = EAddDateCmd; txt = "Add a date column"; },
00093         MENU_ITEM { command = ERemoveDateCmd; txt = "Remove date column"; },        
00094         MENU_ITEM { command = EColumnNamesCmd; txt = "Get columns"; },
00095         MENU_ITEM { command = ECloseCmd; txt = "Close database"; }
00096         };
00097     }
00098     
00099 //----------------------------------------------------
00100 //    r_simple_edwin
00101 //    Resource for editing book properties in BookEditorView
00102 //----------------------------------------------------
00103 //
00104 RESOURCE EDWIN r_simple_edwin
00105     {
00106     flags = EAknEditorFlagDefault;
00107     width = 10;
00108     lines= 1;
00109     maxlength = 15;  // Max number of characters
00110     allowed_input_modes = EAknEditorAllInputModes; 
00111     default_input_mode = EAknEditorTextInputMode;
00112     }
00113     
00114 // ---------------------------------------------------------
00115 //   
00116 //   ITEM LIST
00117 //
00118 // ---------------------------------------------------------
00119 //
00120 RESOURCE AVKON_SETTING_ITEM_LIST r_entry_settings_list
00121         {
00122         title = "Example";
00123         }
00124 //----------------------------------------------------
00125 //    r_simple_text_query
00126 //    Resource for querying simple text
00127 //----------------------------------------------------
00128 //  
00129 RESOURCE DIALOG r_simple_text_query
00130 {
00131     flags=EAknGeneralQueryFlags;
00132     buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
00133     items=
00134     {
00135         DLG_LINE
00136         {
00137             type=EAknCtQuery;
00138             id=EGeneralQuery;
00139             control=AVKON_DATA_QUERY
00140             {
00141                 layout=EDataLayout;
00142                     control=EDWIN
00143                 {
00144                         maxlength = 256;
00145                 };
00146             };
00147         }
00148     };
00149 }    
00150 
00151 // ---------------------------------------------------------
00152 //   
00153 //   TEXT SETTING PAGE
00154 //
00155 // ---------------------------------------------------------
00156 //
00157 RESOURCE AVKON_SETTING_PAGE r_text_setting_page
00158     {
00159     type = EEikCtEdwin;
00160     editor_resource_id = r_name_edwin;
00161     }
00162     
00163 RESOURCE EDWIN r_name_edwin
00164     {
00165     width = 10;
00166     maxlength = 15;
00167     }
00168 
00169 // ---------------------------------------------------------------------------- 
00170 //
00171 // r_localisable_app_info
00172 //
00173 // ---------------------------------------------------------------------------- 
00174 //
00175 
00176 #include <appinfo.rh>
00177 
00178 RESOURCE LOCALISABLE_APP_INFO r_dbms_localisable_app_info
00179     {
00180     short_caption = "DBMS";
00181     caption_and_icon = 
00182     CAPTION_AND_ICON_INFO
00183         {
00184         caption = "DBMS";
00185         
00186         number_of_icons = 1;
00187         icon_file = "\\resource\\apps\\DBMS.mif";
00188                 };
00189     }

Generated by  doxygen 1.6.2