ARB
|
#include "db_query.h"
#include "db_query_local.h"
#include "query_expr.h"
#include <dbui.h>
#include <item_sel_list.h>
#include <awt_config_manager.hxx>
#include <awt_sel_boxes.hxx>
#include <aw_advice.hxx>
#include <aw_color_groups.hxx>
#include <aw_file.hxx>
#include <aw_msg.hxx>
#include <aw_awar.hxx>
#include <arb_progress.h>
#include <aw_root.hxx>
#include <aw_question.hxx>
#include <rootAsWin.h>
#include <ad_cb.h>
#include <arb_strbuf.h>
#include <arb_sort.h>
#include <arb_global_defs.h>
#include <Keeper.h>
#include <list>
#include <stack>
Go to the source code of this file.
Classes | |
struct | hits_sort_params |
class | TargetItem |
class | FINAL_TYPE< SEQTYPE > |
xml element More... | |
struct | color_save_data |
Macros | |
#define | MAX_QUERY_LIST_LEN 100000 |
#define | AWAR_COLORIZE "tmp/dbquery_all/colorize" |
#define | AWAR_COLOR_LOADSAVE_NAME "tmp/colorset/name" |
#define | KEY_Y_OFFSET 32 |
Typedefs | |
typedef Keeper< DbQuery * > | QueryKeeper |
Enumerations | |
enum | EXT_QUERY_TYPES { EXT_QUERY_NONE, EXT_QUERY_COMPARE_LINES, EXT_QUERY_COMPARE_WORDS } |
enum | mark_mode { UNMARK, MARK, INVERT } |
enum | loadsave_mode { SAVE, LOAD, OVERLAY, DELETE } |
Variables | |
const int | MAX_CRITERIA = int(sizeof(unsigned long)*8/QUERY_SORT_CRITERIA_BITS) |
static SmartPtr< QueryKeeper > | queryKeeper |
#define MAX_QUERY_LIST_LEN 100000 |
Definition at line 43 of file db_query.cxx.
Referenced by QUERY::DbQuery_update_list().
#define AWAR_COLORIZE "tmp/dbquery_all/colorize" |
Definition at line 45 of file db_query.cxx.
Referenced by colorize_marked_cb(), colorize_queried_cb(), create_colorize_window(), create_query_independent_awars(), and mark_colored_cb().
#define AWAR_COLOR_LOADSAVE_NAME "tmp/colorset/name" |
Definition at line 1614 of file db_query.cxx.
Referenced by create_loadsave_colored_window(), and loadsave_colorset_cb().
#define KEY_Y_OFFSET 32 |
Referenced by QUERY::create_query_box().
typedef Keeper<DbQuery*> QueryKeeper |
Definition at line 2338 of file db_query.cxx.
enum EXT_QUERY_TYPES |
Enumerator | |
---|---|
EXT_QUERY_NONE | |
EXT_QUERY_COMPARE_LINES | |
EXT_QUERY_COMPARE_WORDS |
Definition at line 114 of file db_query.cxx.
enum mark_mode |
Enumerator | |
---|---|
UNMARK | |
MARK | |
INVERT |
Definition at line 1560 of file db_query.cxx.
enum loadsave_mode |
Enumerator | |
---|---|
SAVE | |
LOAD | |
OVERLAY | |
DELETE |
Definition at line 1745 of file db_query.cxx.
|
static |
Definition at line 47 of file db_query.cxx.
Referenced by QUERY::create_query_box().
|
inline |
Definition at line 51 of file db_query.cxx.
References dbq_assert, QUERY::DbQuery::gb_main, GB_raise_user_flag(), GBS_shorten_repeated_data(), GBS_write_hash(), MutableItemSelector::generate_item_id, QUERY::DbQuery::hit_description, info, MAX_SHOWN_DATA_SIZE, QUERY::DbQuery::select_bit, and QUERY::DbQuery::selector.
Referenced by QUERY::copy_selection_list_2_query_box(), perform_query_cb(), and QUERY::search_duplicated_field_content().
Definition at line 77 of file db_query.cxx.
References GB_clear_user_flag(), QUERY::DbQuery::gb_main, GBS_write_hash(), MutableItemSelector::generate_item_id, QUERY::DbQuery::hit_description, QUERY::DbQuery::select_bit, and QUERY::DbQuery::selector.
Referenced by QUERY::copy_selection_list_2_query_box(), perform_query_cb(), QUERY::search_duplicated_field_content(), and QUERY::unquery_all().
Definition at line 85 of file db_query.cxx.
References GBS_read_hash(), QUERY::DbQuery::hit_description, and info.
Referenced by QUERY::DbQuery_update_list(), getHitInfo(), keptHitReason(), and QUERY::search_duplicated_field_content().
Definition at line 89 of file db_query.cxx.
References QUERY::DbQuery::gb_main, MutableItemSelector::generate_item_id, getHitInfo(), result, and QUERY::DbQuery::selector.
Definition at line 95 of file db_query.cxx.
References getHitInfo(), and string().
Referenced by QUERY::copy_selection_list_2_query_box(), and perform_query_cb().
|
static |
Definition at line 102 of file db_query.cxx.
References AWAR_COLORIZE, and AW_root::awar_int().
Referenced by create_colorize_window(), and QUERY::create_query_box().
|
static |
Definition at line 180 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(), QUERY::IS_QUERIED(), QUERY_ALL_ITEMS, QUERY::QUERY_ENLARGE, QUERY::QUERY_GENERATE, QUERY::QUERY_REDUCE, QUERY::DbQuery::selector, and ta.
Referenced by QUERY::create_query_box(), and perform_query_cb().
|
static |
Definition at line 206 of file db_query.cxx.
References dbq_assert, MAX_CRITERIA, QUERY_SORT_CRITERIA_BITS, and QUERY_SORT_CRITERIA_MASK.
Referenced by QUERY::DbQuery_update_list(), first_searchkey_changed_cb(), and result_sort_order_changed_cb().
|
static |
Definition at line 217 of file db_query.cxx.
References QUERY::QUERY_SORT_BY_1STFIELD_CONTENT, QUERY::QUERY_SORT_BY_HIT_DESCRIPTION, QUERY::QUERY_SORT_NONE, and QUERY::QUERY_SORT_NUM_BY_1STFIELD_CONTENT.
Referenced by QUERY::DbQuery_update_list(), and first_searchkey_changed_cb().
|
static |
Definition at line 234 of file db_query.cxx.
References MAX_CRITERIA, QUERY::QUERY_SORT_BY_1STFIELD_CONTENT, QUERY::QUERY_SORT_NONE, and QUERY::QUERY_SORT_NUM_BY_1STFIELD_CONTENT.
Referenced by QUERY::DbQuery_update_list().
Definition at line 248 of file db_query.cxx.
References QUERY::DbQuery_update_list(), find_display_determining_sort_order(), MAX_CRITERIA, QUERY::QUERY_SORT_BY_HIT_DESCRIPTION, QUERY::QUERY_SORT_NONE, QUERY::DbQuery::sort_mask, and split_sort_mask().
Referenced by QUERY::create_query_box().
|
inline |
Definition at line 258 of file db_query.cxx.
References QUERY::QUERY_SORT_NONE, and QUERY::QUERY_SORT_REVERSE.
Referenced by result_sort_order_changed_cb().
Definition at line 265 of file db_query.cxx.
References AW_root::awar(), QUERY::DbQuery::awar_sort, QUERY::DbQuery_update_list(), keep_criteria(), MAX_CRITERIA, QUERY_SORT_CRITERIA_BITS, QUERY::QUERY_SORT_NONE, AW_awar::read_int(), QUERY::DbQuery::sort_mask, and split_sort_mask().
Referenced by QUERY::create_query_box().
Definition at line 315 of file db_query.cxx.
References cmp, and double_cmp().
Referenced by compare_hits().
|
static |
Definition at line 346 of file db_query.cxx.
References ARB_strNULLcmp(), cmp, hits_sort_params::first_key, hits_sort_params::first_type, float_cmp(), GB_FLOAT, GB_INT, QUERY::DbQuery::gb_main, GB_read_flag(), GBS_read_hash(), GBT_read_as_string(), GBT_read_char_pntr(), GBT_read_float(), GBT_read_int(), MutableItemSelector::generate_item_id, MutableItemSelector::get_parent, QUERY::DbQuery::hit_description, MutableItemSelector::id_field, long_cmp(), MAX_CRITERIA, numeric_string_cmp(), hits_sort_params::order, MutableItemSelector::parent_selector, hits_sort_params::query, QUERY::QUERY_SORT_BY_1STFIELD_CONTENT, QUERY::QUERY_SORT_BY_HIT_DESCRIPTION, QUERY::QUERY_SORT_BY_ID, QUERY::QUERY_SORT_BY_MARKED, QUERY::QUERY_SORT_BY_NESTED_PID, QUERY::QUERY_SORT_NONE, QUERY::QUERY_SORT_NUM_BY_1STFIELD_CONTENT, QUERY::QUERY_SORT_REVERSE, and QUERY::DbQuery::selector.
Referenced by QUERY::DbQuery_update_list().
Definition at line 459 of file db_query.cxx.
Referenced by QUERY::DbQuery_update_list().
|
inline |
Definition at line 467 of file db_query.cxx.
References PSEUDO_FIELD_ALL_FIELDS, PSEUDO_FIELD_ALL_FIELDS_REC, PSEUDO_FIELD_ANY_FIELD, and PSEUDO_FIELD_ANY_FIELD_REC.
Referenced by is_pseudo_key().
|
inline |
Definition at line 475 of file db_query.cxx.
References dbq_assert, and SLOW_is_pseudo_key().
Referenced by QUERY::DbQuery_update_list(), and QUERY::search_duplicated_field_content().
Definition at line 588 of file db_query.cxx.
References QUERY::DbQuery::aws, QUERY::DbQuery_update_list(), QUERY::DbQuery::gb_main, GB_pop_transaction(), GB_push_transaction(), GB_write_flag(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), QUERY::IS_QUERIED(), QUERY_ALL_ITEMS, and QUERY::DbQuery::selector.
Referenced by QUERY::create_query_box().
Definition at line 629 of file db_query.cxx.
References aw_ask_sure(), aw_message(), QUERY::DbQuery::aws, QUERY::DbQuery_update_list(), error(), GB_abort_transaction(), GB_begin_transaction(), GB_commit_transaction(), GB_delete(), QUERY::DbQuery::gb_main, GBS_global_string(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), QUERY::IS_QUERIED(), MutableItemSelector::items_name, NULp, QUERY_ALL_ITEMS, and QUERY::DbQuery::selector.
Referenced by QUERY::create_query_box().
|
static |
Definition at line 677 of file db_query.cxx.
References QUERY::DbQuery::expect_hit_in_ref_list, GB_FIND, GB_IGNORE_CASE, GB_read_as_string(), QUERY::DbQuery::gb_ref, GB_search(), GBS_create_hash(), GBS_write_hash(), GBT_first_species(), GBT_get_species_count(), GBT_next_species(), QUERY::IS_QUERIED(), and NULp.
Referenced by perform_query_cb().
|
inline |
Definition at line 891 of file db_query.cxx.
References AND, ILLEGAL, and OR.
Referenced by QUERY::DbQuery::buildQueryExpr().
|
static |
Definition at line 926 of file db_query.cxx.
References TargetItem::aimTo(), aw_message(), AW_root::awar(), QUERY::DbQuery::awar_by, QUERY::DbQuery::awar_ere, QUERY::DbQuery::awar_keys, QUERY::DbQuery::awar_queries, QUERY::DbQuery::awar_where, QUERY::DbQuery::aws, QUERY::DbQuery::buildQueryExpr(), CLEAR_QUERIED(), create_ref_hash(), dbq_assert, QUERY::DbQuery_update_list(), arb_progress::done(), DOWNCAST_REFERENCE, error(), QUERY::DbQuery::expect_hit_in_ref_list, EXT_QUERY_COMPARE_LINES, EXT_QUERY_COMPARE_WORDS, EXT_QUERY_NONE, fputc(), fputs(), GB_failedTo_error(), QUERY::DbQuery::gb_main, GB_pop_transaction(), GB_push_transaction(), GB_read_as_string(), GB_read_flag(), QUERY::DbQuery::gb_ref, GBS_free_hash(), GBS_global_string(), GBS_hash_elements(), GBS_read_hash(), GBT_get_name_or_description(), MutableItemSelector::generate_item_id, MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, QueryExpr::get_key(), QueryExpr::get_key_type(), MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), QueryExpr::getError(), arb_progress::inc_and_check_user_abort(), QUERY::IS_QUERIED(), keptHitReason(), QueryExpr::matches(), QueryExpr::negate(), NULp, QKEY_EXPLICIT, QUERY_ALL_ITEMS, query_count_items(), QUERY::QUERY_DONT_MATCH, QUERY::QUERY_ENLARGE, QUERY::QUERY_GENERATE, QUERY::QUERY_MARKED, QUERY::QUERY_MATCH, QUERY::QUERY_REDUCE, AW_awar::read_int(), AW_awar::read_string(), QUERY::DbQuery::selector, SET_QUERIED(), and type.
Referenced by QUERY::create_query_box().
Definition at line 1346 of file db_query.cxx.
References aw_message_if(), AW_root::awar(), QUERY::DbQuery::awar_acceptConvError, QUERY::DbQuery::awar_acceptIdMod, QUERY::DbQuery::awar_count, QUERY::DbQuery::awar_deftag, QUERY::DbQuery::awar_double_pars, QUERY::DbQuery::awar_parskey, QUERY::DbQuery::awar_parsvalue, QUERY::DbQuery::awar_tag, QUERY::DbQuery::awar_use_tag, QUERY::DbQuery::awar_where, QUERY::DbQuery::aws, MutableItemSelector::change_key_path, command, dbq_assert, arb_progress::done(), error(), FIF_ALLOW_ID_CHANGE, FIF_STANDARD, GB_await_error(), GB_begin_transaction(), GB_command_interpreter_in_env(), GB_delete(), GB_end_transaction(), GB_FIND, GB_incur_error_if(), QUERY::DbQuery::gb_main, GB_read_as_string(), GB_search(), GB_STRING, GB_write_autoconv_string(), GBS_global_string(), GBS_modify_tagged_string_with_ACI(), GBT_get_type_of_changekey(), 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(), QUERY::DbQuery::get_tree_name(), arb_progress::inc_and_check_user_abort(), QUERY::IS_QUERIED(), MutableItemSelector::item_name, NULp, prepare_and_get_selected_itemfield(), QUERY_ALL_ITEMS, AW_awar::read_int(), AW_awar::read_string(), and QUERY::DbQuery::selector.
Referenced by create_modify_fields_window().
Definition at line 1480 of file db_query.cxx.
References aw_message(), AW_root::awar(), QUERY::DbQuery::awar_parskey, QUERY::DbQuery::awar_parspredefined, QUERY::DbQuery::awar_parsvalue, GB_await_error(), QUERY::DbQuery::gb_main, GBS_global_string_copy(), GBT_get_default_alignment(), AW_awar::read_string(), ta, and AW_awar::write_string().
Referenced by create_modify_fields_window().
Definition at line 1507 of file db_query.cxx.
References AW_root::awar(), AWAR_COLORIZE, QUERY::DbQuery::awar_where, QUERY::DbQuery::aws, error(), GB_export_error(), QUERY::DbQuery::gb_main, GBT_set_color_group(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), QUERY::IS_QUERIED(), NULp, QUERY_ALL_ITEMS, AW_awar::read_int(), QUERY::DbQuery::selector, ta, and MutableItemSelector::trigger_display_refresh.
Referenced by create_colorize_window().
|
static |
Definition at line 1535 of file db_query.cxx.
References AW_root::awar(), AWAR_COLORIZE, error(), GB_export_error(), MutableBoundItemSel::gb_main, GB_read_flag(), GBT_set_color_group(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), NULp, QUERY_ALL_ITEMS, AW_awar::read_int(), MutableBoundItemSel::selector, and ta.
Referenced by create_colorize_window().
|
static |
Definition at line 1566 of file db_query.cxx.
References AW_root::awar(), AWAR_COLORIZE, dbq_assert, MutableBoundItemSel::gb_main, GB_read_flag(), GB_write_flag(), GBT_get_color_group(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), INVERT, MARK, QUERY_ALL_ITEMS, AW_awar::read_int(), MutableBoundItemSel::selector, ta, and UNMARK.
Referenced by create_colorize_window().
|
inline |
Definition at line 1616 of file db_query.cxx.
References MutableBoundItemSel::gb_main, GBT_colorset_root(), MutableItemSelector::items_name, and MutableBoundItemSel::selector.
Referenced by create_loadsave_colored_window(), loadsave_colorset_cb(), and update_colorset_selection_list().
|
static |
Definition at line 1620 of file db_query.cxx.
References color_save_data::bsel, AW_selection_list::clear(), color_save_data::colorsets, MutableBoundItemSel::gb_main, GBT_get_colorset_names(), get_colorset_root(), AW_selection_list::insert(), AW_selection_list::insert_default(), CharPtrArray::size(), ta, and AW_selection_list::update().
Referenced by colorset_changed_cb(), and create_loadsave_colored_window().
|
static |
Definition at line 1636 of file db_query.cxx.
References GB_CB_CHANGED, and update_colorset_selection_list().
Referenced by create_loadsave_colored_window().
|
static |
Definition at line 1642 of file db_query.cxx.
References dbq_assert, gb_main, MutableBoundItemSel::gb_main, GBS_global_string(), GBS_global_string_copy(), GBT_get_color_group(), MutableItemSelector::generate_item_id, MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, MutableItemSelector::items_name, QUERY_ALL_ITEMS, and MutableBoundItemSel::selector.
Referenced by loadsave_colorset_cb().
|
static |
Definition at line 1672 of file db_query.cxx.
References error(), MutableBoundItemSel::gb_main, GBT_set_color_group(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, NULp, QUERY_ALL_ITEMS, MutableBoundItemSel::selector, and MutableItemSelector::trigger_display_refresh.
Referenced by clear_all_colors_cb(), and loadsave_colorset_cb().
|
static |
Definition at line 1694 of file db_query.cxx.
References aw_message(), clear_all_colors(), GB_transaction::close(), error(), MutableBoundItemSel::gb_main, AW_window::get_root(), and ta.
Referenced by create_loadsave_colored_window().
|
static |
Definition at line 1704 of file db_query.cxx.
References aw_message(), error(), MutableItemSelector::find_item_by_id, gb_main, MutableBoundItemSel::gb_main, GBS_global_string(), GBT_set_color_group(), MutableItemSelector::item_name, MutableItemSelector::items_name, NULp, MutableBoundItemSel::selector, CharPtrArray::size(), and MutableItemSelector::trigger_display_refresh.
Referenced by loadsave_colorset_cb().
|
static |
Definition at line 1752 of file db_query.cxx.
References aw_message(), AW_root::awar(), AWAR_COLOR_LOADSAVE_NAME, clear_all_colors(), GB_transaction::close(), create_colorset_representation(), dbq_assert, DELETE, CharPtrArray::empty(), error(), GB_await_error(), GB_delete(), GB_incur_error(), MutableBoundItemSel::gb_main, GBS_global_string(), GBT_find_colorset(), GBT_find_or_create_colorset(), GBT_load_colorset(), GBT_save_colorset(), get_colorset_root(), AW_window::get_root(), LOAD, NULp, OVERLAY, AW_awar::read_string(), restore_colorset_representation(), SAVE, and ta.
Referenced by create_loadsave_colored_window().
|
static |
Definition at line 1804 of file db_query.cxx.
References ARB_calloc(), AW_POPDOWN(), AW_ROOT_DEFAULT, AWAR_COLOR_LOADSAVE_NAME, AW_root::awar_string(), awt_create_selection_list_with_input_field(), color_save_data::bsel, clear_all_colors_cb(), colorset_changed_cb(), color_save_data::colorsets, dbq_assert, DELETE, GB_add_callback(), GB_CB_CHANGED, MutableBoundItemSel::gb_main, GBS_global_string(), GBS_global_string_copy(), get_colorset_root(), color_save_data::get_items_name(), LOAD, loadsave_colorset_cb(), makeHelpCallback(), NULp, OVERLAY, QUERY_ITEM_TYPES, SAVE, MutableBoundItemSel::selector, ta, MutableItemSelector::type, type, and update_colorset_selection_list().
Referenced by create_colorize_window().
|
static |
Definition at line 1862 of file db_query.cxx.
References AW_COLOR_GROUPS, AW_get_color_group_name(), AW_POPDOWN(), AW_ROOT_DEFAULT, AWAR_COLORIZE, color_save_data::bsel, colorize_marked_cb(), colorize_queried_cb(), color_save_data::colorsets, create_loadsave_colored_window(), create_query_independent_awars(), dbq_assert, GBS_global_string_copy(), INVERT, MutableItemSelector::items_name, macro_name, makeHelpCallback(), MARK, mark_colored_cb(), NULp, QUERY::DbQuery::selector, and UNMARK.
Referenced by QUERY::create_colorize_items_window(), and create_colorize_queried_window().
Definition at line 1959 of file db_query.cxx.
References create_colorize_window(), QUERY::DbQuery::gb_main, and NULp.
Referenced by QUERY::create_query_box().
|
static |
Definition at line 1967 of file db_query.cxx.
References AWT_config_definition::add(), QUERY::DbQuery::awar_acceptConvError, QUERY::DbQuery::awar_acceptIdMod, QUERY::DbQuery::awar_deftag, QUERY::DbQuery::awar_double_pars, QUERY::DbQuery::awar_parskey, QUERY::DbQuery::awar_parsvalue, QUERY::DbQuery::awar_tag, QUERY::DbQuery::awar_use_tag, dbq_assert, and get_itemfield_type_awarname().
Referenced by create_modify_fields_window().
Definition at line 1982 of file db_query.cxx.
References aw_message(), AW_POPDOWN(), AW_ROOT_DEFAULT, QUERY::DbQuery::awar_acceptConvError, QUERY::DbQuery::awar_acceptIdMod, QUERY::DbQuery::awar_deftag, QUERY::DbQuery::awar_double_pars, QUERY::DbQuery::awar_parskey, QUERY::DbQuery::awar_parspredefined, QUERY::DbQuery::awar_parsvalue, QUERY::DbQuery::awar_tag, QUERY::DbQuery::awar_use_tag, AWT_insert_config_manager(), create_itemfield_selection_button(), dbq_assert, error(), FIELD_FILTER_STRING_READABLE, GB_concat_path_in_ARBLIB(), QUERY::DbQuery::gb_main, GBS_global_string(), GBS_global_string_copy(), MutableItemSelector::item_name, MutableItemSelector::items_name, StorableSelectionList::load(), macro_name, makeHelpCallback(), modify_fields_of_queried_cb(), NULp, predef_prg(), QUERY_ITEM_EXPERIMENTS, QUERY_ITEM_GENES, QUERY_ITEM_ORGANISM, QUERY_ITEM_SPECIES, QUERY::DbQuery::selector, setup_modify_fields_config(), SF_ALLOW_NEW, and MutableItemSelector::type.
Referenced by QUERY::create_query_box().
Definition at line 2064 of file db_query.cxx.
References aw_message(), AW_root::awar(), QUERY::DbQuery::awar_setvalue, QUERY::DbQuery::awar_writekey, QUERY::DbQuery::awar_writelossy, QUERY::DbQuery::aws, MutableItemSelector::change_key_path, dbq_assert, error(), GB_await_error(), GB_begin_transaction(), GB_delete(), GB_end_transaction_show_error(), GB_FIND, QUERY::DbQuery::gb_main, GB_read_as_string(), GB_search(), GB_write_autoconv_string(), GBS_global_string(), GBT_read_char_pntr(), GBT_searchOrCreate_itemfield_according_to_changekey(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), QUERY::IS_QUERIED(), MutableItemSelector::item_name, GBS_strstruct::ncat(), NULp, prepare_and_get_selected_itemfield(), QUERY_ALL_ITEMS, AW_awar::read_int(), AW_awar::read_string(), GBS_strstruct::release(), result, and QUERY::DbQuery::selector.
Referenced by create_writeFieldOfListed_window().
Definition at line 2146 of file db_query.cxx.
References AW_POPDOWN(), QUERY::DbQuery::awar_setvalue, QUERY::DbQuery::awar_writekey, QUERY::DbQuery::awar_writelossy, create_itemfield_selection_button(), FIELD_FILTER_STRING_READABLE, QUERY::DbQuery::gb_main, init_itemType_specific_window(), makeHelpCallback(), QUERY::DbQuery::selector, set_field_of_queried_cb(), and SF_ALLOW_NEW.
Referenced by QUERY::create_query_box().
Definition at line 2179 of file db_query.cxx.
References aw_message(), AW_root::awar(), QUERY::DbQuery::awar_protectkey, QUERY::DbQuery::awar_setprotection, QUERY::DbQuery::awar_where, QUERY::DbQuery::aws, MutableItemSelector::change_key_path, CHANGEKEY_NAME, error(), GB_begin_transaction(), GB_CREATE_CONTAINER, GB_end_transaction_show_error(), GB_FIND, GB_find_string(), GB_IGNORE_CASE, QUERY::DbQuery::gb_main, GB_search(), GB_write_security_delete(), GB_write_security_write(), GBS_global_string(), MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), QUERY::IS_QUERIED(), NO_FIELD_SELECTED, NULp, QUERY_ALL_ITEMS, AW_awar::read_int(), AW_awar::read_string(), SEARCH_GRANDCHILD, and QUERY::DbQuery::selector.
Referenced by create_set_protection_window().
Definition at line 2226 of file db_query.cxx.
References AW_POPDOWN(), AW_VERTICAL, QUERY::DbQuery::awar_protectkey, QUERY::DbQuery::awar_setprotection, create_itemfield_selection_list(), FIELD_UNFILTERED, QUERY::DbQuery::gb_main, init_itemType_specific_window(), makeHelpCallback(), QUERY::DbQuery::selector, and set_protection_of_queried_cb().
Referenced by QUERY::create_query_box().
Definition at line 2260 of file db_query.cxx.
References QUERY::DbQuery_update_list(), QUERY::DbQuery::gb_main, GB_read_flag(), GB_write_flag(), AW_window::get_root(), MutableItemSelector::get_selected_item, QUERY::DbQuery::selector, and ta.
Referenced by QUERY::create_query_box().
|
static |
Definition at line 2270 of file db_query.cxx.
References AW_root::awar(), QUERY::DbQuery::gb_main, AW_awar::read_as_string(), QUERY::DbQuery::selector, and MutableItemSelector::update_item_awars.
Referenced by QUERY::create_query_box().
|
static |
Definition at line 2276 of file db_query.cxx.
References AWT_config_definition::add(), QUERY::DbQuery::awar_keys, QUERY::DbQuery::awar_not, QUERY::DbQuery::awar_operator, QUERY::DbQuery::awar_queries, and QUERY_EXPRESSIONS.
Referenced by QUERY::create_query_box().
|
static |
Definition at line 2287 of file db_query.cxx.
References GBS_global_string_copy(), and AW_window::insert_menu_topic().
Referenced by QUERY::create_query_box().
|
static |
Definition at line 2341 of file db_query.cxx.
References SmartPtr< T, C >::setNull().
Referenced by keepQuery().
Definition at line 2344 of file db_query.cxx.
References destroyKeptQueries(), GB_atclose_callback(), SmartPtr< T, C >::isNull(), and Keeper< T >::keep().
Referenced by QUERY::create_query_box().
const int MAX_CRITERIA = int(sizeof(unsigned long)*8/QUERY_SORT_CRITERIA_BITS) |
Definition at line 204 of file db_query.cxx.
Referenced by compare_hits(), first_searchkey_changed_cb(), remove_keydependent_sort_criteria(), result_sort_order_changed_cb(), and split_sort_mask().
|
static |
Definition at line 2340 of file db_query.cxx.