1 | // ==================================================================== // |
---|
2 | // // |
---|
3 | // File : awt_sel_boxes.hxx // |
---|
4 | // Purpose : // |
---|
5 | // // |
---|
6 | // // |
---|
7 | // Coded by Ralf Westram (coder@reallysoft.de) in May 2005 // |
---|
8 | // Copyright Department of Microbiology (Technical University Munich) // |
---|
9 | // // |
---|
10 | // Visit our web site at: http://www.arb-home.de/ // |
---|
11 | // // |
---|
12 | // ==================================================================== // |
---|
13 | #ifndef AWT_SEL_BOXES_HXX |
---|
14 | #define AWT_SEL_BOXES_HXX |
---|
15 | |
---|
16 | class AP_filter; |
---|
17 | struct adfiltercbstruct; |
---|
18 | |
---|
19 | /************************************************************************** |
---|
20 | ********************* Various Database Selection Boxes *********** |
---|
21 | ***************************************************************************/ |
---|
22 | /*********************** Alignments ************************/ |
---|
23 | void awt_create_selection_list_on_ad(GBDATA *gb_main,AW_window *aws,const char *varname,const char *comm); |
---|
24 | /* Create selection lists on alignments, if comm is set, then |
---|
25 | pars the alignment type, show only those that are parsed */ |
---|
26 | |
---|
27 | |
---|
28 | /*********************** Trees ************************/ |
---|
29 | /* Selection list for trees */ |
---|
30 | void awt_create_selection_list_on_trees(GBDATA *gb_main,AW_window *aws, const char *varname); |
---|
31 | |
---|
32 | /*********************** Pt-Servers ******************************/ |
---|
33 | /* Selection list for pt-servers */ |
---|
34 | |
---|
35 | void awt_create_selection_list_on_pt_servers(AW_window *aws, const char *varname, bool popup); |
---|
36 | void awt_refresh_all_pt_server_selection_lists(); |
---|
37 | |
---|
38 | /*********************** Tables Fields ************************/ |
---|
39 | |
---|
40 | void awt_create_selection_list_on_tables(GBDATA *gb_main, AW_window *aws,const char *varname); |
---|
41 | |
---|
42 | void awt_create_selection_list_on_table_fields(GBDATA *gb_main, AW_window *aws,const char *tablename, const char *varname); |
---|
43 | // if tablename == 0 take fields from species table !!!! |
---|
44 | |
---|
45 | AW_window *AWT_create_tables_admin_window(AW_root *aw_root,GBDATA *gb_main); |
---|
46 | |
---|
47 | /*********************** SAIS ************************/ |
---|
48 | void *awt_create_selection_list_on_extendeds(GBDATA *gb_main,AW_window *aws, const char *varname, |
---|
49 | char *(*filter_poc)(GBDATA *gb_ext, AW_CL) = 0, AW_CL filter_cd = 0, |
---|
50 | bool add_sel_species= false); |
---|
51 | /* Selection list for all extendeds !!!!!!!!! */ |
---|
52 | /* if filter_proc is set then show only those items on which |
---|
53 | filter_proc returns a strdup(string) */ |
---|
54 | |
---|
55 | void awt_create_selection_list_on_extendeds_update(GBDATA *dummy, void *cbsid); |
---|
56 | /* update the selection box defined by awt_create_selection_list_on_extendeds |
---|
57 | usefull only when filterproc is defined (changes to the SAI entries automatically |
---|
58 | calls awt_create_selection_list_on_extendeds_update*/ |
---|
59 | |
---|
60 | /*********************** CONFIGURATIONS ************************/ |
---|
61 | |
---|
62 | void awt_create_selection_list_on_configurations(GBDATA *gb_main,AW_window *aws, const char *varname); |
---|
63 | char *awt_create_string_on_configurations(GBDATA *gb_main); |
---|
64 | |
---|
65 | /*********************** FILES IN GENERAL ************************/ |
---|
66 | |
---|
67 | AW_window *awt_create_load_box(AW_root *aw_root, const char *load_what, const char *file_extension, char **set_file_name_awar, |
---|
68 | void (*callback)(AW_window*), // set callback .. |
---|
69 | AW_window* (*create_popup)(AW_root *, AW_default)); // .. or create_popup (both together not allowed) |
---|
70 | |
---|
71 | /*********************** FILTERS ************************/ |
---|
72 | adfiltercbstruct *awt_create_select_filter(AW_root *aw_root,GBDATA *gb_main, const char *def_name); |
---|
73 | /* Create a data structure for filters (needed for awt_create_select_filter_win */ |
---|
74 | /* Create a filter selection box, this box needs 3 AWARS: |
---|
75 | 1. "$def_name" |
---|
76 | 2. "$def_name:/name=/filter" |
---|
77 | 3. "$def_name:/name=/alignment" |
---|
78 | and some internal awars |
---|
79 | */ |
---|
80 | void awt_set_awar_to_valid_filter_good_for_tree_methods(GBDATA *gb_main,AW_root *awr, const char *awar_name); |
---|
81 | |
---|
82 | AW_window *awt_create_select_filter_win(AW_root *aw_root, AW_CL cd_adfiltercbstruct); |
---|
83 | /* not just the box, but the whole window */ |
---|
84 | |
---|
85 | AP_filter *awt_get_filter(AW_root *aw_root, adfiltercbstruct *acbs); |
---|
86 | |
---|
87 | char *AWT_get_combined_filter_name(AW_root *aw_root, GB_CSTR prefix); |
---|
88 | |
---|
89 | #define AWT_NDS_FILTER (1<<GB_STRING)|(1<<GB_BYTE)|(1<<GB_INT)|(1<<GB_FLOAT)|(1<<GB_BITS)|(1<<GB_LINK) |
---|
90 | #define AWT_PARS_FILTER (1<<GB_STRING)|(1<<GB_BYTE)|(1<<GB_INT)|(1<<GB_FLOAT)|(1<<GB_BITS)|(1<<GB_LINK) |
---|
91 | #define AWT_STRING_FILTER (1<<GB_STRING)|(1<<GB_BITS)|(1<<GB_LINK) |
---|
92 | |
---|
93 | /*********************** species fields ************************/ |
---|
94 | |
---|
95 | void AWT_popup_select_species_field_window(AW_window *aww, AW_CL cl_awar_name, AW_CL cl_gb_main); |
---|
96 | |
---|
97 | #else |
---|
98 | #error awt_sel_boxes.hxx included twice |
---|
99 | #endif // AWT_SEL_BOXES_HXX |
---|
100 | |
---|