ARB
|
#include <ed4_extern.hxx>
#include "ed4_class.hxx"
#include <awt_canvas.hxx>
#include <awt_sel_boxes.hxx>
#include <awt_prompt.hxx>
#include <aw_awars.hxx>
#include <aw_preset.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <aw_question.hxx>
#include <aw_select.hxx>
#include <arbdbt.h>
#include <ad_cb.h>
#include <arb_strbuf.h>
#include <iostream>
Go to the source code of this file.
Macros | |
#define | AWAR_SAI_CLR_TAB "saicolors/" |
#define | AWAR_SAI_VISUALIZED AWAR_SAI_CLR_TAB "current" |
#define | AWAR_SAI_CLR_DEF AWAR_SAI_CLR_TAB "clr_trans_tab/" |
#define | AWAR_SAI_ENABLE AWAR_SAI_CLR_TAB "enable" |
#define | AWAR_SAI_ALL_SPECIES AWAR_SAI_CLR_TAB "all_species" |
#define | AWAR_SAI_AUTO_SELECT AWAR_SAI_CLR_TAB "auto_select" |
#define | AWAR_SAI_CLR_TRANS_TABLE AWAR_SAI_CLR_TAB "clr_trans_table" |
#define | AWAR_SAI_CLR_TRANS_TAB_NAMES AWAR_SAI_CLR_TAB "clr_trans_tab_names" |
#define | AWAR_SAI_CLR_TRANS_TAB_REL AWAR_SAI_CLR_TAB "sai_relation/" |
#define | AWAR_SAI_CLR "tmp/sai/color_0" |
#define | AWAR_SAI_CLR_COUNT 10 |
#define | BUFSIZE 100 |
Enumerations | |
enum | CreationMode { ED4_VIS_CREATE, ED4_VIS_COPY } |
Variables | |
static bool | clrDefinitionsChanged = false |
static bool | inCallback = false |
static bool | in_colorDefChanged_callback = false |
#define AWAR_SAI_CLR_TAB "saicolors/" |
Definition at line 36 of file ED4_visualizeSAI.cxx.
#define AWAR_SAI_VISUALIZED AWAR_SAI_CLR_TAB "current" |
Definition at line 37 of file ED4_visualizeSAI.cxx.
Referenced by autoselect_cb(), colorDefTabNameChanged_callback(), ED4_createVisualizeSAI_Awars(), ED4_createVisualizeSAI_window(), ED4_getSaiColorString(), and saiChanged_callback().
#define AWAR_SAI_CLR_DEF AWAR_SAI_CLR_TAB "clr_trans_tab/" |
Definition at line 38 of file ED4_visualizeSAI.cxx.
Referenced by getClrDefAwar().
#define AWAR_SAI_ENABLE AWAR_SAI_CLR_TAB "enable" |
Definition at line 39 of file ED4_visualizeSAI.cxx.
Referenced by ED4_createVisualizeSAI_Awars(), ED4_createVisualizeSAI_window(), refresh_display_cb(), and setVisualizeSAI_cb().
#define AWAR_SAI_ALL_SPECIES AWAR_SAI_CLR_TAB "all_species" |
Definition at line 40 of file ED4_visualizeSAI.cxx.
Referenced by ED4_createVisualizeSAI_Awars(), ED4_createVisualizeSAI_window(), and setVisualizeSAI_options_cb().
#define AWAR_SAI_AUTO_SELECT AWAR_SAI_CLR_TAB "auto_select" |
Definition at line 41 of file ED4_visualizeSAI.cxx.
Referenced by ED4_createVisualizeSAI_Awars(), ED4_createVisualizeSAI_window(), and set_autoselect_cb().
#define AWAR_SAI_CLR_TRANS_TABLE AWAR_SAI_CLR_TAB "clr_trans_table" |
Definition at line 42 of file ED4_visualizeSAI.cxx.
Referenced by addOrUpdateTransTable(), buildClrTransTabNamesList(), colorDefChanged_callback(), colorDefTabNameChanged_callback(), createCopy_ClrTransTab_cb(), createCopy_table_handler(), deleteColorTranslationTable(), ED4_createVisualizeSAI_Awars(), and saiChanged_callback().
#define AWAR_SAI_CLR_TRANS_TAB_NAMES AWAR_SAI_CLR_TAB "clr_trans_tab_names" |
Definition at line 43 of file ED4_visualizeSAI.cxx.
Referenced by addOrUpdateTransTable(), colorTransTable_exists(), deleteColorTranslationTable(), ED4_createVisualizeSAI_Awars(), ED4_createVisualizeSAI_window(), and update_ClrTransTabNamesList_cb().
#define AWAR_SAI_CLR_TRANS_TAB_REL AWAR_SAI_CLR_TAB "sai_relation/" |
Definition at line 44 of file ED4_visualizeSAI.cxx.
Referenced by sai_transtab_awar().
#define AWAR_SAI_CLR "tmp/sai/color_0" |
Definition at line 46 of file ED4_visualizeSAI.cxx.
Referenced by getAwarName().
#define AWAR_SAI_CLR_COUNT 10 |
Definition at line 47 of file ED4_visualizeSAI.cxx.
Referenced by create_editColorTranslationTable_window(), ED4_getSaiColorString(), and reverseColorTranslationTable().
#define BUFSIZE 100 |
Definition at line 57 of file ED4_visualizeSAI.cxx.
Referenced by getAwarName(), and getClrDefAwar().
enum CreationMode |
Enumerator | |
---|---|
ED4_VIS_CREATE | |
ED4_VIS_COPY |
Definition at line 405 of file ED4_visualizeSAI.cxx.
Definition at line 58 of file ED4_visualizeSAI.cxx.
References AWAR_SAI_CLR, and BUFSIZE.
Referenced by colorDefChanged_callback(), colorDefTabNameChanged_callback(), create_editColorTranslationTable_window(), ED4_createVisualizeSAI_Awars(), ED4_getSaiColorString(), and reverseColorTranslationTable().
Definition at line 67 of file ED4_visualizeSAI.cxx.
References AWAR_SAI_CLR_DEF, BUFSIZE, e4_assert, and IF_ASSERTION_USED.
Referenced by addOrUpdateTransTable(), colorDefChanged_callback(), colorDefTabNameChanged_callback(), createCopy_table_handler(), and deleteColorTranslationTable().
|
static |
Definition at line 81 of file ED4_visualizeSAI.cxx.
References AW_root::awar(), AWAR_SAI_ENABLE, ED4_ROOT, AW_awar::read_int(), ED4_root::request_refresh_for_sequence_terminals(), and ED4_root::visualizeSAI.
Referenced by ED4_createVisualizeSAI_Awars().
|
static |
Definition at line 86 of file ED4_visualizeSAI.cxx.
References AW_root::awar(), AWAR_SAI_ALL_SPECIES, ED4_ROOT, AW_awar::read_int(), ED4_root::request_refresh_for_sequence_terminals(), and ED4_root::visualizeSAI_allSpecies.
Referenced by ED4_createVisualizeSAI_Awars().
Definition at line 91 of file ED4_visualizeSAI.cxx.
References AW_root::awar(), AWAR_SAI_CLR_TRANS_TAB_NAMES, NULp, and AW_awar::read_string().
Referenced by addOrUpdateTransTable(), and createCopy_table_handler().
Definition at line 118 of file ED4_visualizeSAI.cxx.
References aw_message(), AW_ROOT_DEFAULT, AW_root::awar(), AWAR_SAI_CLR_TRANS_TABLE, AW_root::awar_string(), GBS_strstruct::cat(), clrDefinitionsChanged, ED4_ROOT, GBS_escape_string(), GBS_strstruct::get_data(), getAwarName(), getClrDefAwar(), in_colorDefChanged_callback, inCallback, LocallyModify< T >::old_value(), GBS_strstruct::put(), AW_awar::read_string(), ED4_root::request_refresh_for_sequence_terminals(), s, and AW_awar::write_string().
Referenced by colorDefTabNameChanged_callback(), and ED4_createVisualizeSAI_Awars().
Definition at line 188 of file ED4_visualizeSAI.cxx.
References AW_ROOT_DEFAULT, AWAR_SAI_CLR_TRANS_TAB_REL, AW_root::awar_string(), awarname(), GBS_global_string(), and GBS_string_2_key().
Referenced by colorDefTabNameChanged_callback(), and saiChanged_callback().
|
static |
Definition at line 195 of file ED4_visualizeSAI.cxx.
References AW_ROOT_DEFAULT, AW_root::awar(), AWAR_SAI_CLR_TRANS_TABLE, AWAR_SAI_VISUALIZED, AW_root::awar_string(), clrDefinitionsChanged, colorDefChanged_callback(), e4_assert, ED4_ROOT, GBS_unescape_string(), getAwarName(), getClrDefAwar(), in_colorDefChanged_callback, inCallback, AW_awar::read_char_pntr(), AW_awar::read_string(), ED4_root::request_refresh_for_sequence_terminals(), sai_transtab_awar(), and AW_awar::write_string().
Referenced by ED4_createVisualizeSAI_Awars().
|
static |
Definition at line 257 of file ED4_visualizeSAI.cxx.
References ED4_root::aw_root, AW_root::awar(), AWAR_SAI_ENABLE, clrDefinitionsChanged, ED4_ROOT, GB_CB_CHANGED, AW_awar::read_int(), and ED4_root::request_refresh_for_sequence_terminals().
Referenced by saiChanged_callback().
|
static |
Definition at line 266 of file ED4_visualizeSAI.cxx.
References AW_root::awar(), AWAR_SAI_CLR_TRANS_TABLE, AWAR_SAI_GLOBAL, AWAR_SAI_VISUALIZED, clrDefinitionsChanged, ED4_ROOT, GB_add_callback(), GB_CB_CHANGED, gb_main, GB_remove_callback(), GBT_find_SAI(), ED4_root::get_gb_main(), inCallback, NULp, AW_awar::read_string(), refresh_display_cb(), ED4_root::request_refresh_for_sequence_terminals(), sai_transtab_awar(), ta, and AW_awar::write_string().
Referenced by ED4_createVisualizeSAI_Awars().
|
static |
Definition at line 309 of file ED4_visualizeSAI.cxx.
References AW_root::awar(), AWAR_SAI_CLR_TRANS_TAB_NAMES, AW_selection_list::clear(), AW_selection_list::insert(), AW_selection_list::insert_default(), NULp, AW_awar::read_string(), and AW_selection_list::update().
Referenced by buildClrTransTabNamesList(), and ED4_createVisualizeSAI_window().
|
static |
Definition at line 323 of file ED4_visualizeSAI.cxx.
References AW_root::awar(), AWAR_SAI_NAME, AWAR_SAI_VISUALIZED, AW_awar::read_string(), and AW_awar::write_string().
Referenced by set_autoselect_cb().
|
static |
Definition at line 332 of file ED4_visualizeSAI.cxx.
References AW_awar::add_callback(), autoselect_cb(), AW_root::awar(), AWAR_SAI_AUTO_SELECT, AWAR_SAI_NAME, AW_awar::read_int(), and AW_awar::remove_callback().
Referenced by ED4_createVisualizeSAI_Awars().
|
static |
Definition at line 347 of file ED4_visualizeSAI.cxx.
References AW_ROOT_DEFAULT, AW_root::awar(), AWAR_SAI_CLR_TRANS_TAB_NAMES, AWAR_SAI_CLR_TRANS_TABLE, AW_root::awar_string(), colorTransTable_exists(), GBS_global_string(), getClrDefAwar(), AW_awar::read_char_pntr(), and AW_awar::write_string().
Referenced by addDefaultTransTable(), and createCopy_table_handler().
|
static |
Definition at line 364 of file ED4_visualizeSAI.cxx.
References addOrUpdateTransTable().
Referenced by ED4_createVisualizeSAI_Awars().
void ED4_createVisualizeSAI_Awars | ( | AW_root * | aw_root, |
AW_default | aw_def | ||
) |
Definition at line 368 of file ED4_visualizeSAI.cxx.
References AW_awar::add_callback(), addDefaultTransTable(), AW_root::awar(), AW_root::awar_int(), AWAR_SAI_ALL_SPECIES, AWAR_SAI_AUTO_SELECT, AWAR_SAI_CLR_TRANS_TAB_NAMES, AWAR_SAI_CLR_TRANS_TABLE, AWAR_SAI_ENABLE, AWAR_SAI_VISUALIZED, AW_root::awar_string(), colorDefChanged_callback(), colorDefTabNameChanged_callback(), ED4_ROOT, getAwarName(), inCallback, AW_awar::read_int(), saiChanged_callback(), set_autoselect_cb(), setVisualizeSAI_cb(), setVisualizeSAI_options_cb(), ED4_root::visualizeSAI, and ED4_root::visualizeSAI_allSpecies.
Referenced by ed4_create_all_awars().
|
static |
Definition at line 410 of file ED4_visualizeSAI.cxx.
References addOrUpdateTransTable(), AW_root::awar(), AWAR_SAI_CLR_TRANS_TABLE, colorTransTable_exists(), ED4_VIS_COPY, ED4_VIS_CREATE, error(), GBS_global_string(), GBS_string_2_key(), getClrDefAwar(), NULp, AW_awar::read_char_pntr(), and AW_root::SINGLETON.
Referenced by createCopy_ClrTransTab_cb().
|
static |
Definition at line 442 of file ED4_visualizeSAI.cxx.
References AW_root::awar(), AWAR_SAI_CLR_TRANS_TABLE, AWT_activate_prompt(), createCopy_table_handler(), ED4_VIS_COPY, ED4_VIS_CREATE, AW_window::get_root(), and AW_awar::read_char_pntr().
Referenced by ED4_createVisualizeSAI_window().
|
static |
Definition at line 454 of file ED4_visualizeSAI.cxx.
References aw_message(), AW_root::awar(), AWAR_SAI_CLR_TRANS_TAB_NAMES, AWAR_SAI_CLR_TRANS_TABLE, AW_root::awar_string(), GBS_strstruct::cat(), GBS_strstruct::get_data(), AW_window::get_root(), getClrDefAwar(), NULp, GBS_strstruct::put(), AW_awar::read_char_pntr(), AW_awar::read_string(), and AW_awar::write_string().
Referenced by ED4_createVisualizeSAI_window().
|
static |
Definition at line 480 of file ED4_visualizeSAI.cxx.
References AWAR_SAI_CLR_TRANS_TABLE, AW_window::create_selection_list(), AW_window::get_root(), and update_ClrTransTabNamesList_cb().
Referenced by ED4_createVisualizeSAI_window().
Definition at line 489 of file ED4_visualizeSAI.cxx.
References ARB_calloc(), AW_root::awar(), AWAR_SAI_CLR_COUNT, AWAR_SAI_VISUALIZED, clrDefinitionsChanged, e4_assert, ED4_G_CBACK_0, ED4_ROOT, GB_entry(), gb_main, GB_pop_transaction(), GB_push_transaction(), GB_read_as_string(), GB_read_char_pntr(), GBT_find_SAI(), ED4_root::get_alignment_name(), ED4_root::get_gb_main(), getAwarName(), NULp, AW_awar::read_string(), and start.
Referenced by ED4_host::get_SAI_background().
|
static |
Definition at line 585 of file ED4_visualizeSAI.cxx.
References AW_root::awar(), AWAR_SAI_CLR_COUNT, AW_window::get_root(), getAwarName(), AW_awar::read_string(), and AW_awar::write_string().
Referenced by create_editColorTranslationTable_window().
Definition at line 606 of file ED4_visualizeSAI.cxx.
References AW_POPDOWN(), AWAR_SAI_CLR_COUNT, ED4_popup_gc_window(), ED4_ROOT, ED4_root::gc_manager, getAwarName(), NULp, and reverseColorTranslationTable().
Referenced by ED4_createVisualizeSAI_window().
Definition at line 638 of file ED4_visualizeSAI.cxx.
References AW_awar::add_callback(), AW_HORIZONTAL, AW_POPDOWN(), AW_root::awar(), AWAR_SAI_ALL_SPECIES, AWAR_SAI_AUTO_SELECT, AWAR_SAI_CLR_TRANS_TAB_NAMES, AWAR_SAI_ENABLE, AWAR_SAI_VISUALIZED, awt_create_SAI_selection_button(), buildClrTransTabNamesList(), create_editColorTranslationTable_window(), createCopy_ClrTransTab_cb(), deleteColorTranslationTable(), ED4_ROOT, ED4_VIS_COPY, ED4_VIS_CREATE, ED4_root::get_gb_main(), makeHelpCallback(), NULp, AW_awar::touch(), and update_ClrTransTabNamesList_cb().
Referenced by ED4_root::generate_window().
|
static |
Definition at line 51 of file ED4_visualizeSAI.cxx.
Referenced by colorDefChanged_callback(), colorDefTabNameChanged_callback(), ED4_getSaiColorString(), refresh_display_cb(), and saiChanged_callback().
|
static |
Definition at line 52 of file ED4_visualizeSAI.cxx.
Referenced by colorDefChanged_callback(), colorDefTabNameChanged_callback(), ED4_createVisualizeSAI_Awars(), and saiChanged_callback().
|
static |
Definition at line 53 of file ED4_visualizeSAI.cxx.
Referenced by colorDefChanged_callback(), and colorDefTabNameChanged_callback().