Upped the version to 3.2.0
[gromacs.git] / src / ngmx / xdlghi.h
blob805a4894fa008d0404ee816b4a74fc61283a0b3b
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.2.0
11 * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
12 * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
13 * Copyright (c) 2001-2004, The GROMACS development team,
14 * check out http://www.gromacs.org for more information.
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.
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.
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.
31 * For more info, check our website at http://www.gromacs.org
33 * And Hey:
34 * Gyas ROwers Mature At Cryogenic Speed
37 #ifndef _xdlghi_h
38 #define _xdlghi_h
40 #include <stdarg.h>
41 #include "Xstuff.h"
42 #include "x11.h"
43 #include "xdlg.h"
45 typedef struct {
46 int nitem;
47 int w,h;
48 t_dlgitem **list;
49 } t_dlgitemlist;
51 extern t_dlgitem **CreateRadioButtonGroup(t_x11 *x11, char *szTitle,
52 t_id GroupID, int nrb, t_id rb[],
53 int nSelect,
54 char *szRB[], int x0,int y0);
55 /* This routine creates a radio button group at the
56 * specified position. The return values is a pointer to an
57 * array of dlgitems, the array has length (nrb+1) with the +1
58 * because of the groupbox.
59 * nSelect is the ordinal of the selected button.
62 extern t_dlgitem **CreateDlgitemGroup(t_x11 *x11, char *szTitle,
63 t_id GroupID, int x0, int y0,
64 int nitem, ...);
65 /* This routine creates a dlgitem group at the
66 * specified position. The return values is a pointer to an
67 * array of dlgitems, the array has length (nitem+1) with the +1
68 * because of the groupbox.
71 extern t_dlg *ReadDlg(t_x11 *x11,Window Parent, char *title,
72 unsigned long fg, unsigned long bg, char *infile,
73 int x0, int y0, bool bAutoPosition,bool bUseMon,
74 DlgCallback *cb,void *data);
75 /* Read a dialog box from a template file */
77 #endif /* _xdlghi_h */