comparison include/CcWnnP.h @ 0:92745d501b9a

initial import from kinput2-v3.1
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 08 Mar 2010 04:44:30 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92745d501b9a
1 /* $Id: CcWnnP.h,v 1.16 1999/04/12 08:53:38 ishisone Exp $ */
2 /*
3 * Copyright (c) 1990 Software Research Associates, Inc.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation for any purpose and without fee is hereby granted, provided
7 * that the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of Software Research Associates not be
10 * used in advertising or publicity pertaining to distribution of the
11 * software without specific, written prior permission. Software Research
12 * Associates makes no representations about the suitability of this software
13 * for any purpose. It is provided "as is" without express or implied
14 * warranty.
15 *
16 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
17 */
18
19 #ifndef _CcWnnP_h
20 #define _CcWnnP_h
21
22 #include "InputConvP.h"
23
24 #undef wchar
25 #include "WStr.h"
26 #include "CcWnn.h"
27 #include "wnnlib.h"
28 #include "cconv.h"
29
30 typedef struct {
31 int foo;
32 } CcWnnClassPart;
33
34 typedef struct _CcWnnClassRec {
35 ObjectClassPart object_class;
36 InputConvClassPart inputConv_class;
37 CcWnnClassPart ccWnn_class;
38 } CcWnnClassRec;
39
40 typedef enum {
41 normal_state,
42 selection_s_state, /* $B>.J8@a8uJdA*Br%b!<%I(B */
43 selection_l_state, /* $BBgJ8@a8uJdA*Br%b!<%I(B */
44 symbol_state /* $B5-9fF~NO%b!<%I(B */
45 } CcWnnState;
46
47 typedef struct {
48 /* resources */
49 int (*confirmfunc)();
50 XtPointer confirmdata;
51 String jservername;
52 String jservername2; /* secondary jserver */
53 String wnnenvname;
54 String wnnenvrcfile;
55 String wnnenvrcfile4; /* rcfile for Wnn4 */
56 String wnnenvrcfile6; /* rcfile for Wnn6 */
57 Boolean wnnoverrideenv;
58 String ccdeffile;
59 struct wnn_buf *wnnbuf;
60 ccRule ccrule;
61 int saveinterval;
62 /* private data */
63 ccBuf ccbuf;
64 jcConvBuf *jcbuf;
65 Boolean createrule; /* ccrule $B$r<+J,$G:n$C$?$+30$+$iM?$($i$l$?$+(B */
66 Boolean createenv; /* wnnenv $B$r<+J,$G:n$C$?$+30$+$iM?$($i$l$?$+(B */
67 CcWnnState state; /* $BJQ49$NFbIt>uBV(B */
68 Boolean textchanged; /* $BJQ49%F%-%9%H$,JQ$o$C$?$+(B */
69 Boolean selectionending;/* $BA*Br%b!<%I$r=*N;$7$h$&$H$7$F$$$k$+(B */
70 Boolean sendbackevent; /* $B%$%Y%s%H$rAw$jJV$9$+(B */
71 Boolean fixperformed; /* $B3NDj=hM}$,9T$o$l$?$+(B */
72 ICString *symbollist;
73 int numsymbols;
74 int cursymbol; /* $B5-9fA*Br%b!<%I$N;~!"8=:_A*Br$5$l$F$$$k5-9f(B */
75 ICString *candlist;
76 int candlistsize;
77 wchar *strdata;
78 int strdatasize;
79 int numcand; /* $BA*Br%b!<%I$N;~!"8uJd?t(B */
80 int curcand; /* $B8uJdA*Br%b!<%I$N;~!"8=:_A*Br$5$l$F$$$k8uJd(B */
81 int fixcount;
82 enum {JIS_MODE, KUTEN_MODE, OTHERS} inputmode;
83 wchar *pendingdata;
84 int cont; /* $B8eB3$N%3%^%s%I$r<B9T$9$k$+(B */
85 Widget selwidget; /* $B%;%l%/%7%g%sMQ$NJd=u%&%#%8%'%C%H(B */
86 char *selyomi; /* $B%;%l%/%7%g%s$GJV$9!VFI$_!W(B */
87 char *selkanji; /* $B%;%l%/%7%g%s$GJV$9!V4A;z!W(B */
88 } CcWnnPart;
89
90 typedef struct _CcWnnRec {
91 ObjectPart object;
92 InputConvPart inputConv;
93 CcWnnPart ccWnn;
94 } CcWnnRec;
95
96 #endif