Back to index

im-sdk  12.3.91
Functions | Variables
palette_method.c File Reference
#include <stdio.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include <X11/Xlib.h>
#include <X11/Xmd.h>
#include "xaux_locale.h"
#include "xaux_common.h"
#include "xaux_ext_common.h"
#include "koinput.h"
#include "palette_aux.h"
#include "OptionConfig.h"
#include "../common/kolelog.h"
#include "aux-message.h"
#include "engine-property.h"

Go to the source code of this file.

Functions

void dummy (aux_ext_data_t *aux_ext_data)
void PaletteAux_Set_Options_Request ()
void PaletteAux_Connect_To_LE_Request ()
void PaletteAux_Lost_Focus_Request ()
static void paletteaux_notification_handler ()
void PaletteAux_Proc_LE_Set_IMEInfo_Notify ()
void PaletteAux_Proc_LE_Update_IMEInfo_Notify ()
void palette_process_le_message_switch_conversion ()
void PaletteAux_Proc_LE_Switch_IME_Notify ()
void PaletteAux_Proc_LE_Switch_QjBj_Notify ()
void PaletteAux_Proc_LE_Switch_Punct_Notify ()
void PaletteAux_Proc_LE_Change_Focus_Notify ()
void PaletteAux_Proc_LE_Set_IMEInfo_End_Notify (aux_ext_data_t *aux_ext_data)
void paletteaux_set_session_property (aux_ext_data_t *aux_ext_data)
void PaletteAux_Proc_LE_Update_KeymapInfo_Notify (aux_ext_data_t *aux_ext_data)
static void PaletteAux_Set_Selection_Owner ()
GdkFilterReturn xaux_ext_event_handler (GdkXEvent *gdk_xevent, GdkEvent *event, gpointer user_data)
int xaux_ext_register_classes (GdkWindow *window)
Bool xaux_ext_Start (xaux_class_t *xc, aux_ext_data_t *aux_ext_data, Atom atom)
Bool xaux_ext_Draw (xaux_class_t *xc, aux_ext_data_t *aux_ext_data, Atom atom)
Bool xaux_ext_Done (xaux_class_t *xc, aux_ext_data_t *aux_ext_data, Atom atom)
static void paletteaux_notification_handler (aux_ext_data_t *aux_ext_data)
void PaletteAux_Proc_LE_Set_IMEInfo_Notify (aux_ext_data_t *aux_ext_data)
void PaletteAux_Proc_LE_Update_IMEInfo_Notify (aux_ext_data_t *aux_ext_data)
void palette_process_le_message_switch_conversion (aux_ext_data_t *aux_ext_data)
int get_ime_id_by_engine_id (IMEListRec *imelist, int engine_id)
void PaletteAux_Proc_LE_Switch_IME_Notify (aux_ext_data_t *aux_ext_data)
void PaletteAux_Proc_LE_Switch_QjBj_Notify (aux_ext_data_t *aux_ext_data)
void PaletteAux_Proc_LE_Switch_Punct_Notify (aux_ext_data_t *aux_ext_data)
void PaletteAux_Proc_LE_Change_Focus_Notify (aux_ext_data_t *aux_ext_data)
void PaletteAux_Connect_To_LE_Request (int locale_id)
void PaletteAux_Switch_LE_Conversion_Request (int on)
void PaletteAux_Switch_LE_Engine_Request (int engine_id)
void paletteaux_send_switch_charset_request (int charset)
void PaletteAux_Switch_LE_QjBj_Request (int qjbj)
void PaletteAux_Change_LE_Position_Request (int x, int y)
void PaletteAux_Show_SelectAux_Request ()
void PaletteAux_Show_OptionAux_Request ()
void paletteaux_send_show_keyboardaux_request (int n_keyboard_id)
void PaletteAux_Show_LookupAux_Request ()
void PaletteAux_StartAction_Request (char *command)
 NotifyIntegerListDataToLanguageEngine (Display *display, int nIntegerCount, int *pIntegerList)
 NotifyStringListDataToLanguageEngine (Display *display, int nIntegerCount, int *pIntegerList, int nStringCount, int *pStringLen, char **pStringList)
void palette_aux_Commit_String_Request (char *commit_str)
void palette_aux_Commit_Key_Request (int nKeyCode, int nKeyChar, int nKeyStatus)

Variables

xaux_class_txc_ = 0
int im_ = 0
int ic_ = 0
xaux_class_t xaux_class
int gLocaleID = 0
Display * gDisplay = NULL
Window gWindow = 0
KOLE_property * p_engine_property = NULL
PaletteInfoRecord palettecore
gint _toolbar_window_drag_x
gint _toolbar_window_drag_y

Function Documentation

void dummy ( aux_ext_data_t aux_ext_data)

Here is the caller graph for this function:

int get_ime_id_by_engine_id ( IMEListRec imelist,
int  engine_id 
)

Definition at line 406 of file palette_method.c.

{
  int i;

  for (i = 0; i < imelist->nIME_Num; i++) {
    if (imelist->arrIME_Base[i] && 
       imelist->arrIME_Base[i]->engine_id == engine_id) 
      return(i);
  }
  return(-1);
}

Here is the caller graph for this function:

NotifyIntegerListDataToLanguageEngine ( Display *  display,
int  nIntegerCount,
int *  pIntegerList 
)

Definition at line 753 of file palette_method.c.

{
  aux_ext_data_t aux_ext_data;

  KOLE_LOG (LOGDEST_STDOUT,
           "NotifyIntegerListDataToLanguageEngine(im_:%d, ic_:%d)",
           im_, ic_);
  
#if 0
  /* This is really hack */
  if (!im_ || !ic_ || !xc_)
    return;
#endif
  
  aux_ext_data.im = im_;
  aux_ext_data.ic = ic_;
  aux_ext_data.integer_count = nIntegerCount;
  aux_ext_data.integer_list = pIntegerList;
  aux_ext_data.string_count = 0;
  aux_ext_data.string_list = NULL;
  aux_ext_data.string_ptr = NULL;
  aux_ext_data.point.x = 0;
  aux_ext_data.point.y = 0;

  xaux_ext_SetValue(display, xc_, &aux_ext_data);
  XFlush(display);
}

Here is the call graph for this function:

NotifyStringListDataToLanguageEngine ( Display *  display,
int  nIntegerCount,
int *  pIntegerList,
int  nStringCount,
int *  pStringLen,
char **  pStringList 
)

Definition at line 782 of file palette_method.c.

{
  int i;

  aux_ext_data_t aux_ext_data;
  aux_ext_string_t *p;
  
  KOLE_LOG (LOGDEST_STDOUT,
           "NotifyStringListDataToLanguageEngine(im_:%d, ic_:%d)",
           im_, ic_);
  
#if 0
  /* This is really hack */
  if (!im_ || !ic_ || !xc_)
    return;
#endif

  aux_ext_data.im = im_;
  aux_ext_data.ic = ic_;
  aux_ext_data.integer_count = nIntegerCount;
  aux_ext_data.integer_list = pIntegerList;
  aux_ext_data.point.x = 0;
  aux_ext_data.point.y = 0;

  aux_ext_data.string_count = nStringCount;
  aux_ext_data.string_ptr = NULL;

  if (nStringCount > 0) {
    aux_ext_data.string_list = (aux_ext_string_t *) calloc(nStringCount, sizeof(aux_ext_string_t));
    for (i = 0; i < nStringCount; i++) {
      aux_ext_string_t *p = &aux_ext_data.string_list[i];
      p->length = pStringLen[i];
      p->ptr = (unsigned char *) (pStringList[i]);
    }
  }

  xaux_ext_SetValue(display, xc_, &aux_ext_data);
  XFlush(display);

  free(aux_ext_data.string_list);
}

Here is the call graph for this function:

void palette_aux_Commit_Key_Request ( int  nKeyCode,
int  nKeyChar,
int  nKeyStatus 
)

Definition at line 856 of file palette_method.c.

{
    int nIntegerCount, pIntegerList[4];
   
    DEBUG_printf("palette_aux_Commit_Key_Request: nKeyCode is %d, nKeyChar is %c\n", nKeyCode, nKeyChar); 
    pIntegerList[0] = COMMONAUX_COMMIT_KEY;
    pIntegerList[1] = nKeyCode;
    pIntegerList[2] = nKeyChar;
    pIntegerList[3] = nKeyStatus;
    nIntegerCount = 4;
    NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);

}

Here is the call graph for this function:

void palette_aux_Commit_String_Request ( char *  commit_str)

Definition at line 829 of file palette_method.c.

{
#if 0   
    int nIntegerCount, pIntegerList[3];
    int nStringCount, pStringLen[1];
    char *pStringList[1];

    if (!commit_str || !*commit_str) return;

    DEBUG_printf("palette_aux_Commit_String_Request: encode_id:%d, commit_str:%s, len: %d\n",
                 ENCODE_UTF8,  commit_str, strlen(commit_str));

    nIntegerCount = 3;
    pIntegerList[0] = COMMONAUX_COMMIT_STRING;
    pIntegerList[1] = ENCODE_UTF8;
    pIntegerList[2] = strlen(commit_str);

    nStringCount = 1;
    pStringLen[0] = strlen(commit_str) + 1;
    pStringList[0] = commit_str;

    NotifyStringListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList,
                                         nStringCount, pStringLen, pStringList);
#endif 
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 387 of file palette_method.c.

Here is the call graph for this function:

void PaletteAux_Change_LE_Position_Request ( int  x,
int  y 
)

Definition at line 625 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[3];

  nIntegerCount = 3;

  DEBUG_printf("begin PaletteAux_Change_LE_Position_Request\n");

  pIntegerList[0] = PALETTEAUX_CHANGE_POSITION;
  pIntegerList[1] = x;
  pIntegerList[2] = y;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void PaletteAux_Connect_To_LE_Request ( int  locale_id)

Definition at line 548 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[2];

  DEBUG_printf("begin PaletteAux_Connect_To_LE_Request\n");  

  nIntegerCount = 2;
  pIntegerList[0] = PALETTEAUX_CONNECT;
  pIntegerList[1] = locale_id;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Definition at line 713 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[1];

  nIntegerCount = 1;

  DEBUG_printf("begin PaletteAux_Lost_Focus_Request\n");

  pIntegerList[0] = COMMONAUX_LOST_FOCUS;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

static void paletteaux_notification_handler ( ) [static]

Here is the caller graph for this function:

static void paletteaux_notification_handler ( aux_ext_data_t aux_ext_data) [static]

Definition at line 206 of file palette_method.c.

{
  int nIntegerCount, notification_type;

  nIntegerCount = aux_ext_data->integer_count;
  if (nIntegerCount <= 0) return;

  notification_type = aux_ext_data->integer_list[0];

  switch (notification_type)
    {
    case PALETTEAUX_SWITCH_INPUT_MODE_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "PALETTEAUX_SWITCH_CONVERSION_NOTIFY Notify Received\n");
      palette_process_le_message_switch_conversion (aux_ext_data);
      break;
      /* I wouldn't need this */
    case PALETTEAUX_SWITCH_CONVERSION_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "PALETTEAUX_SWITCH_CONVERSION_NOTIFY Notify Received\n");
      palette_process_le_message_switch_conversion (aux_ext_data);
      break;
      
      /*
       case PALETTEAUX_SWITCH_IME_NOTIFY:
       KOLE_LOG (LOGDEST_STDOUT, "PALETTEAUX_SWITCH_IME_NOTIFY Notify Received\n");
       PaletteAux_Proc_LE_Switch_IME_Notify(aux_ext_data);
       break;
      */
    case PALETTEAUX_SWITCH_QJBJ_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "PALETTEAUX_SWITCH_QJBJ_NOTIFY Notify Received\n");
      PaletteAux_Proc_LE_Switch_QjBj_Notify(aux_ext_data);
      break;
      
    case PALETTEAUX_SWITCH_PUNCT_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "PALETTEAUX_SWITCH_PUNCT_NOTIFY Notify Received\n");
      PaletteAux_Proc_LE_Switch_Punct_Notify(aux_ext_data);
      break;
      /*
       case PALETTEAUX_UPDATE_IMEINFO_NOTIFY:
       KOLE_LOG (LOGDEST_STDOUT, "PALETTEAUX_UPDATE_IMEINFO Notify Received\n");
       PaletteAux_Proc_LE_Update_IMEInfo_Notify(aux_ext_data);
       break;
      */
    case COMMONAUX_CHANGE_FOCUS_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "COMMONAUX_CHANGE_FOCUS_NOTIFY Notify Received\n");
      PaletteAux_Proc_LE_Change_Focus_Notify(aux_ext_data);
      break;
    case COMMONAUX_SET_IME_NEW_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "COMMONAUX_SET_IME_NEW_NOTIFY Notify Received\n");
      /*
       PaletteAux_Proc_LE_New_IMEInfo_Notify(aux_ext_data);
      */
      break;
    case COMMONAUX_SET_IME_INFO_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "COMMONAUX_SET_IMEINFO Notify Received");
      PaletteAux_Proc_LE_Set_IMEInfo_Notify(aux_ext_data);
      break;
    case KOLE_AUX_SESSION_PROPERTY:
      paletteaux_set_session_property (aux_ext_data);
      break;
      
    case COMMONAUX_SET_IME_END_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "COMMONAUX_SET_IME_END_NOTIFY Notify Received\n");
      PaletteAux_Proc_LE_Set_IMEInfo_End_Notify(aux_ext_data);
      break;
    case COMMONAUX_UPDATE_KEYMAPINFO_NOTIFY:
      KOLE_LOG (LOGDEST_STDOUT, "PALETTEAUX_UPDATE_KEYMAPINFO_NOTIFY Notify Received\n");
      PaletteAux_Proc_LE_Update_KeymapInfo_Notify(aux_ext_data);
      break;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 480 of file palette_method.c.

{
  int pos_x, pos_y;
  int toolbar_window_show_status;
  gboolean full_width_letter_status, full_width_punct_status;
  int engine_id;
  INPUT_MODE_T input_mode;
  
  OPTION_KEYBOARD_LAYOUT kbd;
  OPTION_CHARSET charset;
  OPTION_DELETION deletion;
  OPTION_COMMIT_MODE commit;

   KOLE_LOG (LOGDEST_STDOUT, "testing: enter PaletteAux_Proc_LE_Change_Focus_Notify\n");

  pos_x       = aux_ext_data->integer_list[1];
  pos_y       = aux_ext_data->integer_list[2];
  toolbar_window_show_status       = aux_ext_data->integer_list[3];
  full_width_letter_status  = aux_ext_data->integer_list[4];
  full_width_punct_status   = aux_ext_data->integer_list[5];
  engine_id   = aux_ext_data->integer_list[6];
  input_mode = aux_ext_data->integer_list[7];
  kbd = aux_ext_data->integer_list[8];
  charset = aux_ext_data->integer_list[9];
  deletion  = aux_ext_data->integer_list[10];
  commit = aux_ext_data->integer_list[11];

/*  if (p_engine_property ||
      !( p_engine_property = leproperty_init () )) {
      KOLE_LOG (LOGDEST_STDOUT, "Critical Error");
      return;
  }
*/

/*  leproperty_set_keyboard (p_engine_property, kbd);
  leproperty_set_charset (p_engine_property, charset);
  leproperty_set_deletion (p_engine_property, deletion);
  leproperty_set_commit (p_engine_property, commit);
*/  
#ifdef EVIL
#endif  

  if (toolbar_window_show_status)
    PaletteAux_Set_Selection_Owner();

  if (input_mode == INPUT_MODE_NONE ||input_mode == INPUT_MODE_ENGLISH){
    
    paletteaux_change_visibility (FALSE);
    
  } else {
    
     
     KOLE_LOG (LOGDEST_STDOUT,"testing: before gtk_window_get_position()\n");
    gtk_window_get_position (palettecore.ppalette, pos_x, pos_y);
#if 0
    ui_toggle_letter (full_width_letter_status);
    ui_toggle_punct (full_width_punct_status);
#endif
     KOLE_LOG (LOGDEST_STDOUT,"testing: before paletteaux_update_display()\n");
    paletteaux_update_display (p_engine_property);
    
  }
}

Here is the call graph for this function:

Definition at line 345 of file palette_method.c.

{
#if 0
  /* process user defined imes, such as user prefer IMEs*/
  Select_IMEs_From_Profile();

  /* create IME list menu */

  PaletteAux_CreateIMEListMenu();
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Definition at line 323 of file palette_method.c.

{
  IMEBaseRec baseinfo;
  int i, nIntegerCount, engine_num;

  nIntegerCount = aux_ext_data->integer_count;
  if (nIntegerCount <= 0) return;

  KOLE_LOG (LOGDEST_STDOUT, "PaletteAux_Proc_LE_Set_IMEInfo_Notify\n");

  baseinfo.engine_id = aux_ext_data->integer_list[1];
  baseinfo.locale_id = aux_ext_data->integer_list[2];
  baseinfo.encode_id = aux_ext_data->integer_list[3];
  baseinfo.status = aux_ext_data->integer_list[4];

  baseinfo.ename = (char *)(aux_ext_data->string_list[0].ptr);
  baseinfo.kname = (char *)(aux_ext_data->string_list[1].ptr);
  /*
    Add_IME_To_AllList(&baseinfo);
  */
}

Here is the call graph for this function:

Definition at line 419 of file palette_method.c.

{
#if 0
  
  int switch_type;
  int engine_id, ime_id, nIME_Num;
       
  switch_type = aux_ext_data->integer_list[1];
  /*
    nIME_Num = SelectedIMEList.nIME_Num;
  */
  KOLE_LOG (LOGDEST_STDOUT, "SelectedIMEList.nIME_Num:%d\n", nIME_Num);
  if (nIME_Num <= 0) return;

  switch(switch_type)
    {
    case IME_ROUND_SWITCH:
      /* select next available IME */
      /*
       engine_id = gPAData.engine_id;
      */
      engine_id = 0;
      ime_id = get_ime_id_by_engine_id(&SelectedIMEList, engine_id);
      KOLE_LOG (LOGDEST_STDOUT, "IME_ROUND_SWITCH == current ime_id:%d\n", ime_id);
      ime_id = (ime_id + 1) % nIME_Num;
      break;  

    case IME_SELECT_SWITCH:
      /* select a specific available IME */
      ime_id = aux_ext_data->integer_list[2];
      KOLE_LOG (LOGDEST_STDOUT, "IME_SELECT_SWITCH == ime_no:%d\n", ime_id);
      break;  
    }

  KOLE_LOG (LOGDEST_STDOUT, "IME_SWITCH == ime_id:%d\n", ime_id);

  /* Change IME logo on the control bar */
  /* and need notify LE to switch IME */
  /*
    PaletteAux_ChangeIME(ime_id, True);
  */
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 471 of file palette_method.c.

{
  /* Change auxiliary window English/Chinese Punctuation information */
#if 0
  ui_toggle_punct (aux_ext_data->integer_list[1]);
#endif
}

Here is the caller graph for this function:

Definition at line 463 of file palette_method.c.

{
  /* Change auxiliary window Full_Width/half_Width information */
#if 0
  ui_toggle_letter (aux_ext_data->integer_list[1]);
#endif
}

Definition at line 357 of file palette_method.c.

{
#if 0
  /* process user defined imes, such as user prefer IMEs*/
  Select_IMEs_From_Profile ();

  /* create IME list menu */

  PaletteAux_CreateIMEListMenu();
#endif

}

Here is the call graph for this function:

Definition at line 370 of file palette_method.c.

{
  /*
    int i, engine_id, ime_id;

    engine_id = aux_ext_data->integer_list[1];

    if (IMEVKB_Check_If_Exist(engine_id)) return;

    ime_id = get_ime_id_by_engine_id(&AllIMEList, engine_id);
    if (ime_id == -1) return;

    IMEVKB_Name_List_Add(engine_id, AllIMEList.arrIME_Base[ime_id]->kname);
  */
}

Here is the caller graph for this function:

void paletteaux_send_show_keyboardaux_request ( int  n_keyboard_id)

Definition at line 663 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[2];

  nIntegerCount = 2;
  /* change the layout first */
  pIntegerList[0] = PALETTEAUX_SWITCH_KEYBOARDLAYOUT;
  pIntegerList[1] = n_keyboard_id;
  DEBUG_printf("begin paletteaux_send_show_keyboardaux_request\n");
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);

  /* Then show the keyboard first */
/*  fprintf (stderr, "AUX->SRV: PALETTEAUX_SHOW_KEYBOARDAUX\n");
  pIntegerList[0] =  PALETTEAUX_SHOW_KEYBOARDAUX;
  pIntegerList[1] = n_keyboard_id;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
 */ 
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 588 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[2];

  nIntegerCount = 2;
  
  DEBUG_printf("begin paletteaux_send_switch_charset_request\n");

  pIntegerList[0] = PALETTEAUX_SWITCH_CHARSET_NOTIFY;
  pIntegerList[1] = charset;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 725 of file palette_method.c.

{
  /*
    int nIntegerCount, pIntegerList[MAX_ENGINE_NUM + 1];
    int nStringCount, pStringLen[MAX_ENGINE_NUM];
    char *pStringList[MAX_ENGINE_NUM], *name;
    int i, nNum;

    if (gIMEOptionsNum <= 0) return;

    nNum = gIMEOptionsNum;
    if (nNum > MAX_ENGINE_NUM) nNum = MAX_ENGINE_NUM;

    nIntegerCount = nNum + 1;
    pIntegerList[0] = COMMONAUX_UPDATE_OPTIONSINFO;

    nStringCount = nNum;
    for (i=0; i<nNum; i++) {
    name = gIMEOptions[i]->ime_ename;
    pStringLen[i] = strlen(name);
    pStringList[i] = name;
    pIntegerList[i + 1] = gIMEOptions[i]->opt_value;
    }
    NotifyStringListDataToLanguageEngine(GDK_DISPLAY(), nIntegerCount, pIntegerList,
    nStringCount, pStringLen,
  */
}
static void PaletteAux_Set_Selection_Owner ( ) [static]

Definition at line 278 of file palette_method.c.

{
  Atom aux_atom =
    XInternAtom (gDisplay,
               "CH_PALETTEAUX_MODULE_ATOM", False);
  XSetSelectionOwner(gDisplay, aux_atom, gWindow, CurrentTime);
}

Here is the caller graph for this function:

Definition at line 297 of file palette_method.c.

{
  int n_integer_count;
  n_integer_count = aux_ext_data->integer_count;
  if (n_integer_count <= 0) return;

  /*if (p_engine_property ||
      !( p_engine_property = leproperty_init () )) {
      KOLE_LOG (LOGDEST_STDOUT, "Critical Error");
      return;
  }*/
  if( p_engine_property == NULL)
       p_engine_property = leproperty_init ();
  
  leproperty_set_input_mode (p_engine_property, aux_ext_data->integer_list[1]);
  leproperty_set_keyboard (p_engine_property, aux_ext_data->integer_list[2]);
  leproperty_set_charset (p_engine_property, aux_ext_data->integer_list[3]);
  leproperty_set_deletion (p_engine_property, aux_ext_data->integer_list[4]);
  leproperty_set_commit (p_engine_property, aux_ext_data->integer_list[5]);
  
  paletteaux_update_display (p_engine_property);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 683 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[1];

  nIntegerCount = 1;

  DEBUG_printf("begin PaletteAux_Show_LookupAux_Request\n");
  
  pIntegerList[0] = PALETTEAUX_SHOW_LOOKUPAUX;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Definition at line 650 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[1];

  nIntegerCount = 1;
 
  DEBUG_printf("begin PaletteAux_Show_OptionAux_Request\n");

  pIntegerList[0] = PALETTEAUX_SHOW_OPTIONAUX;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Definition at line 639 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[1];

  nIntegerCount = 1;

  DEBUG_printf("begin PaletteAux_Show_SelectAux_Request\n");
  pIntegerList[0] = PALETTEAUX_SHOW_SELECTAUX;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

void PaletteAux_StartAction_Request ( char *  command)

Definition at line 695 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[1];
  int nStringCount, pStringLen[1];
  char *pStringList[1];

  DEBUG_printf("begin PaletteAux_StartAction_Request\n");
  nIntegerCount = 1;
  pIntegerList[0] = PALETTEAUX_START_ACTION;
  nStringCount = 1;
  pStringLen[0] = strlen(command);
  pStringList[0] = command;
  NotifyStringListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList,
                                   nStringCount, pStringLen,
                                   pStringList);

}

Here is the call graph for this function:

Definition at line 560 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[2];

  nIntegerCount = 2;
  
  DEBUG_printf("begin PaletteAux_Switch_LE_Conversion_Request\n"); 
 
  /* Fix Me */
  pIntegerList[0] = PALETTEAUX_SWITCH_CONVERSION_NOTIFY;
  pIntegerList[1] = on;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

void PaletteAux_Switch_LE_Engine_Request ( int  engine_id)

Definition at line 574 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[2];

  nIntegerCount = 2;
 
  DEBUG_printf("begin PaletteAux_Switch_LE_Engine_Request\n");
 
  pIntegerList[0] = PALETTEAUX_SWITCH_IME;
  pIntegerList[1] = engine_id;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Definition at line 601 of file palette_method.c.

{
  int nIntegerCount, pIntegerList[2];

  nIntegerCount = 2;

  DEBUG_printf("begin PaletteAux_Switch_LE_QjBj_Request\n");

  pIntegerList[0] = PALETTEAUX_SWITCH_QJBJ;
  pIntegerList[1] = qjbj;
  NotifyIntegerListDataToLanguageEngine(gDisplay, nIntegerCount, pIntegerList);
}

Here is the call graph for this function:

Bool xaux_ext_Done ( xaux_class_t xc,
aux_ext_data_t aux_ext_data,
Atom  atom 
)

Definition at line 191 of file palette_method.c.

{
  KOLE_LOG (LOGDEST_STDOUT,
           "ext_Done im:0x%x, ic_id:0x%x",
           aux_ext_data->im, aux_ext_data->ic);
  leproperty_done (p_engine_property);
  
  return True;
}

Here is the call graph for this function:

Bool xaux_ext_Draw ( xaux_class_t xc,
aux_ext_data_t aux_ext_data,
Atom  atom 
)

Definition at line 179 of file palette_method.c.

{
  KOLE_LOG (LOGDEST_STDOUT, "Palette ext_Draw == im:0x%x, ic:0x%x\n",aux_ext_data->im, aux_ext_data->ic);
  im_ = aux_ext_data->im;
  ic_ = aux_ext_data->ic;
  xc_ = xc;

  paletteaux_notification_handler (aux_ext_data);
  return True;
}

Here is the call graph for this function:

GdkFilterReturn xaux_ext_event_handler ( GdkXEvent *  gdk_xevent,
GdkEvent *  event,
gpointer  user_data 
)

Definition at line 102 of file palette_method.c.

{
  XEvent *xevent = (XEvent *) gdk_xevent;

  switch (xevent->type) {
  case ClientMessage:
    xaux_ext_process_client_message((Display *)gDisplay,
                                (XClientMessageEvent *) xevent);
    break;
  case SelectionClear:
    break;
  }
  return GDK_FILTER_CONTINUE;
}

Here is the call graph for this function:

int xaux_ext_register_classes ( GdkWindow *  window)

Definition at line 122 of file palette_method.c.

{
  gDisplay = (Display *)GDK_WINDOW_XDISPLAY(window);
  gWindow  = (Window)GDK_WINDOW_XWINDOW(window);
  /* Register aux class */
  int xaux_result =
    xaux_ext_init_classes (gDisplay,
                        (xaux_class_t *)&xaux_class,
                        gWindow);
  if (xaux_result  == False)
    return(False);

  return(True);
}

Here is the call graph for this function:

Bool xaux_ext_Start ( xaux_class_t xc,
aux_ext_data_t aux_ext_data,
Atom  atom 
)

Definition at line 147 of file palette_method.c.

{
  char *locale = NULL;
  int  locale_id = 0;
#if 0
  int i = 1;
  while (i);
#endif
  
  KOLE_LOG (LOGDEST_STDOUT,
           "xaux_ext_Start: im:%d, ic:%d",
           aux_ext_data->im, aux_ext_data->ic);
  
  im_ = aux_ext_data->im;
  ic_ = aux_ext_data->ic;
  xc_ = xc;
  
  p_engine_property = leproperty_init ();
  
  /* inform Language Engine that PaletteAux has started. */
  locale = (char *) getenv("LANG");
  if (locale != NULL) {
    locale_id = 0;
    PaletteAux_Connect_To_LE_Request(locale_id);
  } else
    PaletteAux_Connect_To_LE_Request(locale_id);
    
  return True;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 57 of file palette_aux.c.

Definition at line 58 of file palette_aux.c.

Display* gDisplay = NULL

Definition at line 60 of file palette_method.c.

int gLocaleID = 0

Definition at line 59 of file palette_method.c.

Window gWindow = 0

Definition at line 61 of file palette_method.c.

int ic_ = 0

Definition at line 45 of file palette_method.c.

int im_ = 0

Definition at line 44 of file palette_method.c.

KOLE_property* p_engine_property = NULL

Definition at line 62 of file palette_method.c.

Definition at line 43 of file palette_aux.c.

Initial value:
 {
  XAUX_PALETTE_CLASS_NAME, 1,
  NULL,
  (Window)0, (Window)0,
  (Atom)0, (Atom)0, (Atom)0,
  { (Atom)0 }, ATOM_NUM_PALETTEAUX, 0,
  { (Atom)0 }, ATOM_NUM_PALETTEAUX, 0,
  NULL,
}

Definition at line 49 of file palette_method.c.

Definition at line 43 of file palette_method.c.