|
1 /* |
|
2 * Copyright (c) 2002 - 2007 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: test cdl_api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // RESOURCE IDENTIFIER |
|
20 NAME CDLD |
|
21 |
|
22 // INCLUDES |
|
23 #include <eikon.rh> |
|
24 #include <eikon.rsg> |
|
25 #include <avkon.hrh> |
|
26 #include <avkon.mbg> |
|
27 #include <avkon.rsg> |
|
28 #include <avkon.rh> |
|
29 #include <avkonicons.hrh> |
|
30 #include <appinfo.rh> |
|
31 #include "testdomcdl.hrh" |
|
32 #include "testdomcdl.loc" |
|
33 |
|
34 // CONSTANTS |
|
35 #define APP_BITMAP_DIR "\\resource\\apps" |
|
36 #define AVKON_BMP_FILENAME AVKON_ICON_FILE |
|
37 |
|
38 // MACROS |
|
39 |
|
40 // RESOURCE DEFINITIONS |
|
41 //----------------------------------------------------------------------------- |
|
42 // RSS_SIGNATURE |
|
43 //----------------------------------------------------------------------------- |
|
44 |
|
45 RESOURCE RSS_SIGNATURE |
|
46 { |
|
47 } |
|
48 |
|
49 //----------------------------------------------------------------------------- |
|
50 // TBUF16 |
|
51 //----------------------------------------------------------------------------- |
|
52 RESOURCE TBUF16 |
|
53 { |
|
54 buf = qtn_apps_buf; |
|
55 } |
|
56 |
|
57 //----------------------------------------------------------------------------- |
|
58 // EIK_APP_INFO |
|
59 //----------------------------------------------------------------------------- |
|
60 // |
|
61 RESOURCE EIK_APP_INFO |
|
62 { |
|
63 menubar = r_domtestcdl_menubar_main; |
|
64 cba = r_domtestcdl_cba_options_next; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------- |
|
68 // Provide Caption and Icon Info for Scalable UI |
|
69 // --------------------------------------------------------- |
|
70 // |
|
71 RESOURCE LOCALISABLE_APP_INFO r_domtestcdl_localisable_app_info |
|
72 { |
|
73 short_caption = qtn_apps_tavl_grid; |
|
74 |
|
75 caption_and_icon = |
|
76 CAPTION_AND_ICON_INFO |
|
77 { |
|
78 caption = qtn_apps_tavl_list; |
|
79 }; |
|
80 } |
|
81 |
|
82 //----------------------------------------------------------------------------- |
|
83 // |
|
84 // r_domtestCdl_view |
|
85 // AVKON_VIEW for CdomTestDomCdlView |
|
86 // |
|
87 //----------------------------------------------------------------------------- |
|
88 // |
|
89 RESOURCE AVKON_VIEW r_domtestcdl_view |
|
90 { |
|
91 menubar = r_domtestcdl_menubar_main; |
|
92 } |
|
93 |
|
94 //----------------------------------------------------------------------------- |
|
95 // |
|
96 // r_domtestCdl_menubar |
|
97 // MenuBar |
|
98 // |
|
99 //----------------------------------------------------------------------------- |
|
100 // |
|
101 RESOURCE MENU_BAR r_domtestcdl_menubar_main |
|
102 { |
|
103 titles = |
|
104 { |
|
105 MENU_TITLE |
|
106 { |
|
107 menu_pane = r_domtestcdl_menu; |
|
108 }, |
|
109 MENU_TITLE |
|
110 { |
|
111 menu_pane = r_domtestcdl_case_menu; |
|
112 } |
|
113 }; |
|
114 } |
|
115 |
|
116 //----------------------------------------------------------------------------- |
|
117 // |
|
118 // r_domtestCdl_case_menu |
|
119 // Menu pane |
|
120 // |
|
121 //----------------------------------------------------------------------------- |
|
122 // |
|
123 RESOURCE MENU_PANE r_domtestcdl_case_menu |
|
124 { |
|
125 items = |
|
126 { |
|
127 MENU_ITEM |
|
128 { |
|
129 command = EDOMTestCmdOutline1; |
|
130 txt = qtn_domtestcdl_outline1; |
|
131 } |
|
132 }; |
|
133 } |
|
134 |
|
135 //----------------------------------------------------------------------------- |
|
136 // |
|
137 // r_domtestCdl_menu |
|
138 // Menu pane |
|
139 // |
|
140 //----------------------------------------------------------------------------- |
|
141 // |
|
142 RESOURCE MENU_PANE r_domtestcdl_menu |
|
143 { |
|
144 items = |
|
145 { |
|
146 MENU_ITEM |
|
147 { |
|
148 command = EProgCmdAutoTest; |
|
149 txt = qtn_domtestcdl_autotest; |
|
150 }, |
|
151 MENU_ITEM // Menu "Exit" |
|
152 { |
|
153 command = EAknCmdExit; |
|
154 txt = qtn_domtestcdl_menu_exit; |
|
155 } |
|
156 }; |
|
157 } |
|
158 |
|
159 // ---------------------------------------------------------------------------- |
|
160 // r_domtestCdl_cba_options_next |
|
161 // ---------------------------------------------------------------------------- |
|
162 // |
|
163 |
|
164 RESOURCE CBA r_domtestcdl_cba_options_next |
|
165 { |
|
166 buttons = |
|
167 { |
|
168 CBA_BUTTON |
|
169 { |
|
170 id=EAknSoftkeyOptions; |
|
171 txt = text_softkey_option; |
|
172 }, |
|
173 AVKON_CBA_BUTTON |
|
174 { |
|
175 id = EDOMTestCdlCbaCmdNext; |
|
176 txt = qtn_domtestcdl_cba_next; |
|
177 } |
|
178 }; |
|
179 } |
|
180 |
|
181 RESOURCE TBUF32 r_domtest_text |
|
182 { |
|
183 buf = string_r_domtest_text; |
|
184 } |
|
185 |
|
186 //End of File |