1 #ifndef _misc_h_
2 #define _misc_h_
3 
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <X11/X.h>
7 #include <X11/Xlib.h>
8 #include <X11/Intrinsic.h>
9 #include <Xm/XmAll.h>
10 
11 char *XtomGetFileName(Widget parent, const char *title,
12 						const char *default_path,
13 						const char *filter, int width, int height);
14 Boolean XtomGetChoice(Widget parent, const char *title, const char *message);
15 XmString XMSTR(const char *str);
16 
17 /* dialogType can be one of these:
18      XmDIALOG_MESSAGE
19      XmDIALOG_WARNING
20      XmDIALOG_QUESTION
21      XmDIALOG_INFORMATION
22      XmDIALOG_ERROR
23      XmDIALOG_WORKING
24  */
25 void XtomShowMessage(Widget parent, unsigned char dialogType,
26                      const char *title, const char *message);
27 
28 #endif /* _misc_h_ */
29