wlansecuritysettings/wlaneapsettingsui/pap/configui/data/papui.rss
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2009 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 the License "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: PAP UI resource file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //  RESOURCE IDENTIFIER
       
    20 NAME PAPC
       
    21 
       
    22 //  INCLUDES
       
    23 #include <eikon.rh>
       
    24 #include "papui.hrh"   // Enums for these resources
       
    25 #include <papui.loc>   // Localisation file
       
    26 #include <wlaneapsettingsui.loc>
       
    27 #include <eikon.rsg>
       
    28 #include <avkon.rsg>
       
    29 #include <avkon.rh>
       
    30 #include <avkon.mbg>
       
    31 #include <avkon.loc>
       
    32 
       
    33 
       
    34 //  CONSTANTS  
       
    35 
       
    36 #define ESecUiQueryFlags (EGeneralQueryFlags | EEikDialogFlagNotifyEsc | EEikDialogFlagWait)
       
    37 
       
    38 
       
    39 //  RESOURCE DEFINITIONS 
       
    40 
       
    41 RESOURCE RSS_SIGNATURE { }
       
    42 
       
    43 
       
    44 RESOURCE TBUF16 { buf=""; }
       
    45 
       
    46 
       
    47 RESOURCE CBA r_pap_ui_softkeys_options_back_edit
       
    48     {
       
    49     buttons =
       
    50         {
       
    51         CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option; },
       
    52         CBA_BUTTON { id = EAknSoftkeyBack; txt = text_softkey_back; },
       
    53         CBA_BUTTON { id = EPapUiCmdChange; txt = qtn_msk_change; }
       
    54         };
       
    55     }
       
    56     
       
    57 RESOURCE DIALOG r_pap_setting_dialog
       
    58     {
       
    59 /*    flags = EEikDialogFlagFillAppClientRect | 
       
    60             EEikDialogFlagCbaButtons | 
       
    61             EEikDialogFlagWait | 
       
    62             EEikDialogFlagNotifyEsc; */
       
    63     
       
    64     flags = EAknDialogSelectionList | EEikDialogFlagWait;
       
    65     buttons = r_pap_ui_softkeys_options_back_edit;
       
    66     items = 
       
    67         { 
       
    68         DLG_LINE
       
    69             {
       
    70             id = EPapSettingsListBox;
       
    71             type = EAknCtSettingListBox;
       
    72             control = LISTBOX 
       
    73                 {
       
    74                 flags = EAknListBoxMenuList;
       
    75                 };
       
    76             }
       
    77         }; 
       
    78     }
       
    79 
       
    80 
       
    81 
       
    82 RESOURCE AVKON_SETTING_PAGE r_pap_username_page
       
    83     {
       
    84     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
    85     label= qtn_wlan_eap_sett_username;
       
    86     type = EEikCtEdwin;
       
    87     editor_resource_id = r_pap_username_editor;
       
    88     }
       
    89 
       
    90 RESOURCE EDWIN r_pap_username_editor 
       
    91     {
       
    92     width = 9;
       
    93     lines = 5;
       
    94     maxlength = KPapUsernameMaxLength;
       
    95     allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode;
       
    96     default_input_mode = EAknEditorTextInputMode;
       
    97     default_case = EAknEditorLowerCase;
       
    98     avkon_flags = EAknEditorFlagLatinInputModesOnly;
       
    99     flags = EEikEdwinAutoSelection | EEikEdwinNoLineOrParaBreaks;
       
   100     }
       
   101 
       
   102 RESOURCE AVKON_SETTING_PAGE r_pap_password_popup_page
       
   103     {
       
   104     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   105     label = qtn_wlan_eap_sett_password;
       
   106     type = EAknCtPopupSettingList;
       
   107     editor_resource_id = r_pap_setting_enumerated_popup;
       
   108     }
       
   109     
       
   110 RESOURCE POPUP_SETTING_LIST r_pap_setting_enumerated_popup
       
   111     {
       
   112     flags = EAknPopupSettingListFlagInitialised;
       
   113     }
       
   114 
       
   115    
       
   116 RESOURCE AVKON_POPUP_SETTING_TEXTS r_pap_password_prompt_choices
       
   117     {
       
   118     setting_texts_resource = r_pap_prompt_choices_resource;
       
   119     popped_up_texts_resource = r_pap_prompt_choices_texts_array;
       
   120     }       
       
   121 
       
   122 RESOURCE ARRAY r_pap_prompt_choices_resource
       
   123     {
       
   124     items=
       
   125         {
       
   126         AVKON_ENUMERATED_TEXT 
       
   127             { 
       
   128             value = 1; 
       
   129             text = qtn_wlan_eap_pap_sett_password_prompt; 
       
   130             },
       
   131 
       
   132         AVKON_ENUMERATED_TEXT 
       
   133             { 
       
   134             value = 0; 
       
   135             text = qtn_wlan_eap_pap_sett_password_udef; 
       
   136             }
       
   137         };
       
   138     }
       
   139     
       
   140 RESOURCE ARRAY r_pap_prompt_choices_texts_array
       
   141     {
       
   142     items=
       
   143         {
       
   144         LBUF { txt = qtn_wlan_eap_pap_sett_password_prompt; },
       
   145         LBUF { txt = qtn_wlan_eap_pap_sett_password_udef; }
       
   146         };
       
   147     }
       
   148     
       
   149 RESOURCE AVKON_SETTING_PAGE r_pap_password_setting_page
       
   150     {
       
   151     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   152     label = qtn_wlan_eap_sett_password;
       
   153     type = EEikCtSecretEd;
       
   154     editor_resource_id = r_pap_setting_password;
       
   155     }
       
   156 
       
   157 
       
   158 RESOURCE SECRETED r_pap_setting_password 
       
   159     {
       
   160     num_letters = KPapPasswordMaxLength;
       
   161     }    
       
   162 
       
   163 // No dialog, make this as another setting page, only that
       
   164 // it is not visible when setting list is drawn.
       
   165 // It can be referred to and opened with the item id defined in .hrh.
       
   166 /*RESOURCE DIALOG r_pap_password_dialog
       
   167     {
       
   168     flags=ESecUiQueryFlags;
       
   169     buttons=R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   170     items=
       
   171         {
       
   172         DLG_LINE
       
   173             {
       
   174             type=EAknCtQuery;
       
   175             id=EGeneralQuery;
       
   176             control= AVKON_DATA_QUERY 
       
   177                 { 
       
   178                 layout = ECodeLayout;
       
   179                 label = qtn_wlan_eap_sett_password;
       
   180                 control = SECRETED
       
   181                     { 
       
   182                     num_letters = KPapPasswordMaxLength;
       
   183                     };
       
   184                 };
       
   185             }
       
   186         };
       
   187     }
       
   188 */   
       
   189 
       
   190 RESOURCE MENU_BAR r_pap_menubar
       
   191     {
       
   192     titles =
       
   193         {
       
   194         MENU_TITLE 
       
   195             { 
       
   196             menu_pane = r_pap_menu_pane; 
       
   197             txt = ""; 
       
   198             }
       
   199         };
       
   200     }
       
   201 
       
   202 
       
   203 RESOURCE MENU_PANE r_pap_menu_pane
       
   204     {
       
   205     items =
       
   206         {
       
   207         MENU_ITEM 
       
   208             { 
       
   209             command = EPapUiCmdChange;
       
   210             txt = qtn_options_change;
       
   211             flags = EEikMenuItemAction; 
       
   212             },
       
   213             
       
   214         MENU_ITEM 
       
   215             { 
       
   216             command = EAknCmdHelp;
       
   217             txt = qtn_options_help; 
       
   218             },
       
   219 
       
   220         MENU_ITEM 
       
   221             { 
       
   222             command = EAknCmdExit;
       
   223             txt = qtn_options_exit; 
       
   224             }           
       
   225         };
       
   226     }
       
   227 
       
   228 
       
   229 // Resource strings
       
   230 RESOURCE TBUF r_pap_settings_title              { buf = qtn_wlan_eap_pap_title; }
       
   231 RESOURCE TBUF r_pap_username_not_defined        { buf = qtn_wlan_eap_sett_username_not_defined; }
       
   232 RESOURCE TBUF r_pap_define_username_info_note   { buf = qtn_wlan_eap_pap_define_user_name; }
       
   233 RESOURCE TBUF r_pap_username_setting_title              { buf = qtn_wlan_eap_sett_username; }
       
   234 RESOURCE TBUF r_pap_password_setting_title              { buf = qtn_wlan_eap_sett_password; }
       
   235  
       
   236 // End of File