|
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 AVKON_VIEW r_podcast_showsview |
|
20 { |
|
21 menubar = r_podcast_showsview_menubar; |
|
22 cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; |
|
23 toolbar = r_showsview_toolbar; |
|
24 } |
|
25 |
|
26 RESOURCE MENU_BAR r_podcast_showsview_menubar |
|
27 { |
|
28 titles = |
|
29 { |
|
30 MENU_TITLE { menu_pane = r_podcast_showsview_menu; txt = "Shows"; } |
|
31 }; |
|
32 } |
|
33 |
|
34 RESOURCE MENU_PANE r_podcast_showsview_menu |
|
35 { |
|
36 items = |
|
37 { |
|
38 MENU_ITEM |
|
39 { |
|
40 command = EPodcastMarkAllPlayed; |
|
41 txt = STRING_r_view_mark_all_played_cmd; |
|
42 }, |
|
43 MENU_ITEM |
|
44 { |
|
45 command = EPodcastAbout; |
|
46 txt = STRING_r_view_about_cmd; |
|
47 }, |
|
48 MENU_ITEM |
|
49 { |
|
50 command = EPodcastHelp; |
|
51 txt = STRING_r_view_help; |
|
52 }, |
|
53 MENU_ITEM |
|
54 { |
|
55 command = EAknSoftkeyExit; |
|
56 txt = STRING_r_exit_cmd; |
|
57 } |
|
58 }; |
|
59 } |
|
60 |
|
61 RESOURCE AVKON_TOOLBAR r_showsview_toolbar |
|
62 { |
|
63 flags = KAknToolbarFixed; |
|
64 items = |
|
65 { |
|
66 TBAR_CTRL |
|
67 { |
|
68 type = EAknCtButton; |
|
69 id = EPodcastUpdateFeed; |
|
70 control = AVKON_BUTTON |
|
71 { |
|
72 states = |
|
73 { |
|
74 AVKON_BUTTON_STATE |
|
75 { |
|
76 //bmpfile = AVKON_BITMAP_FILE; |
|
77 //bmpid = EMbmAvkonQgn_indi_find_goto; |
|
78 txt = STRING_r_update_feed_short_cmd; |
|
79 helptxt = STRING_r_update_feed_cmd; |
|
80 } |
|
81 }; |
|
82 }; |
|
83 }, |
|
84 TBAR_CTRL |
|
85 { |
|
86 type = EAknCtButton; |
|
87 id = EPodcastCancelUpdateAllFeeds; |
|
88 control = AVKON_BUTTON |
|
89 { |
|
90 states = |
|
91 { |
|
92 AVKON_BUTTON_STATE |
|
93 { |
|
94 //bmpfile = AVKON_BITMAP_FILE; |
|
95 //bmpid = EMbmAvkonQgn_indi_find_goto; |
|
96 txt = STRING_r_cancel_update_all_feeds_short_cmd; |
|
97 helptxt = STRING_r_cancel_update_all_feeds_cmd; |
|
98 } |
|
99 }; |
|
100 }; |
|
101 }, |
|
102 TBAR_CTRL |
|
103 { |
|
104 type = EAknCtButton; |
|
105 id = EPodcastDownloadShow; |
|
106 control = AVKON_BUTTON |
|
107 { |
|
108 states = |
|
109 { |
|
110 AVKON_BUTTON_STATE |
|
111 { |
|
112 //bmpfile = AVKON_BITMAP_FILE; |
|
113 //bmpid = EMbmAvkonQgn_indi_find_goto; |
|
114 txt = STRING_r_view_download_show_cmd; |
|
115 helptxt = STRING_r_view_download_show_cmd; |
|
116 } |
|
117 }; |
|
118 }; |
|
119 }, |
|
120 TBAR_CTRL |
|
121 { |
|
122 type = EAknCtButton; |
|
123 id =EPodcastDeleteShow; |
|
124 control = AVKON_BUTTON |
|
125 { |
|
126 states = |
|
127 { |
|
128 AVKON_BUTTON_STATE |
|
129 { |
|
130 //bmpfile = AVKON_BITMAP_FILE; |
|
131 //bmpid = EMbmAvkonQgn_indi_find_goto; |
|
132 txt = STRING_r_view_delete_show_cmd; |
|
133 helptxt = STRING_r_view_delete_show_cmd; |
|
134 } |
|
135 }; |
|
136 }; |
|
137 }, |
|
138 TBAR_CTRL |
|
139 { |
|
140 type = EAknCtButton; |
|
141 id = EPodcastMarkAsPlayed; |
|
142 control = AVKON_BUTTON |
|
143 { |
|
144 states = |
|
145 { |
|
146 AVKON_BUTTON_STATE |
|
147 { |
|
148 //bmpfile = AVKON_BITMAP_FILE; |
|
149 //bmpid = EMbmAvkonQgn_indi_find_goto; |
|
150 txt = STRING_r_view_mark_as_played_cmd_short; |
|
151 helptxt = STRING_r_view_mark_as_played_cmd_short; |
|
152 } |
|
153 }; |
|
154 }; |
|
155 }, |
|
156 TBAR_CTRL |
|
157 { |
|
158 type = EAknCtButton; |
|
159 id =EPodcastMarkAsUnplayed; |
|
160 control = AVKON_BUTTON |
|
161 { |
|
162 states = |
|
163 { |
|
164 AVKON_BUTTON_STATE |
|
165 { |
|
166 //bmpfile = AVKON_BITMAP_FILE; |
|
167 //bmpid = EMbmAvkonQgn_indi_find_goto; |
|
168 txt = STRING_r_view_mark_as_unplayed_cmd_short; |
|
169 helptxt = STRING_r_view_mark_as_unplayed_cmd_short; |
|
170 } |
|
171 }; |
|
172 }; |
|
173 } |
|
174 }; |
|
175 } |
|
176 |
|
177 RESOURCE STYLUS_POPUP_MENU r_showview_popup_menu |
|
178 { |
|
179 items = |
|
180 { |
|
181 /* STYLUS_POPUP_MENU_ITEM |
|
182 { |
|
183 txt = STRING_r_view_show_play_cmd; |
|
184 command = EPodcastPlay; |
|
185 },*/ |
|
186 STYLUS_POPUP_MENU_ITEM |
|
187 { |
|
188 txt = STRING_r_view_show_info_cmd; |
|
189 command = EPodcastShowInfo; |
|
190 }, |
|
191 STYLUS_POPUP_MENU_ITEM |
|
192 { |
|
193 txt = STRING_r_view_mark_as_unplayed_cmd_short; |
|
194 command = EPodcastMarkAsUnplayed; |
|
195 }, |
|
196 STYLUS_POPUP_MENU_ITEM |
|
197 { |
|
198 txt = STRING_r_view_mark_as_played_cmd_short; |
|
199 command = EPodcastMarkAsPlayed; |
|
200 }, |
|
201 STYLUS_POPUP_MENU_ITEM |
|
202 { |
|
203 txt = STRING_r_view_download_show_cmd; |
|
204 command = EPodcastDownloadShow; |
|
205 }, |
|
206 STYLUS_POPUP_MENU_ITEM |
|
207 { |
|
208 txt = STRING_r_view_delete_show_cmd; |
|
209 command = EPodcastDeleteShow; |
|
210 } |
|
211 }; |
|
212 } |
|
213 |
|
214 /* |
|
215 RESOURCE DIALOG r_show_info_note |
|
216 { |
|
217 flags = EEikDialogFlagNoDrag | |
|
218 EEikDialogFlagNoTitleBar | |
|
219 EEikDialogFlagCbaButtons | |
|
220 EEikDialogFlagFillAppClientRect; |
|
221 |
|
222 buttons = R_AVKON_SOFTKEYS_OK_EMPTY ; |
|
223 items = |
|
224 { |
|
225 DLG_LINE |
|
226 { |
|
227 type = EAknCtNote; |
|
228 id = EGeneralNote; |
|
229 control = AVKON_NOTE |
|
230 { |
|
231 layout = ENotificationWithGraphicsLayout; |
|
232 }; |
|
233 } |
|
234 }; |
|
235 |
|
236 }*/ |
|
237 |
|
238 RESOURCE DIALOG r_show_info_note |
|
239 { |
|
240 flags = EAknDialogGenericQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
241 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
242 items= |
|
243 { |
|
244 |
|
245 DLG_LINE |
|
246 { |
|
247 type = EAknCtPopupHeadingPane; |
|
248 id = EAknMessageQueryHeaderId; |
|
249 itemflags = EEikDlgItemNonFocusing; |
|
250 control = AVKON_HEADING |
|
251 { |
|
252 headinglayout=R_AVKON_LIST_HEADING_PANE_POPUPS; |
|
253 }; |
|
254 }, |
|
255 DLG_LINE |
|
256 { |
|
257 type = EAknCtMessageQuery; |
|
258 id = EAknMessageQueryContentId; |
|
259 control = AVKON_MESSAGE_QUERY |
|
260 { |
|
261 |
|
262 }; |
|
263 } , |
|
264 DLG_LINE |
|
265 { |
|
266 itemflags = EEikDlgItemNonFocusing; |
|
267 type = EEikCtImage; |
|
268 id = EPodcastShowInfoImage; |
|
269 control = IMAGE |
|
270 { |
|
271 |
|
272 }; |
|
273 } |
|
274 }; |
|
275 } |
|
276 |