diff src/ui/bmi/AUICalcEditor.c @ 92:c0052fe355d3

src/ui/bmi/*.[ch]: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 08 Nov 2020 06:39:16 +0000
parents 67bfe9f274f6
children 70ea7526b59e
line wrap: on
line diff
--- a/src/ui/bmi/AUICalcEditor.c	Sun Nov 08 05:12:05 2020 +0000
+++ b/src/ui/bmi/AUICalcEditor.c	Sun Nov 08 06:39:16 2020 +0000
@@ -30,7 +30,7 @@
 
  	xrashmic 20 Oct, 2005 MMI-SPR-33845
 	To display BACK softkey when no more character are left in the calculator editor
-	
+
   14/11/02      Original Condat(UK) BMI version.
  $End
 
@@ -167,7 +167,7 @@
  $Function:		AUI_calc_Create
 
  $Description:	Create the Calc editor.
- 
+
  $Returns:		Pointer to the editor's window.
 
  $Arguments:	parent	-	The parent window.
@@ -191,7 +191,7 @@
     }
 
 	/* Connect the dialog data to the MFW-window */
-     
+
     data->mmi_control.dialog	= (T_DIALOG_FUNC)AUI_calc_ExecCb;				/* Setup the destination for events */
     data->mmi_control.data		= data;
     data->parent				= parent;
@@ -199,14 +199,14 @@
     win_data->user				= (void *)data;
 
  	data->kbd					= kbd_create(data->win, KEY_ALL,(T_MFW_CB)AUI_calc_KbdCb);
-	data->kbd_long				= kbd_create(data->win, KEY_ALL|KEY_LONG,(T_MFW_CB)AUI_calc_KbdLongCb); 
+	data->kbd_long				= kbd_create(data->win, KEY_ALL|KEY_LONG,(T_MFW_CB)AUI_calc_KbdLongCb);
 	data->editor				= ATB_edit_Create(&data->editor_data.editor_attr,0);
 
 	data->editor_data = *editor_data;
 	data->entry_data = AUI_entry_Create(data->win, data->editor, E_CALC_UPDATE);
 
 	SEND_EVENT(data->win, E_CALC_INIT, 0, 0);
-	
+
     /* Return window handle */
 
     return data->win;
@@ -233,7 +233,7 @@
     if (data)
     {
 		AUI_entry_Destroy(data->entry_data);
-		
+
         win_delete (data->win);
 
 		/* Free memory allocated to store result */
@@ -244,11 +244,11 @@
 		}
 
 		/* Free editor memory */
-				
+
 		ATB_edit_Destroy(data->editor);
 		FREE_MEMORY ((void *)data, sizeof (T_AUI_CALC_DATA));
     }
-    
+
     return;
 }
 
@@ -258,11 +258,11 @@
  $Function:    	AUI_calc_ExecCb
 
  $Description:	Dialog function for Calc editor.
- 
+
  $Returns:		None.
 
  $Arguments:	None.
- 
+
 *******************************************************************************/
 
 static void AUI_calc_ExecCb(T_MFW_HND win, USHORT event, SHORT value, void *parameter)
@@ -276,13 +276,13 @@
     USHORT				Identifier	= data->editor_data.Identifier;
     T_AUI_EDIT_CB		Callback	= data->editor_data.Callback;
     UBYTE				destroyEditor = data->editor_data.destroyEditor;
-	
+
     TRACE_FUNCTION ("AUI_calc_ExecCb()");
 
     switch (event)
     {
     	/* Initialise */
-    
+
         case E_CALC_INIT:
         	TRACE_EVENT("E_CALC_INIT");
         	ATB_edit_Init(data->editor);
@@ -316,7 +316,7 @@
 			}
 
 			/* If title exists, get its dcs and length */
-			
+
 			if (data->haveTitle)
 			{
 				if (data->title.data[0]==0x80)
@@ -334,14 +334,14 @@
 				{
 					data->title.dcs = ATB_DCS_ASCII;
 				}
-				
+
 				data->title.len = ATB_string_Length(&data->title);
 			}
-	
+
         	/* Check to see if number already has decimal point */
 
 			data->hasDecimalPoint = FALSE;
-			
+
 			for (textIndex = 0; textIndex<data->editor->attr->text.len; textIndex++)
 			{
 				if (ATB_string_GetChar(&data->editor->attr->text, textIndex)==UNICODE_FULLSTOP)
@@ -364,10 +364,10 @@
 
 			if (Callback)
     	    	(Callback) (parent_win, Identifier, value);
-    	    	
+
 			if (destroyEditor)
 				AUI_calc_Destroy(data->win);
-				
+
 			break;
 
    	}
@@ -397,10 +397,10 @@
 //    USHORT				titleLen;   // RAVI
 
 	TRACE_EVENT("AUI_calc_WinCb");
-	
+
 	if (!data)
 		return MFW_EVENT_CONSUMED;
-  
+
     switch(event)
     {
         case E_WIN_VISIBLE: 											/* window is visible */
@@ -422,9 +422,9 @@
 					resources_setTitleColour(COLOUR_EDITOR);
 
 					/* TITLE */
-				
+
 					dspl_Clear(0,0, SCREEN_SIZE_X-1, win_size->py-1);
-					
+
 					if (data->haveTitle)
 					{
 						ATB_display_SetFormatAttr(&format, 0, FALSE);
@@ -439,13 +439,13 @@
 						ATB_display_SetFormatAttr(&format, 0, FALSE);
 						dspl_Clear( win_size->px, win_size->py+win_size->sy,  win_size->px+win_size->sx,
 							win_size->py+win_size->sy+ATB_display_StringHeight(&data->result, &format));
-						
+
 						ATB_display_Text(win_size->px+win_size->sx-ATB_display_StringWidth(&data->result, &format),
 							win_size->py+win_size->sy,&format, &data->result);
 					}
 
 					/* Display Soft Keys */
-					//xrashmic 20 Oct, 2005 MMI-SPR-33845 
+					//xrashmic 20 Oct, 2005 MMI-SPR-33845
 					//Need to display the alternate right softkey when the editor is does not contain any character other than 0.
 					if (data->editor_data.editor_attr.text.len == data->editor_data.min_enter && (data->editor_data.editor_attr.text.data[0] == '0'))
 					{
@@ -464,7 +464,7 @@
 
 	data->editor->update = ED_UPDATE_DEFAULT;
 
-	return MFW_EVENT_CONSUMED;      
+	return MFW_EVENT_CONSUMED;
 }
 
 
@@ -487,7 +487,7 @@
 	T_MFW_WIN			*win_data	= ((T_MFW_HDR *)win)->data;
 	T_AUI_CALC_DATA		*data		= (T_AUI_CALC_DATA *)win_data->user;
 	ED_RES				result;
-  	
+
 	TRACE_FUNCTION("AUI_calc_KbdCb()");
 
    /* Suppress unwanted long keypresses */
@@ -519,7 +519,7 @@
 				win_show(data->win);
 			}
 			break;
-			
+
 		case KCD_LEFT:
 			if (data->editor_data.editor_attr.text.len < data->editor_data.min_enter)
 			{
@@ -539,7 +539,7 @@
 
 		case KCD_HUP:
 			SEND_EVENT(data->win, E_CALC_DEINIT, INFO_KCD_HUP, 0);
-			break;              
+			break;
 
 		case KCD_RIGHT:
 			/* If we're deleting the decimal point... */
@@ -549,7 +549,7 @@
 			}
 
 			/* If we've just got a zero, delete it so we can exit with next call to ATB_edit_DeleteLeft() */
-			
+
 			if (ATB_edit_GetCursorChar(data->editor, -1)==ATB_char_Unicode('0'))
 			{
 				ATB_edit_DeleteLeft(data->editor, FALSE); /* SPR#2342 - SH */
@@ -576,7 +576,7 @@
 			break;
 
 		/* 0 - 9 */
-		
+
 		case KCD_0:
 		case KCD_1:
 		case KCD_2:
@@ -598,7 +598,7 @@
 			win_show(data->win);
 			break;
 	}
-	
+
 	return MFW_EVENT_CONSUMED;
 }
 
@@ -622,7 +622,7 @@
 	T_MFW_WIN			*win_data	= ((T_MFW_HDR *)win)->data;
 	T_AUI_CALC_DATA		*data		= (T_AUI_CALC_DATA *)win_data->user;
 	ED_RES				result;
-	
+
     /* Suppress unwanted long keypresses */
 
 	 if ( data->doNextLongPress )
@@ -631,7 +631,7 @@
 		return MFW_EVENT_CONSUMED;      		/* don't do current long press */
 
 	switch (keyboard->code)
-	{        
+	{
 		case KCD_RIGHT:
 			/* Long press of RSK deletes buffer */
 			result = ATB_edit_ClearAll(data->editor);
@@ -641,7 +641,7 @@
 			{
 				AUI_entry_EditChar(data->entry_data, ATB_char_Unicode('0'), FALSE);
 			}
-			
+
 			/* If we've deleted on an empty buffer, exit editor */
 			if (result==ED_DONE)
 			{