|
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: |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 // INCLUDES |
|
20 #include <eikon.rh> |
|
21 #include <avkon.rsg> |
|
22 #include <avkon.rh> |
|
23 #include <avkon.loc> |
|
24 #include <appinfo.rh> |
|
25 #include <avkon.mbg> |
|
26 #include <activeidle3.loc> |
|
27 |
|
28 #include "widgetmanager.hrh" |
|
29 #include "widgetmanagerview.loc" |
|
30 |
|
31 // RESOURCE IDENTIFIER |
|
32 NAME WIGZ // 4 letter ID |
|
33 |
|
34 RESOURCE RSS_SIGNATURE |
|
35 { |
|
36 } |
|
37 |
|
38 // ---------------------------------------------------- |
|
39 // MAIN VIEW AND ITS PARTS |
|
40 // ---------------------------------------------------- |
|
41 |
|
42 RESOURCE AVKON_VIEW r_wm_main_container_view |
|
43 { |
|
44 cba = R_AVKON_SOFTKEYS_OPTIONS_BACK__SELECT; |
|
45 menubar = r_wm_main_container_options_menu; |
|
46 toolbar = 0; |
|
47 } |
|
48 |
|
49 RESOURCE TITLE_PANE r_wm_main_container_title_resource |
|
50 { |
|
51 txt = qtn_wm_title_text; |
|
52 } |
|
53 |
|
54 // ---------------------------------------------------- |
|
55 // MENU |
|
56 // ---------------------------------------------------- |
|
57 |
|
58 RESOURCE MENU_BAR r_wm_main_container_options_menu |
|
59 { |
|
60 titles = |
|
61 { |
|
62 MENU_TITLE |
|
63 { |
|
64 menu_pane = r_wm_main_container_menu_pane; |
|
65 } |
|
66 }; |
|
67 } |
|
68 |
|
69 RESOURCE MENU_PANE r_wm_main_container_menu_pane |
|
70 { |
|
71 items = |
|
72 { |
|
73 MENU_ITEM |
|
74 { |
|
75 command = EWmMainContainerViewOpenPortalMenuItemCommand; |
|
76 txt = qtn_options_wm_open; |
|
77 flags = EEikMenuItemAction; |
|
78 }, |
|
79 MENU_ITEM |
|
80 { |
|
81 command = EWmMainContainerViewAddMenuItemCommand; |
|
82 txt = qtn_options_wm_add; |
|
83 flags = EEikMenuItemAction; |
|
84 }, |
|
85 MENU_ITEM |
|
86 { |
|
87 command = EWmMainContainerViewWiddetDetailsMenuItemCommand; |
|
88 txt = qtn_options_wm_show_details; |
|
89 flags = EEikMenuItemSpecific; |
|
90 }, |
|
91 MENU_ITEM |
|
92 { |
|
93 command = EWmMainContainerViewLaunchMenuItemCommand; |
|
94 txt = qtn_options_wm_launch_widget; |
|
95 flags = EEikMenuItemSpecific; |
|
96 }, |
|
97 MENU_ITEM |
|
98 { |
|
99 command = EWmMainContainerViewSearchMenuItemCommand; |
|
100 txt = qtn_options_wm_search; |
|
101 }, |
|
102 MENU_ITEM |
|
103 { |
|
104 command = EWmMainContainerViewSortAlphaMenuItemCommand; |
|
105 txt = qtn_options_wm_sort_alpha; |
|
106 }, |
|
107 MENU_ITEM |
|
108 { |
|
109 command = EWmMainContainerViewUninstallMenuItemCommand; |
|
110 txt = qtn_options_wm_uninstall; |
|
111 flags = EEikMenuItemSpecific; |
|
112 }, |
|
113 MENU_ITEM |
|
114 { |
|
115 command = EWmMainContainerViewHelpMenuItemCommand; |
|
116 txt = qtn_options_help; |
|
117 }, |
|
118 MENU_ITEM |
|
119 { |
|
120 command = EWmMainContainerViewBackMenuItemCommand; |
|
121 txt = qtn_options_exit; |
|
122 } |
|
123 }; |
|
124 } |
|
125 |
|
126 // ---------------------------------------------------- |
|
127 // OVI STORE BUTTON |
|
128 // ---------------------------------------------------- |
|
129 |
|
130 RESOURCE AVKON_BUTTON r_wm_portal_button |
|
131 { |
|
132 flags = 0; |
|
133 states = |
|
134 { |
|
135 AVKON_BUTTON_STATE |
|
136 { |
|
137 flags = 0; |
|
138 txt = qtn_wm_ovi_store_title; |
|
139 bmpfile = AVKON_BITMAP_FILE; |
|
140 bmpid = EMbmAvkonQgn_graf_wml_wait_globe_04; |
|
141 bmpmask = EMbmAvkonQgn_graf_wml_wait_globe_04_mask; |
|
142 press_bmpid = EMbmAvkonQgn_graf_wml_wait_globe_04; |
|
143 press_bmpmask = EMbmAvkonQgn_graf_wml_wait_globe_04_mask; |
|
144 } |
|
145 }; |
|
146 } |
|
147 |
|
148 RESOURCE TBUF r_qtn_wm_go_to_ovi_store |
|
149 { |
|
150 buf = qtn_wm_ovi_store_title; |
|
151 } |
|
152 |
|
153 // ---------------------------------------------------- |
|
154 // MISCELLANEOUS INFO MESSAGES |
|
155 // ---------------------------------------------------- |
|
156 |
|
157 RESOURCE TBUF r_qtn_hs_add_widget_no_space_note |
|
158 { |
|
159 buf = qtn_hs_add_widget_no_space_note; |
|
160 } |
|
161 |
|
162 RESOURCE TBUF r_qtn_hs_add_widget_max_count_note |
|
163 { |
|
164 buf = qtn_hs_add_widget_max_count_note; |
|
165 } |
|
166 |
|
167 RESOURCE TBUF r_qtn_hs_hs_memory_full |
|
168 { |
|
169 buf = qtn_hs_hs_memory_full; |
|
170 } |
|
171 |
|
172 RESOURCE TBUF r_qtn_wm_details_no_description |
|
173 { |
|
174 buf = qtn_wm_details_no_description; |
|
175 } |
|
176 |
|
177 RESOURCE TBUF r_qtn_wm_widget_details_wrt |
|
178 { |
|
179 buf = qtn_wm_widget_details_wrt; |
|
180 } |
|
181 |
|
182 RESOURCE TBUF r_qtn_wm_uninst_not_allowed |
|
183 { |
|
184 buf = qtn_wm_uninst_not_allowed; |
|
185 } |
|
186 |
|
187 // ---------------------------------------------------- |
|
188 // Wm Details dialog |
|
189 // ---------------------------------------------------- |
|
190 |
|
191 STRUCT WMDLGCONTROL |
|
192 { |
|
193 STRUCT control; |
|
194 } |
|
195 |
|
196 RESOURCE DIALOG r_wm_details_add_dialog |
|
197 { |
|
198 flags = EEikDialogFlagNoDrag | |
|
199 EEikDialogFlagCbaButtons | |
|
200 EEikDialogFlagWait | |
|
201 EEikDialogFlagNoTitleBar; |
|
202 buttons = r_wm_details_add_close_cba; |
|
203 } |
|
204 |
|
205 RESOURCE CBA r_wm_details_add_close_cba |
|
206 { |
|
207 buttons = |
|
208 { |
|
209 CBA_BUTTON // add |
|
210 { |
|
211 id = ECbaAddToHs; |
|
212 txt = qtn_wm_details_add_to_hs; |
|
213 }, |
|
214 CBA_BUTTON // close |
|
215 { |
|
216 id = EAknSoftkeyClose; |
|
217 txt = text_softkey_close; |
|
218 } |
|
219 }; |
|
220 } |
|
221 |
|
222 RESOURCE DIALOG r_wm_details_only_dialog |
|
223 { |
|
224 flags = EEikDialogFlagNoDrag | |
|
225 EEikDialogFlagCbaButtons | |
|
226 EEikDialogFlagWait | |
|
227 EEikDialogFlagNoTitleBar; |
|
228 buttons = r_wm_details_empty_close_cba; |
|
229 } |
|
230 |
|
231 RESOURCE CBA r_wm_details_empty_close_cba |
|
232 { |
|
233 buttons = |
|
234 { |
|
235 CBA_BUTTON // empty |
|
236 { |
|
237 id = 0; |
|
238 txt = text_softkey_empty; |
|
239 }, |
|
240 CBA_BUTTON // close |
|
241 { |
|
242 id = EAknSoftkeyClose; |
|
243 txt = text_softkey_close; |
|
244 } |
|
245 }; |
|
246 } |