|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file contains all the resources for the aknconf. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // RESOURCE IDENTIFIER |
|
20 NAME ODEC // 4 letter ID |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <eikon.rh> |
|
25 #include <avkon.rsg> |
|
26 #include <avkon.rh> |
|
27 #include <appinfo.rh> |
|
28 #include "aknconf.hrh" |
|
29 #include "aknconf.rls" |
|
30 |
|
31 // RESOURCE DEFINITIONS |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 // Define the resource file signature |
|
35 // This resource should be empty. |
|
36 // |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 RESOURCE RSS_SIGNATURE |
|
40 { |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 // Default Document Name |
|
46 // |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 RESOURCE TBUF r_default_document_name |
|
50 { |
|
51 buf="ODEC"; |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 // Define default menu and CBA key. |
|
57 // |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 RESOURCE EIK_APP_INFO |
|
61 { |
|
62 menubar = r_menubar; |
|
63 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
64 status_pane = r_status_pane; |
|
65 } |
|
66 |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 // Status pane |
|
71 // |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 RESOURCE STATUS_PANE_APP_MODEL r_status_pane |
|
75 { |
|
76 panes= |
|
77 { |
|
78 SPANE_PANE |
|
79 { |
|
80 id = EEikStatusPaneUidNavi; |
|
81 type = EAknCtNaviPane; |
|
82 resource = r_navi_decorator; |
|
83 } |
|
84 }; |
|
85 } |
|
86 |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 // Physics settings view. |
|
91 // |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 RESOURCE AVKON_VIEW r_physics_view |
|
95 { |
|
96 menubar = r_menubar; |
|
97 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
98 } |
|
99 |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 // Gesture settings view. |
|
104 // |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 RESOURCE AVKON_VIEW r_gesture_view |
|
108 { |
|
109 menubar = r_menubar; |
|
110 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
|
111 } |
|
112 |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 // Navi pane |
|
117 // |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 RESOURCE NAVI_DECORATOR r_navi_decorator |
|
121 { |
|
122 type = ENaviDecoratorControlTabGroup; |
|
123 control = TAB_GROUP |
|
124 { |
|
125 tab_width = EAknTabWidthWithTwoTabs; |
|
126 active = 0; |
|
127 tabs = { |
|
128 TAB |
|
129 { |
|
130 id = EAknConfView; |
|
131 txt = qtn_view_physics_conf; |
|
132 }, |
|
133 TAB |
|
134 { |
|
135 id = EGestureConfView; |
|
136 txt = qtn_view_gesture_conf; |
|
137 } |
|
138 }; |
|
139 }; |
|
140 } |
|
141 |
|
142 |
|
143 // ----------------------------------------------------------------------------- |
|
144 // |
|
145 // r_menubar |
|
146 // Main menubar |
|
147 // |
|
148 // ----------------------------------------------------------------------------- |
|
149 // |
|
150 RESOURCE MENU_BAR r_menubar |
|
151 { |
|
152 titles = |
|
153 { |
|
154 MENU_TITLE { menu_pane = r_menu; } |
|
155 }; |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // |
|
161 // r_menu |
|
162 // Menu for "Options" |
|
163 // |
|
164 // ----------------------------------------------------------------------------- |
|
165 // |
|
166 RESOURCE MENU_PANE r_menu |
|
167 { |
|
168 items = |
|
169 { |
|
170 MENU_ITEM |
|
171 { |
|
172 command = EResetValues; |
|
173 txt = qtn_reset_values; |
|
174 }, |
|
175 MENU_ITEM |
|
176 { |
|
177 command = EAknConfView; |
|
178 txt = qtn_view_physics_conf; |
|
179 }, |
|
180 MENU_ITEM |
|
181 { |
|
182 command = EGestureConfView; |
|
183 txt = qtn_view_gesture_conf; |
|
184 }, |
|
185 MENU_ITEM |
|
186 { |
|
187 command = EAbout; |
|
188 txt = qtn_about; |
|
189 }, |
|
190 MENU_ITEM |
|
191 { |
|
192 command = EAknSoftkeyExit; |
|
193 txt = qtn_exit; |
|
194 } |
|
195 }; |
|
196 } |
|
197 |
|
198 // ----------------------------------------------------------------------------- |
|
199 // |
|
200 // About dialog resource. |
|
201 // |
|
202 // ----------------------------------------------------------------------------- |
|
203 // |
|
204 RESOURCE DIALOG r_about_query_dialog |
|
205 { |
|
206 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; |
|
207 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; |
|
208 items= |
|
209 { |
|
210 DLG_LINE |
|
211 { |
|
212 type = EAknCtPopupHeadingPane; |
|
213 id = EAknMessageQueryHeaderId; |
|
214 itemflags = EEikDlgItemNonFocusing; |
|
215 control = AVKON_HEADING |
|
216 { |
|
217 }; |
|
218 }, |
|
219 DLG_LINE |
|
220 { |
|
221 type = EAknCtMessageQuery; |
|
222 id = EAknMessageQueryContentId; |
|
223 control = AVKON_MESSAGE_QUERY |
|
224 { |
|
225 }; |
|
226 } |
|
227 }; |
|
228 } |
|
229 |
|
230 |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 // Resources for messages. |
|
234 // |
|
235 // ----------------------------------------------------------------------------- |
|
236 // |
|
237 RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; } |
|
238 RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; } |
|
239 RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; } |
|
240 |
|
241 // ---------------------------------------------------------------------------- |
|
242 // |
|
243 // r_localisable_app_info |
|
244 // |
|
245 // ---------------------------------------------------------------------------- |
|
246 // |
|
247 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info |
|
248 { |
|
249 short_caption = qtn_caption_string; |
|
250 caption_and_icon = |
|
251 CAPTION_AND_ICON_INFO |
|
252 { |
|
253 caption = qtn_caption_string; |
|
254 |
|
255 number_of_icons = 1; |
|
256 icon_file = "\\resource\\apps\\aknconf.mif"; |
|
257 }; |
|
258 } |
|
259 |
|
260 |
|
261 // End of File |