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 |
{
|
|
113 |
//bmpfile = AVKON_BITMAP_FILE;
|
|
114 |
//bmpid = EMbmAvkonQgn_indi_find_goto;
|
|
115 |
txt = STRING_r_update_feed_short_cmd;
|
|
116 |
helptxt = STRING_r_update_all_feeds_cmd;
|
|
117 |
}
|
|
118 |
};
|
|
119 |
};
|
|
120 |
},
|
|
121 |
TBAR_CTRL
|
|
122 |
{
|
|
123 |
type = EAknCtButton;
|
|
124 |
id = EPodcastCancelUpdateAllFeeds;
|
|
125 |
control = AVKON_BUTTON
|
|
126 |
{
|
|
127 |
states =
|
|
128 |
{
|
|
129 |
AVKON_BUTTON_STATE
|
|
130 |
{
|
|
131 |
//bmpfile = AVKON_BITMAP_FILE;
|
|
132 |
//bmpid = EMbmAvkonQgn_indi_find_goto;
|
|
133 |
txt = STRING_r_cancel_update_all_feeds_short_cmd;
|
|
134 |
helptxt = STRING_r_cancel_update_all_feeds_cmd;
|
|
135 |
}
|
|
136 |
};
|
|
137 |
};
|
|
138 |
},
|
|
139 |
TBAR_CTRL
|
|
140 |
{
|
|
141 |
type = EAknCtButton;
|
|
142 |
id = EPodcastAddFeed;
|
|
143 |
control = AVKON_BUTTON
|
|
144 |
{
|
|
145 |
flags = KAknButtonTextInsideFrame;
|
|
146 |
states =
|
|
147 |
{
|
|
148 |
AVKON_BUTTON_STATE
|
|
149 |
{
|
|
150 |
//bmpfile = AVKON_BITMAP_FILE;
|
|
151 |
//bmpid = EMbmAvkonQgn_indi_find_goto;
|
|
152 |
//press_bmpid = EMbmAvkonQgn_indi_find_goto;
|
|
153 |
txt = STRING_r_view_add_feed_cmd_short;
|
|
154 |
helptxt = STRING_r_view_add_feed_cmd;
|
|
155 |
}
|
|
156 |
};
|
|
157 |
};
|
|
158 |
},
|
|
159 |
TBAR_CTRL
|
|
160 |
{
|
|
161 |
type = EAknCtButton;
|
|
162 |
id = EPodcastSettings;
|
|
163 |
control = AVKON_BUTTON
|
|
164 |
{
|
|
165 |
states =
|
|
166 |
{
|
|
167 |
AVKON_BUTTON_STATE
|
|
168 |
{
|
|
169 |
//bmpfile = AVKON_BITMAP_FILE;
|
|
170 |
//bmpid = EMbmAvkonQgn_indi_find_goto;
|
|
171 |
//press_bmpid = EMbmAvkonQgn_indi_find_goto;
|
|
172 |
txt = STRING_r_settings_cmd;
|
|
173 |
helptxt = STRING_r_settings_cmd;
|
|
174 |
}
|
|
175 |
};
|
|
176 |
};
|
|
177 |
}
|
|
178 |
};// items
|
|
179 |
}
|
|
180 |
|
|
181 |
RESOURCE DIALOG r_podcast_add_feed_dlg
|
|
182 |
{
|
|
183 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
|
|
184 |
|
|
185 |
flags = EGeneralQueryFlags;
|
|
186 |
title = STRING_r_add_feed_title;
|
|
187 |
items =
|
|
188 |
{
|
|
189 |
DLG_LINE
|
|
190 |
{
|
|
191 |
type = EAknCtQuery;
|
|
192 |
id = EGeneralQuery;
|
|
193 |
control= AVKON_DATA_QUERY
|
|
194 |
{
|
|
195 |
layout = EDataLayout;
|
|
196 |
control = EDWIN
|
|
197 |
{
|
|
198 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; // | EEikEdwinNoAutoSelection;
|
|
199 |
maxlength = 256;
|
|
200 |
width = 4;
|
|
201 |
lines = 5;
|
|
202 |
};
|
|
203 |
};
|
|
204 |
}
|
|
205 |
};
|
|
206 |
}
|
|
207 |
|
|
208 |
RESOURCE DIALOG r_podcast_edit_feed_dlg
|
|
209 |
{
|
|
210 |
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
|
|
211 |
|
|
212 |
flags = EGeneralQueryFlags;
|
|
213 |
items =
|
|
214 |
{
|
|
215 |
DLG_LINE
|
|
216 |
{
|
|
217 |
type = EAknCtMultilineQuery;
|
|
218 |
id = EMultilineFirstLine;
|
|
219 |
control= AVKON_DATA_QUERY
|
|
220 |
{
|
|
221 |
layout = EMultiDataFirstEdwin;
|
|
222 |
label = STRING_r_add_feed_title_prompt;
|
|
223 |
control = EDWIN
|
|
224 |
{
|
|
225 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable;
|
|
226 |
maxlength = 256;
|
|
227 |
width = 4;
|
|
228 |
lines = 5;
|
|
229 |
};
|
|
230 |
};
|
|
231 |
},
|
|
232 |
DLG_LINE
|
|
233 |
{
|
|
234 |
type = EAknCtMultilineQuery;
|
|
235 |
id = EMultilineSecondLine;
|
|
236 |
control= AVKON_DATA_QUERY
|
|
237 |
{
|
|
238 |
layout = EMultiDataSecondEdwin;
|
|
239 |
label = STRING_r_edit_feed_prompt;
|
|
240 |
control = EDWIN
|
|
241 |
{
|
|
242 |
flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable;
|
|
243 |
maxlength = 1024;
|
|
244 |
width = 4;
|
|
245 |
lines = 5;
|
|
246 |
};
|
|
247 |
};
|
|
248 |
}
|
|
249 |
};
|
|
250 |
}
|
|
251 |
|
|
252 |
RESOURCE STYLUS_POPUP_MENU r_feedview_popup_menu
|
|
253 |
{
|
|
254 |
items =
|
|
255 |
{
|
|
256 |
STYLUS_POPUP_MENU_ITEM
|
|
257 |
{
|
|
258 |
txt = STRING_r_view_edit_feed_cmd_short;
|
|
259 |
command = EPodcastEditFeed;
|
|
260 |
},
|
|
261 |
STYLUS_POPUP_MENU_ITEM
|
|
262 |
{
|
|
263 |
txt = STRING_r_view_delete_feed_cmd_short;
|
|
264 |
command = EPodcastDeleteFeed;
|
|
265 |
},
|
|
266 |
STYLUS_POPUP_MENU_ITEM
|
|
267 |
{
|
|
268 |
txt = STRING_r_update_feed_short_cmd;
|
|
269 |
command = EPodcastUpdateFeed;
|
|
270 |
}
|
|
271 |
};
|
|
272 |
}
|
|
273 |
|
|
274 |
RESOURCE FILESELECTIONDIALOG r_podcast_import_podcast
|
|
275 |
{
|
|
276 |
title = STRING_r_view_import_feeds_title;
|
|
277 |
root_path = "";
|
|
278 |
filters =
|
|
279 |
{
|
|
280 |
FILTER
|
|
281 |
{
|
|
282 |
filter_type = EFilenameFilter;
|
|
283 |
filter_style = EInclusiveFilter;
|
|
284 |
filter_data = { "*.*" };
|
|
285 |
}
|
|
286 |
};
|
|
287 |
}
|
|
288 |
|
|
289 |
RESOURCE FILESELECTIONDIALOG r_podcast_export_feeds
|
|
290 |
{
|
|
291 |
title = STRING_r_view_export_feeds_title;
|
|
292 |
root_path = "";
|
|
293 |
filters =
|
|
294 |
{
|
|
295 |
FILTER
|
|
296 |
{
|
|
297 |
filter_type = EFilenameFilter;
|
|
298 |
filter_style = EInclusiveFilter;
|
|
299 |
filter_data = { "*.*" };
|
|
300 |
}
|
|
301 |
};
|
|
302 |
}
|
|
303 |
|
|
304 |
RESOURCE FILENAMEPROMPTDIALOG r_podcast_filename_prompt_dialog
|
|
305 |
{
|
|
306 |
filename_prompt = STRING_r_enter_filename;
|
|
307 |
default_filename = "feeds.opml";
|
|
308 |
path = "";
|
|
309 |
}
|