1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
3 * |
|
4 * This library is free software; you can redistribute it and/or |
|
5 * modify it under the terms of the GNU Lesser General Public |
|
6 * License as published by the Free Software Foundation; either |
|
7 * version 2 of the License, or (at your option) any later version. |
|
8 * |
|
9 * This library is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
12 * Lesser General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU Lesser General Public |
|
15 * License along with this library; if not, write to the |
|
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
17 * Boston, MA 02111-1307, USA. |
|
18 * |
|
19 * Description: |
|
20 * |
|
21 */ |
|
22 /* |
|
23 * ============================================================================== |
|
24 * Name : GSTPlayer.rss |
|
25 * Part of : GSTPlayer |
|
26 * Interface : |
|
27 * Description : |
|
28 * Version : |
|
29 * |
|
30 |
|
31 * ============================================================================== |
|
32 */ |
|
33 |
|
34 // RESOURCE IDENTIFIER |
|
35 NAME HEWB // 4 letter ID |
|
36 |
|
37 |
|
38 // INCLUDES |
|
39 #include <eikon.rh> |
|
40 #include <eikon.rsg> |
|
41 #include <avkon.hrh> |
|
42 #include <avkon.rh> |
|
43 #include <avkon.loc> |
|
44 #include <avkon.mbg> |
|
45 #include <avkonsct.loc> |
|
46 #include <avkon.rsg> |
|
47 #include <appinfo.rh> |
|
48 |
|
49 #include <CommonDialogs.hrh> |
|
50 #include <CommonDialogs.rh> |
|
51 #include <pathconfiguration.hrh> |
|
52 |
|
53 #include "gstplayer.hrh" |
|
54 #include "gstplayer.rls" |
|
55 |
|
56 #define KWidth 176 |
|
57 #define KHeight 100 |
|
58 #define KMaxLength 256 |
|
59 |
|
60 // RESOURCE DEFINITIONS |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 // Define the resource file signature |
|
64 // This resource should be empty. |
|
65 // |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 RESOURCE RSS_SIGNATURE |
|
69 { |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 // Default Document Name |
|
75 // |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 RESOURCE TBUF r_default_document_name |
|
79 { |
|
80 buf="HEWB"; |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 // Define default menu and CBA key. |
|
86 // |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 RESOURCE EIK_APP_INFO |
|
90 { |
|
91 menubar = r_gstplayer_menubar; |
|
92 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
93 } |
|
94 |
|
95 |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 // r_helloworldbasic_menubar |
|
99 // Menubar for HelloWorldBasic example |
|
100 // |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 RESOURCE MENU_BAR r_gstplayer_menubar |
|
104 { |
|
105 titles = |
|
106 { |
|
107 MENU_TITLE { menu_pane = r_gstplayer_menu; } |
|
108 }; |
|
109 } |
|
110 |
|
111 RESOURCE MENU_PANE r_play_cmd |
|
112 { |
|
113 items= |
|
114 { |
|
115 MENU_ITEM{command = EGSTPlayerNewSong;txt = "New Song";}, |
|
116 MENU_ITEM{command = EGSTPlayerPlay;txt = "Play";}, |
|
117 MENU_ITEM{command = EGSTPlayerSamplesPlayed; txt = "Samples Played"; }, |
|
118 MENU_ITEM{command = EGSTPlayerSkPadCaps;txt = "Sink Pad Caps";cascade=r_sinkpad_caps;}, |
|
119 MENU_ITEM{command = EGSTPlayerVolume;txt = "Volume"; cascade=r_volume_cmds;} |
|
120 }; |
|
121 } |
|
122 |
|
123 RESOURCE MENU_PANE r_record_cmd |
|
124 { |
|
125 items= |
|
126 { |
|
127 MENU_ITEM{command = EGSTPlayerRecordWav;txt = "Record WAV";}, |
|
128 MENU_ITEM{command = EGSTPlayerRecordAac;txt = "Record AAC";}, |
|
129 MENU_ITEM{command = EGSTPlayerRecordRaw;txt = "Record RAW";}, |
|
130 MENU_ITEM{command = EGSTPlayerRecordAmr;txt = "Record AMR";}, |
|
131 MENU_ITEM{command = EGSTPlayerRecordG711;txt = "Record G711";}, |
|
132 MENU_ITEM{command = EGSTPlayerRecordG729;txt = "Record G729";}, |
|
133 MENU_ITEM{command = EGSTPlayerRecordIlbc;txt = "Record ILBC";}, |
|
134 MENU_ITEM { command = EGSTPlayerSamplesRecorded; txt = "Samples Recorded"; }, |
|
135 MENU_ITEM{command = EGSTPlayerSourcePadCaps;txt = "Source Pad Caps";cascade=r_srcpad_caps;}, |
|
136 MENU_ITEM{command = EGSTPlayerGain;txt = "Gain"; cascade=r_gain_cmds;} |
|
137 }; |
|
138 } |
|
139 |
|
140 RESOURCE MENU_PANE r_volume_cmds |
|
141 { |
|
142 items= |
|
143 { |
|
144 MENU_ITEM { command = EGSTPlayerCurrentVolume; txt = "Current Volume"; }, |
|
145 MENU_ITEM { command = EGSTPlayerMaxVolume; txt = "Max Volume"; }, |
|
146 MENU_ITEM { command = EGSTPlayerVolumeUp; txt = "Volume up"; }, |
|
147 MENU_ITEM { command = EGSTPlayerVolumeDown; txt = "Volume down"; }, |
|
148 MENU_ITEM { command = EGSTPlayerRightBalance; txt = "Right Balance"; }, |
|
149 MENU_ITEM { command = EGSTPlayerLeftBalance; txt = "Left Balance"; } |
|
150 }; |
|
151 } |
|
152 |
|
153 RESOURCE MENU_PANE r_gain_cmds |
|
154 { |
|
155 items= |
|
156 { |
|
157 MENU_ITEM { command = EGSTPlayerCurrentGain; txt = "Current Gain"; }, |
|
158 MENU_ITEM { command = EGSTPlayerMaxGain; txt = "Max Gain"; }, |
|
159 MENU_ITEM { command = EGSTPlayerGainUp; txt = "Gain up"; }, |
|
160 MENU_ITEM { command = EGSTPlayerGainDown; txt = "Gain down"; } |
|
161 // MENU_ITEM { command = EGSTPlayerRightBalance; txt = "Right Balance"; }, |
|
162 // MENU_ITEM { command = EGSTPlayerLeftBalance; txt = "Left Balance"; } |
|
163 }; |
|
164 } |
|
165 RESOURCE MENU_PANE r_sinkpad_caps |
|
166 { |
|
167 items= |
|
168 { |
|
169 MENU_ITEM { command = EGSTPlayerSinkPadCaps; txt = "DevSound sinkpad caps"; }, |
|
170 MENU_ITEM { command = EGSTPlayerNegotiatedSinkCaps; txt = "Negotiated Sink Caps"; } |
|
171 }; |
|
172 } |
|
173 |
|
174 RESOURCE MENU_PANE r_srcpad_caps |
|
175 { |
|
176 items= |
|
177 { |
|
178 MENU_ITEM { command = EGSTPlayerSrcPadCaps; txt = "DevSound srcpad caps"; }, |
|
179 MENU_ITEM { command = EGSTPlayerNegotiatedSrcCaps; txt = "Negotiated Src Caps"; } |
|
180 }; |
|
181 } |
|
182 |
|
183 RESOURCE MENU_PANE r_sample_info |
|
184 { |
|
185 items= |
|
186 { |
|
187 MENU_ITEM { command = EGSTPlayerSamplesPlayed; txt = "Samples Played"; }, |
|
188 MENU_ITEM { command = EGSTPlayerSamplesRecorded; txt = "Samples Recorded"; }//, |
|
189 //MENU_ITEM { command = EGSTPlayerTimePlayed; txt = "Time Played"; } |
|
190 }; |
|
191 } |
|
192 |
|
193 // ----------------------------------------------------------------------------- |
|
194 // |
|
195 // r_helloworldbasic_menu |
|
196 // Menu for "Options" |
|
197 // |
|
198 // ----------------------------------------------------------------------------- |
|
199 // |
|
200 RESOURCE MENU_PANE r_gstplayer_menu |
|
201 { |
|
202 items = |
|
203 { |
|
204 // added the new Options menu command here |
|
205 MENU_ITEM |
|
206 { |
|
207 command = EGSTPlayerPlayerTest; |
|
208 txt = "Play"; |
|
209 cascade=r_play_cmd; |
|
210 }, |
|
211 MENU_ITEM |
|
212 { |
|
213 command = EGSTPlayerRecordTest; |
|
214 txt = "Record"; |
|
215 cascade=r_record_cmd; |
|
216 }, |
|
217 MENU_ITEM |
|
218 { |
|
219 command = EGSTPlayerStop; |
|
220 txt = "Stop"; |
|
221 }, |
|
222 MENU_ITEM |
|
223 { |
|
224 command = EGSTPlayerPause; |
|
225 txt = "Pause"; |
|
226 }, |
|
227 MENU_ITEM |
|
228 { |
|
229 command = EGSTRecorderStop; |
|
230 txt = "Record Stop"; |
|
231 }, |
|
232 MENU_ITEM |
|
233 { |
|
234 command = EGSTPlayerResume; |
|
235 txt = "Resume"; |
|
236 }, |
|
237 /* MENU_ITEM |
|
238 { |
|
239 command = EGSTPlayerVolume; |
|
240 txt = "Volume"; |
|
241 cascade=r_volume_cmds; |
|
242 }, |
|
243 */ |
|
244 /* MENU_ITEM |
|
245 { |
|
246 command = EGSTPlayerSamplesInfo; |
|
247 txt = "Sample info"; |
|
248 cascade=r_sample_info; |
|
249 }, |
|
250 */ |
|
251 /* MENU_ITEM |
|
252 { |
|
253 command = EGSTPlayerPadCaps; |
|
254 txt = "Pad Caps"; |
|
255 cascade=r_pad_caps; |
|
256 }, |
|
257 */ |
|
258 MENU_ITEM |
|
259 { |
|
260 command = EAknSoftkeyExit; |
|
261 txt = "Exit"; |
|
262 } |
|
263 }; |
|
264 } |
|
265 |
|
266 // ----------------------------------------------------------------------------- |
|
267 // |
|
268 // Resources for messages. |
|
269 // |
|
270 // ----------------------------------------------------------------------------- |
|
271 // |
|
272 RESOURCE TBUF32 r_hewb_command1_text { buf="Select mp3/wav/raw file."; } |
|
273 RESOURCE TBUF32 r_hewb_command2_text { buf="Select mp3/wav/raw New Song!"; } |
|
274 RESOURCE TBUF32 r_hewb_caption_string { buf="GSTPlayer"; } |
|
275 |
|
276 |
|
277 // ---------------------------------------------------------------------------- |
|
278 // |
|
279 // r_helloworldbasic_localisable_app_info |
|
280 // |
|
281 // ---------------------------------------------------------------------------- |
|
282 // |
|
283 RESOURCE LOCALISABLE_APP_INFO r_gstplayer_localisable_app_info |
|
284 { |
|
285 short_caption = "GSTPlayer"; |
|
286 caption_and_icon = |
|
287 CAPTION_AND_ICON_INFO |
|
288 { |
|
289 caption = "GSTPlayer"; |
|
290 |
|
291 number_of_icons = 1; |
|
292 icon_file = "\\resource\\apps\\gstplayer_aif.mif"; |
|
293 }; |
|
294 } |
|
295 |
|
296 /* RESOURCE DIALOG r_res_id_for_a_dialog |
|
297 { |
|
298 flags = EAknDialogSelectionList; |
|
299 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
|
300 items = |
|
301 { |
|
302 DLG_LINE |
|
303 { |
|
304 type = EAknCtSingleListBox; |
|
305 id = ESelectionListControl; |
|
306 control = LISTBOX |
|
307 { |
|
308 flags = EAknListBoxSelectionList; |
|
309 }; |
|
310 } |
|
311 }; |
|
312 } |
|
313 |
|
314 |
|
315 |
|
316 RESOURCE MENU_BAR r_res_id_for_a_menubar |
|
317 { |
|
318 titles = |
|
319 { |
|
320 MENU_TITLE { menu_pane = R_AVKON_MENUPANE_SETTING_LIST ; } |
|
321 }; |
|
322 }*/ |
|
323 |
|
324 RESOURCE RTXTED r_richtexteditor_rich_text_editor |
|
325 { |
|
326 width = KWidth; |
|
327 height = KHeight; |
|
328 textlimit = KMaxLength; |
|
329 flags = EEikEdwinReadOnly | EEikEdwinAvkonDisableCursor; |
|
330 avkon_flags = EAknEditorFlagEnableScrollBars; |
|
331 } |
|
332 // --------------------------------------------------------- |
|
333 // |
|
334 // r_musicshop_memory_selection_dialog |
|
335 // |
|
336 // --------------------------------------------------------- |
|
337 // |
|
338 RESOURCE MEMORYSELECTIONDIALOG r_musicshop_memory_selection_dialog |
|
339 { |
|
340 softkey_1 = text_softkey_select; |
|
341 locations = |
|
342 { |
|
343 LOCATION { root_path = text_phone_memory_root_path; }, |
|
344 LOCATION { root_path = text_memory_card_root_path; } |
|
345 }; |
|
346 } |
|
347 |
|
348 // End of File |
|
349 |
|