examples/SFExamples/RecipeEx/data/RecipeEx.rss

00001 // Symbian Foundation Example Code
00002 // 
00003 // This software is in the public domain. No copyright is claimed, and you 
00004 // may use it for any purpose without license from the Symbian Foundation.
00005 // No warranty for any purpose is expressed or implied by the authors or
00006 // the Symbian Foundation. 
00007 
00008 //  RESOURCE IDENTIFIER
00009 NAME RECI       // 4 letter ID
00010 
00011 
00012 //  INCLUDES
00013 #include <eikon.rh>
00014 #include <avkon.rsg>
00015 #include <avkon.rh>
00016 #include <appinfo.rh>
00017 #include "RecipeEx.hrh"
00018 #include "RecipeEx.rls"
00019 
00020 //  RESOURCE DEFINITIONS
00021 // -----------------------------------------------------------------------------
00022 //
00023 //      Define the resource file signature
00024 //      This resource should be empty.
00025 //
00026 // -----------------------------------------------------------------------------
00027 //
00028 RESOURCE RSS_SIGNATURE
00029         {
00030         }
00031 
00032 // -----------------------------------------------------------------------------
00033 //
00034 //      Default Document Name
00035 //
00036 // -----------------------------------------------------------------------------
00037 //
00038 RESOURCE TBUF r_default_document_name
00039         {
00040         buf="RECI";
00041         }
00042 
00043 // -----------------------------------------------------------------------------
00044 //
00045 //      Define default menu and CBA key.
00046 //
00047 // -----------------------------------------------------------------------------
00048 //
00049 RESOURCE EIK_APP_INFO
00050         {
00051         menubar = r_menubar;
00052         cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00053         }
00054 
00055 
00056 // -----------------------------------------------------------------------------
00057 //
00058 //   r_menubar
00059 //   Main menubar
00060 //
00061 // -----------------------------------------------------------------------------
00062 //
00063 RESOURCE MENU_BAR r_menubar
00064         {
00065         titles =
00066                 {
00067                 MENU_TITLE { menu_pane = r_menu; }
00068                 };
00069         }
00070 
00071 
00072 // -----------------------------------------------------------------------------
00073 //
00074 //   r_menu
00075 //   Menu for "Options"
00076 //
00077 // -----------------------------------------------------------------------------
00078 //
00079 RESOURCE MENU_PANE r_menu
00080         {
00081         items =
00082                 {
00083                 // added the new Options menu command here
00084 /*      MENU_ITEM
00085                                 {
00086                                 command = EDeviceCapabilities;
00087                                 txt = qtn_dev_caps_command;
00088                                 },
00089         */      MENU_ITEM
00090                                 {
00091                                 command = ESensorListener;
00092                                 txt = qtn_sensor_command;
00093                                 },
00094                 MENU_ITEM
00095                                 {
00096                                 command = EAknSoftkeyExit;
00097                                 txt = qtn_exit;
00098                                 }
00099                 };
00100         }
00101 
00102 // -----------------------------------------------------------------------------
00103 //
00104 //   r_back_exit_menubar
00105 //
00106 // -----------------------------------------------------------------------------
00107 //
00108 RESOURCE MENU_BAR r_back_exit_menubar
00109         {
00110         titles =
00111                 {
00112                 MENU_TITLE { menu_pane = r_back_exit_menu; }
00113                 };
00114         }
00115 
00116 
00117 // -----------------------------------------------------------------------------
00118 //
00119 //   r_back_exit_menu
00120 //
00121 // -----------------------------------------------------------------------------
00122 //
00123 RESOURCE MENU_PANE r_back_exit_menu
00124         {
00125         items =
00126                 {
00127                 // added the new Options menu command here
00128                 MENU_ITEM
00129                         {
00130                         command = ECommandBack;
00131                         txt = qtn_back_command;
00132                         },
00133                 MENU_ITEM
00134                         {
00135                         command = EAknSoftkeyExit;
00136                         txt = qtn_exit;
00137                         }
00138                 };
00139         }
00140 
00141 // ---------------------------------------------------------------------------- 
00142 //
00143 // r_localisable_app_info
00144 //
00145 // ---------------------------------------------------------------------------- 
00146 //
00147 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
00148         {
00149         short_caption = qtn_caption_string;
00150         caption_and_icon = 
00151         CAPTION_AND_ICON_INFO
00152                 {
00153                 caption = qtn_caption_string;
00154 
00155                 number_of_icons = 1;
00156                 icon_file = "\\resource\\apps\\RecipeEx_0xE8FAA390.mif";
00157                 };
00158         }
00159 
00160 
00161 //----------------------------------------------------
00162 //
00163 //    r_main_view
00164 //    Resource definition for the main view
00165 //
00166 //----------------------------------------------------
00167 //
00168 RESOURCE AVKON_VIEW r_main_view
00169     {
00170     menubar=r_main_view_menubar;
00171     cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00172     }
00173 
00174 //----------------------------------------------------
00175 //
00176 //    r_main_view_menubar
00177 //    Menubar for the main view 
00178 //
00179 //----------------------------------------------------
00180 //
00181 RESOURCE MENU_BAR r_main_view_menubar
00182     {
00183     titles=
00184         {
00185         MENU_TITLE { menu_pane=r_main_view_menu; txt="Functions"; }
00186         };
00187     }
00188 
00189 //----------------------------------------------------
00190 //
00191 //    r_main_view_menu
00192 //    Menupane for the main view
00193 //
00194 //----------------------------------------------------
00195 //
00196 RESOURCE MENU_PANE r_main_view_menu
00197     {
00198     items=
00199         {
00200                 // added the new Options menu command here
00201                 MENU_ITEM
00202                         {
00203                         command = EDeviceCapabilities;
00204                         txt = qtn_dev_caps_command;
00205                         },
00206                 MENU_ITEM
00207                         {
00208                         command = ESensorListener;
00209                         txt = qtn_sensor_command;
00210                         },                      
00211                 MENU_ITEM
00212                         {
00213                         command = EMobility;
00214                         txt = qtn_mobility_command;
00215                         },                      
00216                 MENU_ITEM
00217                         {
00218                         command = EAknSoftkeyExit;
00219                         txt = qtn_exit;
00220                         }
00221                 };
00222     }
00223 
00224 //----------------------------------------------------
00225 //
00226 //    r_device_caps_view
00227 //    Resource definition for the device capabilities view
00228 //
00229 //----------------------------------------------------
00230 //
00231 RESOURCE AVKON_VIEW r_device_caps_view
00232     {
00233     menubar=r_device_caps_view_menubar;
00234     cba=R_AVKON_SOFTKEYS_OPTIONS_BACK;
00235     }
00236 
00237 //----------------------------------------------------
00238 //    Menubar for the device caps view 
00239 //
00240 //----------------------------------------------------
00241 //
00242 RESOURCE MENU_BAR r_device_caps_view_menubar
00243     {
00244     titles=
00245         {
00246         MENU_TITLE { menu_pane=r_device_caps_view_menu; }
00247         };
00248     }
00249 
00250 //----------------------------------------------------
00251 //
00252 //    r_device_caps_view_menu
00253 //    Menupane for the device caps view
00254 //
00255 //----------------------------------------------------
00256 //
00257 RESOURCE MENU_PANE r_device_caps_view_menu
00258     {
00259     items=
00260         {
00261                 // added the new Options menu command here
00262                 MENU_ITEM
00263                         {
00264                         command = EStartDeviceCapsRetrieval;
00265                         txt = qtn_start_dev_caps_retrieval_command;
00266                         },
00267                 MENU_ITEM
00268                         {
00269                         command = EAknSoftkeyBack;
00270                         txt = qtn_back_command;
00271                         }
00272                 };
00273     }
00274 
00275 //----------------------------------------------------
00276 //
00277 //    r_sensor_view
00278 //    Resource definition for the sensor view
00279 //
00280 //----------------------------------------------------
00281 //
00282 RESOURCE AVKON_VIEW r_sensor_view
00283     {
00284     cba=R_AVKON_SOFTKEYS_BACK;
00285     }
00286 
00287 
00288 //----------------------------------------------------
00289 //
00290 //    r_mobility_view
00291 //    Resource definition for the mobility view
00292 //
00293 //----------------------------------------------------
00294 //
00295 RESOURCE AVKON_VIEW r_mobility_view
00296     {
00297     menubar=r_mobility_view_menubar;
00298     cba=R_AVKON_SOFTKEYS_OPTIONS_BACK;
00299     }
00300 
00301 //----------------------------------------------------
00302 //    Menubar for the mobility view 
00303 //
00304 //----------------------------------------------------
00305 //
00306 RESOURCE MENU_BAR r_mobility_view_menubar
00307     {
00308     titles=
00309         {
00310         MENU_TITLE { menu_pane=r_mobility_view_menu; }
00311         };
00312     }
00313 
00314 //----------------------------------------------------
00315 //
00316 //    r_mobility_view_menu
00317 //    Menupane for the mobility view
00318 //
00319 //----------------------------------------------------
00320 //
00321 RESOURCE MENU_PANE r_mobility_view_menu
00322     {
00323     items=
00324         {
00325                 // added the new Options menu command here
00326                 MENU_ITEM
00327                         {
00328                         command = EConnect;
00329                         txt = qtn_connect_command;
00330                         },
00331                 MENU_ITEM
00332                         {
00333                         command = EDisconnect;
00334                         txt = qtn_disconnect_command;
00335                         },
00336                 MENU_ITEM
00337                         {
00338                         command = EAknSoftkeyBack;
00339                         txt = qtn_back_command;
00340                         }
00341                 };
00342     }
00343 
00344 // End of File

Generated by  doxygen 1.6.2