examples/SFExamples/symbian_os_communications_programming_book_v2/chapter9/SendWorkBench/SendWorkbenchUIQ/data/SendWorkbenchUIQ.rss

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:
00015 // 
00016 
00017 
00018 #include <eikon.rh>
00019 #include <eikon.rsg>
00020 #include <qikon.rh>
00021 #include <qikon.hrh>
00022 #include <uikon.rh>
00023 #include <uikon.hrh>
00024 
00025 #include <QikCommand.rh>
00026 #include <QikListBox.rh>
00027 #include <QikListBoxStandardLayouts.hrh>        
00028 
00029 #include "SendWorkbenchUIQ.hrh" // Application specific commands
00030 // Strings that should be localised should not be defined in the resource file itself, 
00031 // but in separate files with the extension .rls. 
00032 #include "SendWorkbenchUIQ.rls" // Defines localisable strings
00033 
00034 
00035 // Use this statement to ensure that the resources in the file have a unique ID
00036 // so that an application can use multiple resource files without resource ID
00037 // conflict. This statement must be the first non-comment statement in the file.
00038 NAME SEND
00039 
00040 // The three following resources are mandatory fields and need to be the 
00041 // first resource fields in the resource file. Need to be defined in this order.
00042 // These resources don't need to contain any useful info, just need to be there.
00043 
00044 // RSS_SIGNATURE can be used to specify version information
00045 RESOURCE RSS_SIGNATURE { }
00046 
00047 // Defines the name of the default file the application framework creates.
00048 // This resource must always be the second resource in the resource file.
00049 RESOURCE TBUF { buf = "SendWorkbenchUIQ"; }
00050 
00051 // This resource is NOT used by UIQ.
00052 // Otherwise this resources is used to define an application's GUI.
00053 RESOURCE EIK_APP_INFO { }
00054 
00055 
00056 //----------------------------------------------------
00057 //-------------- CONFIGURATION FOR VIEW --------------
00058 //----------------------------------------------------
00059 
00060 RESOURCE QIK_VIEW_CONFIGURATIONS r_ui_configurations
00061         {
00062         configurations = 
00063                 {
00064                 QIK_VIEW_CONFIGURATION
00065                         {
00066                         ui_config_mode = KQikPenStyleTouchPortrait;
00067                         command_list = r_SendWorkbenchUIQ_commands;
00068                         view = r_SendWorkbenchUIQ_layout;
00069                         },
00070                 QIK_VIEW_CONFIGURATION
00071                         {
00072                         ui_config_mode = KQikPenStyleTouchLandscape;
00073                         command_list = r_SendWorkbenchUIQ_commands;
00074                         view = r_SendWorkbenchUIQ_layout;
00075                         },
00076                 QIK_VIEW_CONFIGURATION
00077                         {
00078                         ui_config_mode = KQikSoftkeyStyleTouchPortrait;
00079                         command_list = r_SendWorkbenchUIQ_commands;
00080                         view = r_SendWorkbenchUIQ_layout;
00081                         },
00082                 QIK_VIEW_CONFIGURATION
00083                         {
00084                         ui_config_mode = KQikSoftkeyStylePortrait;
00085                         command_list = r_SendWorkbenchUIQ_commands;
00086                         view = r_SendWorkbenchUIQ_layout;
00087                         },
00088                 QIK_VIEW_CONFIGURATION
00089                         {
00090                         ui_config_mode = KQikSoftkeyStyleSmallPortrait;
00091                         command_list = r_SendWorkbenchUIQ_commands;
00092                         view = r_SendWorkbenchUIQ_layout;
00093                         }
00094                 };
00095         }
00096 
00097 //----------------------------------------------------
00098 //------------------ VIEW COMMANDS -------------------
00099 //----------------------------------------------------
00100 
00101 RESOURCE QIK_COMMAND_LIST r_SendWorkbenchUIQ_commands
00102         {
00103         items =
00104                 {
00109                 QIK_COMMAND
00110                         {
00111                         id = EEikCmdExit;
00112                         type = EQikCommandTypeScreen;
00113                         // Indicate that this command will only be visible in debug
00114                         stateFlags = EQikCmdFlagDebugOnly;
00115                         text = STRING_r_SendWorkbenchUIQ_close_debug_cmd;
00116                         }
00117                 };
00118         }
00119 //----------------------------------------------------
00120 //------------------- VIEW LAYOUT --------------------
00121 //----------------------------------------------------
00122 // Defines the view by linking to the pages.
00123 RESOURCE QIK_VIEW r_SendWorkbenchUIQ_layout
00124         {
00125         pages = r_SendWorkbenchUIQ_layout_pages;
00126         }
00127 
00128 // Defines the pages of a view. 
00129 // In this application there only exist one page for the label to be displayed in.
00130 RESOURCE QIK_VIEW_PAGES r_SendWorkbenchUIQ_layout_pages
00131         {
00132         pages = 
00133                 {
00134                 QIK_VIEW_PAGE
00135                         {
00136                         page_id = ESendWorkbenchUIQViewPage;
00137                         page_content = r_SendWorkbenchUIQ_page_control;
00138                         }
00139                 };
00140         }
00141 
00142 //----------------------------------------------------
00143 //------------------ VIEW CONTROLS -------------------
00144 //----------------------------------------------------
00145 // Defines the content of the page.
00146 // The page consist of one label that is displayed in the middle of the view.
00147 RESOURCE QIK_CONTAINER_SETTINGS r_SendWorkbenchUIQ_page_control
00148         {
00149         layout_manager_type = EQikRowLayoutManager;
00150         layout_manager = r_listbox_row_layout_manager_default;
00151         controls =
00152                 {
00153                 QIK_CONTAINER_ITEM_CI_LI
00154             { 
00155             unique_handle = ESendWorkbenchUIQListbox;
00156             type = EQikCtListBox; 
00157             control = r_my_listbox_listbox;
00158             // This makes the List Box fill the entire application space.
00159             layout_data = r_row_layout_data_fill;
00160                     }                   
00161                 };
00162         }
00163 
00164 RESOURCE QIK_ROW_LAYOUT_MANAGER r_listbox_row_layout_manager_default
00165     {
00166     default_layout_data = QIK_ROW_LAYOUT_DATA {};
00167     }
00168     
00169 RESOURCE QIK_ROW_LAYOUT_DATA r_row_layout_data_fill
00170     {
00171     vertical_alignment = EQikLayoutVAlignFill;
00172     vertical_excess_grab_weight = 1;
00173     }
00174     
00175 RESOURCE QIK_LISTBOX r_my_listbox_listbox
00176     {
00177     layouts = { r_my_listbox_normal_layout_pair };
00178     }   
00179 
00180 
00181 
00182 RESOURCE QIK_LISTBOX_LAYOUT_PAIR r_my_listbox_normal_layout_pair
00183     {
00184     standard_normal_layout = EQikListBoxLine;
00185     }
00186 //----------------------------------------------------
00187 //---------------------- LABEL -----------------------
00188 //----------------------------------------------------
00189 // Defines the label and specifies the labels font and text.
00190 RESOURCE LABEL r_SendWorkbenchUIQ_label
00191         {
00192         standard_font = EEikLabelFontLegend;
00193         txt = STRING_r_SendWorkbenchUIQ_text;
00194         }
00195 
00196 //----------------------------------------------------
00197 //-------------- GRID LAYOUT MANAGER -----------------
00198 //----------------------------------------------------
00199 // Defines the grid layout manager that places the label control in the middle 
00200 // of the view.
00201 RESOURCE QIK_GRID_LAYOUT_MANAGER r_grid_layout_manager
00202         {
00203         default_layout_data = QIK_GRID_LAYOUT_DATA 
00204                 {
00205                 horizontal_alignment = EQikLayoutHAlignCenter;
00206                 vertical_alignment = EQikLayoutVAlignCenter;    
00207                 };
00208         }

Generated by  doxygen 1.6.2