Tagged files with gromacs 3.0 header and added some license info
[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 3.0
11  * 
12  * Copyright (c) 1991-2001
13  * BIOSON Research Institute, Dept. of Biophysical Chemistry
14  * University of Groningen, The Netherlands
15  * 
16  * This program is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU General Public License
18  * as published by the Free Software Foundation; either version 2
19  * of the License, or (at your option) any later version.
20  * 
21  * If you want to redistribute modifications, please consider that
22  * scientific software is very special. Version control is crucial -
23  * bugs must be traceable. We will be happy to consider code for
24  * inclusion in the official distribution, but derived work must not
25  * be called official GROMACS. Details are found in the README & COPYING
26  * files - if they are missing, get the official version at www.gromacs.org.
27  * 
28  * To help us fund GROMACS development, we humbly ask that you cite
29  * the papers on the package - you can find them in the top README file.
30  * 
31  * Do check out http://www.gromacs.org , or mail us at gromacs@gromacs.org .
32  * 
33  * And Hey:
34  * Good gRace! Old Maple Actually Chews Slate
35  */
36
37 #ifndef _xdlghi_h
38 #define _xdlghi_h
39
40 static char *SRCID_xdlghi_h = "$Id$";
41 #ifdef HAVE_IDENT
42 #ident  "@(#) xdlghi.h 1.2 9/29/92"
43 #endif /* HAVE_IDENT */
44
45 #include <stdarg.h>
46 #include "Xstuff.h"
47 #include "x11.h"
48 #include "xdlg.h"
49
50 typedef struct {
51   int       nitem;
52   int       w,h;
53   t_dlgitem **list;
54 } t_dlgitemlist;
55
56 extern t_dlgitem **CreateRadioButtonGroup(t_x11 *x11, char *szTitle, 
57                                           t_id GroupID, int nrb, t_id rb[],
58                                           int nSelect,
59                                           char *szRB[], int x0,int y0);
60 /* This routine creates a radio button group at the
61  * specified position. The return values is a pointer to an
62  * array of dlgitems, the array has length (nrb+1) with the +1
63  * because of the groupbox.
64  * nSelect is the ordinal of the selected button.
65  */
66
67 extern t_dlgitem **CreateDlgitemGroup(t_x11 *x11, char *szTitle, 
68                                       t_id GroupID, int x0, int y0,
69                                       int nitem, ...);
70 /* This routine creates a dlgitem group at the
71  * specified position. The return values is a pointer to an
72  * array of dlgitems, the array has length (nitem+1) with the +1
73  * because of the groupbox.
74  */
75
76 extern t_dlg *ReadDlg(t_x11 *x11,Window Parent, char *title,
77                       unsigned long fg, unsigned long bg, char *infile, 
78                       int x0, int y0, bool bAutoPosition,bool bUseMon,
79                       DlgCallback *cb,void *data);
80 /* Read a dialog box from a template file */
81
82 #endif  /* _xdlghi_h */