Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / misc.h
1 /*******************************************************************************
2 **
3 **  misc.h
4 **
5 **  static char sccsid[] = "@(#)misc.h 1.27 95/02/09 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: misc.h /main/4 1995/11/03 10:29:44 rswiston $
8 **
9 **  RESTRICTED CONFIDENTIAL INFORMATION:
10 **
11 **  The information in this document is subject to special
12 **  restrictions in a confidential disclosure agreement between
13 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
14 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
15 **  Sun's specific written approval.  This document and all copies
16 **  and derivative works thereof must be returned or destroyed at
17 **  Sun's request.
18 **
19 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
20 **
21 *******************************************************************************/
22
23 /*                                                                      *
24  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
25  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
26  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
27  * (c) Copyright 1993, 1994 Novell, Inc.                                *
28  */
29
30 #ifndef _MISC_H
31 #define _MISC_H
32
33 #include <X11/Intrinsic.h>
34 #include <Xm/Xm.h>
35 #include <csa.h>
36 #include "ansi_c.h"
37 #include "calendar.h"
38 #include "cm_tty.h"
39 #include "datefield.h"
40
41 /*
42 **  Variable "types" to be passed to the dialog_popup function (that
43 **  function accepts a variable argument list with these attribute, value
44 **  pairs).
45 **
46 **  The BUTTON_IDENT attribute can be used to identify 1 or more buttons on
47 **  the dialog.  The int id value will be returned if that button is
48 **  pressed and the char* name value will be the button label.
49 */
50 typedef enum {
51         DIALOG_TITLE = 1,       /*  Followed by char*  */
52         DIALOG_TEXT,            /*  Followed by char* */
53         BUTTON_IDENT,           /*  Followed by int, char*  */
54         DIALOG_IMAGE,           /*  Followed by pixmap from Props_pu */
55         BUTTON_HELP,            /*  Followed by char*  */
56         BUTTON_INSENSITIVE      /*  Followed by int, char*  */
57 } Dialog_create_op;
58
59 /*
60 **  External function declarations
61 */
62 extern char     *cm_mbchar              P((char*));
63 extern int      cm_mbstrlen             P((char*));
64 extern Widget   create_for_menu         P((Widget));
65 extern Widget   create_privacy_menu     P((Widget));
66 extern Widget   create_repeat_menu      P((Widget, XtCallbackProc, XtPointer));
67 extern Widget   create_repeat_scope_menu P((Widget, XmString, XtCallbackProc,
68                                             XtPointer));
69 extern Widget   create_start_stop_time_menu P((Widget, XmString, XtCallbackProc,
70                                                XtPointer, Props*, Boolean, 
71                                                 Boolean, Widget**, int*));
72 extern Widget   create_time_scope_menu  P((Widget, XmString, XtCallbackProc,
73                                            XtPointer));
74 #ifndef _AIX
75 extern int      dialog_popup            P((Widget, ...));
76 #endif /* _AIX */
77 extern void     editor_err_msg          P((Widget, char*, Validate_op, Pixmap));
78 extern void     backend_err_msg         P((Widget, char*, CSA_return_code, Pixmap));
79 extern void     get_range               P((Glance, time_t, time_t*, time_t*));
80 extern boolean_t query_user             P((void*));
81 extern void     set_message             P((Widget, char*));
82 extern void     setup_quit_handler      P((Widget, XtCallbackProc, caddr_t));
83 extern int      ds_is_double_click      P((XEvent*, XEvent*));
84 extern int      cm_select_text          P((Widget, Time));
85 extern void     set_time_submenu        P((Widget, Widget, Props*, 
86                                            XtCallbackProc, XtPointer, 
87                                            Boolean, Boolean, Widget**, int*));
88 extern void     ManageChildren          P((Widget));
89 #endif