FreeCalypso > hg > fc-magnetite
comparison src/aci2/bmi/MmiDialogs.h @ 3:93999a60b835
src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Sep 2016 00:29:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:c41a534f33c6 | 3:93999a60b835 |
---|---|
1 //#error MmiDialogs includiert | |
2 #ifndef _DEF_MMI_DIALOGS_H_ | |
3 #define _DEF_MMI_DIALOGS_H_ | |
4 /******************************************************************************* | |
5 | |
6 CONDAT (UK) | |
7 | |
8 ******************************************************************************** | |
9 | |
10 This software product is the property of Condat (UK) Ltd and may not be | |
11 disclosed to any third party without the express permission of the owner. | |
12 | |
13 ******************************************************************************** | |
14 | |
15 $Project name: Basic MMI | |
16 $Project code: BMI (6349) | |
17 $Module: MmiDialogs | |
18 $File: MmiDialogs.h | |
19 $Revision: 1.0 | |
20 | |
21 $Author: Condat(UK) | |
22 $Date: 25/10/00 | |
23 | |
24 ******************************************************************************** | |
25 | |
26 Description: | |
27 | |
28 MMI Information dialogue handling. | |
29 | |
30 | |
31 ******************************************************************************** | |
32 $History: MmiDialogs.h | |
33 | |
34 Mar 11, 2006 REF:DR:OMAPS00061467 x0035544 | |
35 Description: 27.22.4.13.3 SET UP CALL (display of icons) fails. | |
36 Solution: added the new structure T_SAT_IconData and defined its variable at the structures T_dialog_info | |
37 and T_DISPLAY_DATA. | |
38 | |
39 Feb 24, 2005 REF: CRR MMI-SPR-29102 xnkulkar | |
40 Description: The phone resets when user presses the ''End All' key while the SMSs are being deleted. | |
41 Solution: As the user has already confirmed that all SMS messages are to be deleted, ''End All' key | |
42 press is ignored till the delete operation is over. | |
43 xrashmic 08 Feb, 2005 MMI-SPR-27853 | |
44 Moved the T_dialog_info structure from MmiDialogs.c to MmiDialogs.h | |
45 | |
46 | |
47 xrashmic 08 Feb, 2005 MMI-SPR-27853 | |
48 Moved the T_dialog_info structure from MmiDialogs.c to MmiDialogs.h | |
49 | |
50 Jun 04,2004 CRR:13601 xpradipg - SASKEN | |
51 Description: CFO interrogation display : Timer to long | |
52 Fix: Timer is enabled for the information dialog. It times out after 5 seconds from the last key | |
53 press. | |
54 25/10/00 Original Condat(UK) BMI version. | |
55 | |
56 $End | |
57 | |
58 *******************************************************************************/ | |
59 #include "mfw_mfw.h" | |
60 /* SPR#1428 - SH - New Editor changes */ | |
61 #ifdef NEW_EDITOR | |
62 #include "ATBCommon.h" | |
63 #include "ATBDisplay.h" | |
64 #include "ATBEditor.h" | |
65 #else /* NEW_EDITOR */ | |
66 #include "mfw_edt.h" | |
67 #endif /* NEW_EDITOR */ | |
68 #include "mfw_icn.h" | |
69 | |
70 #include "MmiMmi.h" //for 'DialogsDummy' | |
71 #include "Mmiicons.h" | |
72 | |
73 //#include "font_bitmaps.h" //For t_font_bitmap definition | |
74 | |
75 #define TIMER_EXIT 0x0BB8 /* Default SMS timer period - 3 secs. */ | |
76 /* Information dialogue display times. */ | |
77 #define ONE_SECS 0x03E8 /* 1000 milliseconds. */ | |
78 #define TWO_SECS 0x07D0 /* 2000 milliseconds. */ | |
79 #define THREE_SECS 0x0BB8 /* 3000 milliseconds. */ | |
80 #define FOUR_SECS (4000) | |
81 #define FIVE_SECS 0x1388 /* 5000 milliseconds. */ | |
82 #define SIX_SECS (6000) | |
83 #define TEN_SECS 0x2710 /* 10000 milliseconds. */ | |
84 #define TWO_MIN 0x1D4C0 /* 2 min */ | |
85 #define FOREVER 0xFFFF /* Infinite time period. */ | |
86 | |
87 #define SMS_PROMPTX 5 | |
88 #define SMS_PROMPTY 45 | |
89 #define PROMPTX 7 | |
90 #define PROMPTY 17 | |
91 #define INFO_TEXTX 6 | |
92 #define INFO_TEXTY 15 | |
93 #define INFO_TEXTY2 26 | |
94 #define INFO_TEXTY3 37 | |
95 #define FRAMEX1 4 | |
96 #define FRAMEY1 14 | |
97 #define FRAMEX2 92 | |
98 #define FRAMEY2 52 | |
99 | |
100 #define DLG_BORDER_VERTICAL_0 0x0000 //leave no border | |
101 #define DLG_BORDER_VERTICAL_1 0x0001 //leave 25% of bitmap to the left/right unused | |
102 #define DLG_BORDER_VERTICAL_2 0x0002 | |
103 #define DLG_BORDER_VERTICAL_3 0x0003 | |
104 #define DLG_BORDER_VERTICAL 0x0003 | |
105 | |
106 | |
107 #define DLG_BORDER_HORIZONTAL_0 0x0000 | |
108 #define DLG_BORDER_HORIZONTAL_1 0x0004 //leave 25% of bitmap to the top/bottom unused | |
109 #define DLG_BORDER_HORIZONTAL_2 0x0008 | |
110 #define DLG_BORDER_HORIZONTAL_3 0x000C | |
111 #define DLG_BORDER_HORIZONTAL 0x000C | |
112 | |
113 #define DLG_INFO_LAYOUT_BOTTOM 0x0010 //display data on bottom of bitmap | |
114 #define DLG_INFO_LAYOUT_TOP 0x0020 //display data at top of bitmap | |
115 #define DLG_INFO_LAYOUT_LEFT 0x0040 | |
116 #define DLG_INFO_LAYOUT_RIGHT 0x0080 | |
117 #define DLG_INFO_LAYOUT_CENTRE 0x0000 | |
118 #define DLG_INFO_LAYOUT_FILL 0x00F0 //move data to edges of available area | |
119 | |
120 | |
121 /* | |
122 * common template definitions | |
123 */ | |
124 typedef void (*T_DIALOG_FUNC)(T_MFW_HND win, USHORT event, USHORT value, void * parameter); | |
125 | |
126 | |
127 typedef struct | |
128 { | |
129 T_DIALOG_FUNC dialog; | |
130 void * data; | |
131 } T_MMI_CONTROL; | |
132 | |
133 #define ALLOC_MEMORY mfwAlloc | |
134 #define FREE_MEMORY mfwFree | |
135 | |
136 extern void mmi_send_event (T_MFW_HND win, USHORT event, USHORT value, void * parameter); | |
137 | |
138 #define SEND_EVENT(w,e,v,p) mmi_send_event(w,e,v,p) | |
139 | |
140 /* | |
141 * End of common template definitions | |
142 */ | |
143 | |
144 /* | |
145 * Definitions from common dialog function | |
146 */ | |
147 | |
148 //Berlin_UK int | |
149 /* kk 011102 | |
150 typedef void (*T_VOID_FUNC)(); | |
151 typedef short (*T_SHORT_FUNC)(); | |
152 */ | |
153 //Berlin_UK int | |
154 //GW-SPR#762 wrap definitions | |
155 #define WRAP_STRING_1 (0x01) | |
156 #define WRAP_STRING_2 (0x02) | |
157 | |
158 #define DLG_TYPE_NORMAL 0x01 | |
159 #define DLG_TYPE_POPUP 0x02 | |
160 //#define T_BITMAP t_font_bitmap - defined in Mmiicons.h | |
161 | |
162 //x0035544 Feb 07, 2006 DR:OMAPS00061467 | |
163 #ifdef FF_MMI_SAT_ICON | |
164 typedef struct | |
165 { | |
166 /* SAT ICON DATA */ | |
167 U8 width; /* SAT Icon width */ | |
168 U8 height; /* SAT Icon height */ | |
169 char* dst; /* Icon data */ | |
170 BOOL selfExplanatory; | |
171 } T_SAT_IconData; | |
172 #endif | |
173 | |
174 typedef struct | |
175 { | |
176 char * TextString; | |
177 BOOL SoftKeyStrings; // SH - TRUE if we are providing strings for softkeys rather than IDs | |
178 USHORT LeftSoftKey; | |
179 USHORT RightSoftKey; | |
180 char *LSKString; // SH - Text for customised softkey | |
181 char *RSKString; // SH - Text for customised softkey | |
182 ULONG Time; | |
183 T_MFW_EVENT KeyEvents; | |
184 USHORT TextId; | |
185 USHORT Identifier; | |
186 char * TextString2; | |
187 USHORT TextId2; | |
188 T_VOID_FUNC Callback; | |
189 UBYTE WrapStrings; // GW-SPR#762 - bits 0,1 set=wrap string 1,2 | |
190 //GW Added colour definition | |
191 U32 displayCol; | |
192 | |
193 int dlgType; //Type of popup | |
194 T_BITMAP *bgdBitmap; //Bitmap for background image | |
195 MfwRect *dlgPos; //Position of dialog | |
196 MfwIcnAttr* icon_array; | |
197 int current_icon; | |
198 UBYTE number_of_frames; | |
199 UBYTE current_frame; | |
200 T_MFW_HND animation_timer; | |
201 int anim_time; | |
202 //x0035544 Feb 07, 2006 DR:OMAPS00061467 | |
203 #ifdef FF_MMI_SAT_ICON | |
204 T_SAT_IconData IconData; //Sat icon information | |
205 #endif | |
206 } T_DISPLAY_DATA; | |
207 | |
208 //xrashmic 08 Feb, 2005 MMI-SPR-27853 | |
209 //Moved the sturcture from mmidialog.c to mmidialogs.h, need this structure to update the | |
210 // dialog screen with the send progress information | |
211 typedef struct | |
212 { | |
213 T_MMI_CONTROL mmi_control; | |
214 T_MFW_HND parent_win; | |
215 T_MFW_HND info_win; | |
216 T_MFW_HND info_tim; | |
217 T_MFW_HND info_kbd; | |
218 T_MFW_HND info_kbd_long; | |
219 T_MFW_HND icon; | |
220 /* | |
221 * animation fields | |
222 */ | |
223 UBYTE number_of_frames; | |
224 UBYTE current_frame; | |
225 T_MFW_HND anim_time; | |
226 MfwIcnAttr *icon_array; | |
227 MfwIcnAttr *current_icon; | |
228 T_MFW_HND animation_timer; | |
229 | |
230 /* | |
231 * internal data | |
232 */ | |
233 char *TextString; | |
234 USHORT LeftSoftKey; | |
235 USHORT RightSoftKey; | |
236 char *LSKString; // SH - text for left soft key | |
237 char *RSKString; // SH - text for right soft key | |
238 BOOL SoftKeyStrings; // SH - TRUE if using text rather than IDs for soft keys | |
239 UBYTE WrapStrings; // GW - bits 0,1 set=wrap string 1,2 | |
240 ULONG Time; | |
241 T_MFW_EVENT KeyEvents; | |
242 USHORT TextId; | |
243 USHORT Identifier; | |
244 char * TextString2; | |
245 USHORT TextId2; | |
246 T_VOID_FUNC Callback; | |
247 | |
248 U32 dlgCol; | |
249 U32 dlgType; | |
250 T_BITMAP *dlgBgdBitmap; | |
251 int dlgSkFormat; | |
252 //x0035544 Feb 07, 2006 DR:OMAPS00061467 | |
253 #ifdef FF_MMI_SAT_ICON | |
254 T_SAT_IconData IconData; //Sat icon information | |
255 #endif | |
256 } T_dialog_info; | |
257 | |
258 typedef struct | |
259 { | |
260 USHORT TitleTextId; | |
261 char * TextString; | |
262 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | |
263 T_ED_ATTR EditorAttrScroll; | |
264 #else /* NEW_EDITOR */ | |
265 MfwEdtAttr EdtAttrScroll; | |
266 #endif /* NEW_EDITOR */ | |
267 USHORT LeftSoftKey; | |
268 USHORT RightSoftKey; | |
269 ULONG Time; | |
270 T_MFW_EVENT KeyEvents; | |
271 USHORT Identifier; | |
272 T_VOID_FUNC Callback; | |
273 } T_SCROLL_DISPLAY_DATA; | |
274 /* | |
275 * Function expected from Info Dialog | |
276 */ | |
277 #define INFO_TIMEOUT 1 | |
278 #define INFO_KCD_LEFT 2 | |
279 #define INFO_KCD_RIGHT 3 | |
280 #define INFO_KCD_HUP 4 | |
281 #define INFO_KCD_UP 5 | |
282 #define INFO_KCD_DOWN 6 | |
283 #define INFO_KCD_0_9 7 | |
284 #define INFO_KCD_ALL 8 | |
285 #define INFO_KCD_CLEAR 9 | |
286 #define INFO_KCD_OFFHOOK 10 | |
287 #define INFO_KCD_CALL 11 | |
288 | |
289 #define PROMPT_LENGTH 16 | |
290 | |
291 extern T_MFW_HND info_dialog (T_MFW_HND parent_win, | |
292 T_DISPLAY_DATA * display_info); | |
293 | |
294 T_MFW_HND info_dialog_softkeystrings (T_MFW_HND parent_win, T_DISPLAY_DATA * display_info); | |
295 | |
296 extern T_MFW_HND mmi_dialog_information_screen(T_MFW_HND parent_win, int TxtId,char* text, | |
297 T_VOID_FUNC call_back, USHORT identifier); | |
298 extern T_MFW_HND mmi_dialog_information_screen_forever(MfwHnd win,int TextId, char* TextStr, int colour); | |
299 | |
300 void dlg_zeroDisplayData( T_DISPLAY_DATA *displayInfo); | |
301 void dlg_initDisplayData_TextId( T_DISPLAY_DATA *displayInfo, int lsk, int rsk, int str1, int str2, int colId); | |
302 void dlg_initDisplayData_TextStr( T_DISPLAY_DATA *displayInfo, int lsk, int rsk,char *str1, char *str2, int colId); | |
303 void dlg_initDisplayData_events( T_DISPLAY_DATA *displayInfo, T_VOID_FUNC callback, int timer, T_MFW_EVENT keyEvents); | |
304 | |
305 /*GB*/ | |
306 void mmi_dialogs_insert_icon (T_MFW_HND win_dialog ,MfwIcnAttr *icon); | |
307 void mmi_dialogs_insert_animation (T_MFW_HND win_dialog ,S32 anim_time ,MfwIcnAttr *icon ,UBYTE number_of_frames); | |
308 | |
309 void mmi_dialogs_insert_animation_new (T_DISPLAY_DATA *animateInfo , S32 anim_time ,MfwIcnAttr* icon ,UBYTE number_of_frames); | |
310 //Jun 04,2004 CRR:13601 xpradipg - SASKEN | |
311 //declaration for the function definition | |
312 extern void InfoDialogTimRestart(T_MFW_HND win); | |
313 | |
314 // Feb 24, 2005 REF: CRR MMI-SPR-29102 xnkulkar | |
315 // Prototype declaration for the function 'mmi_dialog_information_screen_delete_all()' | |
316 T_MFW_HND mmi_dialog_information_screen_delete_all(MfwHnd win,int TextId, char* TextStr, int colour); | |
317 | |
318 /* | |
319 * Internal events | |
320 */ | |
321 #define DIALOG_INIT 200 | |
322 #define DIALOG_DESTROY 201 | |
323 | |
324 // c018 rsa | |
325 typedef int DisplayData; // ??? rsa needed!? | |
326 typedef int DialogInfo; // ??? rsa needed!? | |
327 | |
328 typedef enum | |
329 { | |
330 DIALOGS_REASON_NULL = DialogsDummy, | |
331 DIALOGS_REASON_TIMER, | |
332 DIALOGS_REASON_LEFTKEY, | |
333 DIALOGS_REASON_RIGHTKEY, | |
334 DIALOGS_REASON_CLEARKEY | |
335 }DialogReasons; | |
336 | |
337 // end c018 rsa | |
338 #endif | |
339 | |
340 | |
341 |