Back to index

im-sdk  12.3.91
Classes | Defines | Typedefs | Enumerations
unit_input.h File Reference
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <dirent.h>
#include <fcntl.h>
#include <sys/param.h>
#include <X11/Xmd.h>
#include "SunIM.h"
#include "logf.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  IMEBufferRec
struct  IMEBaseRec
struct  IMEArgRec
struct  IMEArgListRec
struct  IMEEnvListRec
struct  IMEKeyMapRec
struct  IMECoreRec
struct  IMEKeyRec
struct  _method_t
struct  IMEEngineRec
struct  IMEListRec
struct  LocaleList
struct  IMEModeList
struct  KEY_VALUE_PAIR_
struct  _unit_desktop_t
struct  _unit_if_t

Defines

#define NAME_MAX   255
#define IMM_NOT_USED_KEY   0
#define IMM_USED_KEY   1
#define ENGLISH_NONENGLISH_SWITCH_KEY   4
#define ROUND_SWITCH_KEY   5
#define SWITCH_F1_KEY   6
#define SWITCH_F2_KEY   (SWITCH_F1_KEY+1)
#define SWITCH_F3_KEY   (SWITCH_F1_KEY+2)
#define SWITCH_F4_KEY   (SWITCH_F1_KEY+3)
#define SWITCH_F5_KEY   (SWITCH_F1_KEY+4)
#define SWITCH_F6_KEY   (SWITCH_F1_KEY+5)
#define SWITCH_F7_KEY   (SWITCH_F1_KEY+6)
#define SWITCH_F8_KEY   (SWITCH_F1_KEY+7)
#define SWITCH_F9_KEY   (SWITCH_F1_KEY+8)
#define SWITCH_F10_KEY   (SWITCH_F1_KEY+9)
#define SWITCH_F11_KEY   (SWITCH_F1_KEY+10)
#define SWITCH_F12_KEY   (SWITCH_F1_KEY+11)
#define IME_NOT_USED_KEY   0
#define IME_USED_KEY   1
#define ESC_KEY   2
#define BACKSPACE_KEY   3
#define RETURN_KEY   4
#define INSERT_KEY   5
#define DELETE_KEY   6
#define HOME_KEY   7
#define END_KEY   8
#define PAGEUP_KEY   9
#define PAGEDOWN_KEY   10
#define TAB_KEY   11
#define IME_DEADKEY_AS_HOTKEY   12
#define IME_COMPOSE_KEY_AS_HOTKEY   13
#define IME_EURO_KEY_AS_HOTKEY   14
#define SPACE_KEY   0x20
#define IME_QUOTE   0x27
#define IME_BACK_QUOTE   0x60
#define IME_ASCIICIRCUM   0x5e
#define IME_GREATER   0x3e
#define IME_QUOTEDBL   0x22
#define IME_ASCIITILDE   0x7e
#define MAX_CANDIDATES_NUM   16
#define MAX_INPUT_KEY_NUM   256
#define MAX_PREEDIT_CHAR_NUM   256
#define MAX_CANDIDATE_CHAR_NUM   256
#define MAX_STATUS_CHAR_NUM   256
#define MAX_COMMIT_CHAR_NUM   512
#define MAX_LINE_LEN   1024
#define MAX_KEYMAP_KEY_NUM   95
#define IME_PREEDIT_AREA   1
#define IME_LOOKUP_AREA   2
#define IME_STATUS_AREA   4
#define IME_COMMIT   8
#define ENGINE_NOT_INSTALLED   1
#define ENGINE_NOT_INITIATED   2
#define ENGINE_INITIATED   3
#define DEFAULT_ENGINE_PATH   IIIMLEDIR
#define DEFAULT_DICT_PATH   "data"
#define COMMON_ENGINE_PATH   "common"
#define DEFAULT_LOCALE_PATH   "locale"
#define GENERIC_IM_TABLE_NAME   "GENERIC_IM_TABLE"
#define SWITCH_TO_NEXT_LOCALE   "SWITCH_TO_NEXT_LOCALE"
#define SWITCH_TO_PREV_LOCALE   "SWITCH_TO_PREV_LOCALE"
#define SWITCH_LAYOUT_NAME   "SWITCH_LAYOUT"
#define CODETABLE_ENGINE_NAME   "ctim"
#define USER_PROFILE_PATH   ".Xlocale"
#define USER_PROFILE_NAME   "ime.cfg"
#define SYSTEM_PROFILE_NAME   "sysime.cfg"
#define HOTKEY_CONFIG_FILE   "hotkey_config.xml"
#define USER_OPTION_FILE_NAME   "options.cfg"
#define VAR_LE_DIR   "/var/lib/iiim/le"
#define NUMERIC_LABEL   0
#define LOWER_LABEL   1
#define UPPER_LABEL   2
#define MAX_ENGINE_NUM   127
#define MAX_NAME_LEN   16
#define MAX_ARGS_NUM   10
#define CONVERSION_OFF   0
#define CONVERSION_ON   1
#define IME_ROUND_SWITCH   0
#define IME_SELECT_SWITCH   1
#define PALETTEAUX_CONNECT   1
#define PALETTEAUX_SWITCH_CONVERSION   2
#define PALETTEAUX_SWITCH_IME   3
#define PALETTEAUX_CHANGE_POSITION   6
#define PALETTEAUX_SHOW_OPTIONAUX   7
#define PALETTEAUX_SHOW_SELECTAUX   8
#define PALETTEAUX_SHOW_KEYBOARDAUX   9
#define PALETTEAUX_SHOW_LOOKUPAUX   10
#define PALETTEAUX_START_ACTION   11
#define PALETTEAUX_UPDATE_IMEINFO_NOTIFY   12
#define PALETTEAUX_SWITCH_CONVERSION_NOTIFY   13
#define PALETTEAUX_SWITCH_IME_NOTIFY   14
#define COMMONAUX_COMMIT_KEY   20
#define COMMONAUX_COMMIT_STRING   21
#define COMMONAUX_UPDATE_OPTIONSINFO   22
#define COMMONAUX_LOST_FOCUS   23
#define COMMONAUX_CHANGE_FOCUS_NOTIFY   24
#define COMMONAUX_UPDATE_KEYMAPINFO_NOTIFY   25
#define COMMONAUX_SET_IME_NEW_NOTIFY   26
#define COMMONAUX_SET_IME_INFO_NOTIFY   27
#define COMMONAUX_SET_IME_END_NOTIFY   28
#define OPTIONAUX_CONNECT   30
#define OPTIONAUX_CHANGE_STATUS   31
#define OPTIONAUX_SHOW_NOTIFY   32
#define OPTIONAUX_HIDE_NOTIFY   33
#define OPTIONAUX_UPDATE_ARGS_NEW_NOTIFY   34
#define OPTIONAUX_UPDATE_ARGS_INFO_NOTIFY   35
#define SELECTAUX_CONNECT   40
#define SELECTAUX_UPDATE_IMEINFO   41
#define SELECTAUX_CHANGE_STATUS   42
#define SELECTAUX_SHOW_NOTIFY   43
#define SELECTAUX_HIDE_NOTIFY   44
#define KEYBOARDAUX_CONNECT   50
#define KEYBOARDAUX_CHANGE_POSITION   51
#define KEYBOARDAUX_CHANGE_KEY_STATUS   52
#define KEYBOARDAUX_SHOW_NOTIFY   53
#define KEYBOARDAUX_HIDE_NOTIFY   54
#define KEYBOARDAUX_PRESS_KEY_NOTIFY   55
#define LOOKUPAUX_CONNECT   60
#define LOOKUPAUX_CHANGE_STATUS   61
#define LOOKUPAUX_CHANGE_POSITION   62
#define LOOKUPAUX_SHOW_NOTIFY   63
#define LOOKUPAUX_HIDE_NOTIFY   64
#define ACTIONAUX_CONNECT   70
#define ACTIONAUX_START_ACTION_NOTIFY   71

Typedefs

typedef struct IMEBufferRecIMEBuffer
typedef struct IMEBaseRecIMEBase
typedef struct IMEArgRecIMEArg
typedef struct IMEArgListRecIMEArgList
typedef struct IMEEnvListRecIMEEnvList
typedef struct IMEKeyMapRecIMEKeyMap
typedef struct IMECoreRecIMECore
typedef struct IMEKeyRecIMEKey
typedef struct _method_t IMEMethodsRec
typedef struct _method_tIMEMethods
typedef struct IMEEngineRecIMEEngine
typedef struct KEY_VALUE_PAIR_ keyvalue_pair
typedef struct _unit_desktop_t unit_desktop_t
typedef unit_desktop_tunit_desktop_list
typedef struct _unit_if_t unit_if_t

Enumerations

enum  IME_HOTKEY_STATUS { IME_HOTKEY_START = 0, IME_HOTKEY_END, IME_HOTKEY_NOT_IN_USE, IME_HOTKEY_COMMIT }
enum  IME_HOTKEY_PROFILE_ID { IME_HOTKEY_PROFILE_ONE = 1, IME_HOTKEY_PROFILE_TWO, IME_HOTKEY_PROFILE_THREE, IME_HOTKEY_PROFILE_NUM }

Class Documentation

struct IMEBufferRec

Definition at line 248 of file unit_input.h.

Class Members
unsigned char ** additions_buf
unsigned char ** candidates_buf
unsigned char * commit_buf
int commit_len
int conv_flag
int cur_lookup_pos
int encode
int hotkey_flag
int * inputkey_buf
int inputkey_len
unsigned char ** lookup_buf
CARD8 lookup_label_type
int lookup_num
unsigned char * preedit_buf
int preedit_caretpos
int preedit_len
unsigned char * prev_preedit_buf
CARD8 return_status
unsigned short session_id
unsigned char * status_buf
int status_len
struct IMEBaseRec

Definition at line 226 of file koinput.h.

Class Members
char * cname
char * ename
CARD8 encode_id
CARD8 engine_id
char * kname
char * lname
CARD8 locale_id
CARD8 status
struct IMEArgRec

Definition at line 239 of file koinput.h.

Class Members
char * name
CARD8 type
CARD8 value
struct IMEArgListRec

Definition at line 245 of file koinput.h.

Collaboration diagram for IMEArgListRec:
Class Members
IMEArgRec args
int args_num
struct IMEEnvListRec

Definition at line 251 of file koinput.h.

Class Members
char * data_path
char * data_ptr
char * lang_name
char * locale_name
CARD8 output_encode_id
struct IMEKeyMapRec

Definition at line 260 of file koinput.h.

Class Members
char bSet
char * keymap
struct IMECoreRec

Definition at line 271 of file koinput.h.

Collaboration diagram for IMECoreRec:
Class Members
IMEArgListRec argsinfo
IMEBaseRec baseinfo
IMEEnvListRec envinfo
IMEHotKeyRec hotkeys
IMEKeyMapRec keymapinfo
struct IMEKeyRec

Definition at line 323 of file unit_input.h.

Class Members
int keyChar
int keyCode
int modifier
struct IMEEngineRec

Definition at line 331 of file koinput.h.

Collaboration diagram for IMEEngineRec:
Class Members
IMECoreRec core
void * so_handler
IMEBufferMethods so_methods
IMEMethods so_methods
struct IMEListRec

Definition at line 337 of file koinput.h.

Collaboration diagram for IMEListRec:
Class Members
IMEBaseRec * arrIME_Base
int nIME_Num
struct LocaleList

Definition at line 349 of file unit_input.h.

Class Members
int firstEngineId
int lastEngineId
char * locale_name
int nEngineId
struct IMEModeList

Definition at line 357 of file unit_input.h.

Class Members
char * default_state
int engine_id
char * engine_name
char * locale_name
char * nlayout_name
char * nlocale_name
struct KEY_VALUE_PAIR_

Definition at line 366 of file unit_input.h.

Class Members
char * key_name
int value

Define Documentation

#define ACTIONAUX_CONNECT   70

Definition at line 228 of file unit_input.h.

Definition at line 229 of file unit_input.h.

#define BACKSPACE_KEY   3

Definition at line 87 of file unit_input.h.

#define CODETABLE_ENGINE_NAME   "ctim"

Definition at line 137 of file unit_input.h.

#define COMMON_ENGINE_PATH   "common"

Definition at line 131 of file unit_input.h.

Definition at line 187 of file unit_input.h.

#define COMMONAUX_COMMIT_KEY   20

Definition at line 182 of file unit_input.h.

#define COMMONAUX_COMMIT_STRING   21

Definition at line 183 of file unit_input.h.

#define COMMONAUX_LOST_FOCUS   23

Definition at line 185 of file unit_input.h.

Definition at line 191 of file unit_input.h.

Definition at line 190 of file unit_input.h.

Definition at line 189 of file unit_input.h.

Definition at line 188 of file unit_input.h.

Definition at line 184 of file unit_input.h.

#define CONVERSION_OFF   0

Definition at line 158 of file unit_input.h.

#define CONVERSION_ON   1

Definition at line 159 of file unit_input.h.

#define DEFAULT_DICT_PATH   "data"

Definition at line 130 of file unit_input.h.

#define DEFAULT_ENGINE_PATH   IIIMLEDIR

Definition at line 129 of file unit_input.h.

#define DEFAULT_LOCALE_PATH   "locale"

Definition at line 132 of file unit_input.h.

#define DELETE_KEY   6

Definition at line 90 of file unit_input.h.

#define END_KEY   8

Definition at line 92 of file unit_input.h.

#define ENGINE_INITIATED   3

Definition at line 127 of file unit_input.h.

#define ENGINE_NOT_INITIATED   2

Definition at line 126 of file unit_input.h.

#define ENGINE_NOT_INSTALLED   1

Definition at line 125 of file unit_input.h.

Definition at line 67 of file unit_input.h.

#define ESC_KEY   2

Definition at line 86 of file unit_input.h.

#define GENERIC_IM_TABLE_NAME   "GENERIC_IM_TABLE"

Definition at line 133 of file unit_input.h.

#define HOME_KEY   7

Definition at line 91 of file unit_input.h.

#define HOTKEY_CONFIG_FILE   "hotkey_config.xml"

Definition at line 141 of file unit_input.h.

#define IME_ASCIICIRCUM   0x5e

Definition at line 102 of file unit_input.h.

#define IME_ASCIITILDE   0x7e

Definition at line 105 of file unit_input.h.

#define IME_BACK_QUOTE   0x60

Definition at line 101 of file unit_input.h.

#define IME_COMMIT   8

Definition at line 123 of file unit_input.h.

#define IME_COMPOSE_KEY_AS_HOTKEY   13

Definition at line 97 of file unit_input.h.

#define IME_DEADKEY_AS_HOTKEY   12

Definition at line 96 of file unit_input.h.

#define IME_EURO_KEY_AS_HOTKEY   14

Definition at line 98 of file unit_input.h.

#define IME_GREATER   0x3e

Definition at line 103 of file unit_input.h.

#define IME_LOOKUP_AREA   2

Definition at line 121 of file unit_input.h.

#define IME_NOT_USED_KEY   0

Definition at line 84 of file unit_input.h.

#define IME_PREEDIT_AREA   1

Definition at line 120 of file unit_input.h.

#define IME_QUOTE   0x27

Definition at line 100 of file unit_input.h.

#define IME_QUOTEDBL   0x22

Definition at line 104 of file unit_input.h.

#define IME_ROUND_SWITCH   0

Definition at line 162 of file unit_input.h.

#define IME_SELECT_SWITCH   1

Definition at line 163 of file unit_input.h.

#define IME_STATUS_AREA   4

Definition at line 122 of file unit_input.h.

#define IME_USED_KEY   1

Definition at line 85 of file unit_input.h.

#define IMM_NOT_USED_KEY   0

Definition at line 65 of file unit_input.h.

#define IMM_USED_KEY   1

Definition at line 66 of file unit_input.h.

#define INSERT_KEY   5

Definition at line 89 of file unit_input.h.

Definition at line 213 of file unit_input.h.

#define KEYBOARDAUX_CHANGE_POSITION   51

Definition at line 212 of file unit_input.h.

#define KEYBOARDAUX_CONNECT   50

Definition at line 211 of file unit_input.h.

#define KEYBOARDAUX_HIDE_NOTIFY   54

Definition at line 216 of file unit_input.h.

Definition at line 217 of file unit_input.h.

#define KEYBOARDAUX_SHOW_NOTIFY   53

Definition at line 215 of file unit_input.h.

#define LOOKUPAUX_CHANGE_POSITION   62

Definition at line 222 of file unit_input.h.

#define LOOKUPAUX_CHANGE_STATUS   61

Definition at line 221 of file unit_input.h.

#define LOOKUPAUX_CONNECT   60

Definition at line 220 of file unit_input.h.

#define LOOKUPAUX_HIDE_NOTIFY   64

Definition at line 225 of file unit_input.h.

#define LOOKUPAUX_SHOW_NOTIFY   63

Definition at line 224 of file unit_input.h.

#define LOWER_LABEL   1

Definition at line 146 of file unit_input.h.

#define MAX_ARGS_NUM   10

Definition at line 152 of file unit_input.h.

#define MAX_CANDIDATE_CHAR_NUM   256

Definition at line 113 of file unit_input.h.

#define MAX_CANDIDATES_NUM   16

Definition at line 110 of file unit_input.h.

#define MAX_COMMIT_CHAR_NUM   512

Definition at line 115 of file unit_input.h.

#define MAX_ENGINE_NUM   127

Definition at line 149 of file unit_input.h.

#define MAX_INPUT_KEY_NUM   256

Definition at line 111 of file unit_input.h.

#define MAX_KEYMAP_KEY_NUM   95

Definition at line 118 of file unit_input.h.

#define MAX_LINE_LEN   1024

Definition at line 116 of file unit_input.h.

#define MAX_NAME_LEN   16

Definition at line 150 of file unit_input.h.

#define MAX_PREEDIT_CHAR_NUM   256

Definition at line 112 of file unit_input.h.

#define MAX_STATUS_CHAR_NUM   256

Definition at line 114 of file unit_input.h.

#define NAME_MAX   255

Definition at line 58 of file unit_input.h.

#define NUMERIC_LABEL   0

Definition at line 145 of file unit_input.h.

#define OPTIONAUX_CHANGE_STATUS   31

Definition at line 195 of file unit_input.h.

#define OPTIONAUX_CONNECT   30

Definition at line 194 of file unit_input.h.

#define OPTIONAUX_HIDE_NOTIFY   33

Definition at line 198 of file unit_input.h.

#define OPTIONAUX_SHOW_NOTIFY   32

Definition at line 197 of file unit_input.h.

Definition at line 200 of file unit_input.h.

Definition at line 199 of file unit_input.h.

#define PAGEDOWN_KEY   10

Definition at line 94 of file unit_input.h.

#define PAGEUP_KEY   9

Definition at line 93 of file unit_input.h.

Definition at line 170 of file unit_input.h.

#define PALETTEAUX_CONNECT   1

Definition at line 167 of file unit_input.h.

Definition at line 173 of file unit_input.h.

#define PALETTEAUX_SHOW_LOOKUPAUX   10

Definition at line 174 of file unit_input.h.

#define PALETTEAUX_SHOW_OPTIONAUX   7

Definition at line 171 of file unit_input.h.

#define PALETTEAUX_SHOW_SELECTAUX   8

Definition at line 172 of file unit_input.h.

#define PALETTEAUX_START_ACTION   11

Definition at line 175 of file unit_input.h.

Definition at line 168 of file unit_input.h.

Definition at line 178 of file unit_input.h.

#define PALETTEAUX_SWITCH_IME   3

Definition at line 169 of file unit_input.h.

Definition at line 179 of file unit_input.h.

Definition at line 177 of file unit_input.h.

#define RETURN_KEY   4

Definition at line 88 of file unit_input.h.

#define ROUND_SWITCH_KEY   5

Definition at line 68 of file unit_input.h.

#define SELECTAUX_CHANGE_STATUS   42

Definition at line 205 of file unit_input.h.

#define SELECTAUX_CONNECT   40

Definition at line 203 of file unit_input.h.

#define SELECTAUX_HIDE_NOTIFY   44

Definition at line 208 of file unit_input.h.

#define SELECTAUX_SHOW_NOTIFY   43

Definition at line 207 of file unit_input.h.

#define SELECTAUX_UPDATE_IMEINFO   41

Definition at line 204 of file unit_input.h.

#define SPACE_KEY   0x20

Definition at line 99 of file unit_input.h.

#define SWITCH_F10_KEY   (SWITCH_F1_KEY+9)

Definition at line 79 of file unit_input.h.

#define SWITCH_F11_KEY   (SWITCH_F1_KEY+10)

Definition at line 80 of file unit_input.h.

#define SWITCH_F12_KEY   (SWITCH_F1_KEY+11)

Definition at line 81 of file unit_input.h.

#define SWITCH_F1_KEY   6

Definition at line 70 of file unit_input.h.

#define SWITCH_F2_KEY   (SWITCH_F1_KEY+1)

Definition at line 71 of file unit_input.h.

#define SWITCH_F3_KEY   (SWITCH_F1_KEY+2)

Definition at line 72 of file unit_input.h.

#define SWITCH_F4_KEY   (SWITCH_F1_KEY+3)

Definition at line 73 of file unit_input.h.

#define SWITCH_F5_KEY   (SWITCH_F1_KEY+4)

Definition at line 74 of file unit_input.h.

#define SWITCH_F6_KEY   (SWITCH_F1_KEY+5)

Definition at line 75 of file unit_input.h.

#define SWITCH_F7_KEY   (SWITCH_F1_KEY+6)

Definition at line 76 of file unit_input.h.

#define SWITCH_F8_KEY   (SWITCH_F1_KEY+7)

Definition at line 77 of file unit_input.h.

#define SWITCH_F9_KEY   (SWITCH_F1_KEY+8)

Definition at line 78 of file unit_input.h.

#define SWITCH_LAYOUT_NAME   "SWITCH_LAYOUT"

Definition at line 136 of file unit_input.h.

#define SWITCH_TO_NEXT_LOCALE   "SWITCH_TO_NEXT_LOCALE"

Definition at line 134 of file unit_input.h.

#define SWITCH_TO_PREV_LOCALE   "SWITCH_TO_PREV_LOCALE"

Definition at line 135 of file unit_input.h.

#define SYSTEM_PROFILE_NAME   "sysime.cfg"

Definition at line 140 of file unit_input.h.

#define TAB_KEY   11

Definition at line 95 of file unit_input.h.

#define UPPER_LABEL   2

Definition at line 147 of file unit_input.h.

#define USER_OPTION_FILE_NAME   "options.cfg"

Definition at line 142 of file unit_input.h.

#define USER_PROFILE_NAME   "ime.cfg"

Definition at line 139 of file unit_input.h.

#define USER_PROFILE_PATH   ".Xlocale"

Definition at line 138 of file unit_input.h.

#define VAR_LE_DIR   "/var/lib/iiim/le"

Definition at line 143 of file unit_input.h.


Typedef Documentation

typedef struct IMEArgRec * IMEArg
typedef struct IMEArgListRec * IMEArgList
typedef struct IMEBaseRec * IMEBase
typedef struct IMEBufferRec * IMEBuffer
typedef struct IMECoreRec * IMECore
typedef struct IMEEngineRec * IMEEngine
typedef struct IMEEnvListRec * IMEEnvList
typedef struct IMEKeyRec * IMEKey
typedef struct IMEKeyMapRec * IMEKeyMap
typedef struct _method_t * IMEMethods
typedef struct _method_t IMEMethodsRec

Definition at line 400 of file unit_input.h.

typedef struct _unit_if_t unit_if_t

Enumeration Type Documentation

Enumerator:
IME_HOTKEY_PROFILE_ONE 
IME_HOTKEY_PROFILE_TWO 
IME_HOTKEY_PROFILE_THREE 
IME_HOTKEY_PROFILE_NUM 

Definition at line 238 of file unit_input.h.

Enumerator:
IME_HOTKEY_START 
IME_HOTKEY_END 
IME_HOTKEY_NOT_IN_USE 
IME_HOTKEY_COMMIT 

Definition at line 231 of file unit_input.h.