changed reading hint
[gromacs/adressmacs.git] / src / ngmx / buttons.h
blob73a32bd5fc2692939ba4da807b915f7c4dddb7f9
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
30 #ifndef _buttons_h
31 #define _buttons_h
33 static char *SRCID_buttons_h = "$Id$";
35 #include <xutil.h>
37 enum {
38 IDROTX,IDROTY,IDROTZ,IDTRANSX,IDTRANSY,IDTRANSZ,IDZOOM,IDBUTNR,
39 IDREWIND,IDSTEP,IDFF,IDSTOP_ANI,IDNR,
40 IDDRAWMOL,IDLABEL
43 #define AIR 3 /* extra space between child windows */
44 #define BORDER 1
46 #define EnterLeave (EnterWindowMask | LeaveWindowMask)
48 typedef struct {
49 t_windata wd;
50 int ID;
51 } t_mwbut;
53 typedef struct {
54 t_windata wd;
55 int nbut;
56 t_mwbut *b;
57 } t_butbox;
59 extern t_butbox *init_vbox(t_x11 *x11,Window Parent,Window SendTo,
60 unsigned long fg,unsigned long bg);
62 extern void set_vbtime(t_x11 *x11,t_butbox *vbox,char *text);
64 extern t_butbox *init_bbox(t_x11 *x11,Window Parent,Window SendTo,
65 int width,unsigned long fg,unsigned long bg);
67 extern void show_but(t_x11 *x11,t_butbox *bbox);
69 extern void hide_but(t_x11 *x11,t_butbox *bbox);
71 extern void done_bbox(t_x11 *x11,t_butbox *bbox);
73 #endif