author | Simon Howkins <simonh@symbian.org> |
Tue, 16 Nov 2010 11:12:20 +0000 | |
branch | RCL_3 |
changeset 108 | cf9be2d674f1 |
parent 102 | ba63c83f4716 |
permissions | -rw-r--r-- |
83 | 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 <widgetmanagerview.loc> |
|
27 |
||
28 |
#include "widgetmanager.hrh" |
|
29 |
||
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 |
{ |
|
102
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
44 |
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; |
83 | 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 |
{ |
|
102
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
75 |
command = EWmMainContainerViewOpenPortalMenuItemCommand; |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
76 |
txt = qtn_options_wm_open; |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
77 |
flags = EEikMenuItemAction; |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
78 |
}, |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
79 |
MENU_ITEM |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
80 |
{ |
83 | 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 |
// ---------------------------------------------------- |
|
102
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
127 |
// OVI STORE BUTTON |
83 | 128 |
// ---------------------------------------------------- |
102
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
129 |
|
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
130 |
RESOURCE AVKON_BUTTON r_wm_portal_button |
83 | 131 |
{ |
102
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
132 |
flags = 0; |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
133 |
states = |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
134 |
{ |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
135 |
AVKON_BUTTON_STATE |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
136 |
{ |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
137 |
flags = 0; |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
138 |
txt = qtn_wm_ovi_store_title; |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
139 |
} |
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
140 |
}; |
83 | 141 |
} |
142 |
||
102
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
143 |
RESOURCE TBUF r_qtn_wm_go_to_ovi_store |
83 | 144 |
{ |
102
ba63c83f4716
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
93
diff
changeset
|
145 |
buf = qtn_wm_ovi_store_title; |
83 | 146 |
} |
147 |
||
148 |
// ---------------------------------------------------- |
|
149 |
// MISCELLANEOUS INFO MESSAGES |
|
150 |
// ---------------------------------------------------- |
|
151 |
||
152 |
RESOURCE TBUF r_qtn_hs_add_widget_no_space_note |
|
153 |
{ |
|
154 |
buf = qtn_hs_add_widget_no_space_note; |
|
155 |
} |
|
156 |
||
157 |
RESOURCE TBUF r_qtn_hs_add_widget_max_count_note |
|
158 |
{ |
|
159 |
buf = qtn_hs_add_widget_max_count_note; |
|
160 |
} |
|
161 |
||
162 |
RESOURCE TBUF r_qtn_hs_hs_memory_full |
|
163 |
{ |
|
164 |
buf = qtn_hs_hs_memory_full; |
|
165 |
} |
|
166 |
||
167 |
RESOURCE TBUF r_qtn_wm_details_no_description |
|
168 |
{ |
|
169 |
buf = qtn_wm_details_no_description; |
|
170 |
} |
|
171 |
||
172 |
RESOURCE TBUF r_qtn_wm_widget_details_wrt |
|
173 |
{ |
|
174 |
buf = qtn_wm_widget_details_wrt; |
|
175 |
} |
|
176 |
||
177 |
RESOURCE TBUF r_qtn_wm_uninst_not_allowed |
|
178 |
{ |
|
179 |
buf = qtn_wm_uninst_not_allowed; |
|
180 |
} |
|
181 |
||
182 |
RESOURCE TBUF r_qtn_wm_uninstall_widget_query |
|
183 |
{ |
|
184 |
buf = qtn_wm_uninstall_widget_query; |
|
185 |
} |
|
186 |
||
187 |
RESOURCE TBUF r_qtn_wm_uninst_process_busy |
|
188 |
{ |
|
189 |
buf = qtn_wm_uninst_process_busy; |
|
190 |
} |
|
191 |
||
192 |
RESOURCE TBUF r_qtn_hs_add_widget_max_reached |
|
193 |
{ |
|
194 |
buf = qtn_hs_add_widget_max_reached; |
|
195 |
} |
|
196 |
||
197 |
RESOURCE TBUF r_qtn_wm_uninstall_text |
|
198 |
{ |
|
199 |
buf = qtn_wm_uninstall_text; |
|
200 |
} |
|
201 |
||
202 |
// ---------------------------------------------------- |
|
203 |
// Wm Details dialog |
|
204 |
// ---------------------------------------------------- |
|
205 |
||
206 |
STRUCT WMDLGCONTROL |
|
207 |
{ |
|
208 |
STRUCT control; |
|
209 |
} |
|
210 |
||
211 |
RESOURCE DIALOG r_wm_details_add_dialog |
|
212 |
{ |
|
213 |
flags = EEikDialogFlagNoDrag | |
|
214 |
EEikDialogFlagCbaButtons | |
|
215 |
EEikDialogFlagWait | |
|
216 |
EEikDialogFlagNoTitleBar; |
|
217 |
buttons = r_wm_details_add_close_cba; |
|
218 |
} |
|
219 |
||
220 |
RESOURCE CBA r_wm_details_add_close_cba |
|
221 |
{ |
|
222 |
buttons = |
|
223 |
{ |
|
224 |
CBA_BUTTON // add |
|
225 |
{ |
|
226 |
id = ECbaAddToHs; |
|
227 |
txt = qtn_wm_details_add_to_hs; |
|
228 |
}, |
|
229 |
CBA_BUTTON // close |
|
230 |
{ |
|
231 |
id = EAknSoftkeyClose; |
|
232 |
txt = text_softkey_close; |
|
233 |
} |
|
234 |
}; |
|
235 |
} |
|
236 |
||
237 |
RESOURCE DIALOG r_wm_details_only_dialog |
|
238 |
{ |
|
239 |
flags = EEikDialogFlagNoDrag | |
|
240 |
EEikDialogFlagCbaButtons | |
|
241 |
EEikDialogFlagWait | |
|
242 |
EEikDialogFlagNoTitleBar; |
|
243 |
buttons = r_wm_details_empty_close_cba; |
|
244 |
} |
|
245 |
||
246 |
RESOURCE CBA r_wm_details_empty_close_cba |
|
247 |
{ |
|
248 |
buttons = |
|
249 |
{ |
|
250 |
CBA_BUTTON // empty |
|
251 |
{ |
|
252 |
id = 0; |
|
253 |
txt = text_softkey_empty; |
|
254 |
}, |
|
255 |
CBA_BUTTON // close |
|
256 |
{ |
|
257 |
id = EAknSoftkeyClose; |
|
258 |
txt = text_softkey_close; |
|
259 |
} |
|
260 |
}; |
|
261 |
} |