|
ARB
|
#include "selection_admin.h"#include <sel_boxes.hxx>#include <aw_select.hxx>#include <aw_root.hxx>#include <aw_awar.hxx>#include <aw_awar_defs.hxx>#include <aw_msg.hxx>#include <arb_global_defs.h>#include <arb_strarray.h>#include <ad_config.h>#include <ad_cb.h>#include <arbdbt.h>#include <RegExpr.hxx>#include <TreeNode.h>#include <modules.hxx>#include <map>
Go to the source code of this file.
Classes | |
| class | Store_species |
| struct | SAI_string_builder |
Variables | |
| const char | CFG_SEP = 1 |
|
static |
Definition at line 77 of file selection_admin.cxx.
References arb_assert, TreeNode::gb_node, GB_read_flag(), and GB_write_flag().
Referenced by create_species_selection().
|
static |
Definition at line 84 of file selection_admin.cxx.
References add(), arb_assert, TreeNode::gb_node, GB_read_flag(), and GB_write_flag().
Referenced by nt_build_conf_string_rek().
Definition at line 93 of file selection_admin.cxx.
References arb_assert, and TreeNode::is_leaf().
Referenced by left_neighbour_leaf().
Definition at line 102 of file selection_admin.cxx.
References arb_assert, father, TreeNode::gb_node, TreeNode::is_leaf(), NULp, rightmost_leaf(), and TreeNode::rightson.
Referenced by nt_build_conf_string_rek().
|
static |
Builds a configuration string from a tree.
| used | all species inserted by this function are stored here |
| tree | used for group information |
| memfile | generated configuration string is stored here |
| extra_marked_species | all extra marked species are inserted here |
| use_species_aside | number of species to mark left and right of marked species |
| auto_mark | number species to extra-mark (if not already marked) |
| marked_at_left | number of species which were marked (looking to left) |
| marked_at_right | number of species which are marked (when returning from recursion) |
Part : '' ( Group | Species | Sai )
Group : ( OpenedGroup | ClosedGroup ) OpenedGroup : 'G' GroupDef ClosedGroup : 'F' GroupDef GroupDef : 'groupname' [PART]* EndGroup EndGroup : ''
SPECIES : 'L' 'speciesname' SAI : 'S' 'sainame'
\0 : ASCII 0 (eos) : ASCII 1
Definition at line 123 of file selection_admin.cxx.
References add(), arb_assert, GBS_strstruct::cat(), GBS_strstruct::cut_tail(), GB_entry(), TreeNode::gb_node, GB_read_byte(), GB_read_flag(), GBS_write_hash(), GBS_strstruct::get_position(), Store_species::getNode(), TreeNode::is_leaf(), left_neighbour_leaf(), mark_species(), TreeNode::name, NULp, GBS_strstruct::put(), Store_species::remove(), tree, and UNCOVERED.
Referenced by create_species_selection().
Definition at line 265 of file selection_admin.cxx.
References GBS_strstruct::cat(), SAI_string_builder::last_group_name, GBS_strstruct::ncat(), GBS_strstruct::put(), and SAI_string_builder::sai_middle.
Referenced by nt_build_sai_string().
|
static |
Definition at line 289 of file selection_admin.cxx.
References ARB_strdup(), GBS_strstruct::cat(), GB_FIND, GB_IGNORE_CASE, GB_number_of_subentries(), GB_read_string(), GB_search(), GBS_create_hash(), GBS_free_hash(), GBS_hash_do_const_sorted_loop(), GBS_HCF_sortedByKey(), GBS_write_hash(), GBT_find_SAI_rel_SAI_data(), GBT_first_SAI_rel_SAI_data(), GBT_get_SAI_data(), GBT_next_SAI(), GBT_split_string(), SAI_string_builder::last_group_name, nt_build_sai_string_by_hash(), NULp, GBS_strstruct::put(), s, CharPtrArray::size(), and SPLIT_DROPEMPTY.
Referenced by create_species_selection().
|
static |
Definition at line 357 of file selection_admin.cxx.
References GBS_strstruct::cat(), GBS_read_hash(), GBT_first_marked_species(), GBT_next_marked_species(), GBT_read_string(), and GBS_strstruct::put().
Referenced by create_species_selection().
| void extract_species_selection | ( | GBDATA * | gb_main, |
| const char * | selectionName, | ||
| SelectionExtractType | ext_type | ||
| ) |
Definition at line 378 of file selection_admin.cxx.
References arb_assert, aw_message(), aw_message_if(), AW_root::awar(), AWAR_TREE_REFRESH, CI_END_OF_CONFIG, CI_SPECIES, error(), GB_read_flag(), GB_write_flag(), GBS_free_hash(), GBS_global_string(), GBS_hash_elements(), GBS_read_hash(), GBT_create_marked_species_hash(), GBT_find_species(), GBT_mark_all(), GBT_config_item::name, GBT_config_parser::nextItem(), NO_CONFIG_SELECTED, NULp, SELECTION_COMBINE, SELECTION_EXTRACT, SELECTION_INVERT, SELECTION_MARK, SELECTION_UNMARK, AW_root::SINGLETON, ta, AW_awar::touch(), and GBT_config_item::type.
Referenced by FINAL_TYPE< SEQTYPE >::handle_click(), and nt_extract_configuration().
|
static |
Definition at line 456 of file selection_admin.cxx.
References AW_root::awar(), extract_species_selection(), gb_main, SelectionAdmin::get_gb_main(), SelectionAdmin::get_selection_awarname(), and AW_root::SINGLETON.
Referenced by create_species_selection_window().
|
static |
Definition at line 465 of file selection_admin.cxx.
References aw_message(), AW_root::awar(), GB_transaction::close(), error(), GB_delete(), gb_main, GBT_find_configuration(), SelectionAdmin::get_gb_main(), AW_window::get_root(), SelectionAdmin::get_selection_awarname(), AW_selection::get_sellist(), AW_selection_list::move_selection(), AW_awar::read_string(), SelectionAdmin::speciesSelection_deleted_cb(), and ta.
Referenced by create_species_selection_window().
|
static |
Definition at line 488 of file selection_admin.cxx.
References ARB_strdup(), AW_root::awar(), GB_entry(), GBT_find_configuration(), SelectionAdmin::get_gb_main(), SelectionAdmin::get_selection_awarname(), SelectionAdmin::get_selectionComment_awarname(), AW_awar::is_mapped(), AW_awar::map(), NULp, AW_awar::read_string(), AW_awar::unmap(), and AW_awar::write_string().
Referenced by config_comment_changed_cb(), and init_awars_and_callbacks().
|
static |
Definition at line 517 of file selection_admin.cxx.
References arb_assert, aw_message_if(), AW_root::awar(), error(), GB_delete(), GB_entry(), GBT_find_configuration(), GBT_write_string(), SelectionAdmin::get_gb_main(), SelectionAdmin::get_selection_awarname(), SelectionAdmin::get_selectionComment_awarname(), AW_awar::is_mapped(), NULp, AW_awar::read_char_pntr(), selected_config_changed_cb(), AW_awar::unmap(), and AW_awar::write_string().
Referenced by init_awars_and_callbacks().
|
static |
Definition at line 558 of file selection_admin.cxx.
References AW_awar::add_callback(), arb_assert, AW_root::awar_string(), config_comment_changed_cb(), DEFAULT_CONFIGURATION, SelectionAdmin::get_gb_main(), SelectionAdmin::get_selection_awarname(), SelectionAdmin::get_selectionComment_awarname(), selected_config_changed_cb(), and AW_awar::touch().
Referenced by create_species_selection(), and create_species_selection_window().
| GB_ERROR create_species_selection | ( | const SelectionAdmin & | selection, |
| const char * | conf_name, | ||
| int | use_species_aside, | ||
| SelectionCreation | creation | ||
| ) |
Definition at line 591 of file selection_admin.cxx.
References arb_assert, aw_input(), AW_root::awar(), BY_CALLING_THE_EDITOR, Store_species::call(), error(), GBT_config::exists(), FROM_IMPORTER, FROM_MANAGER, gb_main, GB_MIND_CASE, GBS_create_hash(), GBS_free_hash(), GBS_global_string(), GBS_log_action_to(), GBT_get_species_count(), GBT_config::get_comment(), GBS_strstruct::get_data(), SelectionAdmin::get_gb_main(), SelectionAdmin::get_name_of_tree(), GBS_strstruct::get_position(), SelectionAdmin::get_selection_awarname(), SelectionAdmin::get_selectionComment_awarname(), SelectionAdmin::get_toparea_SAIs(), SelectionAdmin::get_tree_root(), implicated, init_awars_and_callbacks(), GBT_config::MIDDLE_AREA, GBS_strstruct::ncat(), nt_build_conf_marked(), nt_build_conf_string_rek(), nt_build_sai_string(), NULp, GBS_strstruct::release(), GBT_config::save(), GBT_config::set_comment(), GBT_config::set_definition(), AW_root::SINGLETON, ta, GBT_config::TOP_AREA, and unmark_species().
Referenced by nt_create_config_after_import(), NT_start_editor_on_tree(), and nt_store_configuration().
|
static |
Definition at line 708 of file selection_admin.cxx.
References aw_message_if(), AW_root::awar(), create_species_selection(), FROM_MANAGER, SelectionAdmin::get_selection_awarname(), and AW_root::SINGLETON.
Referenced by create_species_selection_window().
|
static |
Definition at line 714 of file selection_admin.cxx.
References arb_assert, aw_input(), aw_message(), AW_root::awar(), GB_transaction::close(), GB_entry(), GB_get_transaction_level(), gb_main, GB_write_string(), GBS_global_string(), GBT_find_configuration(), SelectionAdmin::get_gb_main(), AW_window::get_root(), SelectionAdmin::get_selection_awarname(), NULp, AW_awar::read_string(), SelectionAdmin::speciesSelection_renamed_cb(), ta, and AW_awar::write_string().
Referenced by create_species_selection_window().
Definition at line 761 of file selection_admin.cxx.
References arb_assert, error(), NULp, GBT_config::saveAsOver(), and swap().
Referenced by reorder_configs_cb().
|
static |
Definition at line 779 of file selection_admin.cxx.
References ARM_BOTTOM, ARM_DOWN, ARM_TOP, ARM_UP, aw_message_if(), AW_root::awar(), GB_transaction::close(), error(), gb_main, AW_selection_list::get_awar_name(), AW_DB_selection::get_gb_main(), AW_selection_list::get_index_of(), AW_window::get_root(), AW_selection::get_sellist(), NULp, AW_awar::read_char_pntr(), AW_selection_list::size(), swap_configs(), ta, AW_selection_list::to_array(), and AW_awar::touch().
Referenced by create_species_selection_window().
|
static |
Definition at line 824 of file selection_admin.cxx.
References arb_assert, AW_root::awar(), CharPtrArray::clear(), RegMatch::didMatch(), GBT_join_strings(), GBT_splitNdestroy_string(), AW_window::get_root(), SelectionAdmin::get_selectionComment_awarname(), RegExpr::has_failed(), implicated, line, RegExpr::match(), AW_awar::read_string(), CharPtrArray::safe_remove(), CharPtrArray::size(), and AW_awar::write_string().
Referenced by create_species_selection_window().
|
static |
Updates marked counter and issues redraw on tree if number of marked species changes. Called on any change of species_information container.
Definition at line 848 of file selection_admin.cxx.
References AW_root::awar(), AWAR_TREE_REFRESH, buffer, GB_get_root(), gb_main, GBS_global_string(), GBT_count_marked_species(), AW_awar::read_char_pntr(), AW_root::SINGLETON, AW_awar::touch(), and AW_awar::write_string().
Referenced by create_species_selection_button().
| void create_species_selection_button | ( | AW_window * | awm, |
| WindowCallback | wcb, | ||
| const char * | macro_id, | ||
| const char * | awarname_buttontext, | ||
| GBDATA * | gb_main | ||
| ) |
Definition at line 863 of file selection_admin.cxx.
References aw_message_if(), AW_root::awar_string(), AW_window::button_length(), AW_window::callback(), AW_window::create_button(), GB_CB_CHANGED, GB_ensure_callback(), gb_species_data, GBT_get_species_data(), AW_window::get_root(), AW_window::help_text(), ta, and update_marked_counter_label().
Referenced by MG_create_merge_species_window(), and popup_new_main_window().
| AW_window* create_species_selection_window | ( | AW_root * | root, |
| const SelectionAdmin * | selection | ||
| ) |
Definition at line 883 of file selection_admin.cxx.
References AW_POPDOWN(), awt_create_CONFIG_selection_list(), UNTYPED::awt_create_order_buttons(), clear_comment_cb(), GBS_global_string(), SelectionAdmin::get_gb_main(), SelectionAdmin::get_macro_suffix(), SelectionAdmin::get_selection_awarname(), SelectionAdmin::get_selectionComment_awarname(), SelectionAdmin::get_window_title(), init_awars_and_callbacks(), makeHelpCallback(), nt_delete_configuration(), nt_extract_configuration(), nt_rename_configuration(), nt_store_configuration(), reorder_configs_cb(), SELECTION_COMBINE, SELECTION_EXTRACT, SELECTION_INVERT, SELECTION_MARK, and SELECTION_UNMARK.
Referenced by MG_popup_selection_admin(), and NT_popup_configuration_admin().
| const char CFG_SEP = 1 |
Definition at line 121 of file selection_admin.cxx.
1.8.8