1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/*******************************************************************************
* *
* Viewmol *
* *
* M E N U . H *
* *
* Copyright (c) Joerg-R. Hill, October 2003 *
* *
********************************************************************************
*
* $Id: menu.h,v 1.6 2003/11/07 12:49:39 jrh Exp $
* $Log: menu.h,v $
* Revision 1.6 2003/11/07 12:49:39 jrh
* Release 2.4
*
* Revision 1.5 2000/12/10 15:11:11 jrh
* Release 2.3
*
* Revision 1.4 1999/05/24 01:28:42 jrh
* Release 2.2.1
*
* Revision 1.3 1999/02/07 21:52:09 jrh
* Release 2.2
*
* Revision 1.2 1998/01/26 00:48:30 jrh
* Release 2.1
*
* Revision 1.1 1996/12/10 18:45:49 jrh
* Initial revision
*
*/
struct MenuItem
{
char *label; /* the label for the item */
WidgetClass *class; /* pushbutton, label, separator... */
void (*callback)(); /* routine to call; NULL if none */
XtPointer callback_data; /* client_data for callback() */
Widget widget; /* the widget of the menu item */
struct MenuItem *subitems; /* pullright menu items, if not NULL */
};
struct MENUDATA
{
struct MenuItem *submenu;
int window;
int which;
};
|