ARB
Main Page
Namespaces
Classes
Files
File List
File Members
ARB_GDE
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)
44
DETAILED_TYPEINFO
= 1,
45
UNKNOWN_TYPEINFO
= 2,
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
53
TypeInfo
typeinfo
;
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
{
87
GDE_get_sequences_cb
get_sequences
;
88
GDE_format_alignment_cb
format_ali
;
89
gde_window_type
window_type
;
90
GBDATA
*
gb_main
;
91
}
db_access
;
92
93
94
#else
95
#error GDE_menu.h included twice
96
#endif // GDE_MENU_H
BASIC_TYPEINFO
Definition:
GDE_menu.h:43
AW_active
AW_bitset AW_active
Definition:
aw_base.hxx:45
GmenuItemArg::textvalue
char * textvalue
Definition:
GDE_menu.h:33
GfileFormat::symbol
char * symbol
Definition:
GDE_menu.h:51
GmenuItem::output
GfileFormat * output
Definition:
GDE_menu.h:63
GmenuItem::numargs
int numargs
Definition:
GDE_menu.h:57
GargChoice::method
char * method
Definition:
GDE_menu.h:23
GmenuItem::numinputs
int numinputs
Definition:
GDE_menu.h:59
GmenuItemArg::min
double min
Definition:
GDE_menu.h:29
gde_database_access::gb_main
GBDATA * gb_main
Definition:
GDE_menu.h:90
Gmenu::numitems
int numitems
Definition:
GDE_menu.h:78
Gmenu::label
char * label
Definition:
GDE_menu.h:79
GfileFormat::name
char * name
Definition:
GDE_menu.h:52
GfileFormat::save
bool save
Definition:
GDE_menu.h:49
db_access
struct gde_database_access db_access
GmenuItem::parent_menu
struct Gmenu * parent_menu
Definition:
GDE_menu.h:71
GmenuItem::input
GfileFormat * input
Definition:
GDE_menu.h:62
GmenuItem::method
char * method
Definition:
GDE_menu.h:61
GBDATA
Definition:
gb_data.h:129
UNKNOWN_TYPEINFO
Definition:
GDE_menu.h:45
GmenuItem::aws
AW_window * aws
Definition:
GDE_menu.h:72
GmenuItemArg
Definition:
GDE_menu.h:26
gde_database_access
Definition:
GDE_menu.h:86
GmenuItemArg::ivalue
int ivalue
Definition:
GDE_menu.h:28
GfileFormat
Definition:
GDE_menu.h:48
GmenuItem::seqtype
char seqtype
Definition:
GDE_menu.h:66
GmenuItemArg::symbol
char * symbol
Definition:
GDE_menu.h:36
gde_database_access::window_type
gde_window_type window_type
Definition:
GDE_menu.h:89
GmenuItem::label
char * label
Definition:
GDE_menu.h:60
GmenuItemArg::label
char * label
Definition:
GDE_menu.h:35
gde_database_access::get_sequences
GDE_get_sequences_cb get_sequences
Definition:
GDE_menu.h:87
GmenuItemArg::numchoices
int numchoices
Definition:
GDE_menu.h:32
GmenuItem
Definition:
GDE_menu.h:56
GmenuItemArg::textwidth
int textwidth
Definition:
GDE_menu.h:34
GfileFormat::format
int format
Definition:
GDE_menu.h:50
GfileFormat::typeinfo
TypeInfo typeinfo
Definition:
GDE_menu.h:53
gde.hxx
Gmenu::item
GmenuItem * item
Definition:
GDE_menu.h:80
GmenuItemArg::max
double max
Definition:
GDE_menu.h:30
GmenuItem::numoutputs
int numoutputs
Definition:
GDE_menu.h:58
GmenuItemArg::choice
GargChoice * choice
Definition:
GDE_menu.h:37
gde_database_access::format_ali
GDE_format_alignment_cb format_ali
Definition:
GDE_menu.h:88
GmenuItem::popup
WindowCallback * popup
Definition:
GDE_menu.h:74
DETAILED_TYPEINFO
Definition:
GDE_menu.h:44
GmenuItem::help
char * help
Definition:
GDE_menu.h:68
GmenuItem::arg
GmenuItemArg * arg
Definition:
GDE_menu.h:64
GDE_def.h
gde_window_type
gde_window_type
Definition:
gde.hxx:22
GmenuItemArg::fvalue
double fvalue
Definition:
GDE_menu.h:31
TypeInfo
TypeInfo
Definition:
GDE_menu.h:42
GDE_format_alignment_cb
GB_ERROR(* GDE_format_alignment_cb)(GBDATA *gb_main, const char *ali_name)
Definition:
gde.hxx:33
GmenuItemArg::active_mask
AW_active active_mask
Definition:
GDE_menu.h:39
GmenuItemArg::type
int type
Definition:
GDE_menu.h:27
GmenuItem::active_mask
AW_active active_mask
Definition:
GDE_menu.h:73
cb.h
AW_window
Definition:
aw_window.hxx:245
GargChoice
Definition:
GDE_menu.h:21
GargChoice::label
char * label
Definition:
GDE_menu.h:22
GmenuItem::meta
char meta
Definition:
GDE_menu.h:65
Gmenu
Definition:
GDE_menu.h:77
Gmenu::active_mask
AW_active active_mask
Definition:
GDE_menu.h:83
GDE_get_sequences_cb
char *(* GDE_get_sequences_cb)(GBDATA **&the_species, uchar **&the_names, uchar **&the_sequences, long &numberspecies, long &maxalignlen)
Definition:
gde.hxx:27
Gmenu::meta
char meta
Definition:
GDE_menu.h:82
GmenuItem::aligned
bool aligned
Definition:
GDE_menu.h:67
Generated by
1.8.8