[ecore_imf] remove whitespace
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 4 Jan 2011 07:03:26 +0000 (16:03 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 4 Jan 2011 07:03:26 +0000 (16:03 +0900)
src/lib/ecore_imf/Ecore_IMF.h
src/lib/ecore_imf/ecore_imf_context.c

index f99799e..68a35ca 100644 (file)
@@ -55,7 +55,7 @@ extern "C" {
 #endif
 
    /* ecore_imf_context_input_panel_event_callback_add() flag */
-   typedef enum 
+   typedef enum
      {
         ECORE_IMF_INPUT_PANEL_STATE_EVENT,              /**< Input Panel STATE Event */
         ECORE_IMF_INPUT_PANEL_MODE_EVENT,               /**< Input Panel MODE Event */
@@ -78,14 +78,14 @@ extern "C" {
         ECORE_IMF_INPUT_PANEL_EVENT_INVALID
      } Ecore_IMF_Input_Panel_Event;
 
-   typedef enum 
+   typedef enum
      {
         ECORE_IMF_INPUT_PANEL_STATE_SHOW,         /**< Show Input panel */
         ECORE_IMF_INPUT_PANEL_STATE_HIDE,         /**< Hide Input panel */
         ECORE_IMF_INPUT_PANEL_STATE_INVALID
      } Ecore_IMF_Input_Panel_State;
 
-   typedef enum 
+   typedef enum
      {
         ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL,          /**< Default 4x4 layout */
         ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER,          /**< Number layout */
@@ -93,7 +93,7 @@ extern "C" {
         ECORE_IMF_INPUT_PANEL_LAYOUT_URL,             /**< URL layout */
         ECORE_IMF_INPUT_PANEL_LAYOUT_PHONENUMBER,     /**< Phone Number layout */
         ECORE_IMF_INPUT_PANEL_LAYOUT_IP,              /**< IP layout */
-        ECORE_IMF_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */     
+        ECORE_IMF_INPUT_PANEL_LAYOUT_MONTH,           /**< Month layout */
         ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY,      /**< Number Only layout */
         ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_1 = 100,  /* Reserved for future use */
         ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_2,
@@ -104,7 +104,7 @@ extern "C" {
         ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_7,
         ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_8,
         ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_9,
-        ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_10,        
+        ECORE_IMF_INPUT_PANEL_LAYOUT_CUSTOM_10,
         ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID
      } Ecore_IMF_Input_Panel_Layout;
 
@@ -120,7 +120,7 @@ extern "C" {
         ECORE_IMF_KEYBOARD_LANG_ALPHABET   /**< Alphabet */
      } Ecore_IMF_Keyboard_Lang;
 
-   typedef enum 
+   typedef enum
      {
         ECORE_IMF_AUTOCORRECTION_DEFAULT,
         ECORE_IMF_AUTOCORRECTION_NO,
@@ -131,11 +131,11 @@ extern "C" {
    typedef enum
      {
         ECORE_IMF_INPUT_PANEL_CAPS_MODE_OFF,   /**< Off */
-        ECORE_IMF_INPUT_PANEL_CAPS_MODE_ON,    /**< On */ 
+        ECORE_IMF_INPUT_PANEL_CAPS_MODE_ON,    /**< On */
         ECORE_IMF_INPUT_PANEL_CAPS_MODE_LOCK,  /**< Lock */
      } Ecore_IMF_Input_Panel_Caps_Mode;
 
-   typedef enum 
+   typedef enum
      {
         ECORE_IMF_INPUT_PANEL_ORIENT_NONE,
         ECORE_IMF_INPUT_PANEL_ORIENT_90_CW, /* Clockwise */
@@ -143,14 +143,14 @@ extern "C" {
         ECORE_IMF_INPUT_PANEL_ORIENT_90_CCW /* CounterClockwise */
      } Ecore_IMF_Input_Panel_Orient;
 
-   typedef struct 
+   typedef struct
      {
         int layout_idx;
         int key_idx;
         Eina_Bool disabled;
      } Disable_Key_Item;
 
-   typedef struct 
+   typedef struct
      {
         int layout_idx;
         int key_idx;
@@ -401,7 +401,7 @@ extern "C" {
      {
         Ecore_IMF_Preedit_Type preedit_type;
         unsigned int start_index;
-        unsigned int end_index; 
+        unsigned int end_index;
      };
 
    struct _Ecore_IMF_Context_Class
@@ -429,7 +429,7 @@ extern "C" {
         Ecore_IMF_Input_Panel_Layout (*input_panel_layout_get)         (Ecore_IMF_Context *ctx);
 
         void (*input_panel_language_set)       (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang);
-        Ecore_IMF_Input_Panel_Lang (*input_panel_language_get) (Ecore_IMF_Context *ctx); 
+        Ecore_IMF_Input_Panel_Lang (*input_panel_language_get) (Ecore_IMF_Context *ctx);
 
         void (*input_panel_imdata_set)         (Ecore_IMF_Context *ctx, const char* data, int len);
         void (*input_panel_imdata_get)         (Ecore_IMF_Context *ctx, char* data, int *len);
@@ -592,7 +592,7 @@ extern "C" {
     * @param lang see Ecore_IMF_Input_Panel_Lang
     * @ingroup Ecore_IMF_Context_IMControl_Group
     * THIS API IS NOT SUPPORTED NOW
-    */    
+    */
    EAPI void ecore_imf_context_input_panel_language_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang);
 
    /**
@@ -610,7 +610,7 @@ extern "C" {
     * @param lang see Ecore_IMF_Input_Panel_Lang
     * @ingroup Ecore_IMF_Context_IMControl_Group
     * THIS API IS NOT SUPPORTED NOW
-    */    
+    */
    EAPI void ecore_imf_context_keyboard_language_set (Ecore_IMF_Context *ctx, Ecore_IMF_Keyboard_Lang lang);
 
    /**
@@ -619,9 +619,9 @@ extern "C" {
     * @return Ecore_IMF_Input_Panel_Lang
     * @ingroup Ecore_IMF_Context_IMControl_Group
     * THIS API IS NOT SUPPORTED NOW
-    */    
+    */
    EAPI Ecore_IMF_Keyboard_Lang ecore_imf_context_keyboard_language_get (Ecore_IMF_Context *ctx);
-   
+
    /**
     * Get ISE Language of given ISE. -- Not supported for now --
     * @ingroup Ecore_IMF_Context_IMControl_Group
@@ -665,7 +665,7 @@ extern "C" {
     *     }
     * }
     * @endcode
-    */    
+    */
    EAPI void ecore_imf_context_input_panel_imdata_set       (Ecore_IMF_Context *ctx, const char * data, int len);
 
    /**
@@ -726,7 +726,7 @@ extern "C" {
     *     }
     * }
     * @endcode
-    */    
+    */
    EAPI void ecore_imf_context_input_panel_use_effect_set           (Ecore_IMF_Context *ctx, Eina_Bool use_effect);
 
    /**
@@ -757,7 +757,7 @@ extern "C" {
     *     return use_effect;
     * }
     * @endcode
-    */    
+    */
    EAPI Eina_Bool ecore_imf_context_input_panel_use_effect_get      (Ecore_IMF_Context *ctx);
 
    /**
@@ -821,7 +821,7 @@ extern "C" {
     *     }
     * }
     * @endcode
-    */    
+    */
    EAPI void ecore_imf_context_input_panel_private_key_set  (Ecore_IMF_Context *ctx, int layout_index, int key_index, const char *img_path, const char* label, int key_value, const char* key_string);
 
    EAPI Eina_List *ecore_imf_context_input_panel_private_key_list_get  (Ecore_IMF_Context *ctx);
@@ -953,8 +953,8 @@ extern "C" {
     *     }
     * }
     */
-    
-   EAPI Ecore_IMF_Input_Panel_Orient ecore_imf_context_input_panel_orient_get (Ecore_IMF_Context *ctx);   
+
+   EAPI Ecore_IMF_Input_Panel_Orient ecore_imf_context_input_panel_orient_get (Ecore_IMF_Context *ctx);
 
    /**
     * Get name of current active ISE.
@@ -1077,7 +1077,7 @@ extern "C" {
     *     //do imf irrelated things
     * }
     * @endcode
-    */    
+    */
    EAPI int ecore_imf_context_ise_get_iselist (Ecore_IMF_Context *ctx, char*** iselist);
 
    /**
@@ -1107,7 +1107,7 @@ extern "C" {
     * @endcode
     */
    EAPI Ecore_IMF_Input_Panel_State ecore_imf_context_input_panel_state_get          (Ecore_IMF_Context *ctx);
-   
+
    /**
     * Application can register a callback function which will be called if there is change in ise state,language,mode etc. 
     * To use this API application should include Ecore_IMF.h header file.
index b817cd8..8bcea57 100644 (file)
@@ -632,7 +632,7 @@ ecore_imf_context_new(const Ecore_IMF_Context_Class *ctxc)
    ctx->input_panel_orient = ECORE_IMF_INPUT_PANEL_ORIENT_NONE;
    ctx->use_effect = EINA_TRUE;
    ctx->callbacks = NULL;
-   
+
    return ctx;
 }
 
@@ -937,7 +937,7 @@ ecore_imf_context_input_panel_language_set (Ecore_IMF_Context *ctx, Ecore_IMF_In
      }
 
    if (ctx->klass->input_panel_language_set) ctx->klass->input_panel_language_set(ctx, lang);
-   ctx->input_panel_lang = lang;   
+   ctx->input_panel_lang = lang;
 }
 
 EAPI Ecore_IMF_Input_Panel_Lang
@@ -967,9 +967,9 @@ ecore_imf_context_ise_get_ise_language (Ecore_IMF_Context *ctx, const char* ise_
         return -1;
      }
 
-   if (ctx->klass->ise_get_ise_language) 
+   if (ctx->klass->ise_get_ise_language)
        return ctx->klass->ise_get_ise_language(ctx, ise_name, langlist);
-   else 
+   else
       return -1;
 }
 
@@ -1020,7 +1020,7 @@ ecore_imf_context_ise_set_isf_language (Ecore_IMF_Context *ctx, const char* lang
 }
 
 EAPI void
-ecore_imf_context_input_panel_imdata_set (Ecore_IMF_Context *ctx, const char * data, int len)
+ecore_imf_context_input_panel_imdata_set (Ecore_IMF_Context *ctx, const char *data, int len)
 {
    if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
      {
@@ -1113,7 +1113,7 @@ ecore_imf_context_input_panel_private_key_set (Ecore_IMF_Context *ctx, int layou
 
    EINA_LIST_FOREACH(ctx->private_key_list, l, key_item)
      {
-        if (key_item && key_item->layout_idx == layout_index && 
+        if (key_item && key_item->layout_idx == layout_index &&
             key_item->key_idx == key_index)
           {
              // if exist in the list
@@ -1175,7 +1175,7 @@ ecore_imf_context_input_panel_private_key_list_get  (Ecore_IMF_Context *ctx)
    return ctx->private_key_list;
 }
 
-EAPI void  
+EAPI void
 ecore_imf_context_input_panel_key_disabled_set (Ecore_IMF_Context *ctx, int layout_index, int key_index, Eina_Bool disabled)
 {
    Disable_Key_Item *key_item;
@@ -1240,7 +1240,7 @@ ecore_imf_context_input_panel_layout_get  (Ecore_IMF_Context *ctx)
         return ECORE_IMF_INPUT_PANEL_LAYOUT_INVALID;
      }
 
-   if (ctx->klass->input_panel_layout_get ) 
+   if (ctx->klass->input_panel_layout_get)
      {
         //     ctx->klass->input_panel_layout_get (ctx, &layout);
         return ctx->input_panel_layout;
@@ -1286,7 +1286,7 @@ ecore_imf_context_input_panel_orient_get (Ecore_IMF_Context *ctx)
    return ctx->input_panel_orient;
 }
 
-EAPI void      
+EAPI void
 ecore_imf_context_ise_get_active_isename (Ecore_IMF_Context *ctx, char* name)
 {
    if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
@@ -1303,8 +1303,8 @@ ecore_imf_context_ise_get_active_isename (Ecore_IMF_Context *ctx, char* name)
 
    if (ctx->klass->ise_get_active_isename) ctx->klass->ise_get_active_isename(ctx, name);
 }
-    
-EAPI void      
+
+EAPI void
 ecore_imf_context_ise_set_active_ise_by_name (Ecore_IMF_Context *ctx, const char* name)
 {
    if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
@@ -1312,7 +1312,7 @@ ecore_imf_context_ise_set_active_ise_by_name (Ecore_IMF_Context *ctx, const char
         ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,"ecore_imf_context_ise_set_active_ise_by_name");
         return;
      }
-   
+
    if (!name)
      {
         printf ("input parameters error!!! \n");
@@ -1321,8 +1321,8 @@ ecore_imf_context_ise_set_active_ise_by_name (Ecore_IMF_Context *ctx, const char
 
    if (ctx->klass->ise_set_active_ise_by_name) ctx->klass->ise_set_active_ise_by_name(ctx, name);
 }
-    
-EAPI void      
+
+EAPI void
 ecore_imf_context_ise_set_active_ise_by_uuid (Ecore_IMF_Context *ctx, const char* uuid)
 {
    if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
@@ -1341,7 +1341,7 @@ ecore_imf_context_ise_set_active_ise_by_uuid (Ecore_IMF_Context *ctx, const char
 }
 
 EAPI int
-ecore_imf_context_ise_get_iselist (Ecore_IMF_Context *ctx,  char*** iselist)
+ecore_imf_context_ise_get_iselist (Ecore_IMF_Context *ctx, char*** iselist)
 {
    if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
      {
@@ -1349,9 +1349,9 @@ ecore_imf_context_ise_get_iselist (Ecore_IMF_Context *ctx,  char*** iselist)
         return -1;
      }
 
-   if (ctx->klass->ise_get_iselist) 
+   if (ctx->klass->ise_get_iselist)
       return ctx->klass->ise_get_iselist(ctx, iselist);
-   else 
+   else
       return -1;
 }
 
@@ -1365,14 +1365,17 @@ ecore_imf_context_input_panel_state_get (Ecore_IMF_Context *ctx)
         return ECORE_IMF_INPUT_PANEL_STATE_INVALID;
      }
 
-   if (ctx->klass->input_panel_state_get) 
+   if (ctx->klass->input_panel_state_get)
       state = ctx->klass->input_panel_state_get(ctx);
 
-   return state;   
+   return state;
 }
 
 EAPI void
-ecore_imf_context_input_panel_event_callback_add (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Event type, void (*pEventCallBackFunc) (void *data, Ecore_IMF_Context *ctx, int value), const void *data)
+ecore_imf_context_input_panel_event_callback_add (Ecore_IMF_Context *ctx,
+                                                  Ecore_IMF_Input_Panel_Event type,
+                                                  void (*pEventCallBackFunc) (void *data, Ecore_IMF_Context *ctx, int value),
+                                                  const void *data)
 {
    if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
      {
@@ -1380,14 +1383,16 @@ ecore_imf_context_input_panel_event_callback_add (Ecore_IMF_Context *ctx, Ecore_
         return;
      }
 
-   if (ctx->klass->input_panel_event_callback_add) 
+   if (ctx->klass->input_panel_event_callback_add)
      {
         ctx->klass->input_panel_event_callback_add(ctx, type, pEventCallBackFunc, data);
      }
 }
 
 EAPI void
-ecore_imf_context_input_panel_event_callback_del (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Event type, void (*pEventCallBackFunc) (void *data, Ecore_IMF_Context *ctx, int value))
+ecore_imf_context_input_panel_event_callback_del (Ecore_IMF_Context *ctx,
+                                                  Ecore_IMF_Input_Panel_Event type,
+                                                  void (*pEventCallBackFunc) (void *data, Ecore_IMF_Context *ctx, int value))
 {
    if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
      {
@@ -1395,7 +1400,7 @@ ecore_imf_context_input_panel_event_callback_del (Ecore_IMF_Context *ctx, Ecore_
         return;
      }
 
-   if (ctx->klass->input_panel_event_callback_del) 
+   if (ctx->klass->input_panel_event_callback_del)
      {
         ctx->klass->input_panel_event_callback_del(ctx, type, pEventCallBackFunc);
      }
@@ -1416,7 +1421,8 @@ ecore_imf_context_input_panel_move (Ecore_IMF_Context *ctx, int x, int y)
 }
 
 EAPI void
-ecore_imf_context_input_panel_caps_mode_set (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Caps_Mode mode)
+ecore_imf_context_input_panel_caps_mode_set (Ecore_IMF_Context *ctx,
+                                             Ecore_IMF_Input_Panel_Caps_Mode mode)
 {
    if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
      {