910179ffaa4af942408b6f5465e340561f9f1176
[alexxy/gromacs.git] / src / ngmx / xdlghi.h
1 /*
2  * $Id$
3  * 
4  *       This source code is part of
5  * 
6  *        G   R   O   M   A   C   S
7  * 
8  * GROningen MAchine for Chemical Simulations
9  * 
10  *               VERSION 2.0
11  * 
12  * Copyright (c) 1991-1999
13  * BIOSON Research Institute, Dept. of Biophysical Chemistry
14  * University of Groningen, The Netherlands
15  * 
16  * Please refer to:
17  * GROMACS: A message-passing parallel molecular dynamics implementation
18  * H.J.C. Berendsen, D. van der Spoel and R. van Drunen
19  * Comp. Phys. Comm. 91, 43-56 (1995)
20  * 
21  * Also check out our WWW page:
22  * http://md.chem.rug.nl/~gmx
23  * or e-mail to:
24  * gromacs@chem.rug.nl
25  * 
26  * And Hey:
27  * Great Red Oystrich Makes All Chemists Sane
28  */
29
30 #ifndef _xdlghi_h
31 #define _xdlghi_h
32
33 static char *SRCID_xdlghi_h = "$Id$";
34
35 #ifdef HAVE_IDENT
36 #ident  "@(#) xdlghi.h 1.2 9/29/92"
37 #endif /* HAVE_IDENT */
38
39 #include <stdarg.h>
40 #include "Xstuff.h"
41 #include "x11.h"
42 #include "xdlg.h"
43
44 typedef struct {
45   int       nitem;
46   int       w,h;
47   t_dlgitem **list;
48 } t_dlgitemlist;
49
50 extern t_dlgitem **CreateRadioButtonGroup(t_x11 *x11, char *szTitle, 
51                                           t_id GroupID, int nrb, t_id rb[],
52                                           int nSelect,
53                                           char *szRB[], int x0,int y0);
54 /* This routine creates a radio button group at the
55  * specified position. The return values is a pointer to an
56  * array of dlgitems, the array has length (nrb+1) with the +1
57  * because of the groupbox.
58  * nSelect is the ordinal of the selected button.
59  */
60
61 extern t_dlgitem **CreateDlgitemGroup(t_x11 *x11, char *szTitle, 
62                                       t_id GroupID, int x0, int y0,
63                                       int nitem, ...);
64 /* This routine creates a dlgitem group at the
65  * specified position. The return values is a pointer to an
66  * array of dlgitems, the array has length (nitem+1) with the +1
67  * because of the groupbox.
68  */
69
70 extern t_dlg *ReadDlg(t_x11 *x11,Window Parent, char *title,
71                       unsigned long fg, unsigned long bg, char *infile, 
72                       int x0, int y0, bool bAutoPosition,bool bUseMon,
73                       DlgCallback *cb,void *data);
74 /* Read a dialog box from a template file */
75
76 #endif  /* _xdlghi_h */