ARB
Classes | Macros | Functions | Variables
ED4_cursor.cxx File Reference
#include <cctype>
#include <climits>
#include <arbdbt.h>
#include <aw_awars.hxx>
#include <AW_helix.hxx>
#include <BI_basepos.hxx>
#include <aw_msg.hxx>
#include <arb_progress.h>
#include <aw_root.hxx>
#include <iupac.h>
#include <ed4_extern.hxx>
#include "ed4_class.hxx"
#include "ed4_edit_string.hxx"
#include "ed4_tools.hxx"
#include "ed4_awars.hxx"
#include "ed4_ProteinViewer.hxx"
#include "ed4_seq_colors.hxx"
#include <arb_strbuf.h>
#include <arb_defs.h>
Include dependency graph for ED4_cursor.cxx:

Go to the source code of this file.

Classes

class  ED4_CursorShape
 
class  has_base_at
 
struct  acceptAnyTerminal
 
struct  acceptConsensusTerminal
 
class  CursorPos
 

Macros

#define MAXLINES   30
 
#define MAXPOINTS   (2*MAXLINES)
 
#define UPPER_OFFSET   (-1)
 
#define LOWER_OFFSET   (term_height-1)
 
#define CWIDTH   (character_width)
 
#define UPPER_OFFSET   0
 
#define LOWER_OFFSET   (term_height-1)
 
#define CWIDTH   3
 
#define OUTER_HEIGHT   (term_height/4)
 
#define INNER_HEIGHT   (term_height-1)
 
#define CWIDTH   12
 
#define STEPS   6
 
#define THICKNESS   2
 
#define EXPAND_SIZE   0
 
#define BUFFERSIZE   1000
 
#define MAXIUPAC   6
 

Functions

static void jump_to_corresponding_seq_terminal (ED4_species_name_terminal *name_term, bool unfold_groups)
 
static void select_named_sequence_terminal (const char *name)
 
void ED4_selected_SAI_changed_cb (AW_root *)
 
void ED4_selected_species_changed_cb (AW_root *)
 
void ED4_jump_to_current_species (AW_window *aww)
 
static bool multi_species_man_consensus_id_starts_with (ED4_base *base, const char *start)
 
ED4_multi_species_managerED4_find_MoreSequences_manager ()
 
void ED4_init_notFoundMessage ()
 
void ED4_finish_and_show_notFoundMessage ()
 
static ED4_species_name_terminal * insert_new_species_terminal (GB_CSTR species_name, bool is_SAI)
 
void ED4_get_and_jump_to_selected_SAI (AW_window *aww)
 
void ED4_get_and_jump_to_species (GB_CSTR species_name)
 
void ED4_get_and_jump_to_current (AW_window *aww)
 
void ED4_get_marked_from_menu (AW_window *)
 
static void trace_termChange_in_global_awar (ED4_terminal *term, char *&last_value, bool &ignore_flag, const char *awar_name)
 
static ED4_terminalget_upper_lower_cursor_pos (ED4_manager *starting_point, ED4_cursor_move cursor_move, AW_pos current_y, bool isScreen, const ED4_TerminalPredicate &predicate)
 
static void ed4_bp_sequence_changed_cb (ED4_species_manager *, ED4_base_position *base_pos)
 
static bool is_consensus_gap (char c)
 
void ED4_store_curpos (AW_window *aww)
 
void ED4_restore_curpos (AW_window *aww)
 
void ED4_clear_stored_curpos ()
 
void ED4_helix_jump_opposite (AW_window *aww)
 
void ED4_change_cursor (AW_window *aww)
 

Variables

static bool allow_update_global_cursorpos = true
 
static bool ignore_selected_species_changes_cb = false
 
static bool ignore_selected_SAI_changes_cb = false
 

Macro Definition Documentation

#define MAXLINES   30

Definition at line 29 of file ED4_cursor.cxx.

#define MAXPOINTS   (2*MAXLINES)

Definition at line 30 of file ED4_cursor.cxx.

#define UPPER_OFFSET   (-1)
#define LOWER_OFFSET   (term_height-1)
#define CWIDTH   (character_width)
#define UPPER_OFFSET   0
#define LOWER_OFFSET   (term_height-1)
#define CWIDTH   3
#define OUTER_HEIGHT   (term_height/4)
#define INNER_HEIGHT   (term_height-1)
#define CWIDTH   12
#define STEPS   6
#define THICKNESS   2
#define EXPAND_SIZE   0
#define BUFFERSIZE   1000
#define MAXIUPAC   6

Function Documentation

static void jump_to_corresponding_seq_terminal ( ED4_species_name_terminal *  name_term,
bool  unfold_groups 
)
static
static void select_named_sequence_terminal ( const char name)
static
void ED4_selected_SAI_changed_cb ( AW_root )
void ED4_selected_species_changed_cb ( AW_root )
void ED4_jump_to_current_species ( AW_window aww)
static bool multi_species_man_consensus_id_starts_with ( ED4_base base,
const char start 
)
static
ED4_multi_species_manager* ED4_find_MoreSequences_manager ( )
void ED4_init_notFoundMessage ( )
void ED4_finish_and_show_notFoundMessage ( )
static ED4_species_name_terminal* insert_new_species_terminal ( GB_CSTR  species_name,
bool  is_SAI 
)
static
void ED4_get_and_jump_to_selected_SAI ( AW_window aww)
void ED4_get_and_jump_to_species ( GB_CSTR  species_name)
void ED4_get_and_jump_to_current ( AW_window aww)
void ED4_get_marked_from_menu ( AW_window )
static void trace_termChange_in_global_awar ( ED4_terminal term,
char *&  last_value,
bool &  ignore_flag,
const char awar_name 
)
static
static ED4_terminal* get_upper_lower_cursor_pos ( ED4_manager starting_point,
ED4_cursor_move  cursor_move,
AW_pos  current_y,
bool  isScreen,
const ED4_TerminalPredicate predicate 
)
static
static void ed4_bp_sequence_changed_cb ( ED4_species_manager *  ,
ED4_base_position base_pos 
)
static

Definition at line 1482 of file ED4_cursor.cxx.

References ED4_base_position::invalidate().

static bool is_consensus_gap ( char  c)
static

Definition at line 1495 of file ED4_cursor.cxx.

References ED4_is_gap_character().

void ED4_store_curpos ( AW_window aww)
void ED4_restore_curpos ( AW_window aww)
void ED4_clear_stored_curpos ( )

Definition at line 1624 of file ED4_cursor.cxx.

References CursorPos::clear().

Referenced by ED4_root::generate_window().

void ED4_helix_jump_opposite ( AW_window aww)
void ED4_change_cursor ( AW_window aww)

Variable Documentation

bool allow_update_global_cursorpos = true
static
bool ignore_selected_species_changes_cb = false
static

Definition at line 436 of file ED4_cursor.cxx.

bool ignore_selected_SAI_changes_cb = false
static

Definition at line 437 of file ED4_cursor.cxx.