|
1 /* |
|
2 * Copyright (c) 2008 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: Contains all the resource definitions for SUPL Settings UI. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /* |
|
20 #include <data_caging_paths_strings.hrh> |
|
21 #include <bldvariant.hrh> |
|
22 #include <eikcore.rsg> |
|
23 #include <eikon.rh> |
|
24 #include <eikon.rsg> |
|
25 #include <avkon.rh> |
|
26 #include <avkon.rsg> |
|
27 #include <avkon.mbg> |
|
28 #include <avkon.loc> |
|
29 #include <avkon.hrh> |
|
30 |
|
31 #include <locsuplsettings.loc> |
|
32 */ |
|
33 // ----------------------------------------------------------------------------- |
|
34 // r_suplserver_editor_menu_bar |
|
35 // Define the menu bar of the edit dialog |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 RESOURCE MENU_BAR r_suplserver_editor_menu_bar |
|
39 { |
|
40 titles = |
|
41 { |
|
42 MENU_TITLE { menu_pane = r_suplserver_editor_menu_pane; txt=""; } |
|
43 }; |
|
44 } |
|
45 |
|
46 //------------------------------------------------------------------------------ |
|
47 // r_suplserver_editor_menu_pane |
|
48 // Menu Items for SUPL Server Editor view |
|
49 //------------------------------------------------------------------------------ |
|
50 // |
|
51 RESOURCE MENU_PANE r_suplserver_editor_menu_pane |
|
52 { |
|
53 items = |
|
54 { |
|
55 MENU_ITEM |
|
56 { |
|
57 command = ELocServerEditorDelete; txt = qtn_loc_detail_options_delete; flags = EEikMenuItemSpecific; |
|
58 }, |
|
59 MENU_ITEM |
|
60 { |
|
61 command = ELocServerEditorDisable; txt = qtn_loc_detail_options_disable; flags = EEikMenuItemSpecific; |
|
62 }, |
|
63 MENU_ITEM |
|
64 { |
|
65 command = ELocServerEditorEnable; txt = qtn_loc_detail_options_enable; flags = EEikMenuItemSpecific; |
|
66 }, |
|
67 MENU_ITEM |
|
68 { |
|
69 command = ELocServerEditorDefine; txt = qtn_loc_server_options_define; |
|
70 }, |
|
71 MENU_ITEM |
|
72 { |
|
73 command = ELocServerEditorChange; txt = qtn_loc_server_options_change; flags = EEikMenuItemAction; |
|
74 }, |
|
75 MENU_ITEM |
|
76 { |
|
77 command = ELocServerEditorRemove; txt = qtn_loc_detail_options_delete; flags = EEikMenuItemSpecific; |
|
78 }, |
|
79 MENU_ITEM |
|
80 { |
|
81 command = EAknCmdHelp; txt = qtn_options_help; |
|
82 }, |
|
83 // Exit option should use 'EEikCmdExit' instead of 'EEAknCmdExit' |
|
84 // This is to ensure that the Exit command is not handled by the |
|
85 // ProcessCommandL of CAknView and is transferred to |
|
86 // CAknViewAppUi::HandleCommandL. This behaviour is necessary |
|
87 // for proper handling of the Exit command from an App Server's |
|
88 // perspective. |
|
89 MENU_ITEM |
|
90 { |
|
91 command = EEikCmdExit; txt = qtn_options_exit; |
|
92 } |
|
93 }; |
|
94 } |
|
95 |
|
96 //---------------------------------------------------- |
|
97 // RESOURCE DIALOG r_suplserver_editor_form_dialog |
|
98 // Form dialog to create an event |
|
99 //---------------------------------------------------- |
|
100 // |
|
101 RESOURCE DIALOG r_suplserver_editor_form_dialog |
|
102 { |
|
103 flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | |
|
104 EEikDialogFlagNoTitleBar | EEikDialogFlagButtonsRight | |
|
105 EEikDialogFlagCbaButtons | EEikDialogFlagNoBorder | |
|
106 EEikDialogFlagWait; |
|
107 buttons = r_suplserver_editor_options_edit_back; |
|
108 form = r_suplserver_editor_form; |
|
109 } |
|
110 |
|
111 //---------------------------------------------------- |
|
112 // RESOURCE CBA r_suplserver_editor_options_nomsk_back |
|
113 // CBA for SUPL Settings UI view. |
|
114 //---------------------------------------------------- |
|
115 // |
|
116 RESOURCE CBA r_suplserver_editor_options_nomsk_back |
|
117 { |
|
118 flags = 0; |
|
119 buttons = |
|
120 { |
|
121 CBA_BUTTON |
|
122 { |
|
123 id = EAknSoftkeyOptions; |
|
124 txt = text_softkey_option; |
|
125 }, |
|
126 CBA_BUTTON |
|
127 { |
|
128 id = EAknSoftkeyBack; |
|
129 txt = text_softkey_back; |
|
130 }, |
|
131 CBA_BUTTON |
|
132 { |
|
133 id = ELocServerEditorNoCmd; |
|
134 txt = ""; |
|
135 } |
|
136 }; |
|
137 } |
|
138 |
|
139 //---------------------------------------------------- |
|
140 // RESOURCE CBA r_suplserver_editor_options_edit_back |
|
141 // CBA for SUPL Settings UI view. |
|
142 //---------------------------------------------------- |
|
143 // |
|
144 RESOURCE CBA r_suplserver_editor_options_edit_back |
|
145 { |
|
146 flags = 0; |
|
147 buttons = |
|
148 { |
|
149 CBA_BUTTON |
|
150 { |
|
151 id = EAknSoftkeyOptions; |
|
152 txt = text_softkey_option; |
|
153 }, |
|
154 CBA_BUTTON |
|
155 { |
|
156 id = EAknSoftkeyBack; |
|
157 txt = text_softkey_back; |
|
158 }, |
|
159 CBA_BUTTON |
|
160 { |
|
161 id = EAknFormCmdEdit; |
|
162 txt = qtn_msk_edit; |
|
163 } |
|
164 }; |
|
165 } |
|
166 |
|
167 //---------------------------------------------------- |
|
168 // RESOURCE DIALOG r_suplserver_editor_form |
|
169 // Form to create/view a slp entry |
|
170 //---------------------------------------------------- |
|
171 // |
|
172 RESOURCE FORM r_suplserver_editor_form |
|
173 { |
|
174 flags = EEikFormUseDoubleSpacedFormat; |
|
175 items = |
|
176 { |
|
177 DLG_LINE |
|
178 { |
|
179 type = EEikCtEdwin; |
|
180 prompt = qtn_loc_server_address_name; |
|
181 id = ELocSuplServerIdServerAddr; |
|
182 itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; |
|
183 control = EDWIN |
|
184 { |
|
185 flags = EEikEdwinJustAutoCurEnd | EEikEdwinResizable | EEikEdwinNoLineOrParaBreaks ; |
|
186 width = 16; |
|
187 maxlength = 255; |
|
188 lines = 10; |
|
189 }; |
|
190 }, |
|
191 DLG_LINE |
|
192 { |
|
193 type = EEikCtEdwin; |
|
194 prompt = qtn_loc_server_iap; |
|
195 id = ELocSuplServerIdAccessPoint; |
|
196 itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys | EEikDlgItemAsLabel; |
|
197 control = EDWIN |
|
198 { |
|
199 flags = EEikEdwinResizable | EEikEdwinReadOnly | EEikEdwinAvkonDisableCursor | EEikEdwinNoAutoSelection ; |
|
200 maxlength = 0; |
|
201 lines = 1; |
|
202 max_view_height_in_lines = 8; |
|
203 }; |
|
204 }, |
|
205 DLG_LINE |
|
206 { |
|
207 type = EAknCtPopupFieldText; |
|
208 prompt = qtn_loc_server_usage; |
|
209 id = ELocSuplServerIdUsageInHomeNw; |
|
210 itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys | EEikDlgItemAsLabel; |
|
211 control = POPUP_FIELD_TEXT |
|
212 { |
|
213 popupfield = POPUP_FIELD |
|
214 { |
|
215 width = 50; |
|
216 }; |
|
217 textarray = r_suplserver_editor_usageinhomenw_array; |
|
218 active = 0; |
|
219 }; |
|
220 } |
|
221 }; |
|
222 } |
|
223 |
|
224 //---------------------------------------------------- |
|
225 // RESOURCE ARRAY r_suplserver_editor_usageinhomenw_array |
|
226 // array for usage in homw nw pop-up dialog |
|
227 //---------------------------------------------------- |
|
228 // |
|
229 RESOURCE ARRAY r_suplserver_editor_usageinhomenw_array |
|
230 { |
|
231 items = |
|
232 { |
|
233 LBUF{ txt = qtn_loc_server_usage_yes; }, |
|
234 LBUF{ txt = qtn_loc_server_usage_no; } |
|
235 }; |
|
236 } |
|
237 |
|
238 //---------------------------------------------------- |
|
239 // RESOURCE CBA r_suplserver_editor_options_nomsk_done |
|
240 // CBA for SUPL Editor UI view. |
|
241 //---------------------------------------------------- |
|
242 // |
|
243 RESOURCE CBA r_suplserver_editor_options_nomsk_done |
|
244 { |
|
245 flags = 0; |
|
246 buttons = |
|
247 { |
|
248 CBA_BUTTON |
|
249 { |
|
250 id = EAknSoftkeyOptions; |
|
251 txt = text_softkey_option; |
|
252 }, |
|
253 CBA_BUTTON |
|
254 { |
|
255 id = EAknSoftkeyDone; |
|
256 txt = text_softkey_done; |
|
257 }, |
|
258 CBA_BUTTON |
|
259 { |
|
260 id = ELocServerEditorNoCmd; |
|
261 txt = ""; |
|
262 } |
|
263 }; |
|
264 } |
|
265 |
|
266 //---------------------------------------------------- |
|
267 // RESOURCE CBA r_suplserver_editor_options_define_back |
|
268 // CBA for SUPL Editor UI view. |
|
269 //---------------------------------------------------- |
|
270 // |
|
271 RESOURCE CBA r_suplserver_editor_options_define_done |
|
272 { |
|
273 flags = 0; |
|
274 buttons = |
|
275 { |
|
276 CBA_BUTTON |
|
277 { |
|
278 id = EAknSoftkeyOptions; |
|
279 txt = text_softkey_option; |
|
280 }, |
|
281 CBA_BUTTON |
|
282 { |
|
283 id = EAknSoftkeyDone; |
|
284 txt = text_softkey_done; |
|
285 }, |
|
286 CBA_BUTTON |
|
287 { |
|
288 id = ELocServerEditorMSKDefine; |
|
289 txt = qtn_msk_define; |
|
290 } |
|
291 }; |
|
292 } |
|
293 |
|
294 //---------------------------------------------------- |
|
295 // RESOURCE CBA r_suplserver_editor_options_change_done |
|
296 // CBA for SUPL Editor UI view. |
|
297 //---------------------------------------------------- |
|
298 // |
|
299 RESOURCE CBA r_suplserver_editor_options_change_done |
|
300 { |
|
301 flags = 0; |
|
302 buttons = |
|
303 { |
|
304 CBA_BUTTON |
|
305 { |
|
306 id = EAknSoftkeyOptions; |
|
307 txt = text_softkey_option; |
|
308 }, |
|
309 CBA_BUTTON |
|
310 { |
|
311 id = EAknSoftkeyDone; |
|
312 txt = text_softkey_done; |
|
313 }, |
|
314 CBA_BUTTON |
|
315 { |
|
316 id = ELocServerEditorMSKChange; |
|
317 txt = qtn_msk_change; |
|
318 } |
|
319 }; |
|
320 } |
|
321 |
|
322 //------------------------------------------------------------------------------ |
|
323 // r_loc_server_info_note |
|
324 // info note to add server name |
|
325 //------------------------------------------------------------------------------ |
|
326 // |
|
327 RESOURCE TBUF r_loc_server_info_note |
|
328 { |
|
329 buf = qtn_loc_server_info_note; |
|
330 } |
|
331 |
|
332 //------------------------------------------------------------------------------ |
|
333 // r_loc_server_editor_title |
|
334 // title text for editor |
|
335 //------------------------------------------------------------------------------ |
|
336 // |
|
337 RESOURCE TBUF r_loc_server_editor_title |
|
338 { |
|
339 buf = qtn_loc_server_editor_title; |
|
340 } |
|
341 |
|
342 //------------------------------------------------------------------------------ |
|
343 // r_loc_server_none |
|
344 // Value in the "Access point" form field |
|
345 //------------------------------------------------------------------------------ |
|
346 // |
|
347 RESOURCE TBUF r_loc_server_none |
|
348 { |
|
349 buf = qtn_loc_server_none; |
|
350 } |
|
351 |
|
352 //------------------------------------------------------------------------------ |
|
353 // r_loc_server_none |
|
354 // info note to add new server address after duplicate server address entered |
|
355 //------------------------------------------------------------------------------ |
|
356 // |
|
357 RESOURCE TBUF r_loc_server_already_exist_info_note |
|
358 { |
|
359 buf = qtn_loc_server_rename_info_note; |
|
360 } |
|
361 |
|
362 // End of File |