/*
- *
+ *
* This source code is part of
- *
+ *
* G R O M A C S
- *
+ *
* GROningen MAchine for Chemical Simulations
- *
+ *
* VERSION 3.2.0
* Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* If you want to redistribute modifications, please consider that
* scientific software is very special. Version control is crucial -
* bugs must be traceable. We will be happy to consider code for
* inclusion in the official distribution, but derived work must not
* be called official GROMACS. Details are found in the README & COPYING
* files - if they are missing, get the official version at www.gromacs.org.
- *
+ *
* To help us fund GROMACS development, we humbly ask that you cite
* the papers on the package - you can find them in the top README file.
- *
+ *
* For more info, check our website at http://www.gromacs.org
- *
+ *
* And Hey:
* Gyas ROwers Mature At Cryogenic Speed
*/
#define DLG_HIDEONBUTTON (1<<4)
#define DLG_FREEONBUTTON (1<<5)
-enum { DLG_SET, DLG_EXIT };
+enum {
+ DLG_SET, DLG_EXIT
+};
-typedef void DlgCallback(t_x11 *x11,int dlg_mess,int item_id,
- char *set,void *data);
+typedef void DlgCallback (t_x11 *x11, int dlg_mess, int item_id,
+ char *set, void *data);
/* User function that can be called by the dialog box. All setting of
* check-boxes and radio-buttons etc., is done by the dialog manager,
* the user can let himself be informed about mouse activity also.
*/
typedef struct {
- t_x11 *x11; /* All about X */
- t_windata win; /* The position and size of the window */
- char *title; /* Window name */
- Window wDad; /* The parent window */
- unsigned int xmax,ymax; /* Dimensions of parent window */
- unsigned long flags; /* Flags for display */
- unsigned long fg,bg; /* The colours */
- gmx_bool bPop; /* Should we pop the mouse back */
- gmx_bool bGrab; /* Have we grabbed the mouse ? */
- int nitem; /* The number of items */
- t_dlgitem **dlgitem; /* The array of item pointers */
- DlgCallback *cb; /* User call back function */
- void *data; /* User data */
+ t_x11 *x11; /* All about X */
+ t_windata win; /* The position and size of the window */
+ char *title; /* Window name */
+ Window wDad; /* The parent window */
+ unsigned int xmax, ymax; /* Dimensions of parent window */
+ unsigned long flags; /* Flags for display */
+ unsigned long fg, bg; /* The colours */
+ gmx_bool bPop; /* Should we pop the mouse back */
+ gmx_bool bGrab; /* Have we grabbed the mouse ? */
+ int nitem; /* The number of items */
+ t_dlgitem **dlgitem; /* The array of item pointers */
+ DlgCallback *cb; /* User call back function */
+ void *data; /* User data */
} t_dlg;
/*****************************
* cb and data may be NULL.
*
****************************/
-t_dlg *CreateDlg(t_x11 *x11,Window Parent,const char *title,
- int x0,int y0,int w,int h,int bw,unsigned long fg,unsigned long bg,
- DlgCallback *cb,void *data);
+t_dlg *CreateDlg(t_x11 *x11, Window Parent, const char *title,
+ int x0, int y0, int w, int h, int bw, unsigned long fg, unsigned long bg,
+ DlgCallback *cb, void *data);
/*****************************
*
* the item itself may not be freed until the dlg is done with
*
****************************/
-void AddDlgItem(t_dlg *dlg,t_dlgitem *item);
+void AddDlgItem(t_dlg *dlg, t_dlgitem *item);
-void AddDlgItems(t_dlg *dlg,int nitem,t_dlgitem *item[]);
+void AddDlgItems(t_dlg *dlg, int nitem, t_dlgitem *item[]);
/*****************************
*
* FALSE will mean most of the time, that item id was not found
*
****************************/
-gmx_bool QueryDlgItemSize(t_dlg *dlg,t_id id,int *w,int *h);
+gmx_bool QueryDlgItemSize(t_dlg *dlg, t_id id, int *w, int *h);
-gmx_bool QueryDlgItemPos(t_dlg *dlg,t_id id,int *x0,int *y0);
+gmx_bool QueryDlgItemPos(t_dlg *dlg, t_id id, int *x0, int *y0);
int QueryDlgItemX(t_dlg *dlg, t_id id);
int QueryDlgItemH(t_dlg *dlg, t_id id);
-gmx_bool SetDlgItemSize(t_dlg *dlg,t_id id,int w,int h);
+gmx_bool SetDlgItemSize(t_dlg *dlg, t_id id, int w, int h);
-gmx_bool SetDlgItemPos(t_dlg *dlg,t_id id,int x0,int y0);
+gmx_bool SetDlgItemPos(t_dlg *dlg, t_id id, int x0, int y0);
-void SetDlgSize(t_dlg *dlg,int w,int h, gmx_bool bAutoPosition);
+void SetDlgSize(t_dlg *dlg, int w, int h, gmx_bool bAutoPosition);
/*****************************
*
* after dlg is exec'ed
*
****************************/
-gmx_bool IsCBChecked(t_dlg *dlg,t_id id);
+gmx_bool IsCBChecked(t_dlg *dlg, t_id id);
-t_id RBSelected(t_dlg *dlg,int gid);
+t_id RBSelected(t_dlg *dlg, int gid);
-int EditTextLen(t_dlg *dlg,t_id id);
+int EditTextLen(t_dlg *dlg, t_id id);
-char *EditText(t_dlg *dlg,t_id id);
+char *EditText(t_dlg *dlg, t_id id);
/*****************************
*
void FreeDlg(t_dlg *dlg);
-#endif /* _xdlg_h */
+#endif /* _xdlg_h */