comparison src/ui/bmi/mmiIdle.c @ 56:eabd1ac0fdb7

src/ui/bmi/mmiIdle.c: more formatting fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Oct 2020 22:14:36 +0000
parents eca2202f630f
children 0334bd34386c
comparison
equal deleted inserted replaced
55:eca2202f630f 56:eabd1ac0fdb7
946 } 946 }
947 sms_animate = 0; 947 sms_animate = 0;
948 948
949 //x0pleela 11 Apr, 2006 ER: OMAPS00075178 949 //x0pleela 11 Apr, 2006 ER: OMAPS00075178
950 //Delete the timer of battery charging 950 //Delete the timer of battery charging
951 if (battery_charging_animate) 951 if (battery_charging_animate)
952 { 952 {
953 timStop(battery_charging_animate); 953 timStop(battery_charging_animate);
954 timDelete(battery_charging_animate); 954 timDelete(battery_charging_animate);
955 } 955 }
956 battery_charging_animate = 0; 956 battery_charging_animate = 0;
1052 data->mmi_control.data = data; 1052 data->mmi_control.data = data;
1053 win = ((T_MFW_HDR *)data->win)->data; 1053 win = ((T_MFW_HDR *)data->win)->data;
1054 win->user = (void *) data; 1054 win->user = (void *) data;
1055 1055
1056 /* 1056 /*
1057 * Create any other handler 1057 * Create any other handler
1058 */ 1058 */
1059 1059
1060 data->kbd = kbd_create (data->win,KEY_ALL|KEY_MAKE,(T_MFW_CB)idle_kbd_cb); 1060 data->kbd = kbd_create (data->win,KEY_ALL|KEY_MAKE,(T_MFW_CB)idle_kbd_cb);
1061 data->kbd_long = kbd_create (data->win,KEY_ALL|KEY_LONG,(T_MFW_CB)idle_kbd_long_cb); 1061 data->kbd_long = kbd_create (data->win,KEY_ALL|KEY_LONG,(T_MFW_CB)idle_kbd_long_cb);
1062 /* SPR#1428 - SH - New Editor changes */ 1062 /* SPR#1428 - SH - New Editor changes */
1063 #ifdef NEW_EDITOR 1063 #ifdef NEW_EDITOR
1088 // July 12, 2006 REF:DR OMAPS00081477 x0047075 1088 // July 12, 2006 REF:DR OMAPS00081477 x0047075
1089 //Fix:Assigning the sms_status_editor window handle to NULL 1089 //Fix:Assigning the sms_status_editor window handle to NULL
1090 idle_data.sms_status_edt = NULL; 1090 idle_data.sms_status_edt = NULL;
1091 #endif /* NEW_EDITOR */ 1091 #endif /* NEW_EDITOR */
1092 1092
1093 /* 1093 /*
1094 * In the new design the are created and automatically shown. 1094 * In the new design the are created and automatically shown.
1095 */ 1095 */
1096 1096
1097 winShow(data->win); 1097 winShow(data->win);
1098 data->search=FALSE; 1098 data->search=FALSE;
1099 data->missedCalls = 0; 1099 data->missedCalls = 0;
1100 //API - 23/09/02 - Emergency Call Define 1100 //API - 23/09/02 - Emergency Call Define
1118 ** CQ16435 : Set the Mfw Sat window to this value. 1118 ** CQ16435 : Set the Mfw Sat window to this value.
1119 */ 1119 */
1120 mfwSetSatIdle(data->win); 1120 mfwSetSatIdle(data->win);
1121 1121
1122 /* 1122 /*
1123 * return window handle 1123 * return window handle
1124 */ 1124 */
1125 return data->win; 1125 return data->win;
1126 } 1126 }
1127 1127
1128 1128
1129 /******************************************************************************* 1129 /*******************************************************************************
1130 1130
1192 1192
1193 1193
1194 /* 1194 /*
1195 * This function is called by the SEND_EVENT macro, when the parameter win is the idle window. the different events 1195 * This function is called by the SEND_EVENT macro, when the parameter win is the idle window. the different events
1196 * come from another mmi modules. 1196 * come from another mmi modules.
1197 */ 1197 */
1198 1198
1199 1199
1200 TRACE_FUNCTION ("idle()"); 1200 TRACE_FUNCTION ("idle()");
1201 1201
1202 switch (event) 1202 switch (event)
1248 mfwSimRestartPinEntry(); 1248 mfwSimRestartPinEntry();
1249 } 1249 }
1250 else 1250 else
1251 windowsUpdate(); 1251 windowsUpdate();
1252 } 1252 }
1253 break; 1253 break;
1254 1254
1255 case IDLE_NEW_SMS: 1255 case IDLE_NEW_SMS:
1256 // show the info about incoming sms on the idle screen 1256 // show the info about incoming sms on the idle screen
1257 idle_data.clean_screen = FALSE; 1257 idle_data.clean_screen = FALSE;
1258 /*NM, p020*/ 1258 /*NM, p020*/
1259 if(idleIsFocussed()) 1259 if(idleIsFocussed())
1260 windowsUpdate(); 1260 windowsUpdate();
1261 else if (idle_data.klck_win != NULL) 1261 else if (idle_data.klck_win != NULL)
1262 SEND_EVENT(idle_data.klck_win,IDLE_NEW_SMS,0,0); 1262 SEND_EVENT(idle_data.klck_win,IDLE_NEW_SMS,0,0);
1263 break; 1263 break;
1264
1264 case IDLE_ACTIVE_KEY_PAD_LOCKED: 1265 case IDLE_ACTIVE_KEY_PAD_LOCKED:
1265 idle_data.klck_win = idle_key_pad_locked_create(win); 1266 idle_data.klck_win = idle_key_pad_locked_create(win);
1266 windowsUpdate(); 1267 windowsUpdate();
1267 break; 1268 break;
1268 1269
1483 idStr = ""; 1484 idStr = "";
1484 } 1485 }
1485 if ((lenId > 0 ) && (lenStr >0)) 1486 if ((lenId > 0 ) && (lenStr >0))
1486 { 1487 {
1487 #ifndef LSCREEN 1488 #ifndef LSCREEN
1488
1489 txtSpace=" "; 1489 txtSpace=" ";
1490
1491 #else 1490 #else
1492 txtSpace=" "; 1491 txtSpace=" ";
1493
1494 #endif 1492 #endif
1495 lenSpace = dspl_GetTextExtent( txtSpace, 0); 1493 lenSpace = dspl_GetTextExtent( txtSpace, 0);
1496 } 1494 }
1497 else 1495 else
1498 { 1496 {