|
1 /* |
|
2 * Copyright (c) 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 "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: Resource definitions for MCS plug-in settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <eikon.rh> |
|
20 #include <avkon.rsg> |
|
21 #include <avkon.rh> |
|
22 #include <avkon.mbg> |
|
23 #include <eikcore.rsg> |
|
24 #include <eikon.rsg> |
|
25 #include <appinfo.rh> |
|
26 #include <avkon.loc> |
|
27 #include <data_caging_paths_strings.hrh> |
|
28 #include <gscommon.rh> |
|
29 #include <gs.loc> |
|
30 |
|
31 #include <mcspluginsettings.loc> |
|
32 |
|
33 #include "mcspluginsettings.hrh" |
|
34 |
|
35 |
|
36 NAME MCPS |
|
37 |
|
38 RESOURCE RSS_SIGNATURE { } |
|
39 |
|
40 RESOURCE TBUF { buf="MCPS"; } |
|
41 |
|
42 //---------------------------------------------------- |
|
43 // EIK_APP_INFO |
|
44 // Contains application information. |
|
45 //---------------------------------------------------- |
|
46 // |
|
47 RESOURCE EIK_APP_INFO |
|
48 { |
|
49 } |
|
50 |
|
51 //---------------------------------------------------- |
|
52 // r_ai_mcs_settings_menubar |
|
53 // |
|
54 //---------------------------------------------------- |
|
55 // |
|
56 RESOURCE MENU_BAR r_ai_mcs_settings_menubar |
|
57 { |
|
58 titles = |
|
59 { |
|
60 MENU_TITLE { menu_pane = r_ai_mcs_settings_menupane; } |
|
61 }; |
|
62 } |
|
63 |
|
64 //---------------------------------------------------- |
|
65 // r_ai_mcs_settings_menupane |
|
66 // Options menu. |
|
67 //---------------------------------------------------- |
|
68 // |
|
69 RESOURCE MENU_PANE r_ai_mcs_settings_menupane |
|
70 { |
|
71 items = |
|
72 { |
|
73 MENU_ITEM |
|
74 { |
|
75 command = EAiScutSettingsCmdChange; |
|
76 txt = qtn_options_change; |
|
77 flags = EEikMenuItemAction; |
|
78 } |
|
79 |
|
80 #ifdef __SERIES60_HELP |
|
81 , |
|
82 MENU_ITEM |
|
83 { |
|
84 command = EAknCmdHelp; |
|
85 txt = qtn_options_help; |
|
86 } |
|
87 #endif // __SERIES60_HELP |
|
88 , |
|
89 MENU_ITEM |
|
90 { |
|
91 command = EAknCmdExit; |
|
92 txt = qtn_options_exit; |
|
93 } |
|
94 }; |
|
95 } |
|
96 |
|
97 //---------------------------------------------------- |
|
98 // r_ai_mcs_settings_view |
|
99 // Settings views. |
|
100 //---------------------------------------------------- |
|
101 // |
|
102 RESOURCE AVKON_VIEW r_ai_mcs_settings_view |
|
103 { |
|
104 menubar = r_ai_mcs_settings_menubar; |
|
105 cba = r_scut_softkeys_options_back_change; |
|
106 } |
|
107 |
|
108 //---------------------------------------------------- |
|
109 // r_ai_mcs_setting_listbox |
|
110 // Common listbox editor resource for setting pages. |
|
111 //---------------------------------------------------- |
|
112 // |
|
113 RESOURCE LISTBOX r_ai_mcs_setting_listbox |
|
114 { |
|
115 flags = EEikListBoxMultipleSelection; |
|
116 } |
|
117 |
|
118 //---------------------------------------------------- |
|
119 // r_ai_mcs__settings_applist_page |
|
120 // Selection key idle softkey setting page. |
|
121 //---------------------------------------------------- |
|
122 // |
|
123 RESOURCE AVKON_SETTING_PAGE r_ai_mcs_settings_applist_page |
|
124 { |
|
125 number = EAknSettingPageNoOrdinalDisplayed; |
|
126 // label = qtn_set_idle_selec_key; |
|
127 // note: default cba resource is ok_cancel_select |
|
128 //softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
129 type = EAknSetListBox; |
|
130 editor_resource_id = r_ai_mcs_setting_listbox; |
|
131 } |
|
132 |
|
133 //---------------------------------------------------- |
|
134 // r_ai_mcs_change_to_page_lbx |
|
135 // "Change To" setting page. |
|
136 //---------------------------------------------------- |
|
137 // |
|
138 RESOURCE ARRAY r_ai_mcs_change_to_page_lbx |
|
139 { |
|
140 items = |
|
141 { |
|
142 LBUF { txt = qtn_ai_mcs_set_change_apps; }, |
|
143 LBUF { txt = qtn_ai_mcs_set_change_bookmark; } |
|
144 |
|
145 // Only this menu option disabled. |
|
146 // The implementation of url functionality still exists in code, |
|
147 // even though this option has been decided to remove due to better |
|
148 // usability. Affects lots of code if removed entirely. |
|
149 /*, |
|
150 LBUF { txt = qtn_ai_mcs_set_change_url; }*/ |
|
151 }; |
|
152 } |
|
153 |
|
154 //---------------------------------------------------- |
|
155 // r_ai_mcs_listquery_change_to_page |
|
156 // "Change To" setting page. |
|
157 //---------------------------------------------------- |
|
158 // |
|
159 RESOURCE AVKON_LIST_QUERY r_ai_mcs_listquery_change_to_page |
|
160 { |
|
161 softkeys=R_AVKON_SOFTKEYS_SELECT_CANCEL; |
|
162 items = |
|
163 { |
|
164 AVKON_LIST_QUERY_DLG_LINE |
|
165 { |
|
166 control = AVKON_LIST_QUERY_CONTROL |
|
167 { |
|
168 listtype = EAknCtSinglePopupMenuListBox; |
|
169 heading = qtn_ai_mcs_set_change_prompt; |
|
170 listbox = AVKON_LIST_QUERY_LIST |
|
171 { |
|
172 // array of items will be defined dynamically |
|
173 }; |
|
174 }; |
|
175 } |
|
176 }; |
|
177 } |
|
178 |
|
179 //---------------------------------------------------- |
|
180 // r_ai_mcs_settings_view_caption |
|
181 // View caption for plug-in. max 256 |
|
182 //---------------------------------------------------- |
|
183 // |
|
184 RESOURCE TBUF r_ai_mcs_settings_view_caption |
|
185 { |
|
186 buf = qtn_ai_mcs_set_pers_shortcuts; |
|
187 } |
|
188 |
|
189 //---------------------------------------------------- |
|
190 // r_ai_mcs_settings_view_title |
|
191 // View title. |
|
192 //---------------------------------------------------- |
|
193 // |
|
194 RESOURCE TITLE_PANE r_ai_mcs_settings_view_title |
|
195 { |
|
196 txt = qtn_ai_mcs_set_title_pers_shortcuts; |
|
197 } |
|
198 |
|
199 //---------------------------------------------------- |
|
200 // r_ai_mcs_settings_txt_fixed_item |
|
201 // Text used in information note when attempting |
|
202 // to change a read-only shortcut |
|
203 //---------------------------------------------------- |
|
204 // |
|
205 RESOURCE TBUF r_ai_mcs_settings_txt_fixed_item |
|
206 { |
|
207 buf = qtn_ai_mcs_set_app_note_fixed; |
|
208 } |
|
209 |
|
210 //---------------------------------------------------- |
|
211 // r_ai_mcs_settings_txt_all_fixed |
|
212 // Text for empty listbox item |
|
213 //---------------------------------------------------- |
|
214 // |
|
215 RESOURCE TBUF r_ai_mcs_settings_txt_all_fixed |
|
216 { |
|
217 buf = qtn_ai_mcs_set_all_fixed; |
|
218 } |
|
219 |
|
220 //---------------------------------------------------- |
|
221 // r_ai_mcs_settings_txt_linkn |
|
222 // |
|
223 //---------------------------------------------------- |
|
224 // |
|
225 RESOURCE TBUF r_ai_mcs_settings_txt_linkn |
|
226 { |
|
227 buf = qtn_ai_mcs_set_myt_linkn; |
|
228 } |
|
229 |
|
230 |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 // ----------------------------------------------------------------------------- |
|
234 // |
|
235 RESOURCE CBA r_scut_softkeys_options_back_change |
|
236 { |
|
237 buttons = |
|
238 { |
|
239 CBA_BUTTON {id = EAknSoftkeyOptions; txt = text_softkey_option; }, |
|
240 CBA_BUTTON {id = EAknSoftkeyBack; txt = text_softkey_back; }, |
|
241 CBA_BUTTON {id = EAiScutSettingsCmdChange; txt = qtn_msk_change; } |
|
242 }; |
|
243 } |
|
244 |
|
245 // End of File. |