ARB
|
#include "NT_group_search.h"
#include "NT_local.h"
#include "ad_trees.h"
#include <group_search.h>
#include <TreeDisplay.hxx>
#include <awt_config_manager.hxx>
#include <awt_sel_boxes.hxx>
#include <aw_select.hxx>
#include <aw_root.hxx>
#include <aw_awar.hxx>
#include <aw_msg.hxx>
#include <aw_awar_defs.hxx>
#include <ad_cb_prot.h>
Go to the source code of this file.
Classes | |
class | GroupUIdata |
Enumerations | |
enum | TreeSearchRange { SEARCH_CURRENT_TREE, SEARCH_SELECTED_TREES, SEARCH_ALL_TREES } |
enum | DuplicateMode { DONT_MIND_DUPLICATES, ONLY_DUPLICATES, ONLY_UNIQUE } |
enum | GroupMarkTarget { GMT_ALL_SPECIES, GMT_SELECTED_GROUP, GMT_ANY_GROUP, GMT_ALL_GROUPS } |
Variables | |
static bool | inside_group_selection = false |
static bool | nameChangedByGroupChange = false |
static AWT_config_mapping_def | group_search_config_mapping [] |
static AWT_predefined_config | predefined_group_search [] |
#define TRACE | ( | msg | ) |
Definition at line 34 of file NT_group_search.cxx.
Referenced by GroupUIdata::cleanup(), GroupUIdata::initialize(), and selected_group_changed_by_canvas_cb().
#define GS_AWARS "group_search/" |
Definition at line 40 of file NT_group_search.cxx.
#define GS_AWARS_DUPS GS_AWARS "dup/" |
Definition at line 41 of file NT_group_search.cxx.
#define GS_AWARS_TMP "tmp/" GS_AWARS |
Definition at line 42 of file NT_group_search.cxx.
#define AWAR_MAYBE_INVALID_GROUP GS_AWARS_TMP "sellist" |
Definition at line 44 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), popup_group_search_window(), GroupUIdata::refill_result_list(), and selected_group_changed_by_canvas_cb().
#define AWAR_SELECTED_RESULT_GROUP GS_AWARS_TMP "selected" |
Definition at line 45 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), and GroupUIdata::refill_result_list().
#define AWAR_GROUP_HIT_COUNT GS_AWARS_TMP "hits" |
Definition at line 46 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), and popup_group_search_window().
#define AWAR_SELECTED_GROUP_NAME GS_AWARS_TMP "selname" |
Definition at line 47 of file NT_group_search.cxx.
Referenced by create_group_rename_window_cb(), and create_group_search_awars().
#define AWAR_RESULTING_GROUP_NAME GS_AWARS_TMP "resname" |
Definition at line 48 of file NT_group_search.cxx.
Referenced by create_group_rename_window_cb(), and create_group_search_awars().
#define AWAR_TREE_SELECTED GS_AWARS_TMP "treesel" |
Definition at line 49 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), and create_tree_select_window_cb().
#define AWAR_RESULT_ORDER GS_AWARS_TMP "order" |
Definition at line 50 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), and popup_group_search_window().
#define AWAR_SEARCH_WHICH_TREES GS_AWARS "trees" |
Definition at line 52 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), create_tree_select_window_cb(), and popup_group_search_window().
#define AWAR_SEARCH_MODE GS_AWARS "mode" |
Definition at line 53 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), popup_group_search_window(), and GroupUIdata::run_search().
#define AWAR_MATCH_MODE GS_AWARS "match" |
Definition at line 54 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), popup_group_search_window(), and GroupUIdata::run_search().
#define AWAR_MARK_TARGET GS_AWARS "markwhat" |
Definition at line 55 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), GroupUIdata::mark_species(), and popup_group_search_window().
#define AWAR_RENAME_EXPRESSION GS_AWARS "aci" |
Definition at line 56 of file NT_group_search.cxx.
Referenced by create_group_rename_window_cb(), create_group_search_awars(), GroupUIdata::rename_listed_groups(), and GroupUIdata::rename_selected_group().
#define AWAR_DUPLICATE_MODE GS_AWARS_DUPS "mode" |
Definition at line 58 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), and popup_group_search_window().
#define AWAR_DUP_TREE_MODE GS_AWARS_DUPS "locmode" |
Definition at line 59 of file NT_group_search.cxx.
Referenced by create_dup_config_window_cb(), and create_group_search_awars().
#define AWAR_DUP_NAME_MATCH GS_AWARS_DUPS "namematch" |
Definition at line 60 of file NT_group_search.cxx.
Referenced by create_dup_config_window_cb(), and create_group_search_awars().
#define AWAR_DUP_MIN_CLUSTER_SIZE GS_AWARS_DUPS "clustsize" |
Definition at line 61 of file NT_group_search.cxx.
Referenced by create_dup_config_window_cb(), and create_group_search_awars().
#define AWAR_DUP_MIN_WORDS GS_AWARS_DUPS "minwords" |
Definition at line 62 of file NT_group_search.cxx.
Referenced by create_dup_config_window_cb(), and create_group_search_awars().
#define AWAR_DUP_IGNORE_CASE GS_AWARS_DUPS "ignore_case" |
Definition at line 63 of file NT_group_search.cxx.
Referenced by create_dup_config_window_cb(), and create_group_search_awars().
#define AWAR_DUP_EXCLUDED_WORDS GS_AWARS_DUPS "excluded" |
Definition at line 64 of file NT_group_search.cxx.
Referenced by create_dup_config_window_cb(), and create_group_search_awars().
#define AWAR_DUP_WORD_SEPARATORS GS_AWARS_DUPS "separators" |
Definition at line 65 of file NT_group_search.cxx.
Referenced by create_dup_config_window_cb(), and create_group_search_awars().
#define AWARFORMAT_CRIT_OPERATOR GS_AWARS "op%i" |
Definition at line 67 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), create_search_config_setup_cb(), and popup_group_search_window().
#define AWARFORMAT_CRIT_KEY GS_AWARS "key%i" |
Definition at line 68 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), create_search_config_setup_cb(), and popup_group_search_window().
#define AWARFORMAT_CRIT_EQUALS GS_AWARS "equals%i" |
Definition at line 69 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), create_search_config_setup_cb(), and popup_group_search_window().
#define AWARFORMAT_CRIT_MATCHES GS_AWARS "match%i" |
Definition at line 70 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), create_search_config_setup_cb(), and popup_group_search_window().
#define MAX_CRITERIA 3 |
Definition at line 72 of file NT_group_search.cxx.
Referenced by create_group_search_awars(), create_search_config_setup_cb(), criterion_awar_name(), and popup_group_search_window().
enum TreeSearchRange |
Enumerator | |
---|---|
SEARCH_CURRENT_TREE | |
SEARCH_SELECTED_TREES | |
SEARCH_ALL_TREES |
Definition at line 79 of file NT_group_search.cxx.
enum DuplicateMode |
Enumerator | |
---|---|
DONT_MIND_DUPLICATES | |
ONLY_DUPLICATES | |
ONLY_UNIQUE |
Definition at line 85 of file NT_group_search.cxx.
enum GroupMarkTarget |
Enumerator | |
---|---|
GMT_ALL_SPECIES | |
GMT_SELECTED_GROUP | |
GMT_ANY_GROUP | |
GMT_ALL_GROUPS |
Definition at line 569 of file NT_group_search.cxx.
Definition at line 74 of file NT_group_search.cxx.
References GBS_global_string(), gs_assert, and MAX_CRITERIA.
Referenced by create_group_search_awars(), create_search_config_setup_cb(), and popup_group_search_window().
|
static |
Definition at line 356 of file NT_group_search.cxx.
References GroupUIdata::cleanup().
Referenced by popup_group_search_window().
|
static |
Definition at line 357 of file NT_group_search.cxx.
References GroupUIdata::run_search().
Referenced by popup_group_search_window().
|
static |
Definition at line 358 of file NT_group_search.cxx.
References GroupUIdata::remove_selected_result().
Referenced by popup_group_search_window().
|
static |
Definition at line 359 of file NT_group_search.cxx.
References GroupUIdata::remove_all_results().
Referenced by popup_group_search_window().
|
static |
Definition at line 360 of file NT_group_search.cxx.
References GroupUIdata::delete_selected_group().
Referenced by popup_group_search_window().
|
static |
Definition at line 361 of file NT_group_search.cxx.
References GroupUIdata::delete_listed_groups().
Referenced by popup_group_search_window().
|
static |
Definition at line 362 of file NT_group_search.cxx.
References GroupUIdata::rename_selected_group().
Referenced by create_group_rename_window_cb().
|
static |
Definition at line 363 of file NT_group_search.cxx.
References GroupUIdata::rename_listed_groups().
Referenced by create_group_rename_window_cb().
|
static |
Definition at line 364 of file NT_group_search.cxx.
References GroupUIdata::toggle_selected_group_folding().
Referenced by popup_group_search_window().
|
static |
Definition at line 365 of file NT_group_search.cxx.
References GroupUIdata::change_listed_groups_folding().
Referenced by popup_group_search_window().
|
static |
Definition at line 366 of file NT_group_search.cxx.
References GroupUIdata::mark_species().
Referenced by popup_group_search_window().
TREE_canvas* NT_get_canvas_showing_tree | ( | const char * | tree_name, |
bool | forceDisplay | ||
) |
Definition at line 369 of file NT_group_search.cxx.
References AW_window::activate(), AWT_canvas::aww, TREE_canvas::get_awar_tree(), AWT_canvas::is_shown(), MAX_NT_WINDOWS, nt_assert, NT_get_canvas_by_index(), NULp, AW_awar::read_char_pntr(), and AW_awar::write_string().
Referenced by ad_move_tree_info(), and get_canvas_able_to_show().
|
static |
Definition at line 401 of file NT_group_search.cxx.
References GB_get_father(), GB_read_key(), NT_get_canvas_showing_tree(), NULp, and ta.
|
static |
Definition at line 449 of file NT_group_search.cxx.
References AW_root::awar(), AWAR_GROUP, AWAR_MAYBE_INVALID_GROUP, GBS_global_string(), AW_awar::read_pointer(), TRACE, and AW_awar::write_pointer().
Referenced by create_group_search_awars().
void create_group_search_awars | ( | AW_root * | aw_root, |
AW_default | props | ||
) |
Definition at line 615 of file NT_group_search.cxx.
References AW_awar::add_callback(), AW_root::awar(), AWAR_DUP_EXCLUDED_WORDS, AWAR_DUP_IGNORE_CASE, AWAR_DUP_MIN_CLUSTER_SIZE, AWAR_DUP_MIN_WORDS, AWAR_DUP_NAME_MATCH, AWAR_DUP_TREE_MODE, AWAR_DUP_WORD_SEPARATORS, AWAR_DUPLICATE_MODE, AWAR_GROUP, AWAR_GROUP_HIT_COUNT, AW_root::awar_int(), AWAR_MARK_TARGET, AWAR_MATCH_MODE, AWAR_MAYBE_INVALID_GROUP, AW_root::awar_pointer(), AWAR_RENAME_EXPRESSION, AWAR_RESULT_ORDER, AWAR_RESULTING_GROUP_NAME, AWAR_SEARCH_MODE, AWAR_SEARCH_WHICH_TREES, AWAR_SELECTED_GROUP_NAME, AWAR_SELECTED_RESULT_GROUP, AW_root::awar_string(), AWAR_TREE_SELECTED, AWARFORMAT_CRIT_EQUALS, AWARFORMAT_CRIT_KEY, AWARFORMAT_CRIT_MATCHES, AWARFORMAT_CRIT_OPERATOR, CM_MATCH, CO_IGNORE, criterion_awar_name(), CT_MARKED_PC, CT_NAME, CT_SIZE, DLC_SAME_TREE, DNC_WHOLENAME, DONT_MIND_DUPLICATES, GMT_SELECTED_GROUP, GSC_NONE, GSM_FIND, GSM_MATCH, MAX_CRITERIA, NULp, SEARCH_CURRENT_TREE, selected_group_changed_by_canvas_cb(), and AW_awar::set_min().
Referenced by nt_create_all_awars().
|
static |
Definition at line 666 of file NT_group_search.cxx.
References GroupUIdata::announce_tree_select_list(), AW_POPDOWN(), AW_root::awar(), AWAR_SEARCH_WHICH_TREES, AWAR_TREE_SELECTED, awt_create_subset_selection_list(), awt_create_TREE_selection_list(), GroupUIdata::get_gb_main(), AW_selection::get_sellist(), makeHelpCallback(), SEARCH_SELECTED_TREES, and AW_awar::write_int().
Referenced by popup_group_search_window().
|
static |
Definition at line 691 of file NT_group_search.cxx.
References AW_window::at(), AW_POPDOWN(), AWAR_RENAME_EXPRESSION, AWAR_RESULTING_GROUP_NAME, AWAR_SELECTED_GROUP_NAME, makeHelpCallback(), NULp, rename_listed_groups_cb(), and rename_selected_group_cb().
Referenced by popup_group_search_window().
Definition at line 762 of file NT_group_search.cxx.
References AW_window::at(), AW_POPDOWN(), AWAR_DUP_EXCLUDED_WORDS, AWAR_DUP_IGNORE_CASE, AWAR_DUP_MIN_CLUSTER_SIZE, AWAR_DUP_MIN_WORDS, AWAR_DUP_NAME_MATCH, AWAR_DUP_TREE_MODE, AWAR_DUP_WORD_SEPARATORS, DLC_ANYWHERE, DLC_DIFF_TREE, DLC_SAME_TREE, DNC_WHOLENAME, and DNC_WORDWISE.
Referenced by popup_group_search_window().
|
static |
Definition at line 844 of file NT_group_search.cxx.
References AWT_config_definition::add(), AWARFORMAT_CRIT_EQUALS, AWARFORMAT_CRIT_KEY, AWARFORMAT_CRIT_MATCHES, AWARFORMAT_CRIT_OPERATOR, criterion_awar_name(), and MAX_CRITERIA.
Referenced by popup_group_search_window().
Definition at line 870 of file NT_group_search.cxx.
References AW_window::activate(), GroupUIdata::announce_result_list(), AW_POPDOWN(), AW_ROOT_DEFAULT, AWAR_DUPLICATE_MODE, AWAR_GROUP_HIT_COUNT, AWAR_MARK_TARGET, AWAR_MATCH_MODE, AWAR_MAYBE_INVALID_GROUP, AWAR_RESULT_ORDER, AWAR_SEARCH_MODE, AWAR_SEARCH_WHICH_TREES, AWARFORMAT_CRIT_EQUALS, AWARFORMAT_CRIT_KEY, AWARFORMAT_CRIT_MATCHES, AWARFORMAT_CRIT_OPERATOR, AWT_insert_config_manager(), GroupUIdata::clear_result_list(), clear_results_cb(), CO_AND, CO_IGNORE, CO_OR, create_dup_config_window_cb(), create_group_rename_window_cb(), create_search_config_setup_cb(), create_tree_select_window_cb(), criterion_awar_name(), CT_AID, CT_FOLDED, CT_KEELED, CT_MARKED, CT_MARKED_PC, CT_NAME, CT_NESTING_LEVEL, CT_PARENT_ALL, CT_PARENT_ANY, CT_PARENT_DIRECT, CT_SIZE, CT_ZOMBIES, delete_listed_groups_cb(), delete_selected_group_cb(), DONT_MIND_DUPLICATES, double_click_group_cb(), GBS_global_string(), AW_window::get_root(), GFM_COLLAPSE, GFM_EXPANDPARENTS, GFM_EXPANDREC, GFM_EXPANDREC_COLLREST, GMM_INVERT, GMM_MARK, GMM_UNMARK, GMT_ALL_GROUPS, GMT_ALL_SPECIES, GMT_ANY_GROUP, GMT_SELECTED_GROUP, group_mark_cb(), GSC_AID, GSC_CLUSTER, GSC_HIT_REASON, GSC_KEELED, GSC_MARKED, GSC_MARKED_PC, GSC_NAME, GSC_NESTING, GSC_NONE, GSC_REVERSE, GSC_SIZE, GSC_TREENAME, GSC_TREEORDER, GSM_ADD, GSM_FIND, GSM_KEEP, GSM_MATCH, GSM_MISMATCH, GSM_REMOVE, GroupUIdata::initialize(), listed_groups_folding_cb(), makeHelpCallback(), MAX_CRITERIA, NULp, ONLY_DUPLICATES, ONLY_UNIQUE, popdown_search_window_cb(), remove_hit_cb(), runGroupSearch_cb(), SEARCH_ALL_TREES, SEARCH_CURRENT_TREE, and SEARCH_SELECTED_TREES.
Referenced by popup_new_main_window().
|
static |
Definition at line 420 of file NT_group_search.cxx.
|
static |
Definition at line 461 of file NT_group_search.cxx.
|
static |
Definition at line 824 of file NT_group_search.cxx.
|
static |
Definition at line 857 of file NT_group_search.cxx.