|
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 NAME TVW1 |
|
17 |
|
18 #include <techview/eikon.rh> |
|
19 #include <techview/eikon.rsg> |
|
20 #include <eikon.mbg> |
|
21 |
|
22 #include "tvwview.RH" |
|
23 #include "tview1.HRH" |
|
24 |
|
25 // |
|
26 // Essential resources. |
|
27 // |
|
28 |
|
29 RESOURCE RSS_SIGNATURE { } |
|
30 |
|
31 RESOURCE TBUF { buf=""; } |
|
32 |
|
33 RESOURCE EIK_APP_INFO |
|
34 { |
|
35 menubar=r_vw_menubar; |
|
36 hotkeys=r_vw_hotkeys; |
|
37 } |
|
38 |
|
39 // |
|
40 // Hot keys. |
|
41 // |
|
42 |
|
43 RESOURCE HOTKEYS r_vw_hotkeys |
|
44 { |
|
45 control= |
|
46 { |
|
47 HOTKEY { command=EEikCmdExit; key='e'; }, |
|
48 HOTKEY { command=EDisplayTaskList; key='t'; }, |
|
49 HOTKEY { command=ESwitchView; key='s'; } |
|
50 }; |
|
51 } |
|
52 |
|
53 // |
|
54 // Menu bar. |
|
55 // |
|
56 |
|
57 RESOURCE MENU_BAR r_vw_menubar |
|
58 { |
|
59 titles= |
|
60 { |
|
61 MENU_TITLE { menu_pane=r_vw_basic_menu; txt="Basic"; }, |
|
62 MENU_TITLE { menu_pane=r_vw_regression_test_menu; txt="Regrsn. Test"; }, |
|
63 MENU_TITLE { menu_pane=r_vw_exception_test_menu; txt="Excptn. Test"; }, |
|
64 MENU_TITLE { menu_pane=r_vw_abuse_test_menu; txt="Abuse Test"; }, |
|
65 MENU_TITLE { menu_pane=r_vw_auto_test_menu; txt="Auto Test"; } |
|
66 }; |
|
67 } |
|
68 |
|
69 RESOURCE MENU_PANE r_vw_basic_menu |
|
70 { |
|
71 items= |
|
72 { |
|
73 MENU_ITEM { command=ESwitchView; txt="Switch view dialog"; }, |
|
74 MENU_ITEM { command=EDisplayRichText; txt="Rich text dialog"; }, |
|
75 MENU_ITEM { command=EDisplayTaskList; txt="Task list"; }, |
|
76 MENU_ITEM { command=EToggleTimeOutEnabled; txt="Enable time out"; flags=EEikMenuItemCheckBox; }, |
|
77 MENU_ITEM { command=EEikCmdExit; txt="Close"; } |
|
78 }; |
|
79 } |
|
80 |
|
81 RESOURCE MENU_PANE r_vw_exception_test_menu |
|
82 { |
|
83 items= |
|
84 { |
|
85 MENU_ITEM { command=ESuccesiveAllocFail; txt="Test Succesive Alloc Failure"; }, |
|
86 MENU_ITEM { command=EActivationOOM; txt="Test Activation OOM"; }, |
|
87 MENU_ITEM { command=EStartMissingApp; txt="Test Start Missing App"; }, |
|
88 MENU_ITEM { command=EPanicedActivation; txt="Test Paniced Activation"; }, |
|
89 MENU_ITEM { command=EPanicedDeactivation; txt="Test Paniced Deactivation"; }, |
|
90 MENU_ITEM { command=ESlowActivation; txt="Test Slow Activation"; }, |
|
91 MENU_ITEM { command=ESlowDeactivation; txt="Test Slow Deactivation"; } |
|
92 }; |
|
93 } |
|
94 RESOURCE MENU_PANE r_vw_regression_test_menu |
|
95 { |
|
96 items= |
|
97 { |
|
98 MENU_ITEM { command=EExitAndDoubleActivaiton; txt="Test Exit Between Activations"; }, |
|
99 MENU_ITEM { command=EForegroundChange; txt="Test Foreground Change While Events On Queue"; }, |
|
100 MENU_ITEM { command=ECheckForegroundChange; txt="Check result - Foreground Change While Events On Queue"; } |
|
101 }; |
|
102 } |
|
103 |
|
104 RESOURCE MENU_PANE r_vw_abuse_test_menu |
|
105 { |
|
106 items= |
|
107 { |
|
108 MENU_ITEM { command=EWaitingActivation; txt="Test Waiting Activation"; }, |
|
109 MENU_ITEM { command=EActivateInsideViewActivated; txt="Test Activate Inside ViewActivated"; }, |
|
110 MENU_ITEM { command=EWaitOnAppStart; txt="Test Wait On App Start"; } |
|
111 }; |
|
112 } |
|
113 |
|
114 RESOURCE MENU_PANE r_vw_auto_test_menu |
|
115 { |
|
116 items= |
|
117 { |
|
118 MENU_ITEM { command=EEnduranceTest; txt="Endurance Test"; }, |
|
119 MENU_ITEM { command=EEnduranceWithKillsTest; txt="Endurance With Kills Test"; } |
|
120 }; |
|
121 } |
|
122 |
|
123 // |
|
124 // View switch dialog. |
|
125 // |
|
126 |
|
127 RESOURCE DIALOG r_vw_view_switch_dialog |
|
128 { |
|
129 flags=EEikDialogFlagWait|EEikDialogFlagButtonsRight; |
|
130 title="Switch view"; |
|
131 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
132 items= |
|
133 { |
|
134 DLG_LINE |
|
135 { |
|
136 type=EEikCtChoiceList; |
|
137 prompt="App:"; |
|
138 id=ESwitchDlg_AppChoice; |
|
139 control=CHOICELIST |
|
140 { |
|
141 array_id=r_vw_switch_dlg_app_choice_array; |
|
142 flags=EEikChlistIncrementalMatching; |
|
143 }; |
|
144 }, |
|
145 DLG_LINE |
|
146 { |
|
147 type=EEikCtChoiceList; |
|
148 prompt="View:"; |
|
149 id=ESwitchDlg_ViewChoice; |
|
150 control=CHOICELIST |
|
151 { |
|
152 array_id=r_vw_switch_dlg_view_choice_array; |
|
153 flags=EEikChlistIncrementalMatching; |
|
154 }; |
|
155 }, |
|
156 DLG_LINE |
|
157 { |
|
158 prompt="Custom msg:"; |
|
159 type=EEikCtEdwin; |
|
160 id=ESwitchDlg_CustomMsg; |
|
161 itemflags=0; |
|
162 control=EDWIN { maxlength=256; width=8; }; |
|
163 } |
|
164 }; |
|
165 } |
|
166 |
|
167 RESOURCE ARRAY r_vw_switch_dlg_app_choice_array |
|
168 { |
|
169 items= |
|
170 { |
|
171 LBUF { txt="TVIEW1"; }, |
|
172 LBUF { txt="TVIEW2"; } |
|
173 }; |
|
174 } |
|
175 |
|
176 RESOURCE ARRAY r_vw_switch_dlg_view_choice_array |
|
177 { |
|
178 items= |
|
179 { |
|
180 LBUF { txt="View 1"; }, |
|
181 LBUF { txt="View 2"; } |
|
182 }; |
|
183 } |
|
184 |
|
185 // |
|
186 // Rich text dialog |
|
187 // |
|
188 |
|
189 RESOURCE DIALOG r_vw_rtexted_dialog |
|
190 { |
|
191 flags=EEikDialogFlagWait; |
|
192 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
193 title="Embed objects in editor"; |
|
194 items= |
|
195 { |
|
196 DLG_LINE |
|
197 { |
|
198 type=EEikCtRichTextEditor; |
|
199 id=ERtextedDlg_Editor; |
|
200 control=RTXTED |
|
201 { |
|
202 width=200; |
|
203 height=80; |
|
204 numlines=0; |
|
205 }; |
|
206 } |
|
207 }; |
|
208 } |
|
209 |