examples/SFExamples/NotifierExample/Launchers/ExeLauncher_UIQ3/data/ExeLauncher_UIQ3.rss

00001 /*
00002 ============================================================================
00003  Name           : ExeLauncher_UIQ3.rss
00004  Author   : Hamish Willee
00005  Version         :
00006  Copyright   : (C) Symbian 2007
00007  Description : This file contains all the resources for the ExeLauncher_UIQ3.
00008 ============================================================================
00009 */
00010 
00011 #include <eikon.rh>
00012 #include <eikon.rsg>
00013 #include <qikon.rh>
00014 #include <qikon.hrh>
00015 #include <uikon.rh>
00016 #include <uikon.hrh>
00017 
00018 #include <QikCommand.rh>
00019 
00020 #include "ExeLauncher_UIQ3.hrh" // Application specific commands
00021 // Strings that should be localised should not be defined in the resource file itself, 
00022 // but in separate files with the extension .rls. 
00023 #include "ExeLauncher_UIQ3.rls" // Defines localisable strings
00024 
00025 
00026 // Use this statement to ensure that the resources in the file have a unique ID
00027 // so that an application can use multiple resource files without resource ID
00028 // conflict. This statement must be the first non-comment statement in the file.
00029 NAME EXEL
00030 
00031 // The three following resources are mandatory fields and need to be the 
00032 // first resource fields in the resource file. Need to be defined in this order.
00033 // These resources don't need to contain any useful info, just need to be there.
00034 
00035 // RSS_SIGNATURE can be used to specify version information
00036 RESOURCE RSS_SIGNATURE { }
00037 
00038 // Defines the name of the default file the application framework creates.
00039 // This resource must always be the second resource in the resource file.
00040 RESOURCE TBUF { buf = "ExeLauncher_UIQ3"; }
00041 
00042 // This resource is NOT used by UIQ.
00043 // Otherwise this resources is used to define an application's GUI.
00044 RESOURCE EIK_APP_INFO { }
00045 
00046 //----------------------------------------------------
00047 //------------------ TEXT CONSTANTS ------------------
00048 //----------------------------------------------------
00049 // These resources hold strings that are used in the C++ source code, 
00050 // these strings are used as infoprint text. 
00051 // The actual string is defined in the .rls file.
00052 RESOURCE TBUF r_infoprint1_text { buf = STRING_r_ExeLauncher_UIQ3_infoprint1_text; }
00053 
00054 //----------------------------------------------------
00055 //-------------- CONFIGURATION FOR VIEW --------------
00056 //----------------------------------------------------
00057 // A view shall use the QIK_VIEW_CONFIGURATIONS resource struct to define which 
00058 // UI configurations it supports. Can also use QIK_VIEW_CONFIGURATIONS to setup 
00059 // the view to switch layout and command list automatically when changes of UI 
00060 // configuration occur. This is done with the view and command_list members of 
00061 // the QIK_VIEW_CONFIGURATIONS.
00062 
00063 // The application supports the reference UI Configurations that are supported
00064 // in the UIQ 3 SDK. Use the UiqEnv tool, to change the UI Configuration in the
00065 // emulator in order to develop and test the application with varying phone styles.
00066 RESOURCE QIK_VIEW_CONFIGURATIONS r_ui_configurations
00067         {
00068         configurations = 
00069                 {
00070                 QIK_VIEW_CONFIGURATION
00071                         {
00072                         ui_config_mode = KQikPenStyleTouchPortrait;
00073                         command_list = r_ExeLauncher_UIQ3_commands;
00074                         view = r_ExeLauncher_UIQ3_layout;
00075                         },
00076                 QIK_VIEW_CONFIGURATION
00077                         {
00078                         ui_config_mode = KQikPenStyleTouchLandscape;
00079                         command_list = r_ExeLauncher_UIQ3_commands;
00080                         view = r_ExeLauncher_UIQ3_layout;
00081                         },
00082                 QIK_VIEW_CONFIGURATION
00083                         {
00084                         ui_config_mode = KQikSoftkeyStyleTouchPortrait;
00085                         command_list = r_ExeLauncher_UIQ3_commands;
00086                         view = r_ExeLauncher_UIQ3_layout;
00087                         },
00088                 QIK_VIEW_CONFIGURATION
00089                         {
00090                         ui_config_mode = KQikSoftkeyStylePortrait;
00091                         command_list = r_ExeLauncher_UIQ3_commands;
00092                         view = r_ExeLauncher_UIQ3_layout;
00093                         },
00094                 QIK_VIEW_CONFIGURATION
00095                         {
00096                         ui_config_mode = KQikSoftkeyStyleSmallPortrait;
00097                         command_list = r_ExeLauncher_UIQ3_commands;
00098                         view = r_ExeLauncher_UIQ3_layout;
00099                         }
00100                 };
00101         }
00102 
00103 //----------------------------------------------------
00104 //------------------ VIEW COMMANDS -------------------
00105 //----------------------------------------------------
00106 // Commands are defined with the QIK_COMMAND_LIST struct, 
00107 // commands can also be created in code by instantiating CQikCommand.
00108 // The control command id for debug command is a reserved id from uikon.hrh.
00109 // The id for each infoprint command is defined in the ExeLauncher_UIQ3.hrh file.
00110 // The string for each command is defined in the ExeLauncher_UIQ3.rls file, 
00111 // due to localisation.
00112 RESOURCE QIK_COMMAND_LIST r_ExeLauncher_UIQ3_commands
00113         {
00114         items =
00115                 {
00120                 QIK_COMMAND
00121                         {
00122                         id = EEikCmdExit;
00123                         type = EQikCommandTypeScreen;
00124                         // Indicate that this command will only be visible in debug
00125                         stateFlags = EQikCmdFlagDebugOnly;
00126                         text = STRING_r_ExeLauncher_UIQ3_close_debug_cmd;
00127                         },
00128                 QIK_COMMAND
00129                         {
00130                         id = EExeLauncher_UIQ3InfoPrint1Cmd;
00131                         type = EQikCommandTypeScreen;
00132                         text = STRING_r_ExeLauncher_UIQ3_infoprint1_cmd;
00133                         }
00134                 };
00135         }
00136 //----------------------------------------------------
00137 //------------------- VIEW LAYOUT --------------------
00138 //----------------------------------------------------
00139 // Defines the view by linking to the pages.
00140 RESOURCE QIK_VIEW r_ExeLauncher_UIQ3_layout
00141         {
00142         pages = r_ExeLauncher_UIQ3_layout_pages;
00143         }
00144 
00145 // Defines the pages of a view. 
00146 // In this application there only exist one page for the label to be displayed in.
00147 RESOURCE QIK_VIEW_PAGES r_ExeLauncher_UIQ3_layout_pages
00148         {
00149         pages = 
00150                 {
00151                 QIK_VIEW_PAGE
00152                         {
00153                         page_id = EExeLauncher_UIQ3ViewPage;
00154                         page_content = r_ExeLauncher_UIQ3_page_control;
00155                         }
00156                 };
00157         }
00158 
00159 //----------------------------------------------------
00160 //------------------ VIEW CONTROLS -------------------
00161 //----------------------------------------------------
00162 // Defines the content of the page.
00163 // The page consist of one label that is displayed in the middle of the view.
00164 RESOURCE QIK_CONTAINER_SETTINGS r_ExeLauncher_UIQ3_page_control
00165         {
00166         layout_manager_type = EQikGridLayoutManager;
00167         layout_manager = r_grid_layout_manager;
00168         controls =
00169                 {
00170                 QIK_CONTAINER_ITEM_CI_LI
00171                         {
00172                         unique_handle = EExeLauncher_UIQ3LabelCtrl;
00173                         type = EEikCtLabel;
00174                         control = r_ExeLauncher_UIQ3_label;
00175                         }
00176                 };
00177         }
00178         
00179 //----------------------------------------------------
00180 //---------------------- LABEL -----------------------
00181 //----------------------------------------------------
00182 // Defines the label and specifies the labels font and text.
00183 RESOURCE LABEL r_ExeLauncher_UIQ3_label
00184         {
00185         standard_font = EEikLabelFontLegend;
00186         txt = STRING_r_ExeLauncher_UIQ3_text;
00187         }
00188 
00189 //----------------------------------------------------
00190 //-------------- GRID LAYOUT MANAGER -----------------
00191 //----------------------------------------------------
00192 // Defines the grid layout manager that places the label control in the middle 
00193 // of the view.
00194 RESOURCE QIK_GRID_LAYOUT_MANAGER r_grid_layout_manager
00195         {
00196         default_layout_data = QIK_GRID_LAYOUT_DATA 
00197                 {
00198                 horizontal_alignment = EQikLayoutHAlignCenter;
00199                 vertical_alignment = EQikLayoutVAlignCenter;    
00200                 };
00201         }

Generated by  doxygen 1.6.2