2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: Control.h /main/4 1995/10/26 09:30:15 rswiston $ */
24 /**---------------------------------------------------------------------
28 *** project: MotifPlus Widgets
30 *** description: Public include file for DtControl class.
33 *** (c) Copyright 1992 by Hewlett-Packard Company.
36 ***-------------------------------------------------------------------*/
44 #if defined(__cplusplus) || defined(c_plusplus)
48 #define XmCONTROL_NONE 0
49 #define XmCONTROL_BLANK 1
50 #define XmCONTROL_BUSY 2
51 #define XmCONTROL_BUTTON 3
52 #define XmCONTROL_CLIENT 4
53 #define XmCONTROL_DATE 5
54 #define XmCONTROL_MAIL 6
55 #define XmCONTROL_MONITOR 7
56 #define XmCONTROL_SWITCH 8
58 #define NUM_LIST_ITEMS 10
60 #define XmCR_BUSY_START 60
61 #define XmCR_BUSY_STOP 61
62 #define XmCR_MONITOR 62
64 #define DtMONITOR_OFF 0
65 #define DtMONITOR_ON 1
67 #define XmNuseLabelAdjustment "use_label_adjustment"
70 #define DtIsControl(w) XtIsSubclass(w, dtControlGadgetClass)
71 #endif /* DtIsControl */
74 extern Widget _DtCreateControl (Widget, String, ArgList, int);
75 extern void _DtControlSetFileChanged (Widget, Boolean);
76 extern void _DtControlSetBusy (Widget, Boolean);
77 extern void _DtControlAddDropAnimationImage (Widget, String, int);
78 extern void _DtControlDoDropAnimation (Widget);
79 extern void _DtControlAddPushAnimationImage (Widget, String, int);
80 extern void _DtControlDoPushAnimation (Widget);
81 extern char _DtControlGetMonitorState(Widget);
84 extern WidgetClass dtControlGadgetClass;
86 typedef struct _DtControlClassRec * DtControlClass;
87 typedef struct _DtControlRec * DtControlGadget;
89 #define XmCR_FILE_CHANGED 51
96 unsigned char control_type;
97 XtPointer push_function;
98 XtPointer push_argument;
101 } DtControlCallbackStruct;
103 #if defined(__cplusplus) || defined(c_plusplus)
104 } /* Close scope of 'extern "C"' declaration which encloses file. */
108 #endif /* _DtControl_h */
109 /* DON'T ADD ANYTHING AFTER THIS #endif */