gde_linux/CORE/menudefs.h

57 lines
1.9 KiB
C
Raw Permalink Normal View History

2022-03-08 04:43:05 +08:00
typedef struct GargChoicetype
{
char *label; /* name for display in dialog box */
char *method; /* value (if null, return choice number) */
} GargChoice;
typedef struct GmenuItemArgtype
{
int optional; /* is this optional? */
int type; /* TEXT, SLIDER, CHOOSER, etc. */
int min; /* minimum range value */
int max; /* maximum range value */
int value; /* default numeric value(or choice) */
int numchoices; /* number of choices */
char *textvalue; /* default text value */
char *label; /* description of arg function */
char *symbol; /* internal symbol table mapping */
char *method; /* commandline interpretation */
GargChoice *choice; /* choices */
Panel_item X; /* Xview menu item entry */
} GmenuItemArg;
typedef struct GfileFormattype
{
int save; /* how should file be saved */
int overwrite; /* how should file be loaded */
int format; /* what format is each field */
int maskable; /* Can a write through mask be used? */
int select; /* what type of selection */
char *symbol; /* internal symbol table mapping */
char *name; /* file name */
} GfileFormat;
typedef struct GmenuItemtype
{
int numargs; /* number of agruments to cmnd */
int numoutputs; /* number of outputs from cmnd */
int numinputs; /* number of input files to cmnd */
char *label; /* item name */
char *method; /* commandline produced */
GfileFormat *input; /* input definitions */
GfileFormat *output; /* output definitions */
GmenuItemArg *arg; /* arguement definitions */
char meta; /* Meta character for function */
char *help; /* commandline help */
Panel_item X; /* Xview panel */
} GmenuItem;
typedef struct Gmenutype
{
int numitems; /* number of items in menu */
char *label; /* menu heading */
GmenuItem *item; /* menu items */
Panel_item button; /* Button to activate menu */
Menu X; /* XView menu structure */
} Gmenu;