author | Sebastian Brannstrom <sebastianb@symbian.org> |
Thu, 21 Oct 2010 18:52:18 +0100 | |
branch | RCL_3 |
changeset 264 | 6dfdf1d9da5c |
parent 243 | 44d205147a83 |
child 328 | 75a70f4a4f6d |
permissions | -rw-r--r-- |
2 | 1 |
/* |
2 |
* Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB |
|
3 |
* |
|
4 |
* All rights reserved. |
|
5 |
* This component and the accompanying materials are made available |
|
6 |
* under the terms of the License "Eclipse Public License v1.0" |
|
7 |
* which accompanies this distribution, and is available |
|
8 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 |
* |
|
10 |
* Initial Contributors: |
|
11 |
* EmbedDev AB - initial contribution. |
|
12 |
* |
|
13 |
* Contributors: |
|
14 |
* |
|
15 |
* Description: |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
RESOURCE HOTKEYS r_podcast_feedview_hotkeys |
|
20 |
{ |
|
21 |
control = |
|
22 |
{ |
|
23 |
HOTKEY { command = EAknCmdExit; key='e'; } |
|
24 |
}; |
|
25 |
} |
|
26 |
||
27 |
RESOURCE MENU_BAR r_podcast_feedview_menubar |
|
28 |
{ |
|
29 |
titles = |
|
30 |
{ |
|
31 |
MENU_TITLE { menu_pane = r_podcast_feedview_menu; txt = "Feeds"; } |
|
32 |
}; |
|
33 |
} |
|
34 |
||
35 |
RESOURCE MENU_PANE r_podcast_feedview_menu |
|
36 |
{ |
|
37 |
items = |
|
38 |
{ |
|
39 |
MENU_ITEM |
|
40 |
{ |
|
41 |
command = EPodcastImportExportFeeds; |
|
42 |
txt = STRING_r_view_import_export_feeds_cmd; |
|
43 |
cascade = r_importexport_menu; |
|
44 |
}, |
|
45 |
MENU_ITEM |
|
46 |
{ |
|
47 |
command = EPodcastAbout; |
|
48 |
txt = STRING_r_view_about_cmd; |
|
49 |
}, |
|
50 |
MENU_ITEM |
|
51 |
{ |
|
52 |
command = EPodcastHelp; |
|
53 |
txt = STRING_r_view_help; |
|
54 |
}, |
|
55 |
MENU_ITEM |
|
56 |
{ |
|
57 |
command = EAknSoftkeyExit; |
|
58 |
txt = STRING_r_exit_cmd; |
|
243
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
59 |
}, |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
60 |
MENU_ITEM |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
61 |
{ |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
62 |
txt = STRING_r_view_edit_feed_cmd_short; |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
63 |
command = EPodcastEditFeed; |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
64 |
flags = EEikMenuItemSpecific; |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
65 |
}, |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
66 |
MENU_ITEM |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
67 |
{ |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
68 |
txt = STRING_r_view_delete_feed_cmd_short; |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
69 |
command = EPodcastDeleteFeed; |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
70 |
flags = EEikMenuItemSpecific; |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
71 |
}, |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
72 |
MENU_ITEM |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
73 |
{ |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
74 |
txt = STRING_r_update_feed_short_cmd; |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
75 |
command = EPodcastUpdateFeed; |
44d205147a83
Fix for bug 3730 by switching to proper S3 context menu handling
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
207
diff
changeset
|
76 |
flags = EEikMenuItemSpecific; |
2 | 77 |
} |
78 |
}; |
|
79 |
} |
|
80 |
||
81 |
RESOURCE MENU_PANE r_importexport_menu |
|
82 |
{ |
|
83 |
items = { |
|
84 |
MENU_ITEM |
|
85 |
{ |
|
86 |
command = EPodcastImportFeeds; |
|
87 |
txt = STRING_r_view_import_feeds_cmd; |
|
88 |
}, |
|
89 |
MENU_ITEM |
|
90 |
{ |
|
91 |
command = EPodcastExportFeeds; |
|
92 |
txt = STRING_r_view_export_feeds_cmd; |
|
93 |
} |
|
94 |
}; |
|
95 |
} |
|
96 |
||
97 |
RESOURCE CBA r_podcast_cba |
|
98 |
{ |
|
99 |
buttons = |
|
100 |
{ |
|
101 |
CBA_BUTTON |
|
102 |
{id=EAknSoftkeyOptions; txt = STRING_r_cba_options;}, |
|
103 |
CBA_BUTTON |
|
104 |
{id=EPodcastHide; txt = STRING_r_cba_hide;} |
|
105 |
}; |
|
106 |
} |
|
107 |
||
108 |
RESOURCE AVKON_VIEW r_podcast_feedview |
|
109 |
{ |
|
110 |
hotkeys = r_podcast_feedview_hotkeys; |
|
111 |
menubar = r_podcast_feedview_menubar; |
|
112 |
cba = r_podcast_cba; |
|
113 |
toolbar = r_feedview_toolbar; |
|
114 |
} |
|
115 |
||
116 |
RESOURCE AVKON_TOOLBAR r_feedview_toolbar |
|
117 |
{ |
|
118 |
flags = KAknToolbarFixed; |
|
119 |
items = |
|
120 |
{ |
|
121 |
TBAR_CTRL |
|
122 |
{ |
|
123 |
type = EAknCtButton; |
|
124 |
id = EPodcastUpdateAllFeeds; |
|
125 |
control = AVKON_BUTTON |
|
126 |
{ |
|
127 |
states = |
|
128 |
{ |
|
129 |
AVKON_BUTTON_STATE |
|
130 |
{ |
|
264
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
131 |
bmpfile = APPICON; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
132 |
bmpid = EMbmPodcastReload_all; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
133 |
bmpmask = EMbmPodcastReload_all_mask; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
134 |
//txt = STRING_r_update_feed_short_cmd; |
2 | 135 |
helptxt = STRING_r_update_all_feeds_cmd; |
136 |
} |
|
137 |
}; |
|
138 |
}; |
|
139 |
}, |
|
140 |
TBAR_CTRL |
|
141 |
{ |
|
142 |
type = EAknCtButton; |
|
143 |
id = EPodcastCancelUpdateAllFeeds; |
|
144 |
control = AVKON_BUTTON |
|
145 |
{ |
|
146 |
states = |
|
147 |
{ |
|
148 |
AVKON_BUTTON_STATE |
|
149 |
{ |
|
264
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
150 |
bmpfile = APPICON; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
151 |
bmpid = EMbmPodcastCancel; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
152 |
bmpmask = EMbmPodcastCancel_mask; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
153 |
//txt = STRING_r_cancel_update_all_feeds_short_cmd; |
2 | 154 |
helptxt = STRING_r_cancel_update_all_feeds_cmd; |
155 |
} |
|
156 |
}; |
|
157 |
}; |
|
158 |
}, |
|
159 |
TBAR_CTRL |
|
160 |
{ |
|
161 |
type = EAknCtButton; |
|
162 |
id = EPodcastAddFeed; |
|
163 |
control = AVKON_BUTTON |
|
164 |
{ |
|
165 |
flags = KAknButtonTextInsideFrame; |
|
166 |
states = |
|
167 |
{ |
|
168 |
AVKON_BUTTON_STATE |
|
169 |
{ |
|
264
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
170 |
bmpfile = APPICON; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
171 |
bmpid = EMbmPodcastAdd_pod; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
172 |
bmpmask = EMbmPodcastAdd_pod_mask; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
173 |
//txt = STRING_r_view_add_feed_cmd_short; |
2 | 174 |
helptxt = STRING_r_view_add_feed_cmd; |
175 |
} |
|
176 |
}; |
|
177 |
}; |
|
178 |
}, |
|
179 |
TBAR_CTRL |
|
180 |
{ |
|
181 |
type = EAknCtButton; |
|
182 |
id = EPodcastSettings; |
|
183 |
control = AVKON_BUTTON |
|
184 |
{ |
|
185 |
states = |
|
186 |
{ |
|
187 |
AVKON_BUTTON_STATE |
|
188 |
{ |
|
264
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
189 |
bmpfile = APPICON; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
190 |
bmpid = EMbmPodcastSettings; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
191 |
bmpmask = EMbmPodcastSettings_mask; |
6dfdf1d9da5c
Adding new toolbar icons
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
243
diff
changeset
|
192 |
//txt = STRING_r_settings_cmd; |
2 | 193 |
helptxt = STRING_r_settings_cmd; |
194 |
} |
|
195 |
}; |
|
196 |
}; |
|
197 |
} |
|
198 |
};// items |
|
199 |
} |
|
200 |
||
201 |
RESOURCE DIALOG r_podcast_add_feed_dlg |
|
202 |
{ |
|
203 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
204 |
||
205 |
flags = EGeneralQueryFlags; |
|
206 |
title = STRING_r_add_feed_title; |
|
207 |
items = |
|
208 |
{ |
|
209 |
DLG_LINE |
|
210 |
{ |
|
211 |
type = EAknCtQuery; |
|
212 |
id = EGeneralQuery; |
|
213 |
control= AVKON_DATA_QUERY |
|
214 |
{ |
|
215 |
layout = EDataLayout; |
|
216 |
control = EDWIN |
|
217 |
{ |
|
218 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; // | EEikEdwinNoAutoSelection; |
|
219 |
maxlength = 256; |
|
220 |
width = 4; |
|
221 |
lines = 5; |
|
222 |
}; |
|
223 |
}; |
|
224 |
} |
|
225 |
}; |
|
226 |
} |
|
227 |
||
228 |
RESOURCE DIALOG r_podcast_edit_feed_dlg |
|
229 |
{ |
|
230 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
231 |
||
232 |
flags = EGeneralQueryFlags; |
|
233 |
items = |
|
234 |
{ |
|
235 |
DLG_LINE |
|
236 |
{ |
|
237 |
type = EAknCtMultilineQuery; |
|
238 |
id = EMultilineFirstLine; |
|
239 |
control= AVKON_DATA_QUERY |
|
240 |
{ |
|
241 |
layout = EMultiDataFirstEdwin; |
|
242 |
label = STRING_r_add_feed_title_prompt; |
|
243 |
control = EDWIN |
|
244 |
{ |
|
245 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
246 |
maxlength = 256; |
|
247 |
width = 4; |
|
248 |
lines = 5; |
|
249 |
}; |
|
250 |
}; |
|
251 |
}, |
|
252 |
DLG_LINE |
|
253 |
{ |
|
254 |
type = EAknCtMultilineQuery; |
|
255 |
id = EMultilineSecondLine; |
|
256 |
control= AVKON_DATA_QUERY |
|
257 |
{ |
|
258 |
layout = EMultiDataSecondEdwin; |
|
259 |
label = STRING_r_edit_feed_prompt; |
|
260 |
control = EDWIN |
|
261 |
{ |
|
262 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
263 |
maxlength = 1024; |
|
264 |
width = 4; |
|
265 |
lines = 5; |
|
266 |
}; |
|
267 |
}; |
|
268 |
} |
|
269 |
}; |
|
270 |
} |
|
271 |
||
207
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
272 |
RESOURCE ARRAY r_feedview_add_url_or_search_array |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
273 |
{ |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
274 |
items = |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
275 |
{ |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
276 |
LBUF { txt = STRING_r_add_url; }, |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
277 |
LBUF { txt = STRING_r_add_search; } |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
278 |
}; |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
279 |
} |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
280 |
|
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
281 |
RESOURCE AVKON_LIST_QUERY r_feedview_add_url_or_search |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
282 |
{ |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
283 |
softkeys=R_AVKON_SOFTKEYS_SELECT_CANCEL; |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
284 |
items = |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
285 |
{ |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
286 |
AVKON_LIST_QUERY_DLG_LINE |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
287 |
{ |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
288 |
control = AVKON_LIST_QUERY_CONTROL |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
289 |
{ |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
290 |
listtype = EAknCtSinglePopupMenuListBox; |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
291 |
heading = STRING_r_add_url_or_search; |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
292 |
listbox = AVKON_LIST_QUERY_LIST |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
293 |
{ |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
294 |
// array of items will be defined dynamically |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
295 |
}; |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
296 |
}; |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
297 |
} |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
298 |
}; |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
299 |
} |
9fef0425017e
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
107
diff
changeset
|
300 |