FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiDialogs.h @ 106:598489a0ce3c
mmiDialogs.h: bogotab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 08 Nov 2020 23:12:20 +0000 |
parents | c0052fe355d3 |
children | 62480f597962 |
comparison
equal
deleted
inserted
replaced
105:a7398f7007bb | 106:598489a0ce3c |
---|---|
12 | 12 |
13 ******************************************************************************** | 13 ******************************************************************************** |
14 | 14 |
15 $Project name: Basic MMI | 15 $Project name: Basic MMI |
16 $Project code: BMI (6349) | 16 $Project code: BMI (6349) |
17 $Module: MmiDialogs | 17 $Module: MmiDialogs |
18 $File: MmiDialogs.h | 18 $File: MmiDialogs.h |
19 $Revision: 1.0 | 19 $Revision: 1.0 |
20 | 20 |
21 $Author: Condat(UK) | 21 $Author: Condat(UK) |
22 $Date: 25/10/00 | 22 $Date: 25/10/00 |
23 | 23 |
24 ******************************************************************************** | 24 ******************************************************************************** |
25 | 25 |
26 Description: | 26 Description: |
27 | 27 |
29 | 29 |
30 | 30 |
31 ******************************************************************************** | 31 ******************************************************************************** |
32 $History: MmiDialogs.h | 32 $History: MmiDialogs.h |
33 | 33 |
34 Apr 03, 2007 ER: OMAPS00122561 x0pleela | 34 Apr 03, 2007 ER: OMAPS00122561 x0pleela |
35 Description: [ACI] Phone lock feature has to be supported by ACI | 35 Description: [ACI] Phone lock feature has to be supported by ACI |
36 Solution: Phone Lock ER implementation | 36 Solution: Phone Lock ER implementation |
37 | 37 |
38 Mar 11, 2006 REF:DR:OMAPS00061467 x0035544 | 38 Mar 11, 2006 REF:DR:OMAPS00061467 x0035544 |
39 Description: 27.22.4.13.3 SET UP CALL (display of icons) fails. | 39 Description: 27.22.4.13.3 SET UP CALL (display of icons) fails. |
40 Solution: added the new structure T_SAT_IconData and defined its variable at the structures T_dialog_info | 40 Solution: added the new structure T_SAT_IconData and defined its variable at the structures T_dialog_info |
41 and T_DISPLAY_DATA. | 41 and T_DISPLAY_DATA. |
42 | 42 |
43 Feb 24, 2005 REF: CRR MMI-SPR-29102 xnkulkar | 43 Feb 24, 2005 REF: CRR MMI-SPR-29102 xnkulkar |
44 Description: The phone resets when user presses the ''End All' key while the SMSs are being deleted. | 44 Description: The phone resets when user presses the ''End All' key while the SMSs are being deleted. |
45 Solution: As the user has already confirmed that all SMS messages are to be deleted, ''End All' key | 45 Solution: As the user has already confirmed that all SMS messages are to be deleted, ''End All' key |
46 press is ignored till the delete operation is over. | 46 press is ignored till the delete operation is over. |
47 xrashmic 08 Feb, 2005 MMI-SPR-27853 | 47 xrashmic 08 Feb, 2005 MMI-SPR-27853 |
48 Moved the T_dialog_info structure from MmiDialogs.c to MmiDialogs.h | 48 Moved the T_dialog_info structure from MmiDialogs.c to MmiDialogs.h |
49 | 49 |
50 | 50 |
51 xrashmic 08 Feb, 2005 MMI-SPR-27853 | 51 xrashmic 08 Feb, 2005 MMI-SPR-27853 |
52 Moved the T_dialog_info structure from MmiDialogs.c to MmiDialogs.h | 52 Moved the T_dialog_info structure from MmiDialogs.c to MmiDialogs.h |
53 | 53 |
54 Jun 04,2004 CRR:13601 xpradipg - SASKEN | 54 Jun 04,2004 CRR:13601 xpradipg - SASKEN |
55 Description: CFO interrogation display : Timer to long | 55 Description: CFO interrogation display : Timer to long |
56 Fix: Timer is enabled for the information dialog. It times out after 5 seconds from the last key | 56 Fix: Timer is enabled for the information dialog. It times out after 5 seconds from the last key |
57 press. | 57 press. |
58 25/10/00 Original Condat(UK) BMI version. | 58 25/10/00 Original Condat(UK) BMI version. |
59 | 59 |
60 $End | 60 $End |
61 | 61 |
62 *******************************************************************************/ | 62 *******************************************************************************/ |
72 #include "mfw_icn.h" | 72 #include "mfw_icn.h" |
73 | 73 |
74 #include "MmiMmi.h" //for 'DialogsDummy' | 74 #include "MmiMmi.h" //for 'DialogsDummy' |
75 #include "Mmiicons.h" | 75 #include "Mmiicons.h" |
76 | 76 |
77 //#include "font_bitmaps.h" //For t_font_bitmap definition | 77 //#include "font_bitmaps.h" //For t_font_bitmap definition |
78 | 78 |
79 #define TIMER_EXIT 0x0BB8 /* Default SMS timer period - 3 secs. */ | 79 #define TIMER_EXIT 0x0BB8 /* Default SMS timer period - 3 secs. */ |
80 /* Information dialogue display times. */ | 80 /* Information dialogue display times. */ |
81 #define ONE_SECS 0x03E8 /* 1000 milliseconds. */ | 81 #define ONE_SECS 0x03E8 /* 1000 milliseconds. */ |
82 #define TWO_SECS 0x07D0 /* 2000 milliseconds. */ | 82 #define TWO_SECS 0x07D0 /* 2000 milliseconds. */ |
83 #define THREE_SECS 0x0BB8 /* 3000 milliseconds. */ | 83 #define THREE_SECS 0x0BB8 /* 3000 milliseconds. */ |
84 #define FOUR_SECS (4000) | 84 #define FOUR_SECS (4000) |
85 #define FIVE_SECS 0x1388 /* 5000 milliseconds. */ | 85 #define FIVE_SECS 0x1388 /* 5000 milliseconds. */ |
86 #define SIX_SECS (6000) | 86 #define SIX_SECS (6000) |
87 #define TEN_SECS 0x2710 /* 10000 milliseconds. */ | 87 #define TEN_SECS 0x2710 /* 10000 milliseconds. */ |
88 #define TWO_MIN 0x1D4C0 /* 2 min */ | 88 #define TWO_MIN 0x1D4C0 /* 2 min */ |
89 #define FOREVER 0xFFFF /* Infinite time period. */ | 89 #define FOREVER 0xFFFF /* Infinite time period. */ |
90 | 90 |
91 #define SMS_PROMPTX 5 | 91 #define SMS_PROMPTX 5 |
99 #define FRAMEX1 4 | 99 #define FRAMEX1 4 |
100 #define FRAMEY1 14 | 100 #define FRAMEY1 14 |
101 #define FRAMEX2 92 | 101 #define FRAMEX2 92 |
102 #define FRAMEY2 52 | 102 #define FRAMEY2 52 |
103 | 103 |
104 #define DLG_BORDER_VERTICAL_0 0x0000 //leave no border | 104 #define DLG_BORDER_VERTICAL_0 0x0000 //leave no border |
105 #define DLG_BORDER_VERTICAL_1 0x0001 //leave 25% of bitmap to the left/right unused | 105 #define DLG_BORDER_VERTICAL_1 0x0001 //leave 25% of bitmap to the left/right unused |
106 #define DLG_BORDER_VERTICAL_2 0x0002 | 106 #define DLG_BORDER_VERTICAL_2 0x0002 |
107 #define DLG_BORDER_VERTICAL_3 0x0003 | 107 #define DLG_BORDER_VERTICAL_3 0x0003 |
108 #define DLG_BORDER_VERTICAL 0x0003 | 108 #define DLG_BORDER_VERTICAL 0x0003 |
109 | 109 |
110 | 110 |
111 #define DLG_BORDER_HORIZONTAL_0 0x0000 | 111 #define DLG_BORDER_HORIZONTAL_0 0x0000 |
112 #define DLG_BORDER_HORIZONTAL_1 0x0004 //leave 25% of bitmap to the top/bottom unused | 112 #define DLG_BORDER_HORIZONTAL_1 0x0004 //leave 25% of bitmap to the top/bottom unused |
113 #define DLG_BORDER_HORIZONTAL_2 0x0008 | 113 #define DLG_BORDER_HORIZONTAL_2 0x0008 |
114 #define DLG_BORDER_HORIZONTAL_3 0x000C | 114 #define DLG_BORDER_HORIZONTAL_3 0x000C |
115 #define DLG_BORDER_HORIZONTAL 0x000C | 115 #define DLG_BORDER_HORIZONTAL 0x000C |
116 | 116 |
117 #define DLG_INFO_LAYOUT_BOTTOM 0x0010 //display data on bottom of bitmap | 117 #define DLG_INFO_LAYOUT_BOTTOM 0x0010 //display data on bottom of bitmap |
118 #define DLG_INFO_LAYOUT_TOP 0x0020 //display data at top of bitmap | 118 #define DLG_INFO_LAYOUT_TOP 0x0020 //display data at top of bitmap |
119 #define DLG_INFO_LAYOUT_LEFT 0x0040 | 119 #define DLG_INFO_LAYOUT_LEFT 0x0040 |
120 #define DLG_INFO_LAYOUT_RIGHT 0x0080 | 120 #define DLG_INFO_LAYOUT_RIGHT 0x0080 |
121 #define DLG_INFO_LAYOUT_CENTRE 0x0000 | 121 #define DLG_INFO_LAYOUT_CENTRE 0x0000 |
122 #define DLG_INFO_LAYOUT_FILL 0x00F0 //move data to edges of available area | 122 #define DLG_INFO_LAYOUT_FILL 0x00F0 //move data to edges of available area |
123 | 123 |
124 | 124 |
125 /* | 125 /* |
126 * common template definitions | 126 * common template definitions |
127 */ | 127 */ |
157 //Berlin_UK int | 157 //Berlin_UK int |
158 //GW-SPR#762 wrap definitions | 158 //GW-SPR#762 wrap definitions |
159 #define WRAP_STRING_1 (0x01) | 159 #define WRAP_STRING_1 (0x01) |
160 #define WRAP_STRING_2 (0x02) | 160 #define WRAP_STRING_2 (0x02) |
161 | 161 |
162 #define DLG_TYPE_NORMAL 0x01 | 162 #define DLG_TYPE_NORMAL 0x01 |
163 #define DLG_TYPE_POPUP 0x02 | 163 #define DLG_TYPE_POPUP 0x02 |
164 //#define T_BITMAP t_font_bitmap - defined in Mmiicons.h | 164 //#define T_BITMAP t_font_bitmap - defined in Mmiicons.h |
165 | 165 |
166 //x0035544 Feb 07, 2006 DR:OMAPS00061467 | 166 //x0035544 Feb 07, 2006 DR:OMAPS00061467 |
167 #ifdef FF_MMI_SAT_ICON | 167 #ifdef FF_MMI_SAT_ICON |
168 typedef struct | 168 typedef struct |
169 { | 169 { |
170 /* SAT ICON DATA */ | 170 /* SAT ICON DATA */ |
171 U8 width; /* SAT Icon width */ | 171 U8 width; /* SAT Icon width */ |
172 U8 height; /* SAT Icon height */ | 172 U8 height; /* SAT Icon height */ |
173 char* dst; /* Icon data */ | 173 char* dst; /* Icon data */ |
174 BOOL selfExplanatory; | 174 BOOL selfExplanatory; |
175 } T_SAT_IconData; | 175 } T_SAT_IconData; |
176 #endif | 176 #endif |
177 | 177 |
178 typedef struct | 178 typedef struct |
179 { | 179 { |
180 char * TextString; | 180 char * TextString; |
181 BOOL SoftKeyStrings; // SH - TRUE if we are providing strings for softkeys rather than IDs | 181 BOOL SoftKeyStrings; // SH - TRUE if we are providing strings for softkeys rather than IDs |
182 USHORT LeftSoftKey; | 182 USHORT LeftSoftKey; |
183 USHORT RightSoftKey; | 183 USHORT RightSoftKey; |
184 char *LSKString; // SH - Text for customised softkey | 184 char *LSKString; // SH - Text for customised softkey |
185 char *RSKString; // SH - Text for customised softkey | 185 char *RSKString; // SH - Text for customised softkey |
186 ULONG Time; | 186 ULONG Time; |
187 T_MFW_EVENT KeyEvents; | 187 T_MFW_EVENT KeyEvents; |
188 USHORT TextId; | 188 USHORT TextId; |
189 USHORT Identifier; | 189 USHORT Identifier; |
190 char * TextString2; | 190 char * TextString2; |
191 USHORT TextId2; | 191 USHORT TextId2; |
192 T_VOID_FUNC Callback; | 192 T_VOID_FUNC Callback; |
193 UBYTE WrapStrings; // GW-SPR#762 - bits 0,1 set=wrap string 1,2 | 193 UBYTE WrapStrings; // GW-SPR#762 - bits 0,1 set=wrap string 1,2 |
194 //GW Added colour definition | 194 //GW Added colour definition |
195 U32 displayCol; | 195 U32 displayCol; |
196 | 196 |
197 int dlgType; //Type of popup | 197 int dlgType; //Type of popup |
198 T_BITMAP *bgdBitmap; //Bitmap for background image | 198 T_BITMAP *bgdBitmap; //Bitmap for background image |
199 MfwRect *dlgPos; //Position of dialog | 199 MfwRect *dlgPos; //Position of dialog |
200 MfwIcnAttr* icon_array; | 200 MfwIcnAttr* icon_array; |
201 int current_icon; | 201 int current_icon; |
202 UBYTE number_of_frames; | 202 UBYTE number_of_frames; |
203 UBYTE current_frame; | 203 UBYTE current_frame; |
204 T_MFW_HND animation_timer; | 204 T_MFW_HND animation_timer; |
205 int anim_time; | 205 int anim_time; |
206 //x0035544 Feb 07, 2006 DR:OMAPS00061467 | 206 //x0035544 Feb 07, 2006 DR:OMAPS00061467 |
207 #ifdef FF_MMI_SAT_ICON | 207 #ifdef FF_MMI_SAT_ICON |
208 T_SAT_IconData IconData; //Sat icon information | 208 T_SAT_IconData IconData; //Sat icon information |
209 #endif | 209 #endif |
210 } T_DISPLAY_DATA; | 210 } T_DISPLAY_DATA; |
219 T_MFW_HND info_win; | 219 T_MFW_HND info_win; |
220 T_MFW_HND info_tim; | 220 T_MFW_HND info_tim; |
221 T_MFW_HND info_kbd; | 221 T_MFW_HND info_kbd; |
222 T_MFW_HND info_kbd_long; | 222 T_MFW_HND info_kbd_long; |
223 T_MFW_HND icon; | 223 T_MFW_HND icon; |
224 /* | 224 /* |
225 * animation fields | 225 * animation fields |
226 */ | 226 */ |
227 UBYTE number_of_frames; | 227 UBYTE number_of_frames; |
228 UBYTE current_frame; | 228 UBYTE current_frame; |
229 T_MFW_HND anim_time; | 229 T_MFW_HND anim_time; |
230 MfwIcnAttr *icon_array; | 230 MfwIcnAttr *icon_array; |
231 MfwIcnAttr *current_icon; | 231 MfwIcnAttr *current_icon; |
232 T_MFW_HND animation_timer; | 232 T_MFW_HND animation_timer; |
233 | 233 |
234 /* | 234 /* |
235 * internal data | 235 * internal data |
236 */ | 236 */ |
237 char *TextString; | 237 char *TextString; |
238 USHORT LeftSoftKey; | 238 USHORT LeftSoftKey; |
239 USHORT RightSoftKey; | 239 USHORT RightSoftKey; |
240 char *LSKString; // SH - text for left soft key | 240 char *LSKString; // SH - text for left soft key |
241 char *RSKString; // SH - text for right soft key | 241 char *RSKString; // SH - text for right soft key |
242 BOOL SoftKeyStrings; // SH - TRUE if using text rather than IDs for soft keys | 242 BOOL SoftKeyStrings; // SH - TRUE if using text rather than IDs for soft keys |
243 UBYTE WrapStrings; // GW - bits 0,1 set=wrap string 1,2 | 243 UBYTE WrapStrings; // GW - bits 0,1 set=wrap string 1,2 |
244 ULONG Time; | 244 ULONG Time; |
245 T_MFW_EVENT KeyEvents; | 245 T_MFW_EVENT KeyEvents; |
246 USHORT TextId; | 246 USHORT TextId; |
247 USHORT Identifier; | 247 USHORT Identifier; |
248 char * TextString2; | 248 char * TextString2; |
249 USHORT TextId2; | 249 USHORT TextId2; |
250 T_VOID_FUNC Callback; | 250 T_VOID_FUNC Callback; |
251 | 251 |
252 U32 dlgCol; | 252 U32 dlgCol; |
253 U32 dlgType; | 253 U32 dlgType; |
254 T_BITMAP *dlgBgdBitmap; | 254 T_BITMAP *dlgBgdBitmap; |
255 int dlgSkFormat; | 255 int dlgSkFormat; |
256 //x0035544 Feb 07, 2006 DR:OMAPS00061467 | 256 //x0035544 Feb 07, 2006 DR:OMAPS00061467 |
257 #ifdef FF_MMI_SAT_ICON | 257 #ifdef FF_MMI_SAT_ICON |
258 T_SAT_IconData IconData; //Sat icon information | 258 T_SAT_IconData IconData; //Sat icon information |
259 #endif | 259 #endif |
260 } T_dialog_info; | 260 } T_dialog_info; |
261 | 261 |
262 typedef struct | 262 typedef struct |
263 { | 263 { |
264 USHORT TitleTextId; | 264 USHORT TitleTextId; |
265 char * TextString; | 265 char * TextString; |
266 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | 266 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ |
267 T_ED_ATTR EditorAttrScroll; | 267 T_ED_ATTR EditorAttrScroll; |
268 #else /* NEW_EDITOR */ | 268 #else /* NEW_EDITOR */ |
269 MfwEdtAttr EdtAttrScroll; | 269 MfwEdtAttr EdtAttrScroll; |
270 #endif /* NEW_EDITOR */ | 270 #endif /* NEW_EDITOR */ |
271 USHORT LeftSoftKey; | 271 USHORT LeftSoftKey; |
272 USHORT RightSoftKey; | 272 USHORT RightSoftKey; |
273 ULONG Time; | 273 ULONG Time; |
274 T_MFW_EVENT KeyEvents; | 274 T_MFW_EVENT KeyEvents; |
344 DIALOGS_REASON_CLEARKEY | 344 DIALOGS_REASON_CLEARKEY |
345 }DialogReasons; | 345 }DialogReasons; |
346 | 346 |
347 // end c018 rsa | 347 // end c018 rsa |
348 #endif | 348 #endif |
349 | |
350 | |
351 |