loc_pub/landmarks_ui_addedit_api/tsrc/bc/bcapplmkeditor/data/bcapplmkeditor.rss
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    LandmarksUi Content File -     
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 NAME BCAP
       
    25 
       
    26 #include <eikon.rh>
       
    27 #include "BCAppLmkEditor.hrh"
       
    28 #include <avkon.rsg>
       
    29 #include <avkon.rh>
       
    30 #include <avkon.mbg>
       
    31 
       
    32 // for Text Setting Page
       
    33 #define TEXT_SETTING_PAGE_NUMBER 1
       
    34 #define TEXT_SETTING_PAGE_WIDTH 9
       
    35 #define TEXT_SETTING_PAGE_LINES 5
       
    36 #define TEXT_SETTING_PAGE_MAXLENGTH20 20
       
    37 
       
    38 // for Alpha Password Setting Page
       
    39 #define ALPHA_PASSWORD_SETTING_PAGE_NUMBER 1
       
    40 #define ALPHA_PASSWORD_LENGTH_OF_STRING 8
       
    41 
       
    42 // for Time Setting Page
       
    43 #define TIME_SETTING_PAGE_NUMBER 1
       
    44 #define TIME_EDITOR_MIN_SECOND 0
       
    45 #define TIME_EDITOR_MIN_MINUTE 0
       
    46 #define TIME_EDITOR_MIN_HOUR 0
       
    47 #define TIME_EDITOR_MAX_SECOND 59
       
    48 #define TIME_EDITOR_MAX_MINUTE 59
       
    49 #define TIME_EDITOR_MAX_HOUR 23
       
    50 
       
    51 //For Ip address editor
       
    52 #define IPADDRESS_MIN_FIRST_FIELD_VALUE     0
       
    53 #define IPADDRESS_MIN_SECOND_FIELD_VALUE    0
       
    54 #define IPADDRESS_MIN_THIRD_FIELD_VALUE     0
       
    55 #define IPADDRESS_MIN_FOURTH_FIELD_VALUE    0
       
    56 #define IPADDRESS_MAX_FIRST_FIELD_VALUE     255
       
    57 #define IPADDRESS_MAX_SECOND_FIELD_VALUE    255
       
    58 #define IPADDRESS_MAX_THIRD_FIELD_VALUE     255
       
    59 #define IPADDRESS_MAX_FOURTH_FIELD_VALUE    255
       
    60 
       
    61 // for Slider Setting Page
       
    62 #define SLIDER_SETTING_PAGE_NUMBER 1
       
    63 #define SLIDER_SETTING_PAGE_MINVALUE 0
       
    64 #define SLIDER_SETTING_PAGE_MAXVALUE 100
       
    65 #define SLIDER_SETTING_PAGE_STEP 1
       
    66 
       
    67 // for Time Offset Setting Page
       
    68 #define TIME_OFFSET_SETTING_PAGE_NUMBER 1
       
    69 
       
    70 RESOURCE RSS_SIGNATURE { }
       
    71 
       
    72 RESOURCE TBUF r_default_document_name { buf=""; }
       
    73 
       
    74 RESOURCE EIK_APP_INFO
       
    75     {
       
    76     menubar=r_bcappaknstngitm_menubar;
       
    77     hotkeys=r_bcappaknstngitm_hotkeys;
       
    78     cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;     
       
    79     }
       
    80 
       
    81 //----------------------------------------------------
       
    82 //   
       
    83 //    r_bcappaknstngitm_hotkeys
       
    84 //
       
    85 //----------------------------------------------------
       
    86 //
       
    87 RESOURCE HOTKEYS r_bcappaknstngitm_hotkeys
       
    88     {
       
    89     control=
       
    90         {
       
    91         HOTKEY { command=EAknCmdExit; key='e'; }
       
    92         };
       
    93     }
       
    94 
       
    95 
       
    96 //----------------------------------------------------
       
    97 //   
       
    98 //    r_bcappaknstngitm_menubar
       
    99 //
       
   100 //----------------------------------------------------
       
   101 //
       
   102 RESOURCE MENU_BAR r_bcappaknstngitm_menubar
       
   103     {
       
   104     titles =
       
   105         {
       
   106         MENU_TITLE {menu_pane = r_bcappaknstngitm_menu;}
       
   107         };
       
   108     }
       
   109 
       
   110 //----------------------------------------------------
       
   111 //   
       
   112 //    r_bcappaknstngitm_menu
       
   113 //
       
   114 //----------------------------------------------------
       
   115 //
       
   116 RESOURCE MENU_PANE r_bcappaknstngitm_menu
       
   117     {
       
   118     items=
       
   119         {
       
   120         MENU_ITEM { command=EAknSoftkeyExit; txt="Exit"; }
       
   121         };
       
   122     }
       
   123 
       
   124 
       
   125 
       
   126 
       
   127 
       
   128 
       
   129 
       
   130 //----------------------------------------------------
       
   131 //   
       
   132 //    r_my_setting_resource
       
   133 //
       
   134 //----------------------------------------------------
       
   135 //
       
   136 RESOURCE AVKON_SETTING_ITEM_LIST r_my_setting_resource
       
   137   {
       
   138   flags = 0;
       
   139   title = "";
       
   140   initial_number = 1;
       
   141   } 
       
   142 
       
   143 //----------------------------------------------------
       
   144 //   
       
   145 //    r_my_text_setting_page
       
   146 //
       
   147 //----------------------------------------------------
       
   148 //
       
   149 RESOURCE AVKON_SETTING_PAGE r_my_text_setting_page
       
   150   {
       
   151   number = TEXT_SETTING_PAGE_NUMBER;
       
   152   label = "My Text Label";
       
   153   type = EEikCtEdwin;
       
   154   editor_resource_id = r_my_text;
       
   155   }
       
   156 
       
   157 RESOURCE EDWIN r_my_text
       
   158   {
       
   159   width = TEXT_SETTING_PAGE_WIDTH;
       
   160   lines = TEXT_SETTING_PAGE_LINES;
       
   161   maxlength = TEXT_SETTING_PAGE_MAXLENGTH20;
       
   162   }
       
   163 
       
   164 //----------------------------------------------------
       
   165 //   
       
   166 //    r_my_password_setting_page
       
   167 //
       
   168 //----------------------------------------------------
       
   169 //
       
   170 RESOURCE AVKON_SETTING_PAGE r_my_password_setting_page
       
   171     {
       
   172     number = ALPHA_PASSWORD_SETTING_PAGE_NUMBER;
       
   173     label = "My Password Label";
       
   174     type = EEikCtSecretEd;
       
   175     editor_resource_id = r_my_password;
       
   176     }
       
   177 
       
   178 RESOURCE SECRETED r_my_password
       
   179     {
       
   180     num_letters = ALPHA_PASSWORD_LENGTH_OF_STRING;
       
   181     }
       
   182 
       
   183 //----------------------------------------------------
       
   184 //   
       
   185 //    r_my_time_setting_page
       
   186 //
       
   187 //----------------------------------------------------
       
   188 //
       
   189 RESOURCE AVKON_SETTING_PAGE r_my_time_setting_page
       
   190     {
       
   191     number = TIME_SETTING_PAGE_NUMBER;
       
   192     label = "My Time Label";
       
   193     type = EEikCtTimeEditor;
       
   194     editor_resource_id = r_my_time;
       
   195     }
       
   196 
       
   197 RESOURCE TIME_EDITOR r_my_time
       
   198     {
       
   199     minTime = TIME
       
   200         {
       
   201         second = TIME_EDITOR_MIN_SECOND;
       
   202         minute = TIME_EDITOR_MIN_MINUTE;
       
   203         hour = TIME_EDITOR_MIN_HOUR;
       
   204         };
       
   205     maxTime = TIME
       
   206         {
       
   207         second = TIME_EDITOR_MAX_SECOND;
       
   208         minute = TIME_EDITOR_MAX_MINUTE;
       
   209         hour = TIME_EDITOR_MAX_HOUR;
       
   210         };
       
   211     flags=EEikTimeWithoutSecondsField;
       
   212     }
       
   213 
       
   214 //----------------------------------------------------
       
   215 //   
       
   216 //    r_my_ip_setting_page
       
   217 //
       
   218 //----------------------------------------------------
       
   219 //
       
   220 RESOURCE AVKON_SETTING_PAGE r_my_ip_setting_page
       
   221     {   
       
   222     label = "My Ip Label";
       
   223     type = EAknCtIpFieldEditor;
       
   224     editor_resource_id = r_my_ip;
       
   225     }
       
   226 
       
   227 
       
   228 RESOURCE IP_FIELD_EDITOR r_my_ip
       
   229     {
       
   230     min_field_values = IP_FIELD
       
   231         { 
       
   232         first_field = IPADDRESS_MIN_FIRST_FIELD_VALUE;
       
   233         second_field = IPADDRESS_MIN_SECOND_FIELD_VALUE;
       
   234         third_field = IPADDRESS_MIN_THIRD_FIELD_VALUE;
       
   235         fourth_field = IPADDRESS_MIN_FOURTH_FIELD_VALUE;
       
   236         };
       
   237     max_field_values = IP_FIELD
       
   238         {
       
   239         first_field = IPADDRESS_MAX_FIRST_FIELD_VALUE;
       
   240         second_field = IPADDRESS_MAX_SECOND_FIELD_VALUE;
       
   241         third_field = IPADDRESS_MAX_THIRD_FIELD_VALUE;
       
   242         fourth_field = IPADDRESS_MAX_FOURTH_FIELD_VALUE;
       
   243         };
       
   244     flags = 0;
       
   245     }
       
   246 
       
   247 //----------------------------------------------------------------------------
       
   248 //
       
   249 //    r_my_enum_text_setting_item_list
       
   250 //
       
   251 //----------------------------------------------------------------------------
       
   252 //
       
   253 RESOURCE AVKON_SETTING_ITEM_LIST r_my_enum_text_setting_item_list
       
   254     {
       
   255     flags= EAknSettingItemNumberedStyle;
       
   256     title = "My Enum Text Setting Item List";
       
   257     initial_number = 1;
       
   258     items =
       
   259         {
       
   260         AVKON_SETTING_ITEM
       
   261             {
       
   262             identifier = 1;
       
   263             setting_page_resource = r_my_enum_text_setting_page;
       
   264             associated_resource = r_my_enum_text_popup_setting_texts;
       
   265             name = "My Enum Text Title";
       
   266             }
       
   267         };
       
   268     }
       
   269 
       
   270 RESOURCE AVKON_POPUP_SETTING_TEXTS r_my_enum_text_popup_setting_texts
       
   271     {
       
   272     flags = 0;
       
   273     setting_texts_resource = r_my_on_off_texts;
       
   274     popped_up_texts_resource = r_my_poped_up_on_off_texts;
       
   275     }
       
   276 
       
   277 RESOURCE ARRAY r_my_on_off_texts
       
   278     {
       
   279     items =
       
   280         {
       
   281         AVKON_ENUMERATED_TEXT 
       
   282             {
       
   283             value = 0; 
       
   284             text = "On"; 
       
   285             },
       
   286         AVKON_ENUMERATED_TEXT 
       
   287             { 
       
   288             value = 1; 
       
   289             text = "Off"; 
       
   290             }
       
   291         };
       
   292     }
       
   293 
       
   294 RESOURCE ARRAY r_my_poped_up_on_off_texts
       
   295     {
       
   296     items =
       
   297         {
       
   298         LBUF 
       
   299             { 
       
   300             txt = "On"; 
       
   301             },
       
   302         LBUF 
       
   303             { 
       
   304             txt = "Off"; 
       
   305             }
       
   306         };
       
   307     }
       
   308 
       
   309 RESOURCE AVKON_SETTING_PAGE r_my_enum_text_setting_page
       
   310     {   
       
   311     number= 0;
       
   312     label= "My Enum Text Title";
       
   313     type = EAknCtPopupSettingList;    
       
   314     editor_resource_id = r_my_enum_popup;
       
   315     }
       
   316 
       
   317 RESOURCE POPUP_SETTING_LIST r_my_enum_popup
       
   318 	{
       
   319 	flags = 0;
       
   320 	width = 0; // in characters.
       
   321 	other="Other...";
       
   322 	empty_text="No options";
       
   323 	new_item_setting_page_resource = 0;
       
   324 	type = EAknCtPopupSettingList;				
       
   325 	new_item_setting_editor_resource = 0;
       
   326 	}
       
   327 
       
   328 //----------------------------------------------------
       
   329 //   
       
   330 //    r_my_slider_setting_page
       
   331 //
       
   332 //----------------------------------------------------
       
   333 //
       
   334 RESOURCE AVKON_SETTING_PAGE r_my_slider_setting_page
       
   335   {
       
   336   number = SLIDER_SETTING_PAGE_NUMBER;
       
   337   label = "My Slider Label";
       
   338   type = EAknCtSlider;
       
   339   editor_resource_id = r_my_slider;
       
   340   }
       
   341 
       
   342 RESOURCE SLIDER r_my_slider
       
   343   {
       
   344   layout = EAknSettingsItemSliderLayout;
       
   345   minvalue = SLIDER_SETTING_PAGE_MINVALUE;
       
   346   maxvalue = SLIDER_SETTING_PAGE_MAXVALUE;
       
   347   step = SLIDER_SETTING_PAGE_STEP;
       
   348   valuetype = EAknSliderValuePercentage;
       
   349   minlabel = "My Slider Min Label";
       
   350   maxlabel = "My Slider Max Label";
       
   351   }
       
   352 
       
   353 //----------------------------------------------------
       
   354 //   
       
   355 //    r_my_volume_setting_page
       
   356 //
       
   357 //----------------------------------------------------
       
   358 //
       
   359 RESOURCE AVKON_SETTING_PAGE r_my_volume_setting_page
       
   360   {
       
   361   type = EAknCtVolumeControl;
       
   362   editor_resource_id = r_my_volume;
       
   363   }
       
   364 
       
   365 RESOURCE VOLUME r_my_volume
       
   366   {
       
   367   flags = ESettingsVolumeControl;
       
   368   value = 1;
       
   369   }
       
   370 
       
   371 //-----------------------------------------------------------------------------
       
   372 //
       
   373 //    r_my_empty_item_list
       
   374 //
       
   375 //-----------------------------------------------------------------------------
       
   376 //
       
   377 RESOURCE AVKON_SETTING_ITEM_LIST r_my_empty_item_list
       
   378     {
       
   379     flags= EAknSettingItemNumberedStyle;
       
   380     title = "My Empty Item List Title";
       
   381     initial_number = 1;
       
   382     items =     
       
   383         {
       
   384         AVKON_SETTING_ITEM
       
   385             {
       
   386             identifier = 1;
       
   387             name = "My Empty Item Name";
       
   388             setting_page_resource = r_my_volume_setting_page;            
       
   389             type = EAknCtVolumeControl;
       
   390             setting_editor_resource = r_my_volume;
       
   391             associated_resource = 0;            
       
   392             empty_item_text =  "";
       
   393             compulsory_ind_string = "";
       
   394             }
       
   395         };
       
   396     }
       
   397 
       
   398 //----------------------------------------------------
       
   399 //   
       
   400 //    r_my_time_offset_setting_page
       
   401 //
       
   402 //----------------------------------------------------
       
   403 //
       
   404 RESOURCE AVKON_SETTING_PAGE r_my_time_offset_setting_page
       
   405     {
       
   406     number = TIME_OFFSET_SETTING_PAGE_NUMBER;
       
   407     label = "My Time Label";
       
   408     type = EEikCtTimeOffsetEditor;
       
   409     editor_resource_id = r_my_time_offset;
       
   410     }
       
   411 
       
   412 RESOURCE TIME_OFFSET_EDITOR r_my_time_offset
       
   413     {
       
   414     minTimeOffset = TIME_OFFSET
       
   415         {
       
   416         seconds = 0;
       
   417         };
       
   418     maxTimeOffset = TIME_OFFSET 
       
   419         {
       
   420         seconds = 0;
       
   421         };
       
   422     flags=EEikTimeWithoutSecondsField;
       
   423     }
       
   424 
       
   425 // End of File