diff src/ui/bmi/AUISymbol.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/AUISymbol.c	Sun Nov 08 05:12:05 2020 +0000
+++ b/src/ui/bmi/AUISymbol.c	Sun Nov 08 06:39:16 2020 +0000
@@ -2,39 +2,39 @@
 
 					CONDAT (UK)
 
-********************************************************************************                                                                              
+********************************************************************************
 
  This software product is the property of Condat (UK) Ltd and may not be
- disclosed to any third party without the express permission of the owner.                                 
-                                                                              
+ disclosed to any third party without the express permission of the owner.
+
 ********************************************************************************
 
- $Project name:	Basic MMI                                                      
- $Project code:	BMI                                                            
+ $Project name:	Basic MMI
+ $Project code:	BMI
  $Module:		MMI
  $File:		    AUISymbol.c
- $Revision:		1.0                                                       
-                                                                              
- $Author:		Condat(UK)                                                         
- $Date:		                                                         
-                                                                               
+ $Revision:		1.0
+
+ $Author:		Condat(UK)
+ $Date:
+
 ********************************************************************************
-                                                                              
+
  Description: Symbol screen for AUI editor
 
-  
+
 
 ********************************************************************************
 
  $History: AUISymbol.c
 
 	Mar 23, 2005  REF: CRR 28490  xnkulkar
-	Description:  Golite- 5-way navigation behaves wrongly while selecting special characters 
-			   in the text editor screen.The background screen goes blank when the special 
+	Description:  Golite- 5-way navigation behaves wrongly while selecting special characters
+			   in the text editor screen.The background screen goes blank when the special
 			   characters screen comes up.
-	Solution:   Commented 'dspl_ClearAll()' to make the behaviour consistent with normal variant. 
+	Solution:   Commented 'dspl_ClearAll()' to make the behaviour consistent with normal variant.
 
-	   
+
  $End
   // Issue Number : SPR#12817 on 26/03/04 by Deepa M.D.
 
@@ -152,11 +152,11 @@
  $Function:    	AUI_symbol_Destroy
 
  $Description:	Destroy thesymbol screen
- 
+
  $Returns:		None.
 
  $Arguments:	window handle
- 
+
 *******************************************************************************/
 
 void AUI_symbol_Destroy (T_MFW_HND window)
@@ -167,13 +167,13 @@
     TRACE_FUNCTION ("AUI_symbol_Destroy()");
 
     /* Send character to editor window */
-    
-	SEND_EVENT (data->parent, data->return_event, (SHORT)data->output_symbol, NULL); 
-    
+
+	SEND_EVENT (data->parent, data->return_event, (SHORT)data->output_symbol, NULL);
+
     if (data)
-	{   /*SPR 2520, need to destroy ATB editor*/ 
+	{   /*SPR 2520, need to destroy ATB editor*/
 		ATB_edit_Destroy( data->editor);
-		
+
 		/* Delete WIN Handler */
 		win_delete (data->win);
 
@@ -193,21 +193,21 @@
  $Function:    	AUI_symbol_Start
 
  $Description:	Starts the symbol screen
- 
+
  $Returns:		handle
 
  $Arguments:	parent window, editor data
- 
+
 *******************************************************************************/
 T_MFW_HND AUI_symbol_Start (T_MFW_HND parent, USHORT return_event)
 {
     T_MFW_HND win;
-  
+
 
     TRACE_FUNCTION ("AUI_symbol_Start()");
 
     win = AUI_symbol_Create (parent);
-	
+
     if (win NEQ NULL)
 	{
 	    SEND_EVENT (win, EDITOR_INIT, return_event, 0);
@@ -221,11 +221,11 @@
  $Function:    	LatinEditorcreate
 
  $Description:	Creation of a symbol screen
- 
+
  $Returns:		handle of new window
 
  $Arguments:	parent window
- 
+
 *******************************************************************************/
 
 static T_MFW_HND AUI_symbol_Create (T_MFW_HND  parent)
@@ -243,7 +243,7 @@
     {
         return NULL;
     }
- 
+
      /* Connect the dialog data to the MFW-window */
 
 	data->mmi_control.dialog  = (T_DIALOG_FUNC)AUI_symbol_ExecCb;
@@ -251,7 +251,7 @@
 	data->parent			= parent;
 	win						= ((T_MFW_HDR *)data->win)->data;
 	win->user				= (void *)data;
-    		
+
 	return data->win;
 }
 
@@ -261,11 +261,11 @@
  $Function:    	AUI_symbol_ExecCb
 
  $Description:	handles events for symbol window
- 
+
  $Returns:		None.
 
  $Arguments:	window, event, value, editor data
- 
+
 *******************************************************************************/
 
 static void AUI_symbol_ExecCb (T_MFW_HND win, USHORT event, USHORT value, void *parameter)
@@ -281,7 +281,7 @@
 	/*SPR 1955, replaced £ sign with our ASCII code for it*/
 	/*SPR2175, added previously un-enterable symbols into symbol table*/
 	static char symStr[] = ". , ? ! : ; - + # * ( ) \' \" _ @ & $ \x9C % / < > = \x8F \x86 \xA5 \xA4 \x2 \x7 \x4 \x9D \xe8 \xE2 \xEF \xEA \xE3 \x5 \xe4 \xe9 \xF0 \x92 \x91 \x01 \xAD \xA8 \x06";
-  
+
     TRACE_FUNCTION ("AUI_symbol_ExecCb()");
 
     switch (event)
@@ -290,25 +290,25 @@
 			/* Get the return event that has been passed */
 
 			data->return_event = value;
-			
+
             /* Create the keyboard handler */
             data->kbd	= kbdCreate (data->win, KEY_ALL,(T_MFW_CB)AUI_symbol_KbdCb);
 
             /* Initialise editor variables */
-            
+
         	AUI_edit_SetDefault(&data->editor_data);
         	AUI_edit_SetDisplay(&data->editor_data, ZONE_MIDDLE_EDITOR, COLOUR_EDITOR_XX, EDITOR_FONT);
 			AUI_edit_SetBuffer(&data->editor_data, ATB_DCS_ASCII, (UBYTE *)symStr, strlen(symStr)+1);
 			AUI_edit_SetMode(&data->editor_data, ED_MODE_ALPHA, ED_CURSOR_BLOCK);
 			data->editor  = ATB_edit_Create(&data->editor_data.editor_attr,0);
-            ATB_edit_Init(data->editor);  
-                             
+            ATB_edit_Init(data->editor);
+
 		   	ATB_edit_Char(data->editor, ctrlTop, TRUE);
             win_show(data->win);
 			break;
-      
+
         case EDITOR_DEINIT:
-			AUI_symbol_Destroy (data->win);   
+			AUI_symbol_Destroy (data->win);
             break;
 
         default:
@@ -322,11 +322,11 @@
  $Function:    	AUI_symbol_WinCb
 
  $Description:	Editor window event handler.
- 
+
  $Returns:		status int
 
  $Arguments:	event, window
- 
+
 *******************************************************************************/
 static int AUI_symbol_WinCb (T_MFW_EVENT event, T_MFW_WIN * win)
 {
@@ -338,32 +338,32 @@
 	{
 		return MFW_EVENT_CONSUMED;
 	}
-   
+
     switch (event)
 	{
         case E_WIN_VISIBLE: /* window is visible  */
             if (win->flags & E_WIN_VISIBLE)
             {
 // Mar 23, 2005  REF: CRR 28490  xnkulkar
-// Description:  Golite- 5-way navigation behaves wrongly while selecting special characters 
-//			   in the text editor screen.The background screen goes blank when the special 
+// Description:  Golite- 5-way navigation behaves wrongly while selecting special characters
+//			   in the text editor screen.The background screen goes blank when the special
 //			   characters screen comes up.
-// Solution:   Commented 'dspl_ClearAll()' to make the behaviour consistent with normal variant. 
+// Solution:   Commented 'dspl_ClearAll()' to make the behaviour consistent with normal variant.
 //#ifndef COLOURDISPLAY
                 /* Clear Screen */
 //                dspl_ClearAll();
 //#endif
 
                 /* Print the information */
-				ATB_edit_Show(data->editor); 
-			
+				ATB_edit_Show(data->editor);
+
 			// change by Sasken ( Deepa M D) on March 26th 2004
 			// Issue Number : MMI-SPR-12817
 			// Subject: Wrong softkey in the symbol table.
-			// Bug : While selecting the symbols in the editor 
-			// for the sms write screen, the softkey dispalyed 
+			// Bug : While selecting the symbols in the editor
+			// for the sms write screen, the softkey dispalyed
 			// was "Options" instead of "Select"
-			// Solution: Commenting the compilation flags COLOURDISPLAY.	
+			// Solution: Commenting the compilation flags COLOURDISPLAY.
 //#ifndef COLOURDISPLAY
                 /* Print the softkeys */
 				displaySoftKeys(TxtSoftSelect, TxtSoftBack);
@@ -382,11 +382,11 @@
  $Function:    	AUI_symbol__kbd_cb
 
  $Description:	Symbol screen keyboard event handler
- 
+
  $Returns:		None.
 
  $Arguments:	event, keyborad data
- 
+
 *******************************************************************************/
 
 static int AUI_symbol_KbdCb (T_MFW_EVENT event, T_MFW_KBD *keyboard)
@@ -400,9 +400,9 @@
     switch (keyboard->code)
     {
     /* Use left and right keys in colour display, not up and down */
-    
+
 #ifdef COLOURDISPLAY
-		case KCD_MNURIGHT: 
+		case KCD_MNURIGHT:
             ATB_edit_Char(data->editor,ctrlRight, FALSE);
             ATB_edit_Char(data->editor,ctrlRight, TRUE);
             ATB_edit_Show(data->editor);
@@ -414,23 +414,23 @@
         	ATB_edit_Show(data->editor);
             break;
 
-		case KCD_MNUUP: 
+		case KCD_MNUUP:
             ATB_edit_Char(data->editor,ctrlUp, TRUE);
             ATB_edit_Show(data->editor);
             break;
 
-        case KCD_MNUDOWN:           
+        case KCD_MNUDOWN:
           	ATB_edit_Char(data->editor,ctrlDown, TRUE);
         	ATB_edit_Show(data->editor);
             break;
 #else
-        case KCD_MNUUP: 
+        case KCD_MNUUP:
             ATB_edit_Char(data->editor,ctrlRight, FALSE);
             ATB_edit_Char(data->editor,ctrlRight, TRUE);
             ATB_edit_Show(data->editor);
             break;
 
-        case KCD_MNUDOWN:           
+        case KCD_MNUDOWN:
           	ATB_edit_Char(data->editor,ctrlLeft, FALSE);
           	ATB_edit_Char(data->editor,ctrlLeft, TRUE);
         	ATB_edit_Show(data->editor);
@@ -455,15 +455,15 @@
     }
 
 	/* If we've landed on a space or an end-of-string, move cursor left */
-	
+
 	if ( ( ATB_edit_GetCursorChar(data->editor, 0)==UNICODE_SPACE
 		|| ATB_edit_GetCursorChar(data->editor, 0)==UNICODE_EOLN )
 		&& data->editor->cursor.pos>0 )
 	{
 			ATB_edit_Char(data->editor, ctrlLeft, TRUE);
-//  Apr 27, 2004        REF: CRR MMI-SPR-12353  Rashmi C N(Sasken) 
-//		When we encounter a white space the coordinates were updated but not the screen, hence an ATB_edit_Show is needed at this point  
-		 ATB_edit_Show(data->editor);		
-	}			
+//  Apr 27, 2004        REF: CRR MMI-SPR-12353  Rashmi C N(Sasken)
+//		When we encounter a white space the coordinates were updated but not the screen, hence an ATB_edit_Show is needed at this point
+		 ATB_edit_Show(data->editor);
+	}
     return MFW_EVENT_CONSUMED;
 }