ARB
|
#include <arbdb_base.h>
#include <aw_base.hxx>
Go to the source code of this file.
Classes | |
struct | adfiltercbstruct |
Functions | |
void | awt_create_filter_awars (AW_root *aw_root, AW_default aw_def, const char *awar_filtername, const char *awar_mapto_alignment) |
adfiltercbstruct * | awt_create_select_filter (AW_root *aw_root, GBDATA *gb_main, const char *def_name) |
void | awt_set_awar_to_valid_filter_good_for_tree_methods (GBDATA *gb_main, AW_root *awr, const char *awar_name) |
AW_window * | awt_create_select_filter_win (AW_root *aw_root, adfiltercbstruct *acbs) |
AP_filter * | awt_get_filter (adfiltercbstruct *acbs) |
void | awt_destroy_filter (AP_filter *filter) |
GB_ERROR | awt_invalid_filter (AP_filter *filter) |
char * | AWT_get_combined_filter_name (AW_root *aw_root, GB_CSTR prefix) |
void awt_create_filter_awars | ( | AW_root * | aw_root, |
AW_default | aw_def, | ||
const char * | awar_filtername, | ||
const char * | awar_mapto_alignment | ||
) |
creates awars needed for filter definition (see awt_create_select_filter())
created awars: "SOMETHING/name" (as specified in param awar_filtername; type STRING) "SOMETHING/filter" (type STRING) "SOMETHING/alignment" (type STRING)
The names of the created awars are available via adfiltercbstruct (after awt_create_select_filter() was called).
aw_root | application root |
aw_def | database for created awars |
awar_filtername | name of filtername awar (has to be "SOMETHING/name"; awarname should start with "tmp/", saving in properties/db does not work correctly!). |
awar_mapto_alignment | if given, "SOMETHING/alignment" is mapped to this awar |
Definition at line 194 of file AWT_filter.cxx.
References ARB_strBeginsWith(), AW_root::awar_string(), ga_assert, GBS_string_eval(), and AW_awar::map().
Referenced by create_export_awars(), GDE_init(), NT_create_colstat_2_gnuplot_window(), pars_create_all_awars(), and SQ_create_awars().
adfiltercbstruct* awt_create_select_filter | ( | AW_root * | aw_root, |
GBDATA * | gb_main, | ||
const char * | def_name | ||
) |
Create filter definition (allowing customization and programmatical use of a filter)
aw_root | application root |
gb_main | DB root node |
def_name | filtername awarname (name has to be "SOMETHING/name"; create using awt_create_filter_awars()) |
Definition at line 225 of file AWT_filter.cxx.
References AW_awar::add_callback(), adfiltercbstruct::aw_filt, AW_ROOT_DEFAULT, AW_root::awar(), AW_root::awar_int(), AWAR_SPECIES_NAME, AW_root::awar_string(), adfiltercbstruct::awr, awt_create_select_filter_window_aw_cb(), awt_create_select_filter_window_gb_cb(), adfiltercbstruct::def_2alignment, adfiltercbstruct::def_2filter, adfiltercbstruct::def_2name, adfiltercbstruct::def_alignment, adfiltercbstruct::def_cancel, adfiltercbstruct::def_dest, adfiltercbstruct::def_filter, adfiltercbstruct::def_len, adfiltercbstruct::def_max, adfiltercbstruct::def_min, adfiltercbstruct::def_name, adfiltercbstruct::def_simplify, adfiltercbstruct::def_source, adfiltercbstruct::def_subname, adfiltercbstruct::filterlist, ga_assert, GB_add_callback(), GB_CB_CHANGED, adfiltercbstruct::gb_main, gb_main, GB_pop_transaction(), GB_push_transaction(), GB_search(), GB_STRING, GBS_global_string(), GBS_string_eval(), GBT_get_SAI_data(), NULp, AW_awar::read_string(), AW_awar::touch(), and AW_awar::write_string().
Referenced by awt_create_2_filter_window(), create_AWTC_export_window(), GDE_menuitem_cb(), NT_create_colstat_2_gnuplot_window(), SQ_create_seq_quality_window(), and WeightedFilter::WeightedFilter().
void awt_set_awar_to_valid_filter_good_for_tree_methods | ( | GBDATA * | gb_main, |
AW_root * | awr, | ||
const char * | awar_name | ||
) |
Definition at line 314 of file AWT_filter.cxx.
References AW_root::awar(), GBT_find_SAI(), and AW_awar::write_string().
Referenced by pars_create_all_awars().
AW_window* awt_create_select_filter_win | ( | AW_root * | aw_root, |
adfiltercbstruct * | acbs | ||
) |
Create a filter selection window
Definition at line 365 of file AWT_filter.cxx.
References AW_window::at(), adfiltercbstruct::aw_filt, AW_POPDOWN(), AWM_ALL, AWM_EXP, awt_create_2_filter_window(), awt_create_select_filter_window_aw_cb(), awt_create_select_filter_window_gb_cb(), adfiltercbstruct::def_2name, adfiltercbstruct::def_cancel, adfiltercbstruct::def_len, adfiltercbstruct::def_max, adfiltercbstruct::def_min, adfiltercbstruct::def_name, adfiltercbstruct::def_simplify, adfiltercbstruct::def_source, adfiltercbstruct::def_subname, adfiltercbstruct::filterlist, adfiltercbstruct::gb_main, GB_pop_transaction(), GB_push_transaction(), GBS_checksum(), GBS_global_string_copy(), makeHelpCallback(), and NULp.
Referenced by awt_create_2_filter_window(), create_AWTC_export_window(), create_pars_init_window(), DI_create_matrix_window(), GDE_menuitem_cb(), NT_create_colstat_2_gnuplot_window(), SQ_create_seq_quality_window(), and STAT_create_chimera_check_window().
AP_filter* awt_get_filter | ( | adfiltercbstruct * | acbs | ) |
create a filter from settings made in filter-definition window. always returns a filter, use awt_invalid_filter() to check for validity
Definition at line 431 of file AWT_filter.cxx.
References AW_root::awar(), adfiltercbstruct::awr, adfiltercbstruct::def_alignment, adfiltercbstruct::def_filter, adfiltercbstruct::def_simplify, AP_filter::enable_simplify(), GB_clear_error(), adfiltercbstruct::gb_main, GB_pop_transaction(), GB_push_transaction(), GBT_get_alignment_len(), NULp, AW_awar::read_int(), and AW_awar::read_string().
Referenced by WeightedFilter::create_filter(), export_go_cb(), GDE_startaction_cb(), sq_calc_seq_quality_cb(), and update_exportTest_result_cb().
void awt_destroy_filter | ( | AP_filter * | filter | ) |
Definition at line 471 of file AWT_filter.cxx.
Referenced by sq_calc_seq_quality_cb().
Definition at line 467 of file AWT_filter.cxx.
References AP_filter::is_invalid().
Referenced by GDE_startaction_cb(), and sq_calc_seq_quality_cb().
Definition at line 334 of file AWT_filter.cxx.
References AW_root::awar(), AWAR_GDE_FILTER, AW_root::awar_no_error(), GBS_global_string(), GBS_global_string_copy(), and AW_awar::read_string().
Referenced by di_calculate_tree_cb(), and GDE_startaction_cb().