1 /* $XConsortium: Control.h /main/4 1995/10/26 09:30:15 rswiston $ */
2 /**---------------------------------------------------------------------
6 *** project: MotifPlus Widgets
8 *** description: Public include file for DtControl class.
11 *** (c) Copyright 1992 by Hewlett-Packard Company.
14 ***-------------------------------------------------------------------*/
22 #if defined(__cplusplus) || defined(c_plusplus)
26 #define XmCONTROL_NONE 0
27 #define XmCONTROL_BLANK 1
28 #define XmCONTROL_BUSY 2
29 #define XmCONTROL_BUTTON 3
30 #define XmCONTROL_CLIENT 4
31 #define XmCONTROL_DATE 5
32 #define XmCONTROL_MAIL 6
33 #define XmCONTROL_MONITOR 7
34 #define XmCONTROL_SWITCH 8
36 #define NUM_LIST_ITEMS 10
38 #define XmCR_BUSY_START 60
39 #define XmCR_BUSY_STOP 61
40 #define XmCR_MONITOR 62
42 #define DtMONITOR_OFF 0
43 #define DtMONITOR_ON 1
45 #define XmNuseLabelAdjustment "use_label_adjustment"
48 #define DtIsControl(w) XtIsSubclass(w, dtControlGadgetClass)
49 #endif /* DtIsControl */
52 extern Widget _DtCreateControl (Widget, String, ArgList, int);
53 extern void _DtControlSetFileChanged (Widget, Boolean);
54 extern void _DtControlSetBusy (Widget, Boolean);
55 extern void _DtControlAddDropAnimationImage (Widget, String, int);
56 extern void _DtControlDoDropAnimation (Widget);
57 extern void _DtControlAddPushAnimationImage (Widget, String, int);
58 extern void _DtControlDoPushAnimation (Widget);
59 extern char _DtControlGetMonitorState(Widget);
62 extern WidgetClass dtControlGadgetClass;
64 typedef struct _DtControlClassRec * DtControlClass;
65 typedef struct _DtControlRec * DtControlGadget;
67 #define XmCR_FILE_CHANGED 51
74 unsigned char control_type;
75 XtPointer push_function;
76 XtPointer push_argument;
79 } DtControlCallbackStruct;
81 #if defined(__cplusplus) || defined(c_plusplus)
82 } /* Close scope of 'extern "C"' declaration which encloses file. */
86 #endif /* _DtControl_h */
87 /* DON'T ADD ANYTHING AFTER THIS #endif */