ARB
Classes | Macros | Typedefs | Enumerations | Variables
ed4_defs.hxx File Reference
#include <aw_color_groups.hxx>
#include <aw_window.hxx>
#include <aw_position.hxx>
#include <arbdb_base.h>
Include dependency graph for ed4_defs.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ED4_move_info
 
struct  ED4_highlighted_entry
 
struct  ED4_extension
 
struct  ED4_scroll_picture
 
struct  ED4_update_info
 
struct  ED4_coords
 

Macros

#define e4_assert(bed)   arb_assert(bed)
 
#define MAX_SHOWN_MISSING_SPECIES   200U
 
#define INFINITE   -1
 
#define SLIDER_OFFSET   5
 
#define X_POS   0
 
#define Y_POS   1
 
#define WIDTH   0
 
#define HEIGHT   1
 
#define BRACKET_WIDTH   11
 
#define SPACER_HEIGHT   5
 
#define SPACER_NOCONS_HEIGHT   15
 
#define SEQUENCE_INFO_WIDTH   50
 
#define TREE_TERMINAL_WIDTH   100
 
#define COLUMN_STAT_ROW_HEIGHT(font_height)   (2.2*(font_height))
 
#define COLUMN_STAT_ROWS   4
 
#define MAX_POSSIBLE_SEQ_LENGTH   100000000
 
#define MAXWINDOWS   5
 
#define AWAR_EDIT_MODE   "tmp/edit4/edit_mode"
 
#define AWAR_INSERT_MODE   "tmp/edit4/insert_mode"
 
#define AWAR_EDIT_SECURITY_LEVEL   "tmp/edit4/security_level"
 
#define AWAR_EDIT_SECURITY_LEVEL_ALIGN   "tmp/edit4/security_level_align"
 
#define AWAR_EDIT_SECURITY_LEVEL_CHANGE   "tmp/edit4/security_level_change"
 
#define AWAR_EDIT_CONFIGURATION   "tmp/edit4/configuration"
 
#define AWAR_EDIT_SEQ_POSITION   "tmp/edit4/jump_to_position%d"
 
#define AWAR_EDIT_ECOLI_POSITION   "tmp/edit4/cursor_ref_ecoli%d"
 
#define AWAR_EDIT_BASE_POSITION   "tmp/edit4/cursor_to_basepos%d"
 
#define AWAR_EDIT_IUPAC   "tmp/edit4/iupac%d"
 
#define AWAR_EDIT_HELIXNR   "tmp/edit4/helixnr%d"
 
#define AWAR_FIELD_CHOSEN   "tmp/edit4/field_chosen"
 
#define AWAR_EDIT_TITLE_MODE   "edit4/title_mode"
 
#define AWAR_EDIT_HELIX_SPACING   "edit4/helix_add_spacing"
 
#define AWAR_EDIT_TERMINAL_SPACING   "edit4/terminal_add_spacing"
 
#define CHARACTEROFFSET   5
 
#define NAME_BUFFERSIZE   100
 
#define ED4_SCROLL_OVERLAP   20
 

Typedefs

typedef int ED4_COORDINATE
 
typedef long ED4_index
 

Enumerations

enum  ED4_EDITMODE {
  AD_ALIGN, AD_NOWRITE, AD_NOWRITE_IF_COMPRESSED, AD_REPLACE,
  AD_INSERT
}
 
enum  ED4_level {
  LEV_INVALID = -1U, LEV_NONE = 0, LEV_ROOT = 0x1, LEV_DEVICE = 0x2,
  LEV_AREA = 0x4, LEV_MULTI_SPECIES = 0x8, LEV_SPECIES = 0x10, LEV_MULTI_SEQUENCE = 0x20,
  LEV_SEQUENCE = 0x40, LEV_TREE = 0x80, LEV_SPECIES_NAME = 0x100, LEV_SEQUENCE_INFO = 0x200,
  LEV_SEQUENCE_STRING = 0x400, LEV_ORF = 0x800, LEV_SPACER = 0x1000, LEV_LINE = 0x2000,
  LEV_MULTI_NAME = 0x4000, LEV_NAME_MANAGER = 0x8000, LEV_GROUP = 0x10000, LEV_ROOTGROUP = 0x20000,
  LEV_BRACKET = 0x40000, LEV_PURE_TEXT = 0x80000, LEV_COL_STAT = 0x100000, LEV_FLAG_HEADER = 0x200000,
  LEV_FLAG = 0x400000
}
 
enum  ED4_datamode { ED4_D_SPECIES, ED4_D_EXTENDED }
 
enum  ED4_movemode { ED4_M_NO_MOVE = 0, ED4_M_HORIZONTAL = 1, ED4_M_VERTICAL = 2, ED4_M_FREE = 4 }
 
enum  ED4_returncode {
  ED4_R_OK = 0, ED4_R_WARNING = 1, ED4_R_IMPOSSIBLE = 2, ED4_R_ERROR = 4,
  ED4_R_BREAK = 8
}
 
enum  ED4_AREA_LEVEL { ED4_A_TOP_AREA, ED4_A_MIDDLE_AREA, ED4_A_BOTTOM_AREA, ED4_A_ERROR }
 
enum  ED4_properties {
  PROP_NONE = 0, PROP_IS_MANAGER = 0x1, PROP_IS_TERMINAL = 0x2, PROP_HORIZONTAL = 0x4,
  PROP_VERTICAL = 0x8, PROP_DYNA_RESIZE = 0x10, PROP_SELECTABLE = 0x20, PROP_DRAGABLE = 0x40,
  PROP_MOVABLE = 0x80, PROP_IS_HANDLE = 0x100, PROP_CURSOR_ALLOWED = 0x200, PROP_IS_FOLDED = 0x1000,
  PROP_CONSENSUS_RELEVANT = 0x2000, PROP_ALIGNMENT_DATA = 0x4000
}
 
enum  ED4_cursor_move {
  ED4_C_UP, ED4_C_DOWN, ED4_C_LEFT, ED4_C_RIGHT,
  ED4_C_NONE
}
 
enum  ED4_update_flag { ED4_U_UP = 0, ED4_U_UP_DOWN }
 
enum  ED4_border_flag { ED4_B_BORDER, ED4_B_INDENT, ED4_B_BOTTOM_AREA }
 
enum  ED4_consensus { ED4_K_ADD, ED4_K_SUB }
 
enum  ED4_aa_seq_flag {
  ED4_AA_FRWD_1, ED4_AA_FRWD_2, ED4_AA_FRWD_3, ED4_AA_RVRS_1,
  ED4_AA_RVRS_2, ED4_AA_RVRS_3, ED4_AA_DB_FIELD
}
 
enum  ED4_direction { ED4_D_VERTICAL, ED4_D_HORIZONTAL, ED4_D_ALL_DIRECTION }
 
enum  ED4_CursorJumpType { ED4_JUMP_CENTERED, ED4_JUMP_KEEP_VISIBLE, ED4_JUMP_KEEP_POSITION }
 

Variables

ED4_rootED4_ROOT
 
int INFO_TERM_TEXT_YOFFSET
 
int SEQ_TERM_TEXT_YOFFSET
 
int TERMINAL_HEIGHT
 
int MAXSEQUENCECHARACTERLENGTH
 
int MAXNAME_WIDTH
 
int MAXINFO_WIDTH
 
int FLAG_WIDTH
 
long ED4_counter
 
size_t not_found_counter
 
GBS_strstructnot_found_message
 
long max_seq_terminal_length
 
ED4_EDITMODE awar_edit_mode
 
long awar_edit_rightward
 
bool DRAW
 

Macro Definition Documentation

#define e4_assert (   bed)    arb_assert(bed)

Definition at line 22 of file ed4_defs.hxx.

Referenced by ED4_extension::set_size_does_change().

#define MAX_SHOWN_MISSING_SPECIES   200U

Definition at line 55 of file ed4_defs.hxx.

Referenced by ED4_finish_and_show_notFoundMessage(), and EDB_root_bact::fill_data().

#define INFINITE   -1

Definition at line 66 of file ed4_defs.hxx.

#define SLIDER_OFFSET   5
#define X_POS   0
#define Y_POS   1
#define WIDTH   0

Definition at line 73 of file ed4_defs.hxx.

Referenced by ED4_extension::get_size(), and ED4_extension::set_size_does_change().

#define HEIGHT   1
#define BRACKET_WIDTH   11
#define SPACER_HEIGHT   5
#define SPACER_NOCONS_HEIGHT   15

Definition at line 79 of file ed4_defs.hxx.

#define SEQUENCE_INFO_WIDTH   50
#define TREE_TERMINAL_WIDTH   100

Definition at line 81 of file ed4_defs.hxx.

Referenced by ED4_root::create_hierarchy().

#define COLUMN_STAT_ROW_HEIGHT (   font_height)    (2.2*(font_height))

Definition at line 83 of file ed4_defs.hxx.

Referenced by toggle_detailed_column_stat().

#define COLUMN_STAT_ROWS   4

Definition at line 84 of file ed4_defs.hxx.

Referenced by toggle_detailed_column_stat().

#define MAX_POSSIBLE_SEQ_LENGTH   100000000

Definition at line 86 of file ed4_defs.hxx.

#define MAXWINDOWS   5

Definition at line 88 of file ed4_defs.hxx.

Referenced by ED4_root::generate_window().

#define AWAR_EDIT_MODE   "tmp/edit4/edit_mode"

Definition at line 90 of file ed4_defs.hxx.

Referenced by ed4_create_all_awars(), ED4_get_edit_mode(), and ED4_root::generate_window().

#define AWAR_INSERT_MODE   "tmp/edit4/insert_mode"

Definition at line 91 of file ed4_defs.hxx.

Referenced by ed4_create_all_awars(), ED4_get_edit_mode(), and ED4_root::generate_window().

#define AWAR_EDIT_SECURITY_LEVEL   "tmp/edit4/security_level"
#define AWAR_EDIT_SECURITY_LEVEL_ALIGN   "tmp/edit4/security_level_align"

Definition at line 93 of file ed4_defs.hxx.

Referenced by ed4_changesecurity(), and ed4_create_all_awars().

#define AWAR_EDIT_SECURITY_LEVEL_CHANGE   "tmp/edit4/security_level_change"

Definition at line 94 of file ed4_defs.hxx.

Referenced by ed4_changesecurity(), and ed4_create_all_awars().

#define AWAR_EDIT_CONFIGURATION   "tmp/edit4/configuration"
#define AWAR_EDIT_SEQ_POSITION   "tmp/edit4/jump_to_position%d"

Definition at line 97 of file ed4_defs.hxx.

Referenced by ED4_window::ED4_window().

#define AWAR_EDIT_ECOLI_POSITION   "tmp/edit4/cursor_ref_ecoli%d"

Definition at line 98 of file ed4_defs.hxx.

Referenced by ED4_window::ED4_window().

#define AWAR_EDIT_BASE_POSITION   "tmp/edit4/cursor_to_basepos%d"

Definition at line 99 of file ed4_defs.hxx.

Referenced by ED4_window::ED4_window().

#define AWAR_EDIT_IUPAC   "tmp/edit4/iupac%d"

Definition at line 100 of file ed4_defs.hxx.

Referenced by ED4_window::ED4_window().

#define AWAR_EDIT_HELIXNR   "tmp/edit4/helixnr%d"

Definition at line 101 of file ed4_defs.hxx.

Referenced by ED4_window::ED4_window().

#define AWAR_FIELD_CHOSEN   "tmp/edit4/field_chosen"
#define AWAR_EDIT_TITLE_MODE   "edit4/title_mode"
#define AWAR_EDIT_HELIX_SPACING   "edit4/helix_add_spacing"

Definition at line 106 of file ed4_defs.hxx.

Referenced by ed4_create_all_awars(), and ED4_create_editor_options_window().

#define AWAR_EDIT_TERMINAL_SPACING   "edit4/terminal_add_spacing"

Definition at line 107 of file ed4_defs.hxx.

Referenced by ed4_create_all_awars(), and ED4_create_editor_options_window().

#define CHARACTEROFFSET   5
#define NAME_BUFFERSIZE   100
#define ED4_SCROLL_OVERLAP   20

Definition at line 115 of file ed4_defs.hxx.

Typedef Documentation

Definition at line 26 of file ed4_defs.hxx.

typedef long ED4_index

Definition at line 113 of file ed4_defs.hxx.

Enumeration Type Documentation

Enumerator
AD_ALIGN 
AD_NOWRITE 
AD_NOWRITE_IF_COMPRESSED 
AD_REPLACE 
AD_INSERT 

Definition at line 30 of file ed4_defs.hxx.

enum ED4_level
Enumerator
LEV_INVALID 
LEV_NONE 
LEV_ROOT 
LEV_DEVICE 
LEV_AREA 
LEV_MULTI_SPECIES 
LEV_SPECIES 
LEV_MULTI_SEQUENCE 
LEV_SEQUENCE 
LEV_TREE 
LEV_SPECIES_NAME 
LEV_SEQUENCE_INFO 
LEV_SEQUENCE_STRING 
LEV_ORF 
LEV_SPACER 
LEV_LINE 
LEV_MULTI_NAME 
LEV_NAME_MANAGER 
LEV_GROUP 
LEV_ROOTGROUP 
LEV_BRACKET 
LEV_PURE_TEXT 
LEV_COL_STAT 
LEV_FLAG_HEADER 
LEV_FLAG 

Definition at line 118 of file ed4_defs.hxx.

Enumerator
ED4_D_SPECIES 
ED4_D_EXTENDED 

Definition at line 146 of file ed4_defs.hxx.

Enumerator
ED4_M_NO_MOVE 
ED4_M_HORIZONTAL 
ED4_M_VERTICAL 
ED4_M_FREE 

Definition at line 152 of file ed4_defs.hxx.

Enumerator
ED4_R_OK 
ED4_R_WARNING 
ED4_R_IMPOSSIBLE 
ED4_R_ERROR 
ED4_R_BREAK 

Definition at line 159 of file ed4_defs.hxx.

Enumerator
ED4_A_TOP_AREA 
ED4_A_MIDDLE_AREA 
ED4_A_BOTTOM_AREA 
ED4_A_ERROR 

Definition at line 167 of file ed4_defs.hxx.

Enumerator
PROP_NONE 
PROP_IS_MANAGER 
PROP_IS_TERMINAL 
PROP_HORIZONTAL 
PROP_VERTICAL 
PROP_DYNA_RESIZE 
PROP_SELECTABLE 
PROP_DRAGABLE 
PROP_MOVABLE 
PROP_IS_HANDLE 
PROP_CURSOR_ALLOWED 
PROP_IS_FOLDED 
PROP_CONSENSUS_RELEVANT 
PROP_ALIGNMENT_DATA 

Definition at line 174 of file ed4_defs.hxx.

Enumerator
ED4_C_UP 
ED4_C_DOWN 
ED4_C_LEFT 
ED4_C_RIGHT 
ED4_C_NONE 

Definition at line 193 of file ed4_defs.hxx.

Enumerator
ED4_U_UP 
ED4_U_UP_DOWN 

Definition at line 201 of file ed4_defs.hxx.

Enumerator
ED4_B_BORDER 
ED4_B_INDENT 
ED4_B_BOTTOM_AREA 

Definition at line 206 of file ed4_defs.hxx.

Enumerator
ED4_K_ADD 
ED4_K_SUB 

Definition at line 212 of file ed4_defs.hxx.

Enumerator
ED4_AA_FRWD_1 
ED4_AA_FRWD_2 
ED4_AA_FRWD_3 
ED4_AA_RVRS_1 
ED4_AA_RVRS_2 
ED4_AA_RVRS_3 
ED4_AA_DB_FIELD 

Definition at line 217 of file ed4_defs.hxx.

Enumerator
ED4_D_VERTICAL 
ED4_D_HORIZONTAL 
ED4_D_ALL_DIRECTION 

Definition at line 227 of file ed4_defs.hxx.

Enumerator
ED4_JUMP_CENTERED 
ED4_JUMP_KEEP_VISIBLE 
ED4_JUMP_KEEP_POSITION 

Definition at line 284 of file ed4_defs.hxx.

Variable Documentation

ED4_root* ED4_ROOT

Definition at line 49 of file ED4_main.cxx.

Referenced by ED4_host::announce_current_species(), ED4_block::autocorrect_type(), ED4_abstract_group_manager::build_consensus_string(), calc_and_update_alignment_errors_cb(), calculate_group_folding(), ED4_terminal::changed_by_database(), ED4_cursor::changeType(), clear_and_update_rectangle(), col_stat_activated(), colorDefChanged_callback(), colorDefTabNameChanged_callback(), configureColumnStat(), create_editColorTranslationTable_window(), create_group_species_by_field_window(), create_list_of_loaded_species(), create_new_species(), createDataFromConsensus(), createGroupFromSelected(), ED4_manager::delete_requested_children(), ED4_terminal::delete_requested_children(), ED4_window::delete_window(), ED4_manager::deleted_from_database(), ED4_multi_species_manager::deselect_all_species_and_SAI(), diff_setting_changed_cb(), diff_type_changed_cb(), do_sth_with_species(), dot_missing_bases(), ED4_text_terminal::draw(), ED4_terminal::draw_drag_box(), ED4_activate_col_stat(), ED4_alignment_length_changed(), ED4_calc_terminal_extentions(), ed4_changesecurity(), ED4_compression_changed_cb(), ED4_consensus_definition_changed(), ED4_consensus_display_changed(), ED4_create_consensus_awars(), ED4_create_loadConfiguration_window(), ED4_create_loadSAI_window(), ED4_create_NDS_awars(), ED4_create_saveConfigurationAs_window(), ED4_create_search_awars(), ED4_create_viewDifferences_window(), ED4_CreateProteinViewer_window(), ED4_createVisualizeSAI_Awars(), ED4_createVisualizeSAI_window(), ED4_cursor::ED4_cursor(), ED4_disable_col_stat(), ED4_exit(), ED4_expose_cb(), ED4_find_MoreSequences_manager(), ED4_find_SAI_name_terminal(), ED4_find_species_name_terminal(), ED4_find_species_or_SAI_name_terminal(), ED4_get_aligner_data_access(), ED4_get_and_jump_to_current(), ED4_get_and_jump_to_selected_SAI(), ED4_get_and_jump_to_species(), ED4_get_marked_from_menu(), ED4_getSaiColorString(), ED4_helix_jump_opposite(), ED4_horizontal_change_cb(), ED4_input_cb(), ED4_jump_to_current_species(), ED4_jump_to_cursor_position(), ED4_load_new_config(), ED4_mark_matching_species(), ED4_menu_highlight(), ED4_MostRecentWinContext::ED4_MostRecentWinContext(), ED4_motion_cb(), ED4_new_editor_window(), ED4_no_dangerous_modes(), ED4_perform_block_operation(), ED4_pfold_calculate_secstruct_match(), ED4_pfold_create_props_window(), ED4_pfold_extend_nucleation_sites(), ED4_pfold_find_nucleation_sites(), ED4_pfold_find_turns(), ED4_pfold_resolve_overlaps(), ED4_pfold_select_SAI_and_update_option_menu(), ED4_pfold_set_SAI(), ED4_popup_detect_bad_alignment_window(), ED4_popup_dot_missing_bases_window(), ED4_popup_helix_or_pfold_window(), ED4_quit_editor(), ED4_remove_faligner_entries(), ED4_request_full_refresh(), ED4_request_relayout(), ED4_resize_all_extensions(), ED4_resize_cb(), ED4_restore_curpos(), ED4_root_group_manager::ED4_root_group_manager(), ED4_save_properties(), ed4_scroll(), ED4_scrollbar_change_cb(), ED4_search_cb(), ED4_selected_SAI_changed_cb(), ED4_selected_species_changed_cb(), ED4_set_col_stat_threshold(), ED4_set_helixnr(), ED4_set_iupac(), ED4_setColumnblockCorner(), ED4_show_helix_on_device(), ED4_show_protein_match_on_device(), ED4_store_curpos(), ED4_timer(), ED4_toggle_detailed_column_stats(), ED4_toggle_viewDifferences(), ED4_trigger_instant_refresh(), ED4_undo_redo(), ED4_vertical_change_cb(), ED4_viewDifferences_announceTerminalChange(), ED4_WinContext::ED4_WinContext(), ED4_window::ED4_window(), ED4_with_all_loaded_species(), ED4_with_whole_block(), ED4_Edit_String::edit(), ED4_terminal::event_sent_by_parent(), executeKeystroke(), EDB_root_bact::fill_data(), filter_loadable_SAIs(), ED4_group_manager::fold(), ED4_base::get_area_level(), get_first_selected_species(), ED4_host::get_helix(), ED4_window::get_matching_ed4w(), get_max_slider_xpos(), get_max_slider_ypos(), get_selected_range(), ED4_cursor::get_sequence_pos(), ED4_sequence_terminal::GetAliType(), group_species(), group_species_cb(), ED4_manager::handle_move(), highlight_and_update(), init_flag_awars(), insert_new_species_terminal(), ED4_window::insert_window(), ED4_multi_species_manager::invert_selection_of_all_species(), ED4_cursor::jump_screen_pos(), ED4_cursor::jump_sequence_pos(), load_search_paras_from_file(), ED4_remap::mark_compile_needed_force(), ED4_multi_species_manager::marked_species_select(), modes_cb(), modsai_cb(), move_and_update_rectangle(), ED4_cursor::move_cursor(), SpeciesFlag::prepare_itemfield(), propertyName(), PV_AddCorrespondingOrfTerminals(), PV_AddNewAAseqTerminals(), PV_AddOrfTerminalsToLoadedSpecies(), PV_CallBackFunction(), PV_ComplementarySequence(), PV_CreateAllTerminals(), PV_DisplayAminoAcidNames(), PV_HideAllTerminals(), PV_ManageTerminals(), PV_PrintMissingDBentryInformation(), PV_SaveData(), PV_SequenceUpdate_CB(), PV_WriteTranslatedSequenceToDB(), refdata_changed_cb(), refresh_display_cb(), refresh_highlighted(), reload_ecoli_cb(), reload_helix_cb(), remove_from_consensus(), replace_in_block(), ED4_window::reset_all_for_new_config(), ED4_root_group_manager::resize_requested_children(), ED4_terminal::resolve_pointer_to_char_pntr(), resultsAreShown(), saiChanged_callback(), ED4_host::SAIs_visualized(), EDB_root_bact::save_current_config(), save_search_paras_to_file(), EDB_root_bact::search_sequence_data_rek(), searchParamsChanged(), SearchTree::SearchTree(), ED4_multi_species_manager::select_all(), select_named_sequence_terminal(), ED4_cursor::set_abs_x(), set_col_stat_activated_and_refresh(), set_diff_reference(), ED4_cursor::set_screen_relative_pos(), ED4_cursor::set_to_terminal(), setVisualizeSAI_cb(), setVisualizeSAI_options_cb(), ED4_cursor::show_clicked_cursor(), ED4_cursor::show_cursor_at(), show_detailed_column_stats_activated(), toggle_detailed_column_stat(), trace_termChange_in_global_awar(), TranslateGeneToAminoAcidSequence(), SearchSettings::update(), ED4_manager::update_bases(), ED4_manager::update_bases_and_rebuild_consensi(), update_reference_settings(), ED4_window::update_window_coords(), ED4_terminal::write_sequence(), ED4_base::~ED4_base(), and ED4_terminal::~ED4_terminal().

int INFO_TERM_TEXT_YOFFSET
int SEQ_TERM_TEXT_YOFFSET

Definition at line 54 of file ED4_main.cxx.

Referenced by ED4_calc_terminal_extentions().

int TERMINAL_HEIGHT
int MAXSEQUENCECHARACTERLENGTH
int MAXNAME_WIDTH
int MAXINFO_WIDTH
int FLAG_WIDTH

Definition at line 59 of file ED4_main.cxx.

Referenced by ED4_calc_terminal_extentions(), and EDB_root_bact::fill_data().

long ED4_counter
size_t not_found_counter
GBS_strstruct* not_found_message
long max_seq_terminal_length
ED4_EDITMODE awar_edit_mode

Definition at line 67 of file ED4_main.cxx.

Referenced by ed4_change_edit_mode(), ed4_create_all_awars(), and executeKeystroke().

long awar_edit_rightward

Definition at line 68 of file ED4_main.cxx.

Referenced by ed4_create_all_awars(), and executeKeystroke().

bool DRAW

Definition at line 69 of file ED4_main.cxx.

Referenced by ED4_root::create_first_window(), and ED4_cursor::show_cursor_at().