source: branches/port5/AWT/awt_sel_boxes.hxx

Last change on this file was 5901, checked in by westram, 15 years ago
  • AW_BOOL → bool
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
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
16class  AP_filter;
17struct adfiltercbstruct;
18
19/**************************************************************************
20 *********************   Various Database Selection Boxes    ***********
21 ***************************************************************************/
22/***********************    Alignments  ************************/
23void 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 */
30void 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
35void awt_create_selection_list_on_pt_servers(AW_window *aws, const char *varname, bool popup);
36void awt_refresh_all_pt_server_selection_lists();
37
38/***********************    Tables Fields       ************************/
39
40void awt_create_selection_list_on_tables(GBDATA *gb_main, AW_window *aws,const char *varname);
41
42void 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
45AW_window *AWT_create_tables_admin_window(AW_root *aw_root,GBDATA *gb_main);
46
47/***********************    SAIS        ************************/
48void *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
55void 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
62void  awt_create_selection_list_on_configurations(GBDATA *gb_main,AW_window *aws, const char *varname);
63char *awt_create_string_on_configurations(GBDATA *gb_main);
64
65/***********************    FILES IN GENERAL        ************************/
66
67AW_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     ************************/
72adfiltercbstruct *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*/
80void awt_set_awar_to_valid_filter_good_for_tree_methods(GBDATA *gb_main,AW_root *awr, const char *awar_name);
81
82AW_window *awt_create_select_filter_win(AW_root *aw_root, AW_CL cd_adfiltercbstruct);
83/* not just the box, but the whole window */
84
85AP_filter *awt_get_filter(AW_root *aw_root, adfiltercbstruct *acbs);
86
87char *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
95void 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
Note: See TracBrowser for help on using the repository browser.