1 /*******************************************************************************
5 ** static char sccsid[] = "@(#)misc.h 1.27 95/02/09 Copyr 1991 Sun Microsystems, Inc.";
7 ** $XConsortium: misc.h /main/4 1995/11/03 10:29:44 rswiston $
9 ** RESTRICTED CONFIDENTIAL INFORMATION:
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
19 ** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
21 *******************************************************************************/
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. *
33 #include <X11/Intrinsic.h>
39 #include "datefield.h"
42 ** Variable "types" to be passed to the dialog_popup function (that
43 ** function accepts a variable argument list with these attribute, value
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.
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* */
60 ** External function declarations
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,
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,
75 extern int dialog_popup P((Widget, ...));
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));