Back to index

im-sdk  12.3.91
thai_protocol.h
Go to the documentation of this file.
00001 #ifndef _THAI_PROTOCOL_H_
00002 #define _THAI_PROTOCOL_H_
00003 
00004 /***************************************************************************/
00005 /*         Protocol used by Auxiliary window and Language Engine           */
00006 /***************************************************************************/
00007 /* Conversion Status */
00008 #define CONVERSION_OFF                    0
00009 #define CONVERSION_ON                     1
00010 
00011 /* Types of Input Method Switching */
00012 #define IME_ROUND_SWITCH           0
00013 #define IME_SELECT_SWITCH          1
00014 
00015 /* Protocol Number between Auxiliary Window and Language Engine */
00016 enum _protocol_id_list {
00017 
00018        /* For PaletteAux */
00019        PALETTEAUX_CONNECT = 0,
00020        PALETTEAUX_SWITCH_CONVERSION,
00021        PALETTEAUX_SWITCH_ISC_MODE,
00022        PALETTEAUX_CHANGE_POSITION,
00023        PALETTEAUX_SHOW_OPTIONAUX,
00024        PALETTEAUX_SHOW_KEYBOARDAUX,
00025        PALETTEAUX_SHOW_LOOKUPAUX,
00026        PALETTEAUX_START_ACTION,
00027 
00028        PALETTEAUX_UPDATE_IMEINFO_NOTIFY,
00029        PALETTEAUX_SWITCH_CONVERSION_NOTIFY,
00030        PALETTEAUX_SWITCH_ISC_MODE_NOTIFY,
00031 
00032        /* For Common used protocol */
00033        COMMONAUX_COMMIT_KEY = 20,
00034        COMMONAUX_COMMIT_STRING,
00035        COMMONAUX_LOST_FOCUS,
00036        COMMONAUX_SET_DEFAULT_VALUE,
00037        COMMONAUX_GET_DEFAULT_VALUE,
00038 
00039        COMMONAUX_CHANGE_FOCUS_NOTIFY,
00040        COMMONAUX_UPDATE_KEYMAPINFO_NOTIFY,
00041        COMMONAUX_SET_IME_NEW_NOTIFY,
00042        COMMONAUX_SET_IME_INFO_NOTIFY,
00043        COMMONAUX_SET_IME_END_NOTIFY,
00044 
00045        COMMONAUX_MODE_NAME_NOTIFY,
00046        COMMONAUX_KEYBOARD_NAME_NOTIFY,
00047        COMMONAUX_KEYBOARD_LAYOUT_NOTIFY,
00048 
00049        /* For OptionAux */
00050        OPTIONAUX_CONNECT = 40,
00051        OPTIONAUX_CHANGE_STATUS,
00052 
00053        OPTIONAUX_SHOW_NOTIFY,
00054        OPTIONAUX_HIDE_NOTIFY,
00055 
00056        /* For KeyboardAux */
00057        KEYBOARDAUX_CONNECT = 60,
00058        KEYBOARDAUX_CHANGE_POSITION,
00059        KEYBOARDAUX_CHANGE_KEY_STATUS,
00060 
00061        KEYBOARDAUX_SHOW_NOTIFY,
00062        KEYBOARDAUX_HIDE_NOTIFY,
00063        KEYBOARDAUX_PRESS_KEY_NOTIFY,
00064 
00065        /* For ActionAux */
00066        ACTIONAUX_CONNECT = 80,
00067        ACTIONAUX_START_ACTION_NOTIFY,
00068 
00069 };
00070 
00071 #endif   /* _THAI_PROTOCOL_H_  */
00072