Partial commit of the project to remove all static variables.
[gromacs.git] / src / ngmx / fgrid.h
blobe5de2e7be145c6e4c7c15c12b273237cdda5fc12
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.1
11 * Copyright (c) 1991-2001, University of Groningen, The Netherlands
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * If you want to redistribute modifications, please consider that
18 * scientific software is very special. Version control is crucial -
19 * bugs must be traceable. We will be happy to consider code for
20 * inclusion in the official distribution, but derived work must not
21 * be called official GROMACS. Details are found in the README & COPYING
22 * files - if they are missing, get the official version at www.gromacs.org.
24 * To help us fund GROMACS development, we humbly ask that you cite
25 * the papers on the package - you can find them in the top README file.
27 * For more info, check our website at http://www.gromacs.org
29 * And Hey:
30 * Glycine aRginine prOline Methionine Alanine Cystine Serine
33 #ifndef _fgrid_h
34 #define _fgrid_h
36 #include <typedefs.h>
37 #include <xdlg.h>
39 typedef struct {
40 edlgitem edlg;
41 bool bDef;
42 int nname;
43 char **name;
44 char *set,*get,*def,*help;
45 } t_fitem;
47 typedef struct {
48 char *name;
49 int x,y,w,h;
50 int nfitem;
51 t_fitem **fitem;
52 } t_fgroup;
54 typedef struct {
55 int x,y,w,h;
56 t_fitem *fitem;
57 } t_fsimple;
59 typedef struct {
60 int w,h;
61 int nfgroup;
62 t_fgroup **fgroup;
63 int nfsimple;
64 t_fsimple **fsimple;
65 } t_fgrid;
67 typedef enum {
68 eGRIDEXP, eACCOEXP, eACCCEXP, eGRPEXP, eITEMEXP, eSAMEPOINT,
69 eTOOWIDE, eTOOHIGH, eQUOTE, eNOVALS
70 } eDLGERR;
72 extern void ReadDlgErr(char *infile, eDLGERR err, char *s);
74 extern t_fgrid *FGridFromFile(char *infile);
76 extern void DoneFGrid(t_fgrid *fgrid);
78 extern void DumpFGrid(t_fgrid *fgrid);
80 extern void ReadQuoteString(char *infile, FILE *in, char *buf);
82 #endif /* _fgrid_h */