ARB
|
Classes | |
class | DbQuery |
class | query_spec |
Typedefs | |
typedef const char * | AwarName |
typedef void(* | popup_info_window_cb )(AW_root *aw_root, GBDATA *gb_main) |
Enumerations | |
enum | QUERY_MODES { QUERY_GENERATE, QUERY_ENLARGE, QUERY_REDUCE } |
enum | QUERY_TYPES { QUERY_MARKED, QUERY_MATCH, QUERY_DONT_MATCH } |
enum | QUERY_RESULT_ORDER { QUERY_SORT_NONE = 0, QUERY_SORT_BY_1STFIELD_CONTENT = 1, QUERY_SORT_BY_ID = 2, QUERY_SORT_BY_NESTED_PID = 4, QUERY_SORT_BY_MARKED = 8, QUERY_SORT_BY_HIT_DESCRIPTION = 16, QUERY_SORT_REVERSE = 32, QUERY_SORT_NUM_BY_1STFIELD_CONTENT = 64 } |
Functions | |
void | copy_selection_list_2_query_box (DbQuery *query, AW_selection_list *srclist, const char *hit_description) |
DbQuery * | create_query_box (AW_window *aws, query_spec *awtqs, const char *query_id) |
void | search_duplicated_field_content (AW_window *dummy, DbQuery *query, bool tokenize) |
long | count_queried_items (DbQuery *query, QUERY_RANGE range) |
void | unquery_all (void *dummy, DbQuery *query) |
ItemSelector & | get_queried_itemtype (DbQuery *query) |
bool | IS_QUERIED (GBDATA *gb_item, const query_spec *aqs) |
bool | IS_QUERIED (GBDATA *gb_item, const DbQuery *query) |
void | DbQuery_update_list (DbQuery *query) |
AW_window * | create_colorize_items_window (AW_root *aw_root, GBDATA *gb_main, ItemSelector &sel) |
GBDATA * | query_get_gb_main (DbQuery *query) |
typedef const char* QUERY::AwarName |
Definition at line 26 of file db_query.h.
Definition at line 27 of file db_query.h.
enum QUERY::QUERY_MODES |
Enumerator | |
---|---|
QUERY_GENERATE | |
QUERY_ENLARGE | |
QUERY_REDUCE |
Definition at line 28 of file db_query_local.h.
enum QUERY::QUERY_TYPES |
Enumerator | |
---|---|
QUERY_MARKED | |
QUERY_MATCH | |
QUERY_DONT_MATCH |
Definition at line 34 of file db_query_local.h.
Definition at line 45 of file db_query_local.h.
void QUERY::copy_selection_list_2_query_box | ( | DbQuery * | query, |
AW_selection_list * | srclist, | ||
const char * | hit_description | ||
) |
Definition at line 1127 of file db_query.cxx.
References AW_advice(), AW_ADVICE_TOGGLE_AND_HELP, aw_message(), AW_root::awar(), QUERY::DbQuery::awar_by, QUERY::DbQuery::awar_ere, QUERY::DbQuery::aws, CLEAR_QUERIED(), dbq_assert, DbQuery_update_list(), error(), QUERY::DbQuery::gb_main, GBS_free_hash(), GBS_global_string(), GBS_hash_elements(), GBS_read_hash(), GBT_first_species(), GBT_get_name_or_description(), GBT_next_species(), AW_window::get_root(), IS_QUERIED(), keptHitReason(), NULp, QUERY_DONT_MATCH, QUERY_ENLARGE, QUERY_GENERATE, QUERY_MARKED, QUERY_MATCH, QUERY_REDUCE, AW_awar::read_int(), SET_QUERIED(), ta, AW_selection_list::to_hash(), and type.
Referenced by awtc_move_hits().
DbQuery * QUERY::create_query_box | ( | AW_window * | aws, |
query_spec * | awtqs, | ||
const char * | query_id | ||
) |
Definition at line 2354 of file db_query.cxx.
References AW_awar::add_callback(), ARB_keep_string(), AW_window::at(), AW_window::auto_space(), AW_AT_SIZE_AND_ATTACH, AW_ROOT_DEFAULT, AW_root::awar(), QUERY::DbQuery::awar_acceptConvError, QUERY::DbQuery::awar_acceptIdMod, QUERY::DbQuery::awar_by, QUERY::DbQuery::awar_count, QUERY::DbQuery::awar_deftag, QUERY::DbQuery::awar_double_pars, QUERY::DbQuery::awar_ere, AW_root::awar_int(), QUERY::DbQuery::awar_keys, QUERY::DbQuery::awar_not, QUERY::DbQuery::awar_operator, QUERY::DbQuery::awar_parskey, QUERY::DbQuery::awar_parspredefined, QUERY::DbQuery::awar_parsvalue, QUERY::DbQuery::awar_protectkey, QUERY::DbQuery::awar_queries, QUERY::DbQuery::awar_setprotection, QUERY::DbQuery::awar_setvalue, QUERY::DbQuery::awar_sort, AW_root::awar_string(), QUERY::DbQuery::awar_tag, QUERY::DbQuery::awar_use_tag, QUERY::DbQuery::awar_where, QUERY::DbQuery::awar_writekey, QUERY::DbQuery::awar_writelossy, AWM_ALL, QUERY::DbQuery::aws, AWT_insert_config_manager(), buffer, AW_window::button_length(), QUERY::query_spec::by_pos_fig, AW_window::callback(), QUERY::query_spec::config_pos_fig, QUERY::query_spec::count_pos_fig, AW_window::create_button(), create_colorize_queried_window(), AW_window::create_input_field(), create_itemfield_selection_button(), create_modify_fields_window(), AW_window::create_option_menu(), create_query_independent_awars(), AW_window::create_selection_list(), create_set_protection_window(), AW_window::create_toggle_field(), create_writeFieldOfListed_window(), AW_window::d_callback(), dbq_assert, delete_queried_species_cb(), QUERY::query_spec::do_delete_pos_fig, QUERY::query_spec::do_mark_pos_fig, QUERY::query_spec::do_query_pos_fig, QUERY::query_spec::do_refresh_pos_fig, QUERY::query_spec::do_set_pos_fig, QUERY::query_spec::do_unmark_pos_fig, QUERY::query_spec::ere_pos_fig, QUERY::query_spec::expect_hit_in_ref_list, QUERY::DbQuery::expect_hit_in_ref_list, EXT_QUERY_COMPARE_LINES, EXT_QUERY_COMPARE_WORDS, EXT_QUERY_NONE, FIELD_FILTER_STRING_READABLE, first_searchkey_changed_cb(), free_hit_description(), GB_IGNORE_CASE, gb_main, QUERY::query_spec::gb_main, QUERY::DbQuery::gb_main, GB_pop_transaction(), GB_push_transaction(), QUERY::query_spec::gb_ref, QUERY::DbQuery::gb_ref, GBS_create_dynaval_hash(), GBS_global_string(), GBS_global_string_copy(), AW_window::get_at_position(), QUERY::query_spec::get_queried_itemtype(), AW_window::get_root(), AW_window::help_text(), QUERY::DbQuery::hit_description, QUERY::DbQuery::hitlist, AW_selection_list::insert_default(), AW_window::insert_default_option(), AW_window::insert_menu_topic(), AW_window::insert_option(), AW_window::insert_toggle(), MutableItemSelector::items_name, keepQuery(), QUERY::query_spec::key_pos_fig, KEY_Y_OFFSET, AW_window::label(), AW_at_storage::make(), mark_queried_cb(), new_selection_made_cb(), NULp, QUERY::query_spec::open_parser_pos_fig, MutableItemSelector::parent_selector, perform_query_cb(), QUERY::query_spec::popup_info_window, QUERY::query_spec::qbox_pos_fig, QUERY_ALL_ITEMS, query_box_setup_config(), query_count_items(), QUERY_CURRENT_ITEM, QUERY_DONT_MATCH, QUERY_ENLARGE, QUERY_EXPRESSIONS, QUERY_GENERATE, QUERY_MARKED, QUERY_MARKED_ITEMS, QUERY_MATCH, QUERY::query_spec::query_pos_fig, QUERY_REDUCE, query_rel_menu_entry(), QUERY_SORT_BY_1STFIELD_CONTENT, QUERY_SORT_BY_HIT_DESCRIPTION, QUERY_SORT_BY_ID, QUERY_SORT_BY_MARKED, QUERY_SORT_BY_NESTED_PID, QUERY_SORT_NONE, QUERY_SORT_NUM_BY_1STFIELD_CONTENT, QUERY_SORT_REVERSE, AW_window::restore_at_from(), QUERY::query_spec::result_pos_fig, result_sort_order_changed_cb(), QUERY::query_spec::select_bit, QUERY::DbQuery::select_bit, QUERY::DbQuery::selector, AW_window::sep______________(), QUERY::DbQuery::set_tree_awar_name(), SF_PSEUDO, RootAsWindowCallback::simple(), QUERY::DbQuery::sort_mask, QUERY::query_spec::species_name, QUERY::DbQuery::species_name, speciesOrOrganism(), toggle_flag_cb(), QUERY::query_spec::tree_name, MutableItemSelector::type, AW_selection_list::update(), AW_window::update_option_menu(), AW_window::update_toggle_field(), QUERY::query_spec::use_menu, and QUERY::query_spec::where_pos_fig.
Referenced by DBUI::create_species_query_window(), EXP_create_experiment_query_window(), GEN_create_gene_query_window(), and MG_create_merge_species_window().
Definition at line 1191 of file db_query.cxx.
References AW_advice(), AW_ADVICE_TOGGLE_AND_HELP, aw_message(), AW_root::awar(), QUERY::DbQuery::awar_by, QUERY::DbQuery::awar_keys, QUERY::DbQuery::aws, CLEAR_QUERIED(), dbq_assert, DbQuery_update_list(), error(), GB_FIND, GB_IGNORE_CASE, QUERY::DbQuery::gb_main, GB_number_of_subentries(), GB_read_as_string(), GB_search(), gb_species_data, GB_write_flag(), GBS_create_hash(), GBS_free_hash(), GBS_global_string(), GBS_global_string_copy(), GBS_read_hash(), GBS_write_hash(), GBT_get_species_data(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), getHitInfo(), is_pseudo_key(), IS_QUERIED(), NULp, QUERY_ALL_ITEMS, QUERY_DONT_MATCH, QUERY_ITEM_EXPERIMENTS, QUERY_ITEM_GENES, QUERY_ITEM_ORGANISM, QUERY_ITEM_SPECIES, QUERY_MARKED, QUERY_MATCH, AW_awar::read_int(), AW_awar::read_string(), s, QUERY::DbQuery::selector, SET_QUERIED(), MutableItemSelector::type, and type.
Referenced by DBUI::create_species_query_window(), EXP_create_experiment_query_window(), and GEN_create_gene_query_window().
long QUERY::count_queried_items | ( | DbQuery * | query, |
QUERY_RANGE | range | ||
) |
Definition at line 159 of file db_query.cxx.
References QUERY::DbQuery::aws, gb_main, QUERY::DbQuery::gb_main, MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), IS_QUERIED(), QUERY_ALL_ITEMS, and QUERY::DbQuery::selector.
Referenced by awtc_nn_search_all_listed(), and DbQuery_update_list().
void QUERY::unquery_all | ( | void * | dummy, |
DbQuery * | query | ||
) |
Definition at line 617 of file db_query.cxx.
References CLEAR_QUERIED(), DbQuery_update_list(), QUERY::DbQuery::gb_main, GB_pop_transaction(), GB_push_transaction(), GBT_first_species(), and GBT_next_species().
Referenced by DBUI::unquery_all().
const ItemSelector & QUERY::get_queried_itemtype | ( | DbQuery * | query | ) |
Definition at line 110 of file db_query.cxx.
References QUERY::DbQuery::selector.
Referenced by awtc_nn_search_all_listed().
|
inline |
Definition at line 84 of file db_query.h.
References QUERY::query_spec::is_queried().
Referenced by awtc_nn_search_all_listed(), colorize_queried_cb(), copy_selection_list_2_query_box(), count_queried_items(), create_ref_hash(), DbQuery_update_list(), delete_queried_species_cb(), mark_queried_cb(), modify_fields_of_queried_cb(), perform_query_cb(), query_count_items(), search_duplicated_field_content(), set_field_of_queried_cb(), and set_protection_of_queried_cb().
Definition at line 155 of file db_query.cxx.
References QUERY::DbQuery::is_queried().
void QUERY::DbQuery_update_list | ( | DbQuery * | query | ) |
Definition at line 482 of file db_query.cxx.
References AW_root::awar(), QUERY::DbQuery::awar_count, QUERY::DbQuery::awar_keys, QUERY::DbQuery::awar_where, QUERY::DbQuery::aws, AW_selection_list::clear(), compare_hits(), count_queried_items(), dbq_assert, detectMaxNameLength(), find_display_determining_sort_order(), QUERY::DbQuery::gb_main, GB_pop_transaction(), GB_push_transaction(), GB_read_flag(), GB_sort(), GBS_global_string(), GBS_global_string_copy(), GBS_hash_do_const_loop(), GBS_shorten_repeated_data(), GBT_read_as_string(), MutableItemSelector::generate_item_id, MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), getHitInfo(), QUERY::DbQuery::hit_description, QUERY::DbQuery::hitlist, info, AW_selection_list::insert(), AW_selection_list::insert_default(), is_pseudo_key(), IS_QUERIED(), MutableItemSelector::item_name_length, line, MAX_QUERY_LIST_LEN, MAX_SHOWN_DATA_SIZE, NULp, QUERY_ALL_ITEMS, QUERY_SORT_BY_HIT_DESCRIPTION, QUERY_SORT_NONE, AW_awar::read_char_pntr(), AW_awar::read_int(), remove_keydependent_sort_criteria(), s, QUERY::DbQuery::selector, QUERY::DbQuery::sort_mask, split_sort_mask(), AW_selection_list::update(), and AW_awar::write_int().
Referenced by copy_selection_list_2_query_box(), delete_queried_species_cb(), first_searchkey_changed_cb(), mark_queried_cb(), perform_query_cb(), DBUI::query_update_list(), result_sort_order_changed_cb(), search_duplicated_field_content(), toggle_flag_cb(), ScopedTransporter::transferAllIn(), and unquery_all().
AW_window * QUERY::create_colorize_items_window | ( | AW_root * | aw_root, |
GBDATA * | gb_main, | ||
ItemSelector & | sel | ||
) |
Definition at line 1963 of file db_query.cxx.
References create_colorize_window(), and NULp.
Referenced by create_colorize_experiments_window(), create_colorize_genes_window(), create_colorize_organisms_window(), and create_colorize_species_window().
Definition at line 106 of file db_query.cxx.
References QUERY::DbQuery::gb_main.
Referenced by awtc_nn_search_all_listed(), create_next_neighbours_listed_window(), and NN_GlobalData::get_gb_main().