ARB
GDE_menu.h
Go to the documentation of this file.
1 // =============================================================== //
2 // //
3 // File : GDE_menu.h //
4 // Purpose : //
5 // //
6 // =============================================================== //
7 
8 #ifndef GDE_MENU_H
9 #define GDE_MENU_H
10 
11 #ifndef GDE_HXX
12 #include "gde.hxx"
13 #endif
14 #ifndef GDE_DEF_H
15 #include "GDE_def.h"
16 #endif
17 #ifndef CB_H
18 #include <cb.h>
19 #endif
20 
21 struct GargChoice {
22  char *label; // name for display in dialog box
23  char *method; // value (if null, return choice number)
24 };
25 
26 struct GmenuItemArg {
27  int type; // TEXT, SLIDER, CHOOSER, etc.
28  int ivalue;
29  double min; // minimum range value
30  double max; // maximum range value
31  double fvalue; // default numeric value(or choice)
32  int numchoices; // number of choices
33  char *textvalue; // default text value
34  int textwidth; // text width used for input field
35  char *label; // description of arg function
36  char *symbol; // internal symbol table mapping
37  GargChoice *choice; // choices
38  // ARB BEGIN
39  AW_active active_mask; // expert/novice
40 };
41 
42 enum TypeInfo {
43  BASIC_TYPEINFO = 0, // has to be zero (default value; initialized with calloc)
46 };
47 
48 struct GfileFormat {
49  bool save; // whether file should be saved
50  int format; // what format is each field
51  char *symbol; // internal symbol table mapping
52  char *name; // file name
54 };
55 
56 struct GmenuItem {
57  int numargs; // number of arguments to cmnd
58  int numoutputs; // number of outputs from cmnd
59  int numinputs; // number of input files to cmnd
60  char *label; // item name
61  char *method; // commandline produced
62  GfileFormat *input; // input definitions
63  GfileFormat *output; // output definitions
64  GmenuItemArg *arg; // argument definitions
65  char meta; // Meta character for function
66  char seqtype; // A -> amino, N -> nucleotide, '-' -> no sequence, otherwise both
67  bool aligned;
68  char *help; // associated helpfile ("agde_*.hlp")
69 
70  // ARB BEGIN
71  struct Gmenu *parent_menu;
72  AW_window *aws; // opened window
73  AW_active active_mask; // expert/novice
74  WindowCallback *popup; // callback to create/reopen window
75 };
76 
77 struct Gmenu {
78  int numitems; // number of items in menu
79  char *label; // menu heading
80  GmenuItem *item; // menu items
81  // ARB BEGIN
82  char meta; // Meta character for menu
83  AW_active active_mask; // expert/novice
84 };
85 
86 extern struct gde_database_access {
91 } db_access;
92 
93 
94 #else
95 #error GDE_menu.h included twice
96 #endif // GDE_MENU_H
AW_bitset AW_active
Definition: aw_base.hxx:45
char * textvalue
Definition: GDE_menu.h:33
char * symbol
Definition: GDE_menu.h:51
GfileFormat * output
Definition: GDE_menu.h:63
int numargs
Definition: GDE_menu.h:57
char * method
Definition: GDE_menu.h:23
int numinputs
Definition: GDE_menu.h:59
double min
Definition: GDE_menu.h:29
GBDATA * gb_main
Definition: GDE_menu.h:90
int numitems
Definition: GDE_menu.h:78
char * label
Definition: GDE_menu.h:79
char * name
Definition: GDE_menu.h:52
bool save
Definition: GDE_menu.h:49
struct gde_database_access db_access
struct Gmenu * parent_menu
Definition: GDE_menu.h:71
GfileFormat * input
Definition: GDE_menu.h:62
char * method
Definition: GDE_menu.h:61
AW_window * aws
Definition: GDE_menu.h:72
int ivalue
Definition: GDE_menu.h:28
char seqtype
Definition: GDE_menu.h:66
char * symbol
Definition: GDE_menu.h:36
gde_window_type window_type
Definition: GDE_menu.h:89
char * label
Definition: GDE_menu.h:60
char * label
Definition: GDE_menu.h:35
GDE_get_sequences_cb get_sequences
Definition: GDE_menu.h:87
int numchoices
Definition: GDE_menu.h:32
int textwidth
Definition: GDE_menu.h:34
int format
Definition: GDE_menu.h:50
TypeInfo typeinfo
Definition: GDE_menu.h:53
GmenuItem * item
Definition: GDE_menu.h:80
double max
Definition: GDE_menu.h:30
int numoutputs
Definition: GDE_menu.h:58
GargChoice * choice
Definition: GDE_menu.h:37
GDE_format_alignment_cb format_ali
Definition: GDE_menu.h:88
WindowCallback * popup
Definition: GDE_menu.h:74
char * help
Definition: GDE_menu.h:68
GmenuItemArg * arg
Definition: GDE_menu.h:64
gde_window_type
Definition: gde.hxx:22
double fvalue
Definition: GDE_menu.h:31
TypeInfo
Definition: GDE_menu.h:42
GB_ERROR(* GDE_format_alignment_cb)(GBDATA *gb_main, const char *ali_name)
Definition: gde.hxx:33
AW_active active_mask
Definition: GDE_menu.h:39
AW_active active_mask
Definition: GDE_menu.h:73
char * label
Definition: GDE_menu.h:22
char meta
Definition: GDE_menu.h:65
Definition: GDE_menu.h:77
AW_active active_mask
Definition: GDE_menu.h:83
char *(* GDE_get_sequences_cb)(GBDATA **&the_species, uchar **&the_names, uchar **&the_sequences, long &numberspecies, long &maxalignlen)
Definition: gde.hxx:27
char meta
Definition: GDE_menu.h:82
bool aligned
Definition: GDE_menu.h:67