Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / DtWidget / Control.h
1 /* $XConsortium: Control.h /main/4 1995/10/26 09:30:15 rswiston $ */
2 /**---------------------------------------------------------------------
3 ***     
4 ***     file:           Control.h
5 ***
6 ***     project:        MotifPlus Widgets
7 ***
8 ***     description:    Public include file for DtControl class.
9 ***     
10 ***     
11 ***                     (c) Copyright 1992 by Hewlett-Packard Company.
12 ***
13 ***
14 ***-------------------------------------------------------------------*/
15
16
17 #ifndef _DtControl_h
18 #define _DtControl_h
19
20 #include <Xm/Xm.h>
21
22 #if defined(__cplusplus) || defined(c_plusplus)
23 extern "C" {
24 #endif
25
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
35
36 #define NUM_LIST_ITEMS          10
37
38 #define XmCR_BUSY_START         60
39 #define XmCR_BUSY_STOP          61
40 #define XmCR_MONITOR            62
41
42 #define DtMONITOR_OFF           0
43 #define DtMONITOR_ON            1
44
45 #define XmNuseLabelAdjustment   "use_label_adjustment"
46
47 #ifndef DtIsControl
48 #define DtIsControl(w) XtIsSubclass(w, dtControlGadgetClass)
49 #endif /* DtIsControl */
50
51
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);
60
61
62 extern WidgetClass dtControlGadgetClass;
63
64 typedef struct _DtControlClassRec * DtControlClass;
65 typedef struct _DtControlRec      * DtControlGadget;
66
67 #define XmCR_FILE_CHANGED       51
68
69 typedef struct
70     {
71     int                  reason;
72     XEvent              *event;
73     Boolean              set;
74     unsigned char        control_type;
75     XtPointer            push_function;
76     XtPointer            push_argument;
77     Widget               subpanel;
78     long                 file_size;
79     }   DtControlCallbackStruct;
80
81 #if defined(__cplusplus) || defined(c_plusplus)
82 }  /* Close scope of 'extern "C"' declaration which encloses file. */
83 #endif
84
85
86 #endif /* _DtControl_h */
87 /* DON'T ADD ANYTHING AFTER THIS #endif */