ARB
Macros | Enumerations | Functions | Variables
ED4_seq_colors.cxx File Reference
#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>
Include dependency graph for ED4_seq_colors.cxx:

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 }
 

Functions

static const chardefault_characters (int elem)
 
static const chardefault_color (int cset, int elem)
 
static void color_awar_changed_cb (AW_root *, ED4_seq_colors *sc)
 
static void create_seq_color_awars (AW_root *awr, ED4_seq_colors *sc)
 
AW_windowED4_create_seq_colors_window (AW_root *awr, ED4_seq_colors *sc)
 
 STATIC_ASSERT ((ED4_G_SEQUENCES+1)==ED4_G_HELIX)
 
 STATIC_ASSERT ((ED4_G_HELIX+1)==ED4_G_COLOR_2)
 
static void refdata_changed_cb (ED4_species_manager *sman, ED4_reference *ref)
 
static void refdata_deleted_cb ()
 
static ED4_terminaldetect_current_ref_terminal ()
 
static void set_diff_reference (ED4_terminal *refTerm)
 
static void set_current_as_diffRef (bool enable)
 
static void change_reference_cb (AW_window *aww)
 
static void diff_type_changed_cb (AW_root *awr)
 
static void update_reference_settings (AW_root *awr)
 
static void diff_setting_changed_cb (AW_root *awr)
 
static void nodiff_indicator_changed_cb (AW_root *awr)
 
static void create_viewDifferences_awars (AW_root *awr)
 
void ED4_toggle_viewDifferences (AW_root *awr)
 
void ED4_viewDifferences_setNewReference ()
 
void ED4_viewDifferences_announceTerminalChange ()
 
void ED4_viewDifferences_disable ()
 
AW_windowED4_create_viewDifferences_window (AW_root *awr)
 

Variables

static int default_NUC_set = 0
 
static int default_AMI_set = 3
 
static const chardefault_sets [SEQ_COLOR_SETS]
 
static bool seq_color_awars_created = false
 
static SmartCharPtr last_used_ref_term_name
 
static bool viewDifferences_awars_initialized = false
 

Macro Definition Documentation

#define SEQ_COLOR_SETS   8
#define SEQ_COLOR_SET_ELEMS   28
#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"
#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/"

Definition at line 368 of file ED4_seq_colors.cxx.

#define APREFIX_DIFF_TEMP   "tmp/" APREFIX_DIFF_SAVE

Definition at line 369 of file ED4_seq_colors.cxx.

#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"

Enumeration Type Documentation

Enumerator
VD_DISABLED 
VD_SELECTED 
VD_FOLLOW 

Definition at line 378 of file ED4_seq_colors.cxx.

Function Documentation

static const char* default_characters ( int  elem)
static

Definition at line 54 of file ED4_seq_colors.cxx.

References result.

Referenced by create_seq_color_awars().

static const char* default_color ( int  cset,
int  elem 
)
static

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 void color_awar_changed_cb ( AW_root ,
ED4_seq_colors sc 
)
static

Definition at line 85 of file ED4_seq_colors.cxx.

References ED4_seq_colors::reload().

Referenced by create_seq_color_awars().

static void create_seq_color_awars ( AW_root awr,
ED4_seq_colors sc 
)
static
AW_window* ED4_create_seq_colors_window ( AW_root awr,
ED4_seq_colors sc 
)
STATIC_ASSERT ( (ED4_G_SEQUENCES+1)  = =ED4_G_HELIX)
STATIC_ASSERT ( (ED4_G_HELIX+1)  = =ED4_G_COLOR_2)
static void refdata_changed_cb ( ED4_species_manager *  sman,
ED4_reference ref 
)
static
static void refdata_deleted_cb ( )
static

Definition at line 334 of file ED4_seq_colors.cxx.

References ED4_viewDifferences_disable().

Referenced by ED4_reference::clear(), and ED4_reference::define().

static ED4_terminal* detect_current_ref_terminal ( )
static
static void set_diff_reference ( ED4_terminal refTerm)
static
static void set_current_as_diffRef ( bool  enable)
static
static void change_reference_cb ( AW_window aww)
static
static void diff_type_changed_cb ( AW_root awr)
static
static void update_reference_settings ( AW_root awr)
static
static void diff_setting_changed_cb ( AW_root awr)
static
static void nodiff_indicator_changed_cb ( AW_root awr)
static
static void create_viewDifferences_awars ( AW_root awr)
static
void ED4_toggle_viewDifferences ( AW_root awr)
void ED4_viewDifferences_setNewReference ( )

Definition at line 543 of file ED4_seq_colors.cxx.

References set_current_as_diffRef().

Referenced by ED4_viewDifferences_announceTerminalChange().

void ED4_viewDifferences_announceTerminalChange ( )
void ED4_viewDifferences_disable ( )

Definition at line 553 of file ED4_seq_colors.cxx.

References set_current_as_diffRef().

Referenced by refdata_deleted_cb(), and ED4_root::remove_all_callbacks().

AW_window* ED4_create_viewDifferences_window ( AW_root awr)

Variable Documentation

int default_NUC_set = 0
static

Definition at line 25 of file ED4_seq_colors.cxx.

int default_AMI_set = 3
static

Definition at line 26 of file ED4_seq_colors.cxx.

Referenced by ED4_seq_colors::reload().

const char* default_sets[SEQ_COLOR_SETS]
static
Initial value:
= {
"=2=0=3=0=0=0=4=0=0=0=0=0=0=6=0=0=0=0=0=5=5=0=0=0=0=0=0=6",
"R2=0Y3=0=0=0R2=0=0=0=0=0=0=0=0=0=0=2=0Y3Y3=0=0=0=3=0=0=6",
"=6=5=6=5=7=7=6=5=7=7=3=7=3=9=7=7=7=3=3=6=6=5=3=7=3=7=7=6",
"=7=0=7=8=2=9=8=9=3=0=2=3=7=8=0=8=2=2=2=2=0=3=9=6=9=0=0=6",
"=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=6",
"o9=0|2=0=0=0o5=0=0=0=0=0=0=0=0=0=0=0=0|8|8=0=0=0=0=0=0=6",
"=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=6",
"=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=0=6",
}

Definition at line 37 of file ED4_seq_colors.cxx.

bool seq_color_awars_created = false
static
SmartCharPtr last_used_ref_term_name
static

Definition at line 432 of file ED4_seq_colors.cxx.

bool viewDifferences_awars_initialized = false
static

Definition at line 509 of file ED4_seq_colors.cxx.