| 1 | |
|---|
| 2 | #ifndef ARB_ASSERT_H |
|---|
| 3 | #include <arb_assert.h> |
|---|
| 4 | #endif |
|---|
| 5 | #define gde_assert(bed) arb_assert(bed) |
|---|
| 6 | |
|---|
| 7 | typedef struct GargChoicetype |
|---|
| 8 | { |
|---|
| 9 | char *label; /* name for display in dialog box */ |
|---|
| 10 | char *method; /* value (if null, return choice number) */ |
|---|
| 11 | } GargChoice; |
|---|
| 12 | |
|---|
| 13 | typedef struct GmenuItemArgtype |
|---|
| 14 | { |
|---|
| 15 | int optional; /* is this optional? */ |
|---|
| 16 | int type; /* TEXT, SLIDER, CHOOSER, etc. */ |
|---|
| 17 | int ivalue; |
|---|
| 18 | double min; /* minimum range value */ |
|---|
| 19 | double max; /* maximum range value */ |
|---|
| 20 | double fvalue; /* default numeric value(or choice) */ |
|---|
| 21 | int numchoices; /* number of choices */ |
|---|
| 22 | char *textvalue; /* default text value */ |
|---|
| 23 | int textwidth; /* text width used for input field */ |
|---|
| 24 | char *label; /* description of arg function */ |
|---|
| 25 | char *symbol; /* internal symbol table mapping */ |
|---|
| 26 | char *method; /* commandline interpretation */ |
|---|
| 27 | GargChoice *choice; /* choices */ |
|---|
| 28 | /*ARB BEGIN*/ |
|---|
| 29 | /* Panel_item X;*/ /* Xview menu item entry */ |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | } GmenuItemArg; |
|---|
| 33 | |
|---|
| 34 | typedef struct GfileFormattype |
|---|
| 35 | { |
|---|
| 36 | int save; /* how should file be saved */ |
|---|
| 37 | int overwrite; /* how should file be loaded */ |
|---|
| 38 | int format; /* what format is each field */ |
|---|
| 39 | int maskable; /* Can a write through mask be used? */ |
|---|
| 40 | int select; /* what type of selection */ |
|---|
| 41 | char *symbol; /* internal symbol table mapping */ |
|---|
| 42 | char *name; /* file name */ |
|---|
| 43 | } GfileFormat; |
|---|
| 44 | |
|---|
| 45 | typedef struct GmenuItemtype |
|---|
| 46 | { |
|---|
| 47 | int numargs; /* number of agruments to cmnd */ |
|---|
| 48 | int numoutputs; /* number of outputs from cmnd */ |
|---|
| 49 | int numinputs; /* number of input files to cmnd */ |
|---|
| 50 | char *label; /* item name */ |
|---|
| 51 | char *method; /* commandline produced */ |
|---|
| 52 | GfileFormat *input; /* input definitions */ |
|---|
| 53 | GfileFormat *output; /* output definitions */ |
|---|
| 54 | GmenuItemArg *arg; /* arguement definitions */ |
|---|
| 55 | char meta; /* Meta character for function */ |
|---|
| 56 | char seqtype; /* A -> amino, N -> nucleotide, '-' -> no sequence, otherwise both */ |
|---|
| 57 | char *help; /* commandline help */ |
|---|
| 58 | /* ARB BEGIN */ |
|---|
| 59 | /* Panel_item X; */ /* Xview panel */ |
|---|
| 60 | struct Gmenutype *parent_menu; |
|---|
| 61 | AW_window *aws; /* opened window */ |
|---|
| 62 | } GmenuItem; |
|---|
| 63 | |
|---|
| 64 | typedef struct Gmenutype |
|---|
| 65 | { |
|---|
| 66 | int numitems; /* number of items in menu */ |
|---|
| 67 | char *label; /* menu heading */ |
|---|
| 68 | GmenuItem *item; /* menu items */ |
|---|
| 69 | /* ARB BEGIN */ |
|---|
| 70 | /* Panel_item button;*/ /* Button to activate menu */ |
|---|
| 71 | /* Menu X;*/ /* XView menu structure */ |
|---|
| 72 | char meta; /* Meta character for menu */ |
|---|
| 73 | } Gmenu; |
|---|
| 74 | |
|---|
| 75 | // typedef unsigned char uchar; |
|---|
| 76 | |
|---|
| 77 | extern struct choose_get_sequence_struct { |
|---|
| 78 | char *(*get_sequences)(void *THIS, GBDATA **&the_species, uchar **&the_names, uchar **&the_sequences, long &numberspecies,long &maxalignlen); |
|---|
| 79 | gde_cgss_window_type wt; |
|---|
| 80 | void *THIS; |
|---|
| 81 | } gde_cgss; |
|---|