ARB
|
#include "ed4_seq_colors.hxx"
#include "ed4_class.hxx"
#include "ed4_extern.hxx"
#include <aw_root.hxx>
#include <aw_awar.hxx>
#include <aw_awar_defs.hxx>
#include <aw_msg.hxx>
#include <arbdbt.h>
#include <arb_global_defs.h>
#include <cctype>
Go to the source code of this file.
Macros | |
#define | SEQ_COLOR_SETS 8 |
#define | SEQ_COLOR_SET_ELEMS 28 |
#define | AWAR_SEQ_PATH "awt/seq_colors/" |
#define | AWAR_SEQ_NAME_STRINGS_TEMPLATE AWAR_SEQ_PATH "strings/elem_%i" |
#define | AWAR_SEQ_NAME_TEMPLATE AWAR_SEQ_PATH "set_%i/elem_%i" |
#define | AWAR_SEQ_NAME_SELECTOR_NA AWAR_SEQ_PATH "na/select" |
#define | AWAR_SEQ_NAME_SELECTOR_AA AWAR_SEQ_PATH "aa/select" |
#define | APREFIX_DIFF_SAVE "edit4/diff/" |
#define | APREFIX_DIFF_TEMP "tmp/" APREFIX_DIFF_SAVE |
#define | AWAR_DIFF_TYPE APREFIX_DIFF_TEMP "type" |
#define | AWAR_DIFF_NAME APREFIX_DIFF_TEMP "name" |
#define | AWAR_NODIFF_INDICATOR APREFIX_DIFF_SAVE "indicator" |
#define | AWAR_DIFF_MINDCASE APREFIX_DIFF_SAVE "mindcase" |
#define | AWAR_DIFF_MINDGAPTYPE APREFIX_DIFF_SAVE "mindgaptype" |
#define | AWAR_DIFF_GAPTYPES APREFIX_DIFF_SAVE "gaptypes" |
Enumerations | |
enum | ViewDiffType { VD_DISABLED, VD_SELECTED, VD_FOLLOW } |
Variables | |
static int | default_NUC_set = 0 |
static int | default_AMI_set = 3 |
static const char * | default_sets [SEQ_COLOR_SETS] |
static bool | seq_color_awars_created = false |
static SmartCharPtr | last_used_ref_term_name |
static bool | viewDifferences_awars_initialized = false |
#define SEQ_COLOR_SETS 8 |
Definition at line 28 of file ED4_seq_colors.cxx.
Referenced by create_seq_color_awars(), ED4_create_seq_colors_window(), and ED4_seq_colors::reload().
#define SEQ_COLOR_SET_ELEMS 28 |
Definition at line 29 of file ED4_seq_colors.cxx.
Referenced by create_seq_color_awars(), ED4_create_seq_colors_window(), and ED4_seq_colors::reload().
#define AWAR_SEQ_PATH "awt/seq_colors/" |
Definition at line 31 of file ED4_seq_colors.cxx.
#define AWAR_SEQ_NAME_STRINGS_TEMPLATE AWAR_SEQ_PATH "strings/elem_%i" |
Definition at line 32 of file ED4_seq_colors.cxx.
Referenced by create_seq_color_awars(), ED4_create_seq_colors_window(), and ED4_seq_colors::reload().
#define AWAR_SEQ_NAME_TEMPLATE AWAR_SEQ_PATH "set_%i/elem_%i" |
Definition at line 33 of file ED4_seq_colors.cxx.
Referenced by create_seq_color_awars(), ED4_create_seq_colors_window(), and ED4_seq_colors::reload().
#define AWAR_SEQ_NAME_SELECTOR_NA AWAR_SEQ_PATH "na/select" |
Definition at line 34 of file ED4_seq_colors.cxx.
Referenced by create_seq_color_awars(), ED4_create_seq_colors_window(), and ED4_seq_colors::reload().
#define AWAR_SEQ_NAME_SELECTOR_AA AWAR_SEQ_PATH "aa/select" |
Definition at line 35 of file ED4_seq_colors.cxx.
Referenced by create_seq_color_awars(), ED4_create_seq_colors_window(), and ED4_seq_colors::reload().
#define APREFIX_DIFF_SAVE "edit4/diff/" |
Definition at line 362 of file ED4_seq_colors.cxx.
#define APREFIX_DIFF_TEMP "tmp/" APREFIX_DIFF_SAVE |
Definition at line 363 of file ED4_seq_colors.cxx.
#define AWAR_DIFF_TYPE APREFIX_DIFF_TEMP "type" |
Definition at line 365 of file ED4_seq_colors.cxx.
Referenced by change_reference_cb(), create_viewDifferences_awars(), diff_type_changed_cb(), ED4_create_viewDifferences_window(), ED4_toggle_viewDifferences(), and ED4_viewDifferences_announceTerminalChange().
#define AWAR_DIFF_NAME APREFIX_DIFF_TEMP "name" |
Definition at line 366 of file ED4_seq_colors.cxx.
Referenced by create_viewDifferences_awars(), ED4_create_viewDifferences_window(), and set_diff_reference().
#define AWAR_NODIFF_INDICATOR APREFIX_DIFF_SAVE "indicator" |
Definition at line 367 of file ED4_seq_colors.cxx.
Referenced by create_viewDifferences_awars(), ED4_create_viewDifferences_window(), nodiff_indicator_changed_cb(), and update_reference_settings().
#define AWAR_DIFF_MINDCASE APREFIX_DIFF_SAVE "mindcase" |
Definition at line 368 of file ED4_seq_colors.cxx.
Referenced by create_viewDifferences_awars(), ED4_create_viewDifferences_window(), and update_reference_settings().
#define AWAR_DIFF_MINDGAPTYPE APREFIX_DIFF_SAVE "mindgaptype" |
Definition at line 369 of file ED4_seq_colors.cxx.
Referenced by create_viewDifferences_awars(), ED4_create_viewDifferences_window(), and update_reference_settings().
#define AWAR_DIFF_GAPTYPES APREFIX_DIFF_SAVE "gaptypes" |
Definition at line 370 of file ED4_seq_colors.cxx.
Referenced by create_viewDifferences_awars(), ED4_create_viewDifferences_window(), and update_reference_settings().
enum ViewDiffType |
Enumerator | |
---|---|
VD_DISABLED | |
VD_SELECTED | |
VD_FOLLOW |
Definition at line 372 of file ED4_seq_colors.cxx.
Definition at line 54 of file ED4_seq_colors.cxx.
References result.
Referenced by create_seq_color_awars().
Definition at line 72 of file ED4_seq_colors.cxx.
References result.
Referenced by AW_gc_manager::add_gc(), create_seq_color_awars(), and gc_desc::parse_decl().
|
static |
Definition at line 85 of file ED4_seq_colors.cxx.
References ED4_seq_colors::reload().
Referenced by create_seq_color_awars().
|
static |
Definition at line 89 of file ED4_seq_colors.cxx.
References AW_awar::add_callback(), AW_ROOT_DEFAULT, AW_root::awar_int(), AWAR_SEQ_NAME_SELECTOR_AA, AWAR_SEQ_NAME_SELECTOR_NA, AWAR_SEQ_NAME_STRINGS_TEMPLATE, AWAR_SEQ_NAME_TEMPLATE, AW_root::awar_string(), color_awar_changed_cb(), default_characters(), default_color(), e4_assert, GBS_global_string(), AW_awar::read_char_pntr(), seq_color_awars_created, SEQ_COLOR_SET_ELEMS, SEQ_COLOR_SETS, update_cb(), and AW_awar::write_string().
Referenced by ED4_create_seq_colors_window(), and ED4_seq_colors::reload().
AW_window* ED4_create_seq_colors_window | ( | AW_root * | awr, |
ED4_seq_colors * | sc | ||
) |
Definition at line 118 of file ED4_seq_colors.cxx.
References AW_HORIZONTAL, AW_POPDOWN(), AWAR_SEQ_NAME_SELECTOR_AA, AWAR_SEQ_NAME_SELECTOR_NA, AWAR_SEQ_NAME_STRINGS_TEMPLATE, AWAR_SEQ_NAME_TEMPLATE, create_seq_color_awars(), makeHelpCallback(), NULp, seq_color_awars_created, SEQ_COLOR_SET_ELEMS, and SEQ_COLOR_SETS.
Referenced by ED4_CreateProteinViewer_window(), and ED4_root::generate_window().
STATIC_ASSERT | ( | (ED4_G_SEQUENCES+1) | = =ED4_G_HELIX | ) |
STATIC_ASSERT | ( | (ED4_G_HELIX+1) | = =ED4_G_COLOR_2 | ) |
|
static |
Definition at line 324 of file ED4_seq_colors.cxx.
References ED4_reference::data_changed_cb(), ED4_ROOT, LEV_SEQUENCE_STRING, and ED4_root::request_refresh_for_specific_terminals().
Referenced by ED4_reference::clear(), and ED4_reference::define().
|
static |
Definition at line 328 of file ED4_seq_colors.cxx.
References ED4_viewDifferences_disable().
Referenced by ED4_reference::clear(), and ED4_reference::define().
|
static |
Definition at line 378 of file ED4_seq_colors.cxx.
References aw_message(), current_cursor(), ED4_window::cursor, ED4_base::is_consensus_terminal(), ED4_base::is_SAI_terminal(), ED4_base::is_species_seq_terminal(), NULp, and ED4_cursor::owner_of_cursor.
Referenced by set_current_as_diffRef().
|
static |
Definition at line 398 of file ED4_seq_colors.cxx.
References aw_message(), AW_root::awar(), AWAR_DIFF_NAME, ED4_reference::clear(), ED4_abstract_sequence_terminal::corresponding_species_name_terminal(), ED4_reference::define(), e4_assert, ED4_ROOT, GBS_global_string(), ED4_base::is_consensus_terminal(), ED4_base::is_SAI_terminal(), ED4_base::is_species_seq_terminal(), LEV_SEQUENCE_STRING, ED4_root::reference, ED4_root::request_refresh_for_specific_terminals(), AW_root::SINGLETON, and AW_awar::write_string().
Referenced by diff_type_changed_cb(), and set_current_as_diffRef().
|
static |
Definition at line 428 of file ED4_seq_colors.cxx.
References ARB_strdup(), detect_current_ref_terminal(), ED4_base::id, NULp, and set_diff_reference().
Referenced by change_reference_cb(), diff_type_changed_cb(), ED4_viewDifferences_disable(), and ED4_viewDifferences_setNewReference().
|
static |
Definition at line 438 of file ED4_seq_colors.cxx.
References AW_root::awar(), AWAR_DIFF_TYPE, AW_window::get_root(), AW_awar::read_int(), set_current_as_diffRef(), VD_DISABLED, VD_SELECTED, and AW_awar::write_int().
Referenced by ED4_create_viewDifferences_window().
|
static |
Definition at line 447 of file ED4_seq_colors.cxx.
References AW_root::awar(), AWAR_DIFF_TYPE, ED4_ROOT, ED4_reference::is_set(), ED4_base::is_terminal(), ED4_root::main_manager, NULp, AW_awar::read_int(), ED4_root::reference, set_current_as_diffRef(), set_diff_reference(), type, VD_DISABLED, VD_FOLLOW, VD_SELECTED, and AW_awar::write_int().
Referenced by create_viewDifferences_awars().
|
static |
Definition at line 480 of file ED4_seq_colors.cxx.
References AW_root::awar(), AWAR_DIFF_GAPTYPES, AWAR_DIFF_MINDCASE, AWAR_DIFF_MINDGAPTYPE, AWAR_NODIFF_INDICATOR, ED4_ROOT, AW_awar::read_char_pntr(), AW_awar::read_int(), ED4_root::reference, ED4_reference::set_case_sensitive(), ED4_reference::set_gap_handling(), and ED4_reference::set_nodiff_indicator().
Referenced by diff_setting_changed_cb(), and ED4_toggle_viewDifferences().
|
static |
Definition at line 486 of file ED4_seq_colors.cxx.
References ED4_ROOT, LEV_SEQUENCE_STRING, ED4_root::request_refresh_for_specific_terminals(), and update_reference_settings().
Referenced by create_viewDifferences_awars(), and nodiff_indicator_changed_cb().
|
static |
Definition at line 491 of file ED4_seq_colors.cxx.
References AW_root::awar(), AWAR_NODIFF_INDICATOR, diff_setting_changed_cb(), AW_awar::read_char_pntr(), and AW_awar::write_string().
Referenced by create_viewDifferences_awars().
|
static |
Definition at line 505 of file ED4_seq_colors.cxx.
References AW_awar::add_callback(), GAP::anyGapChars(), AWAR_DIFF_GAPTYPES, AWAR_DIFF_MINDCASE, AWAR_DIFF_MINDGAPTYPE, AWAR_DIFF_NAME, AWAR_DIFF_TYPE, AW_root::awar_int(), AWAR_NODIFF_INDICATOR, AW_root::awar_string(), diff_setting_changed_cb(), diff_type_changed_cb(), nodiff_indicator_changed_cb(), AW_awar::set_srt(), and VD_DISABLED.
Referenced by ED4_toggle_viewDifferences().
void ED4_toggle_viewDifferences | ( | AW_root * | awr | ) |
Definition at line 518 of file ED4_seq_colors.cxx.
References AW_root::awar(), AWAR_DIFF_TYPE, create_viewDifferences_awars(), ED4_ROOT, ED4_reference::is_set(), AW_awar::read_int(), ED4_root::reference, AW_awar::rewrite_int(), update_reference_settings(), VD_DISABLED, and VD_SELECTED.
Referenced by ED4_create_viewDifferences_window().
void ED4_viewDifferences_setNewReference | ( | ) |
Definition at line 537 of file ED4_seq_colors.cxx.
References set_current_as_diffRef().
Referenced by ED4_viewDifferences_announceTerminalChange().
void ED4_viewDifferences_announceTerminalChange | ( | ) |
Definition at line 540 of file ED4_seq_colors.cxx.
References ED4_root::aw_root, AW_root::awar(), AWAR_DIFF_TYPE, ED4_ROOT, ED4_viewDifferences_setNewReference(), ED4_reference::is_set(), AW_awar::read_int(), ED4_root::reference, and VD_FOLLOW.
void ED4_viewDifferences_disable | ( | ) |
Definition at line 547 of file ED4_seq_colors.cxx.
References set_current_as_diffRef().
Referenced by refdata_deleted_cb(), and ED4_root::remove_all_callbacks().
Definition at line 551 of file ED4_seq_colors.cxx.
References AW_POPDOWN(), AWAR_DIFF_GAPTYPES, AWAR_DIFF_MINDCASE, AWAR_DIFF_MINDGAPTYPE, AWAR_DIFF_NAME, AWAR_DIFF_TYPE, AWAR_NODIFF_INDICATOR, change_reference_cb(), ED4_ROOT, ED4_toggle_viewDifferences(), ED4_reference::is_set(), makeHelpCallback(), NULp, ED4_root::reference, VD_DISABLED, VD_FOLLOW, and VD_SELECTED.
Referenced by ED4_root::generate_window().
|
static |
Definition at line 25 of file ED4_seq_colors.cxx.
|
static |
Definition at line 26 of file ED4_seq_colors.cxx.
Referenced by ED4_seq_colors::reload().
|
static |
Definition at line 37 of file ED4_seq_colors.cxx.
|
static |
Definition at line 50 of file ED4_seq_colors.cxx.
Referenced by create_seq_color_awars(), ED4_create_seq_colors_window(), and ED4_seq_colors::reload().
|
static |
Definition at line 426 of file ED4_seq_colors.cxx.
|
static |
Definition at line 503 of file ED4_seq_colors.cxx.