1 /* 2 * This file is part of the XForms library package. 3 * 4 * XForms is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU Lesser General Public License as 6 * published by the Free Software Foundation; either version 2.1, or 7 * (at your option) any later version. 8 * 9 * XForms is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with XForms. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 /** 19 * \file pmenu.h 20 */ 21 22 #ifndef PMENU_H_ 23 #define PMENU_H_ 24 25 #define MMAXITEMS ( FL_MENU_MAXITEMS + 1 ) /* index 0 unused */ 26 27 28 /* make sure that the first 5 elements are the same as FL_CHOICE. 29 * fdesign assumes this */ 30 31 32 typedef struct { 33 int numitems; /* number of items in menu */ 34 int val; /* last menu item selected */ 35 char * items[ MMAXITEMS ]; /* individual menu items */ 36 char * shortcut[ MMAXITEMS ]; /* shortcuts for items */ 37 unsigned char mode[ MMAXITEMS ]; /* menu item mode */ 38 int align; /* onle here to mirror FL_CHOICE */ 39 int extern_menu; /* if external pop is used */ 40 short showsymbol; /* whether symbol is to be shown */ 41 short shown; /* if shown */ 42 char mval[ MMAXITEMS ]; /* entry value, position based */ 43 char modechange[ MMAXITEMS ]; 44 int cur_val; /* counter for the value */ 45 int no_title; 46 FL_PUP_CB cb[ MMAXITEMS ]; /* item callback functions */ 47 } FLI_MENU_SPEC; 48 49 #endif 50 51 52 /* 53 * Local variables: 54 * tab-width: 4 55 * indent-tabs-mode: nil 56 * End: 57 */ 58