45
|
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 = EEikCtEdwin;
|
|
208 |
prompt = qtn_loc_server_usage;
|
|
209 |
id = ELocSuplServerIdUsageInHomeNw;
|
|
210 |
itemflags = EEikDlgItemTakesEnterKey;
|
|
211 |
control = EDWIN
|
|
212 |
{
|
|
213 |
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable |
|
|
214 |
EEikEdwinNoAutoSelection | EEikEdwinReadOnly|
|
|
215 |
EEikEdwinAvkonDisableCursor|EEikEdwinAvkonNotEditable |EEikEdwinDisplayOnly;
|
|
216 |
// maxlength = ECalenAbsoluteMaxTextEditorLength;
|
|
217 |
default_case = EAknEditorTextCase;
|
|
218 |
allowed_case_modes = EAknEditorAllCaseModes;
|
|
219 |
numeric_keymap = EAknEditorStandardNumberModeKeymap;
|
|
220 |
special_character_table = R_AVKON_SPECIAL_CHARACTER_TABLE_DIALOG;
|
|
221 |
avkon_flags = EAknEditorFlagUseSCTNumericCharmap |
|
|
222 |
EAknEditorFlagDefault |
|
|
223 |
EAknEditorFlagEnablePictographInput;
|
|
224 |
// let Avkon decide which is maximum number of lines
|
|
225 |
// It's based on layout.
|
|
226 |
max_view_height_in_lines = 0;
|
|
227 |
};
|
|
228 |
}
|
|
229 |
};
|
|
230 |
}
|
|
231 |
|
|
232 |
//----------------------------------------------------
|
|
233 |
// RESOURCE ARRAY r_suplserver_editor_usageinhomenw_array
|
|
234 |
// array for usage in homw nw pop-up dialog
|
|
235 |
//----------------------------------------------------
|
|
236 |
//
|
|
237 |
RESOURCE ARRAY r_suplserver_editor_usageinhomenw_array
|
|
238 |
{
|
|
239 |
items =
|
|
240 |
{
|
|
241 |
LBUF{ txt = qtn_loc_server_usage_yes; },
|
|
242 |
LBUF{ txt = qtn_loc_server_usage_no; }
|
|
243 |
};
|
|
244 |
}
|
|
245 |
|
|
246 |
//----------------------------------------------------
|
|
247 |
// RESOURCE CBA r_suplserver_editor_options_nomsk_done
|
|
248 |
// CBA for SUPL Editor UI view.
|
|
249 |
//----------------------------------------------------
|
|
250 |
//
|
|
251 |
RESOURCE CBA r_suplserver_editor_options_nomsk_done
|
|
252 |
{
|
|
253 |
flags = 0;
|
|
254 |
buttons =
|
|
255 |
{
|
|
256 |
CBA_BUTTON
|
|
257 |
{
|
|
258 |
id = EAknSoftkeyOptions;
|
|
259 |
txt = text_softkey_option;
|
|
260 |
},
|
|
261 |
CBA_BUTTON
|
|
262 |
{
|
|
263 |
id = EAknSoftkeyDone;
|
|
264 |
txt = text_softkey_done;
|
|
265 |
},
|
|
266 |
CBA_BUTTON
|
|
267 |
{
|
|
268 |
id = ELocServerEditorNoCmd;
|
|
269 |
txt = "";
|
|
270 |
}
|
|
271 |
};
|
|
272 |
}
|
|
273 |
|
|
274 |
//----------------------------------------------------
|
|
275 |
// RESOURCE CBA r_suplserver_editor_options_define_back
|
|
276 |
// CBA for SUPL Editor UI view.
|
|
277 |
//----------------------------------------------------
|
|
278 |
//
|
|
279 |
RESOURCE CBA r_suplserver_editor_options_define_done
|
|
280 |
{
|
|
281 |
flags = 0;
|
|
282 |
buttons =
|
|
283 |
{
|
|
284 |
CBA_BUTTON
|
|
285 |
{
|
|
286 |
id = EAknSoftkeyOptions;
|
|
287 |
txt = text_softkey_option;
|
|
288 |
},
|
|
289 |
CBA_BUTTON
|
|
290 |
{
|
|
291 |
id = EAknSoftkeyDone;
|
|
292 |
txt = text_softkey_done;
|
|
293 |
},
|
|
294 |
CBA_BUTTON
|
|
295 |
{
|
|
296 |
id = ELocServerEditorMSKDefine;
|
|
297 |
txt = qtn_msk_define;
|
|
298 |
}
|
|
299 |
};
|
|
300 |
}
|
|
301 |
|
|
302 |
//----------------------------------------------------
|
|
303 |
// RESOURCE CBA r_suplserver_editor_options_change_done
|
|
304 |
// CBA for SUPL Editor UI view.
|
|
305 |
//----------------------------------------------------
|
|
306 |
//
|
|
307 |
RESOURCE CBA r_suplserver_editor_options_change_done
|
|
308 |
{
|
|
309 |
flags = 0;
|
|
310 |
buttons =
|
|
311 |
{
|
|
312 |
CBA_BUTTON
|
|
313 |
{
|
|
314 |
id = EAknSoftkeyOptions;
|
|
315 |
txt = text_softkey_option;
|
|
316 |
},
|
|
317 |
CBA_BUTTON
|
|
318 |
{
|
|
319 |
id = EAknSoftkeyDone;
|
|
320 |
txt = text_softkey_done;
|
|
321 |
},
|
|
322 |
CBA_BUTTON
|
|
323 |
{
|
|
324 |
id = ELocServerEditorMSKChange;
|
|
325 |
txt = qtn_msk_change;
|
|
326 |
}
|
|
327 |
};
|
|
328 |
}
|
|
329 |
|
|
330 |
//------------------------------------------------------------------------------
|
|
331 |
// r_loc_server_info_note
|
|
332 |
// info note to add server name
|
|
333 |
//------------------------------------------------------------------------------
|
|
334 |
//
|
|
335 |
RESOURCE TBUF r_loc_server_info_note
|
|
336 |
{
|
|
337 |
buf = qtn_loc_server_info_note;
|
|
338 |
}
|
|
339 |
|
|
340 |
//------------------------------------------------------------------------------
|
|
341 |
// r_loc_server_editor_title
|
|
342 |
// title text for editor
|
|
343 |
//------------------------------------------------------------------------------
|
|
344 |
//
|
|
345 |
RESOURCE TBUF r_loc_server_editor_title
|
|
346 |
{
|
|
347 |
buf = qtn_loc_server_editor_title;
|
|
348 |
}
|
|
349 |
|
|
350 |
//------------------------------------------------------------------------------
|
|
351 |
// r_loc_server_none
|
|
352 |
// Value in the "Access point" form field
|
|
353 |
//------------------------------------------------------------------------------
|
|
354 |
//
|
|
355 |
RESOURCE TBUF r_loc_server_none
|
|
356 |
{
|
|
357 |
buf = qtn_loc_server_none;
|
|
358 |
}
|
|
359 |
|
|
360 |
//------------------------------------------------------------------------------
|
|
361 |
// r_loc_server_none
|
|
362 |
// info note to add new server address after duplicate server address entered
|
|
363 |
//------------------------------------------------------------------------------
|
|
364 |
//
|
|
365 |
RESOURCE TBUF r_loc_server_already_exist_info_note
|
|
366 |
{
|
|
367 |
buf = qtn_loc_server_rename_info_note;
|
|
368 |
}
|
|
369 |
|
|
370 |
// ---------------------------------------------------------
|
|
371 |
//
|
|
372 |
// r_loc_server_usageinhomenetwork_yes
|
|
373 |
// Define "Yes" to "Usage in home network:" line of Editor Form
|
|
374 |
//
|
|
375 |
// ---------------------------------------------------------
|
|
376 |
//
|
|
377 |
RESOURCE TBUF r_loc_server_usageinhomenetwork_yes
|
|
378 |
{
|
|
379 |
buf = qtn_loc_server_usage_yes;
|
|
380 |
}
|
|
381 |
// ---------------------------------------------------------
|
|
382 |
//
|
|
383 |
// r_loc_server_usageinhomenetwork_no
|
|
384 |
// Define "No" to "Usage in home network:" line of Editor Form
|
|
385 |
//
|
|
386 |
// ---------------------------------------------------------
|
|
387 |
//
|
|
388 |
RESOURCE TBUF r_loc_server_usageinhomenetwork_no
|
|
389 |
{
|
|
390 |
buf = qtn_loc_server_usage_no;
|
|
391 |
}
|
|
392 |
// End of File
|