ARB
Classes | Functions
awt_filter.hxx File Reference
#include <arbdb_base.h>
#include <aw_base.hxx>
Include dependency graph for awt_filter.hxx:
This graph shows which files directly or indirectly include this file:

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)
 
adfiltercbstructawt_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_windowawt_create_select_filter_win (AW_root *aw_root, adfiltercbstruct *acbs)
 
AP_filterawt_get_filter (adfiltercbstruct *acbs)
 
void awt_destroy_filter (AP_filter *filter)
 
GB_ERROR awt_invalid_filter (AP_filter *filter)
 
charAWT_get_combined_filter_name (AW_root *aw_root, GB_CSTR prefix)
 

Function Documentation

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).

Parameters
aw_rootapplication root
aw_defdatabase for created awars
awar_filternamename of filtername awar (has to be "SOMETHING/name"; awarname should start with "tmp/", saving in properties/db does not work correctly!).
awar_mapto_alignmentif given, "SOMETHING/alignment" is mapped to this awar

Definition at line 193 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)

Parameters
aw_rootapplication root
gb_mainDB root node
def_namefiltername awarname (name has to be "SOMETHING/name"; create using awt_create_filter_awars())
Returns
the filter definition
See also
awt_create_select_filter_win(), awt_get_filter()

Definition at line 224 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 313 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 
)
AP_filter* awt_get_filter ( adfiltercbstruct acbs)
void awt_destroy_filter ( AP_filter filter)

Definition at line 470 of file AWT_filter.cxx.

Referenced by sq_calc_seq_quality_cb().

GB_ERROR awt_invalid_filter ( AP_filter filter)

Definition at line 466 of file AWT_filter.cxx.

References AP_filter::is_invalid().

Referenced by GDE_startaction_cb(), and sq_calc_seq_quality_cb().

char* AWT_get_combined_filter_name ( AW_root aw_root,
GB_CSTR  prefix 
)