1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
/* $Id: OnConvP.h,v 10.5 1999/05/18 08:53:19 ishisone Exp $ */
/*
* Copyright (c) 1990 Software Research Associates, Inc.
* Copyright (c) 1999 Kazuki YASUMATSU
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Software Research Associates not be
* used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission. Software Research
* Associates makes no representations about the suitability of this software
* for any purpose. It is provided "as is" without express or implied
* warranty.
*
* Author: Makoto Ishisone, Software Research Associates, Inc., Japan
* Author: Kazuki YASUMATSU (Kazuki.Yasumatsu@fujixerox.co.jp)
*/
#ifndef _OnTheSpotConversionP_h
#define _OnTheSpotConversionP_h
#include "ConvCtrlP.h"
#include "OnConv.h"
#define XtRFeedbackAttributes "FeedbackAttributes"
typedef struct {
ICString seg; /* セグメント */
} DisplaySegment;
typedef struct {
unsigned long feedbacks[4];
#define FEEDBACK_NOCONV 0 /* for non-converted segment */
#define FEEDBACK_CONV 1 /* converted but not current */
#define FEEDBACK_CURRENT 2 /* converted and current */
#define FEEDBACK_CURRENTSUB 3 /* converted and current subsegment */
} FeedbackAttributes;
/*
* on-the-spot conversion control widget data structure
*/
typedef struct {
int empty;
} OnTheSpotConversionClassPart;
typedef struct _OnTheSpotConversionClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
ShellClassPart shell_class;
WMShellClassPart wm_shell_class;
VendorShellClassPart vendor_shell_class;
TransientShellClassPart transient_shell_class;
ConversionControlClassPart conversionControl_class;
OnTheSpotConversionClassPart onTheSpotConversion_class;
} OnTheSpotConversionClassRec;
extern OnTheSpotConversionClassRec onTheSpotConversionClassRec;
typedef struct {
/* resources */
XtCallbackList preeditstartcallback;
XtCallbackList preeditdonecallback;
XtCallbackList preeditdrawcallback;
XtCallbackList preeditcaretcallback;
XtCallbackList statusstartcallback;
XtCallbackList statusdonecallback;
XtCallbackList statusdrawcallback;
FeedbackAttributes feedbackattrs;
/* private state */
Widget selectionshell;
Widget selectionwidget;
Widget auxshell;
Widget auxwidget;
DisplaySegment *dispsegments;
Cardinal numsegments;
Cardinal dispsegmentsize;
ICString *candlist;
Cardinal numcands;
Boolean selectionpoppedup;
Boolean auxpoppedup;
Cardinal lastcaret;
Boolean fixnotify;
} OnTheSpotConversionPart;
typedef struct _OnTheSpotConversionRec {
CorePart core;
CompositePart composite;
ShellPart shell;
WMShellPart wm;
VendorShellPart vendor;
TransientShellPart transient;
ConversionControlPart ccontrol;
OnTheSpotConversionPart onthespot;
} OnTheSpotConversionRec;
#endif
|