ARB
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ED4_base Class Referenceabstract

#include <ed4_class.hxx>

Inheritance diagram for ED4_base:
Inheritance graph
[legend]
Collaboration diagram for ED4_base:
Collaboration graph
[legend]

Public Member Functions

void draw_bb (int color)
 
 DECLARE_DUMP_FOR_ROOTCLASS (ED4_base)
 
GBDATAget_species_pointer () const
 
void set_species_pointer (GBDATA *gbd)
 
bool has_callback () const
 
virtual void changed_by_database ()
 
virtual void deleted_from_database ()
 
int adjust_clipping_rectangle ()
 
virtual void Show (bool refresh_all, bool is_cleared)=0
 
virtual bool calc_bounding_box ()=0
 
void resize_dynamic ()
 
ED4_returncode clear_background (int color=0)
 
void set_links (ED4_base *width_ref, ED4_base *height_ref)
 
void set_both_links (ED4_base *ref)
 
void set_property (ED4_properties prop)
 
void clr_property (ED4_properties prop)
 
bool has_property (ED4_properties prop) const
 
void calc_rel_coords (AW_pos *x, AW_pos *y)
 
void calc_world_coords (AW_pos *x, AW_pos *y) const
 
const AW::Positioncalc_world_coords () const
 
void update_world_coords_cache () const
 
AW::Rectangle get_win_area (ED4_window *ed4w) const
 
virtual void request_refresh (int clear=1)=0
 
void request_resize ()
 
void request_resize_of_linked ()
 
void resize_requested_by_link (ED4_base *link)
 
virtual void resize_requested_children ()=0
 
virtual void delete_requested_children ()=0
 
virtual void Delete ()=0
 
void set_update ()
 
virtual void update_requested_children ()=0
 
virtual ED4_returncode event_sent_by_parent (AW_event *event, AW_window *aww)=0
 
virtual ARB_ERROR route_down_hierarchy (const ED4_route_cb &cb)
 
int calc_group_depth ()
 
virtual ED4_basesearch_ID (const char *id)=0
 
void check_all ()
 
short in_border (AW_pos abs_x, AW_pos abs_y, ED4_movemode mode)
 
ED4_returncode set_width ()
 
ED4_AREA_LEVEL get_area_level (ED4_multi_species_manager **multi_species_manager=NULp) const
 
ED4_managerget_parent (ED4_level lev) const
 
void unlink_from_parent ()
 
bool has_parent (ED4_manager *Parent)
 
bool is_child_of (ED4_manager *Parent)
 
virtual charresolve_pointer_to_string_copy (int *str_len=NULp) const
 
virtual const charresolve_pointer_to_char_pntr (int *str_len=NULp) const
 
ED4_group_manageris_in_folded_group () const
 
virtual bool is_hidden () const =0
 
charget_name_of_species ()
 
ED4_terminalget_next_terminal ()
 
ED4_terminalget_prev_terminal ()
 
void generate_configuration_string (GBS_strstruct &buffer)
 
virtual void remove_callbacks ()=0
 
const ED4_terminalget_consensus_relevant_terminal () const
 
 ED4_base (const ED4_objspec &spec_, GB_CSTR id, AW_pos width, AW_pos height, ED4_manager *parent)
 
virtual ~ED4_base ()
 
int is_terminal () const
 
int is_text_terminal () const
 
int is_species_name_terminal () const
 
int is_sequence_info_terminal () const
 
int is_sequence_terminal () const
 
int is_orf_terminal () const
 
int is_pure_text_terminal () const
 
int is_columnStat_terminal () const
 
int is_bracket_terminal () const
 
int is_spacer_terminal () const
 
int is_line_terminal () const
 
int is_flag_header_terminal () const
 
int is_flag_terminal () const
 
int is_manager () const
 
int is_sequence_manager () const
 
int is_multi_name_manager () const
 
int is_name_manager () const
 
int is_multi_species_manager () const
 
int is_multi_sequence_manager () const
 
int is_device_manager () const
 
int is_group_manager () const
 
int is_root_group_manager () const
 
int is_abstract_group_manager () const
 
int is_species_manager () const
 
int is_area_manager () const
 
 E4B_DECL_CASTOP (area_manager)
 
 E4B_DECL_CASTOP (abstract_group_manager)
 
 E4B_DECL_CASTOP (bracket_terminal)
 
 E4B_DECL_CASTOP (columnStat_terminal)
 
 E4B_DECL_CASTOP (consensus_sequence_terminal)
 
 E4B_DECL_CASTOP (device_manager)
 
 E4B_DECL_CASTOP (group_manager)
 
 E4B_DECL_CASTOP (line_terminal)
 
 E4B_DECL_CASTOP (manager)
 
 E4B_DECL_CASTOP (multi_name_manager)
 
 E4B_DECL_CASTOP (multi_sequence_manager)
 
 E4B_DECL_CASTOP (multi_species_manager)
 
 E4B_DECL_CASTOP (name_manager)
 
 E4B_DECL_CASTOP (orf_terminal)
 
 E4B_DECL_CASTOP (pure_text_terminal)
 
 E4B_DECL_CASTOP (root_group_manager)
 
 E4B_DECL_CASTOP (sequence_info_terminal)
 
 E4B_DECL_CASTOP (sequence_manager)
 
 E4B_DECL_CASTOP (sequence_terminal)
 
 E4B_DECL_CASTOP (spacer_terminal)
 
 E4B_DECL_CASTOP (species_manager)
 
 E4B_DECL_CASTOP (species_name_terminal)
 
 E4B_DECL_CASTOP (terminal)
 
 E4B_DECL_CASTOP (text_terminal)
 
 E4B_DECL_CASTOP (flag_header_terminal)
 
 E4B_DECL_CASTOP (flag_terminal)
 
ED4_species_manager * containing_species_manager () const
 
bool is_consensus_manager () const
 
bool is_SAI_manager () const
 
bool is_species_seq_manager () const
 
ED4_species_type get_species_type () const
 
bool inside_consensus_manager () const
 
bool inside_SAI_manager () const
 
bool inside_species_seq_manager () const
 
bool is_consensus_terminal () const
 
bool is_SAI_terminal () const
 
bool is_species_seq_terminal () const
 
bool is_consensus_sequence_terminal () const
 

Static Public Member Functions

static void touch_world_cache ()
 

Public Attributes

const ED4_objspecspec
 
ED4_managerparent
 
ED4_properties dynamic_prop
 
charid
 
ED4_index index
 
ED4_basewidth_link
 
ED4_baseheight_link
 
ED4_extension extension
 
ED4_update_info update_info
 
struct {
   unsigned int   hidden: 1
 
flag
 

Detailed Description

Definition at line 892 of file ed4_class.hxx.

Constructor & Destructor Documentation

ED4_base::ED4_base ( const ED4_objspec spec_,
GB_CSTR  id,
AW_pos  width,
AW_pos  height,
ED4_manager parent 
)
ED4_base::~ED4_base ( )
virtual

Member Function Documentation

void ED4_base::draw_bb ( int  color)
ED4_base::DECLARE_DUMP_FOR_ROOTCLASS ( ED4_base  )
GBDATA* ED4_base::get_species_pointer ( ) const
inline
void ED4_base::set_species_pointer ( GBDATA gbd)
inline
bool ED4_base::has_callback ( ) const
inline

Definition at line 949 of file ed4_class.hxx.

References get_species_pointer().

void ED4_base::changed_by_database ( )
virtual

Reimplemented in ED4_terminal, and ED4_manager.

Definition at line 28 of file ED4_base.cxx.

References e4_assert.

Referenced by sequence_changed_cb().

void ED4_base::deleted_from_database ( )
virtual
int ED4_base::adjust_clipping_rectangle ( )
virtual void ED4_base::Show ( bool  refresh_all,
bool  is_cleared 
)
pure virtual
virtual bool ED4_base::calc_bounding_box ( )
pure virtual

Implemented in ED4_terminal, and ED4_manager.

Referenced by resize_requested_by_link().

void ED4_base::resize_dynamic ( )
inline

Definition at line 961 of file ed4_class.hxx.

References e4_assert, has_property(), PROP_DYNA_RESIZE, and request_resize().

Referenced by update_extension_size().

ED4_returncode ED4_base::clear_background ( int  color = 0)
void ED4_base::set_links ( ED4_base width_ref,
ED4_base height_ref 
)
void ED4_base::set_both_links ( ED4_base ref)
inline
void ED4_base::set_property ( ED4_properties  prop)
inline
void ED4_base::clr_property ( ED4_properties  prop)
inline
bool ED4_base::has_property ( ED4_properties  prop) const
inline
void ED4_base::calc_rel_coords ( AW_pos x,
AW_pos y 
)

Definition at line 810 of file ED4_base.cxx.

References calc_world_coords().

Referenced by ED4_manager::event_sent_by_parent(), and ED4_manager::handle_move().

void ED4_base::calc_world_coords ( AW_pos x,
AW_pos y 
) const
inline
const AW::Position& ED4_base::calc_world_coords ( ) const
inline
void ED4_base::update_world_coords_cache ( ) const
inline
static void ED4_base::touch_world_cache ( )
inlinestatic
AW::Rectangle ED4_base::get_win_area ( ED4_window ed4w) const
inline
virtual void ED4_base::request_refresh ( int  clear = 1)
pure virtual
void ED4_base::request_resize ( )
inline
void ED4_base::request_resize_of_linked ( )
void ED4_base::resize_requested_by_link ( ED4_base link)
inline

Definition at line 716 of file ED4_manager.cxx.

References calc_bounding_box(), e4_assert, height_link, link, request_resize(), and width_link.

virtual void ED4_base::resize_requested_children ( )
pure virtual
virtual void ED4_base::delete_requested_children ( )
pure virtual
virtual void ED4_base::Delete ( )
pure virtual

Implemented in ED4_terminal, and ED4_manager.

Referenced by ED4_manager::Delete().

void ED4_base::set_update ( )
inline
virtual void ED4_base::update_requested_children ( )
pure virtual
virtual ED4_returncode ED4_base::event_sent_by_parent ( AW_event event,
AW_window aww 
)
pure virtual

Implemented in ED4_terminal, and ED4_manager.

Referenced by ED4_manager::event_sent_by_parent().

ARB_ERROR ED4_base::route_down_hierarchy ( const ED4_route_cb &  cb)
virtual

Reimplemented in ED4_manager.

Definition at line 387 of file ED4_base.cxx.

References cb.

Referenced by request_sequence_refresh(), and ED4_manager::route_down_hierarchy().

int ED4_base::calc_group_depth ( )
virtual ED4_base* ED4_base::search_ID ( const char id)
pure virtual

Implemented in ED4_terminal, and ED4_manager.

Referenced by ED4_manager::search_ID().

void ED4_base::check_all ( )
short ED4_base::in_border ( AW_pos  abs_x,
AW_pos  abs_y,
ED4_movemode  mode 
)
ED4_returncode ED4_base::set_width ( )
ED4_AREA_LEVEL ED4_base::get_area_level ( ED4_multi_species_manager **  multi_species_manager = NULp) const
ED4_manager * ED4_base::get_parent ( ED4_level  lev) const
inline

Definition at line 1820 of file ed4_class.hxx.

References ED4_objspec::level, parent, and spec.

Referenced by add_area_for_gde(), ED4_root::add_to_selected(), ED4_terminal::changed_by_database(), ED4_reference::clear(), containing_species_manager(), 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(), create_new_species(), createGroupFromSelected(), ED4_reference::data_changed_cb(), ED4_reference::define(), ED4_sequence_terminal::deleted_from_database(), dot_missing_bases(), ED4_bracket_terminal::draw(), ED4_text_terminal::draw(), ED4_get_marked_from_menu(), ED4_mark_matching_species(), ED4_menu_highlight(), ED4_terminal::event_sent_by_parent(), executeKeystroke(), EDB_root_bact::fill_data(), get_area_level(), get_group_consensus(), get_name_of_species(), FINAL_TYPE< SEQTYPE >::get_species(), ED4_manager::handle_move(), insert_new_species_terminal(), ED4_multi_species_manager::invalidate_species_counters(), ED4_cursor::is_hidden_inside_group(), is_in_folded_group(), ED4_terminal::kill_object(), ED4_manager::move_requested_by_child(), multi_species_man_consensus_id_starts_with(), PV_AddCorrespondingOrfTerminals(), PV_AddOrfTerminalsToLoadedSpecies(), PV_CreateAllTerminals(), PV_HideTerminal(), PV_UnHideTerminal(), ED4_root::remove_from_selected(), ED4_container::search_target_species(), select_named_sequence_terminal(), ED4_terminal::setCursorTo(), toggle_cursor_group_folding(), toggle_detailed_column_stat(), ED4_multi_species_manager::update_requested_children(), and ED4_terminal::write_sequence().

void ED4_base::unlink_from_parent ( )
bool ED4_base::has_parent ( ED4_manager Parent)

Definition at line 483 of file ED4_base.cxx.

References has_parent(), is_manager(), and parent.

Referenced by has_parent(), and is_child_of().

bool ED4_base::is_child_of ( ED4_manager Parent)
inline

Definition at line 1049 of file ed4_class.hxx.

References has_parent().

Referenced by ED4_manager::handle_move().

char * ED4_base::resolve_pointer_to_string_copy ( int str_len = NULp) const
virtual

Reimplemented in ED4_terminal.

Definition at line 230 of file ED4_base.cxx.

References NULp.

Referenced by add_area_for_gde(), add_species_to_merge_list(), and ED4_sequence_terminal::get_sequence_copy().

const char * ED4_base::resolve_pointer_to_char_pntr ( int str_len = NULp) const
virtual
ED4_group_manager * ED4_base::is_in_folded_group ( ) const
virtual bool ED4_base::is_hidden ( ) const
pure virtual
char * ED4_base::get_name_of_species ( )
ED4_terminal * ED4_base::get_next_terminal ( )
ED4_terminal * ED4_base::get_prev_terminal ( )

Definition at line 467 of file ED4_base.cxx.

References ED4_manager::get_last_terminal(), get_prev_terminal(), index, NULp, and parent.

Referenced by ED4_search_cb(), and get_prev_terminal().

void ED4_base::generate_configuration_string ( GBS_strstruct buffer)
virtual void ED4_base::remove_callbacks ( )
pure virtual

Implemented in ED4_terminal, and ED4_manager.

Referenced by ED4_manager::remove_callbacks().

const ED4_terminal * ED4_base::get_consensus_relevant_terminal ( ) const
int ED4_base::is_terminal ( ) const
inline
int ED4_base::is_text_terminal ( ) const
inline
int ED4_base::is_species_name_terminal ( ) const
inline
int ED4_base::is_sequence_info_terminal ( ) const
inline

Definition at line 1081 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_SEQUENCE_INFO, and ED4_objspec::level.

Referenced by dot_sequence_by_consensus().

int ED4_base::is_sequence_terminal ( ) const
inline
int ED4_base::is_orf_terminal ( ) const
inline
int ED4_base::is_pure_text_terminal ( ) const
inline

Definition at line 1085 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_PURE_TEXT, and ED4_objspec::level.

Referenced by ED4_text_terminal::draw(), and executeKeystroke().

int ED4_base::is_columnStat_terminal ( ) const
inline

Definition at line 1086 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_COL_STAT, and ED4_objspec::level.

Referenced by executeKeystroke().

int ED4_base::is_bracket_terminal ( ) const
inline

Definition at line 1088 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_BRACKET, and ED4_objspec::level.

Referenced by ED4_terminal::event_sent_by_parent().

int ED4_base::is_spacer_terminal ( ) const
inline
int ED4_base::is_line_terminal ( ) const
inline

Definition at line 1090 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_LINE, and ED4_objspec::level.

int ED4_base::is_flag_header_terminal ( ) const
inline

Definition at line 1092 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_FLAG_HEADER, and ED4_objspec::level.

Referenced by ED4_text_terminal::draw().

int ED4_base::is_flag_terminal ( ) const
inline

Definition at line 1093 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_FLAG, and ED4_objspec::level.

Referenced by ED4_terminal::event_sent_by_parent().

int ED4_base::is_manager ( ) const
inline
int ED4_base::is_sequence_manager ( ) const
inline

Definition at line 1097 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_SEQUENCE, and ED4_objspec::level.

int ED4_base::is_multi_name_manager ( ) const
inline

Definition at line 1098 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_MULTI_NAME, and ED4_objspec::level.

int ED4_base::is_name_manager ( ) const
inline

Definition at line 1099 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_NAME_MANAGER, and ED4_objspec::level.

int ED4_base::is_multi_species_manager ( ) const
inline
int ED4_base::is_multi_sequence_manager ( ) const
inline

Definition at line 1101 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_MULTI_SEQUENCE, and ED4_objspec::level.

int ED4_base::is_device_manager ( ) const
inline

Definition at line 1102 of file ed4_class.hxx.

References e4_assert, knownNonNull(), LEV_DEVICE, and ED4_objspec::level.

int ED4_base::is_group_manager ( ) const
inline
int ED4_base::is_root_group_manager ( ) const
inline
int ED4_base::is_abstract_group_manager ( ) const
inline
int ED4_base::is_species_manager ( ) const
inline
int ED4_base::is_area_manager ( ) const
inline
ED4_base::E4B_DECL_CASTOP ( area_manager  )
ED4_base::E4B_DECL_CASTOP ( abstract_group_manager  )
ED4_base::E4B_DECL_CASTOP ( bracket_terminal  )
ED4_base::E4B_DECL_CASTOP ( columnStat_terminal  )
ED4_base::E4B_DECL_CASTOP ( consensus_sequence_terminal  )
ED4_base::E4B_DECL_CASTOP ( device_manager  )
ED4_base::E4B_DECL_CASTOP ( group_manager  )
ED4_base::E4B_DECL_CASTOP ( line_terminal  )
ED4_base::E4B_DECL_CASTOP ( manager  )
ED4_base::E4B_DECL_CASTOP ( multi_name_manager  )
ED4_base::E4B_DECL_CASTOP ( multi_sequence_manager  )
ED4_base::E4B_DECL_CASTOP ( multi_species_manager  )
ED4_base::E4B_DECL_CASTOP ( name_manager  )
ED4_base::E4B_DECL_CASTOP ( orf_terminal  )
ED4_base::E4B_DECL_CASTOP ( pure_text_terminal  )
ED4_base::E4B_DECL_CASTOP ( root_group_manager  )
ED4_base::E4B_DECL_CASTOP ( sequence_info_terminal  )
ED4_base::E4B_DECL_CASTOP ( sequence_manager  )
ED4_base::E4B_DECL_CASTOP ( sequence_terminal  )
ED4_base::E4B_DECL_CASTOP ( spacer_terminal  )
ED4_base::E4B_DECL_CASTOP ( species_manager  )
ED4_base::E4B_DECL_CASTOP ( species_name_terminal  )
ED4_base::E4B_DECL_CASTOP ( terminal  )
ED4_base::E4B_DECL_CASTOP ( text_terminal  )
ED4_base::E4B_DECL_CASTOP ( flag_header_terminal  )
ED4_base::E4B_DECL_CASTOP ( flag_terminal  )
ED4_species_manager * ED4_base::containing_species_manager ( ) const
inline
bool ED4_base::is_consensus_manager ( ) const
inline
bool ED4_base::is_SAI_manager ( ) const
inline

Definition at line 1835 of file ed4_class.hxx.

References ED4_SP_SAI, and is_species_manager().

bool ED4_base::is_species_seq_manager ( ) const
inline

Definition at line 1836 of file ed4_class.hxx.

References ED4_SP_SPECIES, and is_species_manager().

ED4_species_type ED4_base::get_species_type ( ) const
inline
bool ED4_base::inside_consensus_manager ( ) const
inline

Definition at line 1843 of file ed4_class.hxx.

References ED4_SP_CONSENSUS, and get_species_type().

Referenced by is_consensus_terminal().

bool ED4_base::inside_SAI_manager ( ) const
inline

Definition at line 1844 of file ed4_class.hxx.

References ED4_SP_SAI, and get_species_type().

Referenced by is_SAI_named(), and is_SAI_terminal().

bool ED4_base::inside_species_seq_manager ( ) const
inline
bool ED4_base::is_consensus_terminal ( ) const
inline
bool ED4_base::is_SAI_terminal ( ) const
inline
bool ED4_base::is_species_seq_terminal ( ) const
inline
bool ED4_base::is_consensus_sequence_terminal ( ) const
inline

Definition at line 1181 of file ed4_class.hxx.

References is_consensus_terminal().

Referenced by ED4_reference::reference_is_a_consensus().

Member Data Documentation

const ED4_objspec& ED4_base::spec
ED4_manager* ED4_base::parent
ED4_properties ED4_base::dynamic_prop

Definition at line 918 of file ed4_class.hxx.

Referenced by call_edit(), and ED4_base().

char* ED4_base::id
ED4_index ED4_base::index
ED4_base* ED4_base::width_link
ED4_base* ED4_base::height_link
ED4_extension ED4_base::extension
ED4_update_info ED4_base::update_info
unsigned int ED4_base::hidden
struct { ... } ED4_base::flag

The documentation for this class was generated from the following files: