07d04b36d35f3975a5199ee25910b5bd0fa09d1a
[alexxy/gromacs.git] / src / ngmx / nener.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 _nener_h
31 #define _nener_h
32
33 static char *SRCID_nener_h = "$Id$";
34
35 #ifdef HAVE_IDENT
36 #ident  "@(#) nener.h 1.19 9/30/97"
37 #endif /* HAVE_IDENT */
38 #include "x11.h"
39 #include "xutil.h"
40 #include "popup.h"
41
42 typedef struct {
43   t_windata   wd;               /* Window struct                */
44   t_menu      *selener;         /* The Select energy menu       */
45   int         nre,nwidth;       /* The number of terms          */
46   int         nlast;            /* The last frame added         */      
47   int         etype;            /* The term selected            */
48   real        **e;              /* The energy array             */
49 } t_enerwin;
50
51 extern t_enerwin *init_ew(t_x11 *x11,Window Parent,
52                           int x,int y,int width,int height,
53                           unsigned long fg,unsigned long bg);
54
55 extern void map_ewin(t_x11 *x11,t_enerwin *ew);
56
57 extern void add_ener(t_x11 *x11,t_enerwin *ew,t_energy e[]);
58
59 extern void rewind_ener(t_x11 *x11,t_enerwin *ew);
60
61 extern void done_ew(t_x11 *x11,t_enerwin *ew);
62
63 #endif  /* _nener_h */