|
1 // Copyright (c) 1997-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 TDLG |
|
17 |
|
18 #include <techview/eikon.rh> |
|
19 #include <techview/eikon.rsg> |
|
20 #include "TNOTDIAL.HRH" |
|
21 |
|
22 RESOURCE RSS_SIGNATURE { } |
|
23 |
|
24 RESOURCE TBUF16 { buf=""; } |
|
25 |
|
26 RESOURCE EIK_APP_INFO |
|
27 { |
|
28 menubar=r_tdlg_menubar; |
|
29 toolbar=r_tdlg_toolbar; |
|
30 hotkeys=r_tnot_hotkeys; |
|
31 } |
|
32 |
|
33 RESOURCE HOTKEYS r_tnot_hotkeys { control={HOTKEY {command=EEikCmdExit; key='e';}};} |
|
34 |
|
35 RESOURCE TOOLBAR r_tdlg_toolbar |
|
36 { |
|
37 breadth=0; |
|
38 lines=2; |
|
39 flags=EEikToolBarDistributeControlsEvenlyBetweenLines|EEikToolBarAllControlsSameSize; |
|
40 controls= |
|
41 { |
|
42 TBAR_BUTTON {id=EAppRingPhone;flags=EEikToolBarCtrlIsStretchable; txt="phone rings";}, |
|
43 TBAR_BUTTON {id=EAppLowBattery;flags=EEikToolBarCtrlIsStretchable; txt="Low battery";}, |
|
44 TBAR_BUTTON {id=EAppAgendaAlarm;flags=EEikToolBarCtrlIsStretchable; txt="Agenda Alarm";}, |
|
45 TBAR_BUTTON {id=EAppUpdateRingPhone;flags=EEikToolBarCtrlIsStretchable; txt="Update phone";}, |
|
46 TBAR_BUTTON {id=EAppUpdateLowBattery; flags=EEikToolBarCtrlIsStretchable;txt="Update Low battery";}, |
|
47 TBAR_BUTTON {id=EAppUpdateAgendaAlarm;flags=EEikToolBarCtrlIsStretchable; txt="Update Agenda";}, |
|
48 TBAR_BUTTON {id=EAppCancelRingPhone;flags=EEikToolBarCtrlIsStretchable; txt="Cancel phone";}, |
|
49 TBAR_BUTTON {id=EAppCancelLowBattery;flags=EEikToolBarCtrlIsStretchable; txt="Cancel Low battery";}, |
|
50 TBAR_BUTTON {id=EAppCancelAgendaAlarm;flags=EEikToolBarCtrlIsStretchable; txt="Cancel Agenda";}, |
|
51 TBAR_BUTTON {id=EAppStartAgendaAlarmStatus;flags=EEikToolBarCtrlIsStretchable; txt="Starts Agenda (status request)";}, |
|
52 TBAR_BUTTON {id=EAppNewSms;flags=EEikToolBarCtrlIsStretchable; txt="New Sms(transient load)";}, |
|
53 TBAR_BUTTON {id=EAppNewEmail;flags=EEikToolBarCtrlIsStretchable; txt="New Email(transient load)";}, |
|
54 TBAR_BUTTON {id=EAppCancelEmail;flags=EEikToolBarCtrlIsStretchable; txt="cancel email(transient unload)";}, |
|
55 TBAR_BUTTON {id=EAppCancelSms;flags=EEikToolBarCtrlIsStretchable;txt=" cancel sms(transient unload)";}, |
|
56 TBAR_BUTTON {id=EAppUpdateSms;flags=EEikToolBarCtrlIsStretchable;txt="update sms";}, |
|
57 TBAR_BUTTON {id=EAppUpdateEmail;flags=EEikToolBarCtrlIsStretchable; txt="update email";}, |
|
58 TBAR_BUTTON {id=EAppStartEmailStatus;flags=EEikToolBarCtrlIsStretchable; txt="Starts Email(status request, transient unload)";} |
|
59 }; |
|
60 } |
|
61 |
|
62 |
|
63 RESOURCE MENU_BAR r_tdlg_menubar |
|
64 { |
|
65 titles= |
|
66 { |
|
67 MENU_TITLE { menu_pane=r_commands; txt="Commands"; }, |
|
68 MENU_TITLE { menu_pane=r_transient; txt="transient load\unload"; } |
|
69 }; |
|
70 } |
|
71 |
|
72 RESOURCE MENU_PANE r_commands |
|
73 { |
|
74 items= |
|
75 { |
|
76 MENU_ITEM |
|
77 { |
|
78 command=EAppRingPhone; |
|
79 txt="phone rings"; |
|
80 }, |
|
81 MENU_ITEM |
|
82 { |
|
83 command=EAppLowBattery; |
|
84 txt="low batteries"; |
|
85 }, |
|
86 MENU_ITEM |
|
87 { |
|
88 command=EAppAgendaAlarm; |
|
89 txt="Agenda alarm "; |
|
90 }, |
|
91 MENU_ITEM |
|
92 { |
|
93 command=EAppBatteryNotifiyOnTimer; |
|
94 txt="Low Bat Notifier In 3 Secs"; |
|
95 }, |
|
96 MENU_ITEM |
|
97 { |
|
98 command=EAppCheckErrorCode; |
|
99 txt="Check Error Code"; |
|
100 flags=EEikMenuItemSeparatorAfter; |
|
101 }, |
|
102 MENU_ITEM |
|
103 { |
|
104 command=EEikCmdExit; |
|
105 txt="Exit"; |
|
106 } |
|
107 }; |
|
108 } |
|
109 |
|
110 RESOURCE MENU_PANE r_transient |
|
111 { |
|
112 items= |
|
113 { |
|
114 MENU_ITEM |
|
115 { |
|
116 command=EAppNewSms; |
|
117 txt="New Sms"; |
|
118 }, |
|
119 MENU_ITEM |
|
120 { |
|
121 command=EAppNewEmail; |
|
122 txt="New Email"; |
|
123 flags=EEikMenuItemSeparatorAfter; |
|
124 }, |
|
125 MENU_ITEM |
|
126 { |
|
127 command=EAppStartEmailStatus; |
|
128 txt="Starts Email(status request) "; |
|
129 }, |
|
130 MENU_ITEM |
|
131 { |
|
132 command=EEikCmdExit; |
|
133 txt="Exit"; |
|
134 } |
|
135 }; |
|
136 } |
|
137 |
|
138 RESOURCE DIALOG r_not_implemented |
|
139 { |
|
140 title="Not implemented"; |
|
141 buttons=R_EIK_BUTTONS_CANCEL_OK; |
|
142 } |
|
143 |
|
144 |
|
145 RESOURCE DIALOG r_agenda_alarm |
|
146 { |
|
147 flags=EEikDialogFlagNotifyEsc; |
|
148 title="DIALOG Channel: Agenda alarm"; |
|
149 buttons=r_eik_alarm_ok; |
|
150 } |
|
151 |
|
152 RESOURCE DIALOG r_sms_alert |
|
153 { |
|
154 flags=EEikDialogFlagNotifyEsc; |
|
155 title="DIALOG Channel: new sms.."; |
|
156 buttons=r_eik_sms_ok; |
|
157 } |
|
158 |
|
159 RESOURCE DIALOG r_email_alert |
|
160 { |
|
161 flags=EEikDialogFlagNotifyEsc; |
|
162 title="DIALOG Channel: new email.."; |
|
163 buttons=r_eik_email_ok; |
|
164 } |
|
165 |
|
166 RESOURCE DIALOG r_phone_rings |
|
167 { |
|
168 flags=EEikDialogFlagNotifyEsc; |
|
169 title="DIALOG Channel: Ring ring...."; |
|
170 buttons=r_eik_phone_answer_ok; |
|
171 } |
|
172 |
|
173 RESOURCE DIALOG r_low_battery |
|
174 { |
|
175 flags=EEikDialogFlagNotifyEsc; |
|
176 title="DIALOG Channel: Low battery"; |
|
177 buttons=r_eik_low_battery_ok; |
|
178 } |
|
179 |
|
180 |
|
181 RESOURCE DIALOG r_led_low_battery |
|
182 { |
|
183 flags=EEikDialogFlagNotifyEsc; |
|
184 title="LED Channel: Low battery"; |
|
185 buttons=r_eik_led_low_battery_ok; |
|
186 } |
|
187 |
|
188 RESOURCE DLG_BUTTONS r_eik_phone_answer_ok |
|
189 { |
|
190 buttons= |
|
191 { |
|
192 DLG_BUTTON {id=0 ; button=CMBUT {txt="OK";}; flags=0; } |
|
193 }; |
|
194 } |
|
195 |
|
196 RESOURCE DLG_BUTTONS r_eik_sms_ok |
|
197 { |
|
198 buttons= |
|
199 { |
|
200 DLG_BUTTON {id=0 ; button=CMBUT {txt="OK";}; flags=0; } |
|
201 }; |
|
202 } |
|
203 |
|
204 RESOURCE DLG_BUTTONS r_eik_email_ok |
|
205 { |
|
206 buttons= |
|
207 { |
|
208 DLG_BUTTON {id=0 ; button=CMBUT {txt="OK";}; flags=0; } |
|
209 }; |
|
210 } |
|
211 |
|
212 RESOURCE DLG_BUTTONS r_eik_alarm_ok |
|
213 { |
|
214 buttons= |
|
215 { |
|
216 DLG_BUTTON {id=0 ; button=CMBUT {txt="OK";}; flags=0; } |
|
217 }; |
|
218 } |
|
219 |
|
220 |
|
221 |
|
222 RESOURCE DLG_BUTTONS r_eik_low_battery_ok |
|
223 { |
|
224 buttons= |
|
225 { |
|
226 DLG_BUTTON {id=0 ; button=CMBUT {txt="OK";}; flags=0; } |
|
227 }; |
|
228 } |
|
229 |
|
230 |
|
231 RESOURCE DLG_BUTTONS r_eik_led_low_battery_ok |
|
232 { |
|
233 buttons= |
|
234 { |
|
235 DLG_BUTTON {id=0 ; button=CMBUT {txt="OK";}; flags=0; } |
|
236 }; |
|
237 } |
|
238 |
|
239 |
|
240 |