changed reading hint
[gromacs/adressmacs.git] / src / ngmx / dlg.c
blobf024fe447bacb074ec2acd701a4c71d7fbb78043
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
12 * Copyright (c) 1991-1999
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
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)
21 * Also check out our WWW page:
22 * http://md.chem.rug.nl/~gmx
23 * or e-mail to:
24 * gromacs@chem.rug.nl
26 * And Hey:
27 * Great Red Oystrich Makes All Chemists Sane
29 static char *SRCID_dlg_c = "$Id$";
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <xdlghi.h>
35 int main(int argc, char *argv[])
37 t_x11 *x11;
38 t_dlg *dlg;
40 if ((x11=GetX11(&argc,argv))==NULL) {
41 fprintf(stderr,"No X!\n");
42 exit(1);
44 if (argc > 1) {
45 dlg=ReadDlg(x11,0,x11->title,x11->fg,x11->bg,argv[1],100,100,TRUE,
46 TRUE,NULL,NULL);
47 ShowDlg(dlg);
48 x11->MainLoop(x11);
50 else
51 fprintf(stderr,"Usage: %s [ X options ] infile\n",argv[0]);
53 x11->CleanUp(x11);
55 return 0;