ARB
|
#include <ed4_class.hxx>
Additional Inherited Members | |
Static Public Member Functions inherited from ED4_base | |
static void | touch_world_cache () |
Public Attributes inherited from ED4_base | |
const ED4_objspec & | spec |
ED4_manager * | parent |
ED4_properties | dynamic_prop |
char * | id |
ED4_index | index |
ED4_base * | width_link |
ED4_base * | height_link |
ED4_extension | extension |
ED4_update_info | update_info |
struct { | |
unsigned int hidden: 1 | |
} | flag |
Protected Member Functions inherited from ED4_container | |
bool | valid_index (ED4_index idx) const |
bool | existing_index (ED4_index idx) const |
Definition at line 1190 of file ed4_class.hxx.
ED4_manager::ED4_manager | ( | const ED4_objspec & | spec_, |
const char * | id, | ||
AW_pos | width, | ||
AW_pos | height, | ||
ED4_manager * | parent | ||
) |
Definition at line 1213 of file ED4_manager.cxx.
ED4_manager::~ED4_manager | ( | ) |
Definition at line 1217 of file ED4_manager.cxx.
References ED4_container::clear().
ED4_manager::E4B_AVOID_UNNEEDED_CASTS | ( | manager | ) |
ED4_manager::DECLARE_DUMP_FOR_BASECLASS | ( | ED4_manager | , |
ED4_base | |||
) |
|
inline |
Definition at line 1197 of file ed4_class.hxx.
References ED4_cb_list< BASE, BASECB >::add_cb().
Referenced by ED4_reference::define().
|
inline |
Definition at line 1198 of file ed4_class.hxx.
References ED4_cb_list< BASE, BASECB >::remove_cb().
Referenced by ED4_reference::clear().
int ED4_manager::refresh_flag_ok | ( | ) |
Definition at line 677 of file ED4_manager.cxx.
References fflush(), ED4_base::id, ED4_base::is_manager(), ED4_container::member(), ED4_container::members(), ED4_update_info::refresh, and ED4_base::update_info.
Referenced by refresh_requested_by_child(), and Show().
|
virtual |
Reimplemented from ED4_base.
Definition at line 34 of file ED4_base.cxx.
References request_refresh().
|
virtual |
Reimplemented from ED4_base.
Definition at line 126 of file ED4_base.cxx.
References e4_assert, ED4_ROOT, ED4_U_UP, ED4_root::get_gb_main(), ED4_base::is_species_manager(), NULp, ED4_base::parent, rebuild_consensi(), ED4_container::remove_member(), ED4_base::request_resize(), ta, and update_consensus().
|
virtual |
Implements ED4_base.
Reimplemented in FINAL_TYPE< SEQTYPE >, ED4_root_group_manager, and FINAL_TYPE< SEQTYPE >.
Definition at line 941 of file ED4_manager.cxx.
References ED4_base::adjust_clipping_rectangle(), AW_screen_area::b, ED4_base::calc_world_coords(), ED4_update_info::clear_at_refresh, ED4_base::clear_background(), current_device(), current_ed4w(), e4_assert, ED4_container::existing_index(), ED4_base::extension, ED4_base::flag, AW_clipable::get_cliprect(), HEIGHT, ED4_base::hidden, AW_screen_area::l, ED4_container::member(), ED4_container::members(), AW::nearlyEqual(), AW_device::pop_clip_scale(), PROP_HORIZONTAL, PROP_VERTICAL, AW_device::push_clip_scale(), AW_screen_area::r, ED4_update_info::refresh, refresh_flag_ok(), ED4_base::Show(), ED4_extension::size, ED4_base::spec, ED4_objspec::static_prop, AW_screen_area::t, ED4_base::update_info, WIDTH, ED4_foldable::win_to_world_coords(), and y.
Referenced by ED4_root_group_manager::Show().
|
virtual |
Implements ED4_base.
Definition at line 715 of file ED4_manager.cxx.
References ED4_container::existing_index(), ED4_base::extension, ED4_base::flag, HEIGHT, ED4_base::hidden, ED4_container::member(), ED4_extension::position, PROP_HORIZONTAL, PROP_VERTICAL, ED4_base::request_resize_of_linked(), ED4_extension::set_size_does_change(), ED4_extension::size, ED4_base::spec, ED4_objspec::static_prop, ED4_base::touch_world_cache(), WIDTH, X_POS, and Y_POS.
Referenced by resize_requested_children().
ED4_returncode ED4_manager::distribute_children | ( | ) |
Definition at line 760 of file ED4_manager.cxx.
References ED4_R_OK, ED4_container::existing_index(), ED4_base::extension, HEIGHT, max, ED4_container::member(), ED4_extension::position, PROP_HORIZONTAL, PROP_VERTICAL, refresh_requested_by_child(), ED4_extension::size, ED4_base::spec, ED4_objspec::static_prop, ED4_base::touch_world_cache(), WIDTH, X_POS, and Y_POS.
Referenced by resize_requested_children().
|
virtual |
Implements ED4_base.
Definition at line 644 of file ED4_manager.cxx.
References ED4_base::calc_rel_coords(), ED4_R_BREAK, ED4_R_IMPOSSIBLE, ED4_base::event_sent_by_parent(), ED4_container::existing_index(), ED4_container::member(), ED4_extension::position, ED4_container::search_member(), ED4_base::spec, ED4_objspec::static_prop, X_POS, and Y_POS.
|
virtual |
Implements ED4_base.
Definition at line 1187 of file ED4_manager.cxx.
References ED4_container::existing_index(), ED4_container::member(), ED4_base::parent, refresh_requested_by_child(), ED4_base::request_refresh(), ED4_update_info::set_clear_at_refresh(), ED4_update_info::set_refresh(), and ED4_base::update_info.
Referenced by changed_by_database().
ED4_returncode ED4_manager::clear_refresh | ( | ) |
Definition at line 1068 of file ED4_manager.cxx.
References e4_assert, ED4_R_OK, ED4_base::is_manager(), ED4_container::member(), ED4_container::members(), ED4_update_info::refresh, ED4_update_info::set_clear_at_refresh(), ED4_update_info::set_refresh(), and ED4_base::update_info.
|
virtual |
Implements ED4_base.
Reimplemented in ED4_root_group_manager, and FINAL_TYPE< SEQTYPE >.
Definition at line 808 of file ED4_manager.cxx.
References calc_bounding_box(), distribute_children(), ED4_container::existing_index(), ED4_container::member(), ED4_base::request_resize(), ED4_update_info::resize, ED4_base::resize_requested_children(), ED4_update_info::set_resize(), and ED4_base::update_info.
Referenced by ED4_root_group_manager::resize_requested_children().
|
virtual |
Implements ED4_base.
Reimplemented in ED4_multi_species_manager.
Definition at line 1113 of file ED4_manager.cxx.
References e4_assert, ED4_container::member(), ED4_container::members(), ED4_base::update_info, ED4_update_info::update_requested, and ED4_base::update_requested_children().
Referenced by ED4_multi_species_manager::update_requested_children().
|
virtual |
Implements ED4_base.
Reimplemented in ED4_multi_species_manager.
Definition at line 1144 of file ED4_manager.cxx.
References ED4_root::announce_deletion(), ED4_update_info::delete_requested, ED4_base::delete_requested_children(), e4_assert, ED4_ROOT, ED4_container::member(), ED4_container::members(), ED4_base::unlink_from_parent(), and ED4_base::update_info.
Referenced by ED4_multi_species_manager::delete_requested_children().
|
virtual |
Implements ED4_base.
Definition at line 1178 of file ED4_manager.cxx.
References ED4_cb_list< BASE, BASECB >::call(), ED4_cb_list< BASE, BASECB >::clear(), ED4_base::Delete(), ED4_container::member(), and ED4_container::members().
Referenced by ED4_text_terminal::deleted_from_database(), ED4_sequence_terminal::deleted_from_database(), ED4_terminal::kill_object(), and toggle_detailed_column_stat().
ED4_returncode ED4_manager::move_requested_by_parent | ( | ED4_move_info * | mi | ) |
Definition at line 587 of file ED4_manager.cxx.
References ED4_R_IMPOSSIBLE, ED4_move_info::end_x, ED4_move_info::end_y, handle_move(), ED4_base::in_border(), and ED4_move_info::mode.
Referenced by handle_move().
void ED4_manager::create_consensus | ( | ED4_abstract_group_manager * | upper_group_manager, |
arb_progress * | progress | ||
) |
Definition at line 569 of file ED4_base.cxx.
References create_consensus(), e4_assert, BaseFrequencies::empty(), ED4_base::get_consensus_relevant_terminal(), arb_progress::inc(), BaseFrequencies::init(), ED4_base::is_abstract_group_manager(), ED4_base::is_group_manager(), BaseFrequencies::is_ignored(), ED4_base::is_manager(), ED4_base::is_species_manager(), MAXSEQUENCECHARACTERLENGTH, ED4_container::member(), ED4_container::members(), ED4_terminal::resolve_pointer_to_string_copy(), and ED4_abstract_group_manager::table().
Referenced by create_consensus(), ED4_root::create_hierarchy(), and createGroupFromSelected().
|
virtual |
Reimplemented from ED4_base.
Definition at line 392 of file ED4_base.cxx.
References cb, error(), ED4_container::member(), ED4_container::members(), and ED4_base::route_down_hierarchy().
Referenced by create_list_of_loaded_species(), create_new_species(), dot_missing_bases(), ED4_consensus_display_changed(), ED4_with_all_loaded_species(), executeKeystroke(), and rebuild_consensi().
ED4_base * ED4_manager::find_first_that | ( | ED4_level | level, |
const ED4_basePredicate & | fulfills_predicate | ||
) |
Definition at line 402 of file ED4_base.cxx.
References ED4_base::is_manager(), ED4_objspec::level, ED4_container::member(), ED4_container::members(), NULp, and ED4_base::spec.
Referenced by ED4_find_MoreSequences_manager(), ED4_find_SAI_name_terminal(), ED4_find_species_name_terminal(), and ED4_find_species_or_SAI_name_terminal().
ED4_returncode ED4_manager::move_requested_by_child | ( | ED4_move_info * | moveinfo | ) |
Definition at line 596 of file ED4_manager.cxx.
References ED4_R_IMPOSSIBLE, ED4_R_WARNING, ED4_move_info::end_x, ED4_move_info::end_y, get_competent_clicked_child(), ED4_base::get_parent(), handle_move(), ED4_objspec::handled_level, ED4_base::has_property(), ED4_base::in_border(), ED4_base::is_area_manager(), ED4_base::is_group_manager(), ED4_base::is_multi_species_manager(), LEV_MULTI_SPECIES, ED4_objspec::level, ED4_move_info::mode, move_requested_by_child(), ED4_move_info::object, ED4_base::parent, PROP_IS_HANDLE, PROP_IS_MANAGER, PROP_MOVABLE, ED4_objspec::restriction_level, and ED4_base::spec.
Referenced by move_requested_by_child().
|
inline |
Definition at line 2192 of file ed4_class.hxx.
References ED4_base::request_resize(), ED4_update_info::resize, and ED4_base::update_info.
Referenced by createGroupFromSelected(), ED4_remap::mark_compile_needed_force(), ED4_base::request_resize(), and toggle_detailed_column_stat().
ED4_returncode ED4_manager::refresh_requested_by_child | ( | ) |
Definition at line 664 of file ED4_manager.cxx.
References e4_assert, ED4_R_OK, ED4_base::parent, ED4_update_info::refresh, refresh_flag_ok(), refresh_requested_by_child(), ED4_update_info::set_refresh(), and ED4_base::update_info.
Referenced by distribute_children(), refresh_requested_by_child(), request_refresh(), and ED4_terminal::request_refresh().
void ED4_manager::delete_requested_by_child | ( | ) |
Definition at line 1097 of file ED4_manager.cxx.
References ED4_update_info::delete_requested, delete_requested_by_child(), ED4_base::parent, and ED4_base::update_info.
Referenced by ED4_terminal::Delete(), and delete_requested_by_child().
void ED4_manager::update_requested_by_child | ( | ) |
Definition at line 1091 of file ED4_manager.cxx.
References ED4_base::parent, ED4_base::update_info, ED4_update_info::update_requested, and update_requested_by_child().
Referenced by createGroupFromSelected(), ED4_multi_species_manager::invalidate_species_counters(), ED4_base::set_update(), and update_requested_by_child().
Definition at line 696 of file ED4_base.cxx.
References e4_assert, ED4_base::is_group_manager(), ED4_base::is_manager(), ED4_base::is_multi_species_manager(), ED4_objspec::level, ED4_container::member(), ED4_container::members(), NULp, and ED4_base::spec.
Referenced by ED4_group_manager::fold(), ED4_area_manager::get_multi_species_manager(), ED4_abstract_group_manager::get_multi_species_manager(), ED4_base::set_width(), and toggle_consensus_display().
void ED4_manager::update_consensus | ( | ED4_manager * | old_parent, |
ED4_manager * | new_parent, | ||
ED4_base * | sequence | ||
) |
Definition at line 395 of file ED4_manager.cxx.
References check_in_bases(), and check_out_bases().
Referenced by deleted_from_database(), handle_move(), and remove_from_consensus().
ED4_returncode ED4_manager::rebuild_consensi | ( | ED4_base * | start_species, |
ED4_update_flag | update_flag | ||
) |
Definition at line 117 of file ED4_manager.cxx.
References ED4_R_OK, ED4_U_UP, ED4_U_UP_DOWN, ARB_ERROR::expect_no_error(), ED4_base::is_consensus_manager(), ED4_base::is_group_manager(), ED4_container::member(), ED4_container::members(), NULp, ED4_base::parent, rebuild_consensus(), and route_down_hierarchy().
Referenced by deleted_from_database(), ED4_sequence_terminal::deleted_from_database(), executeKeystroke(), handle_move(), and update_bases_and_rebuild_consensi().
ED4_returncode ED4_manager::check_in_bases | ( | ED4_base * | added_base | ) |
Definition at line 153 of file ED4_manager.cxx.
References e4_assert, ED4_R_OK, ED4_base::get_consensus_relevant_terminal(), ED4_base::is_group_manager(), ED4_base::is_root_group_manager(), ED4_base::is_species_manager(), NULp, ED4_terminal::resolve_pointer_to_string_copy(), seq, and update_bases().
Referenced by update_consensus().
ED4_returncode ED4_manager::check_out_bases | ( | ED4_base * | subbed_base | ) |
Definition at line 177 of file ED4_manager.cxx.
References e4_assert, ED4_R_OK, ED4_base::get_consensus_relevant_terminal(), ED4_base::is_group_manager(), ED4_base::is_root_group_manager(), ED4_base::is_species_manager(), NULp, ED4_terminal::resolve_pointer_to_string_copy(), seq, and update_bases().
Referenced by update_consensus().
ED4_returncode ED4_manager::update_bases | ( | const ED4_base * | old_base, |
const ED4_base * | new_base, | ||
PosRange | range = PosRange::whole() |
||
) |
Definition at line 267 of file ED4_manager.cxx.
References e4_assert, ED4_R_OK, ED4_base::get_consensus_relevant_terminal(), ED4_base::is_group_manager(), ED4_base::is_root_group_manager(), ED4_base::is_species_manager(), and ED4_terminal::resolve_pointer_to_string_copy().
Referenced by check_in_bases(), check_out_bases(), ED4_sequence_terminal::deleted_from_database(), insert_new_species_terminal(), update_bases(), and update_bases_and_rebuild_consensi().
ED4_returncode ED4_manager::update_bases | ( | const char * | old_seq, |
int | old_len, | ||
const char * | new_seq, | ||
int | new_len, | ||
PosRange | range = PosRange::whole() |
||
) |
Definition at line 317 of file ED4_manager.cxx.
References add(), BaseFrequencies::changed_range(), e4_assert, ED4_R_OK, ED4_ROOT, PosRange::is_whole(), ED4_remap::mark_compile_needed(), min, ED4_root_group_manager::remap(), ED4_root::root_group_man, and WITH_ALL_ABOVE_GROUP_MANAGER_TABLES.
ED4_returncode ED4_manager::update_bases | ( | const char * | old_seq, |
int | old_len, | ||
const ED4_base * | new_base, | ||
PosRange | range = PosRange::whole() |
||
) |
Definition at line 200 of file ED4_manager.cxx.
References BaseFrequencies::changed_range(), e4_assert, ED4_base::get_consensus_relevant_terminal(), ED4_base::is_species_manager(), PosRange::is_whole(), min, NULp, ED4_terminal::resolve_pointer_to_string_copy(), and update_bases().
ED4_returncode ED4_manager::update_bases | ( | const BaseFrequencies * | old_table, |
const BaseFrequencies * | new_table, | ||
PosRange | range = PosRange::whole() |
||
) |
Definition at line 354 of file ED4_manager.cxx.
References add(), BaseFrequencies::changed_range(), e4_assert, ED4_R_OK, ED4_ROOT, PosRange::is_whole(), ED4_remap::mark_compile_needed(), ED4_root_group_manager::remap(), ED4_root::root_group_man, and WITH_ALL_ABOVE_GROUP_MANAGER_TABLES.
ED4_returncode ED4_manager::update_bases_and_rebuild_consensi | ( | const char * | old_seq, |
int | old_len, | ||
ED4_base * | species, | ||
ED4_update_flag | update_flag, | ||
PosRange | range = PosRange::whole() |
||
) |
Definition at line 225 of file ED4_manager.cxx.
References ED4_root::alignment_type, aw_message(), BaseFrequencies::changed_range(), e4_assert, ED4_pfold_set_SAI(), ED4_R_OK, ED4_R_WARNING, ED4_ROOT, GB_AT_AA, GB_AT_DNA, GB_CB_CHANGED, ED4_root::get_alignment_name(), ED4_base::get_consensus_relevant_terminal(), ED4_root::get_gb_main(), ED4_base::is_species_manager(), PosRange::is_whole(), min, NULp, ED4_root::protstruct, ED4_root::protstruct_len, PV_SequenceUpdate_CB(), rebuild_consensi(), ED4_terminal::resolve_pointer_to_char_pntr(), result, and update_bases().
Referenced by ED4_terminal::changed_by_database(), and ED4_terminal::write_sequence().
ED4_returncode ED4_manager::handle_move | ( | ED4_move_info * | moveinfo | ) |
Definition at line 477 of file ED4_manager.cxx.
References ED4_objspec::allowed_children, ED4_base::calc_rel_coords(), e4_assert, ED4_R_BREAK, ED4_R_IMPOSSIBLE, ED4_R_OK, ED4_request_relayout(), ED4_ROOT, ED4_U_UP, ED4_move_info::end_x, ED4_move_info::end_y, ED4_base::extension, get_competent_child(), ED4_root::get_gb_main(), ED4_base::get_parent(), ED4_objspec::handled_level, ED4_base::has_property(), HEIGHT, if, ED4_container::insert_member(), ED4_base::is_child_of(), ED4_base::is_consensus_manager(), ED4_base::is_group_manager(), ED4_base::is_multi_species_manager(), LEV_DEVICE, LEV_MULTI_SPECIES, LEV_NONE, ED4_objspec::level, ED4_root::main_manager, ED4_container::member(), move_requested_by_parent(), NULp, ED4_move_info::object, ED4_base::parent, ED4_extension::position, ED4_move_info::preferred_parent, PROP_HORIZONTAL, PROP_IS_FOLDED, PROP_IS_HANDLE, PROP_IS_MANAGER, rebuild_consensi(), ED4_container::remove_member(), ED4_container::search_target_species(), ED4_extension::size, ED4_base::spec, ta, ED4_base::touch_world_cache(), update_consensus(), X_POS, and Y_POS.
Referenced by move_requested_by_child(), and move_requested_by_parent().
ED4_base * ED4_manager::get_competent_child | ( | AW_pos | x, |
AW_pos | y, | ||
ED4_properties | relevant_prop | ||
) |
Definition at line 433 of file ED4_manager.cxx.
References ED4_container::member(), ED4_container::members(), NULp, ED4_extension::position, ED4_container::search_member(), ED4_base::spec, ED4_objspec::static_prop, ED4_base::touch_world_cache(), X_POS, y, and Y_POS.
Referenced by handle_move().
ED4_base * ED4_manager::get_competent_clicked_child | ( | AW_pos | x, |
AW_pos | y, | ||
ED4_properties | relevant_prop | ||
) |
Definition at line 453 of file ED4_manager.cxx.
References LEV_MULTI_SPECIES, NULp, ED4_extension::position, ED4_container::search_target_species(), ED4_base::spec, ED4_objspec::static_prop, ED4_base::touch_world_cache(), X_POS, y, and Y_POS.
Referenced by move_requested_by_child().
Definition at line 434 of file ED4_base.cxx.
References e4_assert, ED4_base::is_manager(), ED4_objspec::level, ED4_container::member(), ED4_container::members(), NULp, result, and ED4_base::spec.
Referenced by add_area_for_gde(), ED4_sequence_terminal::corresponding_columnStat_terminal(), FINAL_TYPE< SEQTYPE >::corresponding_sequence_terminal(), ED4_abstract_sequence_terminal::corresponding_species_name_terminal(), FINAL_TYPE< SEQTYPE >::corresponding_species_name_terminal(), ED4_set_protection(), ED4_root::get_device_manager(), ED4_base::get_name_of_species(), multi_species_man_consensus_id_starts_with(), PV_AddNewAAseqTerminals(), select_named_sequence_terminal(), toggle_detailed_column_stat(), and toggle_helix_for_SAI().
Implements ED4_base.
Definition at line 1200 of file ED4_manager.cxx.
References ED4_container::existing_index(), ED4_container::member(), NULp, and ED4_base::search_ID().
Referenced by add_area_for_gde().
|
virtual |
Implements ED4_base.
Definition at line 388 of file ED4_manager.cxx.
References ED4_container::member(), ED4_container::members(), and ED4_base::remove_callbacks().
ED4_terminal * ED4_manager::get_first_terminal | ( | int | start_index = 0 | ) | const |
Definition at line 400 of file ED4_manager.cxx.
References ED4_base::is_terminal(), ED4_container::member(), ED4_container::members(), and NULp.
Referenced by add_area_for_gde(), ED4_mark_matching_species(), ED4_search_cb(), ED4_base::get_next_terminal(), PV_CreateAllTerminals(), PV_DisplayAminoAcidNames(), PV_HideAllTerminals(), PV_ManageTerminals(), and PV_SaveData().
ED4_terminal * ED4_manager::get_last_terminal | ( | int | start_index = -1 | ) | const |
Definition at line 416 of file ED4_manager.cxx.
References ED4_base::is_terminal(), ED4_container::member(), ED4_container::members(), and NULp.
Referenced by add_area_for_gde(), ED4_search_cb(), and ED4_base::get_prev_terminal().
void ED4_manager::hide_children | ( | ) |
Definition at line 819 of file ED4_base.cxx.
References ED4_base::flag, ED4_base::hidden, ED4_base::is_consensus_manager(), ED4_base::is_spacer_terminal(), ED4_container::member(), ED4_container::members(), and ED4_base::request_resize().
Referenced by ED4_group_manager::fold(), PV_HideTerminal(), EDB_root_bact::scan_string(), and toggle_consensus_display().
void ED4_manager::unhide_children | ( | ) |
Definition at line 830 of file ED4_base.cxx.
References ED4_base::flag, ED4_base::hidden, ED4_container::member(), ED4_container::members(), and ED4_base::request_resize().
Referenced by PV_UnHideTerminal(), toggle_consensus_display(), and ED4_group_manager::unfold().
|
inlinevirtual |
Implements ED4_base.
Definition at line 1273 of file ed4_class.hxx.
References is_hidden(), and ED4_base::parent.
Referenced by is_hidden(), and ED4_terminal::is_hidden().