examples/ForumNokia/DBMS/data/DBMS.rss

00001 /*
00002  * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
00003  *    
00004  * Redistribution and use in source and binary forms, with or without
00005  * modification, are permitted provided that the following conditions are met:
00006  *    
00007  *  * Redistributions of source code must retain the above copyright notice, this
00008  *    list of conditions and the following disclaimer.
00009  *  * Redistributions in binary form must reproduce the above copyright notice,
00010  *    this list of conditions and the following disclaimer in the documentation
00011  *    and/or other materials provided with the distribution.
00012  *  * Neither the name of Nokia Corporation nor the names of its contributors
00013  *    may be used to endorse or promote products derived from this software
00014  *    without specific prior written permission.
00015  *    
00016  *    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00017  *    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00018  *    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00019  *    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00020  *    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00021  *    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00022  *    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00023  *    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00024  *    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00025  *    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  *    
00027  *    Description:  
00028  */
00029 
00030 NAME DBMS // Can be any four letter ID.
00031 
00032 //  INCLUDES
00033 
00034 #include <eikon.rh>
00035 #include <avkon.rh>
00036 #include <avkon.rsg>
00037 #include "DBMS.hrh"
00038 
00039 // ---------------------------------------------------------
00040 //   
00041 //    Define the resource file signature 
00042 //    This resource should be empty.
00043 //
00044 // ---------------------------------------------------------
00045 //
00046 RESOURCE RSS_SIGNATURE 
00047     { 
00048     }
00049 
00050 // ---------------------------------------------------------
00051 //   
00052 //    Default Document Name
00053 //
00054 // ---------------------------------------------------------
00055 //
00056 RESOURCE TBUF 
00057     { 
00058     buf=""; 
00059     }
00060 
00061 // ---------------------------------------------------------
00062 //   
00063 //    Define default menu and CBA key.
00064 //
00065 // ---------------------------------------------------------
00066 //
00067 RESOURCE EIK_APP_INFO
00068     {
00069     menubar = r_main_menubar;
00070     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00071     }
00072 
00073 // ---------------------------------------------------------
00074 //   
00075 //   r_main_menubar
00076 //   Main menubar
00077 //
00078 // ---------------------------------------------------------
00079 //
00080 RESOURCE MENU_BAR r_main_menubar
00081     {
00082     titles =
00083         {
00084         MENU_TITLE 
00085             {
00086             menu_pane = r_main_menu;
00087             }
00088         };
00089     }
00090 
00091 
00092 // ---------------------------------------------------------
00093 //   
00094 //   r_main_menu
00095 //   Menu for "Options"
00096 //   See BookstoreDb.hrh for commands
00097 //
00098 // ---------------------------------------------------------
00099 //
00100 RESOURCE MENU_PANE r_main_menu
00101     {
00102     items = 
00103         {
00104         MENU_ITEM { command = EOpenCmd; txt = "Open"; },
00105         MENU_ITEM { command = ECreateCmd; txt = "New database"; },
00106         MENU_ITEM { command = ERemoveDbCmd; txt = "Remove database"; },
00107         MENU_ITEM { command = EAddBookCmd; txt = "Add a book"; },
00108         MENU_ITEM { command = EBackCmd; txt = "Back"; },        
00109         MENU_ITEM { command = EAddBookAPICmd; txt = "Add using API"; },
00110         MENU_ITEM { command = EAddBookSQLCmd; txt = "Add with SQL"; },
00111         MENU_ITEM { command = ERemoveBookCmd; txt = "Remove"; },   
00112         MENU_ITEM { command = ERemoveAllBooksCmd; txt = "Remove all books"; },        
00113         MENU_ITEM { command = EChangeTitleCmd; txt = "Change title"; },           
00114         MENU_ITEM { command = EGetAllBooksCmd; txt = "Get All books"; },
00115         MENU_ITEM { command = ESearchBooksCmd; txt = "Multiple search"; },
00116         MENU_ITEM { command = EQuickFindCmd; txt = "Details"; },
00117         MENU_ITEM { command = EAddDateCmd; txt = "Add a date column"; },
00118         MENU_ITEM { command = ERemoveDateCmd; txt = "Remove date column"; },        
00119         MENU_ITEM { command = EColumnNamesCmd; txt = "Get columns"; },
00120         MENU_ITEM { command = ECloseCmd; txt = "Close database"; }
00121         };
00122     }
00123     
00124 //----------------------------------------------------
00125 //    r_simple_edwin
00126 //    Resource for editing book properties in BookEditorView
00127 //----------------------------------------------------
00128 //
00129 RESOURCE EDWIN r_simple_edwin
00130     {
00131     flags = EAknEditorFlagDefault;
00132     width = 10;
00133     lines= 1;
00134     maxlength = 15;  // Max number of characters
00135     allowed_input_modes = EAknEditorAllInputModes; 
00136     default_input_mode = EAknEditorTextInputMode;
00137     }
00138     
00139 // ---------------------------------------------------------
00140 //   
00141 //   ITEM LIST
00142 //
00143 // ---------------------------------------------------------
00144 //
00145 RESOURCE AVKON_SETTING_ITEM_LIST r_entry_settings_list
00146         {
00147         title = "Example";
00148         }
00149 //----------------------------------------------------
00150 //    r_simple_text_query
00151 //    Resource for querying simple text
00152 //----------------------------------------------------
00153 //  
00154 RESOURCE DIALOG r_simple_text_query
00155 {
00156     flags=EAknGeneralQueryFlags;
00157     buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
00158     items=
00159     {
00160         DLG_LINE
00161         {
00162             type=EAknCtQuery;
00163             id=EGeneralQuery;
00164             control=AVKON_DATA_QUERY
00165             {
00166                 layout=EDataLayout;
00167                     control=EDWIN
00168                 {
00169                         maxlength = 256;
00170                 };
00171             };
00172         }
00173     };
00174 }    
00175 
00176 // ---------------------------------------------------------
00177 //   
00178 //   TEXT SETTING PAGE
00179 //
00180 // ---------------------------------------------------------
00181 //
00182 RESOURCE AVKON_SETTING_PAGE r_text_setting_page
00183     {
00184     type = EEikCtEdwin;
00185     editor_resource_id = r_name_edwin;
00186     }
00187     
00188 RESOURCE EDWIN r_name_edwin
00189     {
00190     width = 10;
00191     maxlength = 15;
00192     }
00193 
00194 // ---------------------------------------------------------------------------- 
00195 //
00196 // r_localisable_app_info
00197 //
00198 // ---------------------------------------------------------------------------- 
00199 //
00200 
00201 #include <appinfo.rh>
00202 
00203 RESOURCE LOCALISABLE_APP_INFO r_dbms_localisable_app_info
00204     {
00205     short_caption = "DBMS";
00206     caption_and_icon = 
00207     CAPTION_AND_ICON_INFO
00208         {
00209         caption = "DBMS";
00210         
00211         number_of_icons = 1;
00212         icon_file = "\\resource\\apps\\DBMS.mif";
00213                 };
00214     }

Generated by  doxygen 1.6.2