author | Sebastian Brannstrom <sebastianb@symbian.org> |
Thu, 21 Oct 2010 22:46:18 +0100 | |
branch | symbian1 |
changeset 263 | c71e68f962c6 |
parent 261 | 55305e953f12 |
child 336 | 3d6c1417e8bd |
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; |
|
59 |
} |
|
60 |
}; |
|
61 |
} |
|
62 |
||
63 |
RESOURCE MENU_PANE r_importexport_menu |
|
64 |
{ |
|
65 |
items = { |
|
66 |
MENU_ITEM |
|
67 |
{ |
|
68 |
command = EPodcastImportFeeds; |
|
69 |
txt = STRING_r_view_import_feeds_cmd; |
|
70 |
}, |
|
71 |
MENU_ITEM |
|
72 |
{ |
|
73 |
command = EPodcastExportFeeds; |
|
74 |
txt = STRING_r_view_export_feeds_cmd; |
|
75 |
} |
|
76 |
}; |
|
77 |
} |
|
78 |
||
79 |
RESOURCE CBA r_podcast_cba |
|
80 |
{ |
|
81 |
buttons = |
|
82 |
{ |
|
83 |
CBA_BUTTON |
|
84 |
{id=EAknSoftkeyOptions; txt = STRING_r_cba_options;}, |
|
85 |
CBA_BUTTON |
|
86 |
{id=EPodcastHide; txt = STRING_r_cba_hide;} |
|
87 |
}; |
|
88 |
} |
|
89 |
||
90 |
RESOURCE AVKON_VIEW r_podcast_feedview |
|
91 |
{ |
|
92 |
hotkeys = r_podcast_feedview_hotkeys; |
|
93 |
menubar = r_podcast_feedview_menubar; |
|
94 |
cba = r_podcast_cba; |
|
95 |
toolbar = r_feedview_toolbar; |
|
96 |
} |
|
97 |
||
98 |
RESOURCE AVKON_TOOLBAR r_feedview_toolbar |
|
99 |
{ |
|
100 |
flags = KAknToolbarFixed; |
|
101 |
items = |
|
102 |
{ |
|
103 |
TBAR_CTRL |
|
104 |
{ |
|
105 |
type = EAknCtButton; |
|
106 |
id = EPodcastUpdateAllFeeds; |
|
107 |
control = AVKON_BUTTON |
|
108 |
{ |
|
109 |
states = |
|
110 |
{ |
|
111 |
AVKON_BUTTON_STATE |
|
112 |
{ |
|
261
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
113 |
bmpfile = APPICON; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
114 |
bmpid = EMbmPodcastReload_all; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
115 |
bmpmask = EMbmPodcastReload_all_mask; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
116 |
//txt = STRING_r_update_feed_short_cmd; |
2 | 117 |
helptxt = STRING_r_update_all_feeds_cmd; |
118 |
} |
|
119 |
}; |
|
120 |
}; |
|
121 |
}, |
|
122 |
TBAR_CTRL |
|
123 |
{ |
|
124 |
type = EAknCtButton; |
|
125 |
id = EPodcastCancelUpdateAllFeeds; |
|
126 |
control = AVKON_BUTTON |
|
127 |
{ |
|
128 |
states = |
|
129 |
{ |
|
130 |
AVKON_BUTTON_STATE |
|
131 |
{ |
|
261
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
132 |
bmpfile = APPICON; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
133 |
bmpid = EMbmPodcastCancel; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
134 |
bmpmask = EMbmPodcastCancel_mask; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
135 |
//txt = STRING_r_cancel_update_all_feeds_short_cmd; |
2 | 136 |
helptxt = STRING_r_cancel_update_all_feeds_cmd; |
137 |
} |
|
138 |
}; |
|
139 |
}; |
|
140 |
}, |
|
141 |
TBAR_CTRL |
|
142 |
{ |
|
143 |
type = EAknCtButton; |
|
144 |
id = EPodcastAddFeed; |
|
145 |
control = AVKON_BUTTON |
|
146 |
{ |
|
147 |
flags = KAknButtonTextInsideFrame; |
|
148 |
states = |
|
149 |
{ |
|
150 |
AVKON_BUTTON_STATE |
|
151 |
{ |
|
261
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
152 |
bmpfile = APPICON; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
153 |
bmpid = EMbmPodcastAdd_pod; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
154 |
bmpmask = EMbmPodcastAdd_pod_mask; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
155 |
//txt = STRING_r_view_add_feed_cmd_short; |
2 | 156 |
helptxt = STRING_r_view_add_feed_cmd; |
157 |
} |
|
158 |
}; |
|
159 |
}; |
|
160 |
}, |
|
161 |
TBAR_CTRL |
|
162 |
{ |
|
163 |
type = EAknCtButton; |
|
164 |
id = EPodcastSettings; |
|
165 |
control = AVKON_BUTTON |
|
166 |
{ |
|
167 |
states = |
|
168 |
{ |
|
169 |
AVKON_BUTTON_STATE |
|
170 |
{ |
|
261
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
171 |
bmpfile = APPICON; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
172 |
bmpid = EMbmPodcastSettings; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
173 |
bmpmask = EMbmPodcastSettings_mask; |
55305e953f12
Bug 3367 - new icons!
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
210
diff
changeset
|
174 |
//txt = STRING_r_settings_cmd; |
2 | 175 |
helptxt = STRING_r_settings_cmd; |
176 |
} |
|
177 |
}; |
|
178 |
}; |
|
179 |
} |
|
180 |
};// items |
|
181 |
} |
|
182 |
||
183 |
RESOURCE DIALOG r_podcast_add_feed_dlg |
|
184 |
{ |
|
185 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
186 |
||
187 |
flags = EGeneralQueryFlags; |
|
188 |
title = STRING_r_add_feed_title; |
|
189 |
items = |
|
190 |
{ |
|
191 |
DLG_LINE |
|
192 |
{ |
|
193 |
type = EAknCtQuery; |
|
194 |
id = EGeneralQuery; |
|
195 |
control= AVKON_DATA_QUERY |
|
196 |
{ |
|
197 |
layout = EDataLayout; |
|
198 |
control = EDWIN |
|
199 |
{ |
|
200 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; // | EEikEdwinNoAutoSelection; |
|
201 |
maxlength = 256; |
|
202 |
width = 4; |
|
203 |
lines = 5; |
|
204 |
}; |
|
205 |
}; |
|
206 |
} |
|
207 |
}; |
|
208 |
} |
|
209 |
||
210 |
RESOURCE DIALOG r_podcast_edit_feed_dlg |
|
211 |
{ |
|
212 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
213 |
||
214 |
flags = EGeneralQueryFlags; |
|
215 |
items = |
|
216 |
{ |
|
217 |
DLG_LINE |
|
218 |
{ |
|
219 |
type = EAknCtMultilineQuery; |
|
220 |
id = EMultilineFirstLine; |
|
221 |
control= AVKON_DATA_QUERY |
|
222 |
{ |
|
223 |
layout = EMultiDataFirstEdwin; |
|
224 |
label = STRING_r_add_feed_title_prompt; |
|
225 |
control = EDWIN |
|
226 |
{ |
|
227 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
228 |
maxlength = 256; |
|
229 |
width = 4; |
|
230 |
lines = 5; |
|
231 |
}; |
|
232 |
}; |
|
233 |
}, |
|
234 |
DLG_LINE |
|
235 |
{ |
|
236 |
type = EAknCtMultilineQuery; |
|
237 |
id = EMultilineSecondLine; |
|
238 |
control= AVKON_DATA_QUERY |
|
239 |
{ |
|
240 |
layout = EMultiDataSecondEdwin; |
|
241 |
label = STRING_r_edit_feed_prompt; |
|
242 |
control = EDWIN |
|
243 |
{ |
|
244 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; |
|
245 |
maxlength = 1024; |
|
246 |
width = 4; |
|
247 |
lines = 5; |
|
248 |
}; |
|
249 |
}; |
|
250 |
} |
|
251 |
}; |
|
252 |
} |
|
253 |
||
254 |
RESOURCE STYLUS_POPUP_MENU r_feedview_popup_menu |
|
255 |
{ |
|
256 |
items = |
|
257 |
{ |
|
258 |
STYLUS_POPUP_MENU_ITEM |
|
259 |
{ |
|
260 |
txt = STRING_r_view_edit_feed_cmd_short; |
|
261 |
command = EPodcastEditFeed; |
|
262 |
}, |
|
263 |
STYLUS_POPUP_MENU_ITEM |
|
264 |
{ |
|
265 |
txt = STRING_r_view_delete_feed_cmd_short; |
|
266 |
command = EPodcastDeleteFeed; |
|
267 |
}, |
|
268 |
STYLUS_POPUP_MENU_ITEM |
|
269 |
{ |
|
270 |
txt = STRING_r_update_feed_short_cmd; |
|
271 |
command = EPodcastUpdateFeed; |
|
272 |
} |
|
273 |
}; |
|
274 |
} |
|
210
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
275 |
|
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
276 |
RESOURCE ARRAY r_feedview_add_url_or_search_array |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
277 |
{ |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
278 |
items = |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
279 |
{ |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
280 |
LBUF { txt = STRING_r_add_url; }, |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
281 |
LBUF { txt = STRING_r_add_search; } |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
282 |
}; |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
283 |
} |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
284 |
|
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
285 |
RESOURCE AVKON_LIST_QUERY r_feedview_add_url_or_search |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
286 |
{ |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
287 |
softkeys=R_AVKON_SOFTKEYS_SELECT_CANCEL; |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
288 |
items = |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
289 |
{ |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
290 |
AVKON_LIST_QUERY_DLG_LINE |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
291 |
{ |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
292 |
control = AVKON_LIST_QUERY_CONTROL |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
293 |
{ |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
294 |
listtype = EAknCtSinglePopupMenuListBox; |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
295 |
heading = STRING_r_add_url_or_search; |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
296 |
listbox = AVKON_LIST_QUERY_LIST |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
297 |
{ |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
298 |
// array of items will be defined dynamically |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
299 |
}; |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
300 |
}; |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
301 |
} |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
302 |
}; |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
303 |
} |
e82411ba1646
Bug 2865 - added option to search or enter URL for feed adding
Sebastian Brannstrom <sebastianb@symbian.org>
parents:
60
diff
changeset
|
304 |