Upped the version to 3.2.0
[gromacs.git] / src / ngmx / dialogs.h
blobd0b38efd2cab5d14336b914f0863a00f285532f8
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 _dialogs_h
38 #define _dialogs_h
40 #include "xdlg.h"
41 #include "pulldown.h"
42 #include "manager.h"
43 #include "logo.h"
45 typedef struct {
46 bool bMapped;
47 t_dlg *dlg;
48 } t_dialogs;
50 typedef enum { edExport, edBonds, edFilter, edNR } eDialogs;
52 typedef enum {
53 emQuit, emHelp, emAbout, emNotImplemented, emNR
54 } eMBoxes;
56 typedef enum {
57 eExpGromos, eExpPDB, eExpNR
58 } eExport;
60 typedef struct {
61 char confout[256]; /* Export file */
62 int ExpMode; /* Export mode */
63 t_dlg **dlgs; /* Temporary storage for dlgs */
64 int which_mb; /* Which mb is visible */
65 t_dlg **mboxes; /* id for message boxes */
66 t_filter *filter; /* Filter for visibility etc. */
67 t_windata *wd; /* The main window */
68 t_pulldown *pd; /* The pull-down menu */
69 t_manager *man; /* The manager */
70 /*t_statrec *sr;*/ /* The statistics dlg */
71 t_logo *logo; /* The gromacs logo */
72 } t_gmx;
74 enum {
75 IDNEW,IDOPEN,IDOPENED,IDCLOSE,IDIMPORT,IDEXPORT,IDDOEXPORT,IDQUIT,IDTERM,
76 IDEDITTOP,IDEDITCOORDS,IDEDITPARAMS,
77 IDGROMPP,IDRUNMD,IDDOGROMPP,IDGSTAT,IDDOGSTAT,IDDORUNMD,
78 IDFILTER,IDDOFILTER,
79 IDANIMATE,IDSHOWBOX,IDRMPBC,IDHYDROGEN,IDLABELSOFF,IDRESETVIEW,IDPHOTO,
80 IDDUMPWIN,IDDODUMP,
81 IDBONDOPTS,IDTHIN,IDFAT,IDVERYFAT,IDBALLS,
82 IDNOBOX,IDRECTBOX,IDTRIBOX,IDTOBOX,
83 IDBOND,IDANGLE,IDDIH,IDRMS,IDRDF,IDENERGIES,IDCORR,
84 IDHELP,IDABOUT,
86 /* Last line specifies how many IDs there are */
87 IDMENUNR
90 extern void run_grompp(t_gmx *gmx);
92 extern void run_mdrun(t_gmx *gmx);
94 extern void write_gmx(t_x11 *x11,t_gmx *gmx,int mess);
96 /*extern void run_sr(t_statrec *sr);
98 extern t_statrec *init_sr();*/
100 extern void init_dlgs(t_x11 *x11,t_gmx *gmx);
102 extern void show_mb(t_gmx *gmx,int mb);
104 extern void done_dlgs(t_gmx *gmx);
106 extern void edit_file(char *fn);
108 extern t_filter *init_filter(t_atoms *atoms, char *fn, int natom_trx);
110 extern t_dlg *select_filter(t_x11 *x11,t_gmx *gmx);
112 #endif