ARB
Macros | Enumerations | Functions
merge.hxx File Reference
#include <aw_base.hxx>
#include <arb_assert.h>
#include <arbdb_base.h>
#include "mg_merge.hxx"
Include dependency graph for merge.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define mg_assert(bed)   arb_assert(bed)
 
#define AWAR_MERGE_SAV   "merge/"
 
#define AWAR_MERGE_TMP   "tmp/" AWAR_MERGE_SAV
 
#define AWAR_MERGE_TMP_SRC   AWAR_MERGE_TMP "src/"
 
#define AWAR_MERGE_TMP_DST   AWAR_MERGE_TMP "dst/"
 
#define AWAR_DB_SRC   AWAR_MERGE_TMP_SRC "db"
 
#define AWAR_DB_DST   AWAR_MERGE_TMP_DST "db"
 
#define AWAR_REMAP_SPECIES_LIST   AWAR_MERGE_SAV "remap_species_list"
 
#define AWAR_REMAP_ENABLE   AWAR_MERGE_SAV "remap_enable"
 
#define IS_QUERIED_SPECIES(gb_species)   GB_user_flag(gb_species, GB_USERFLAG_QUERY)
 

Enumerations

enum  DbSel { SRC_DB = 1, DST_DB = 2 }
 

Functions

bool validDb (DbSel db)
 
const charawar_name_tmp (DbSel db, const char *name)
 
AW_windowMG_create_merge_alignment_window (AW_root *awr)
 
AW_windowMG_create_merge_names_window (AW_root *awr)
 
AW_windowMG_create_merge_species_window (AW_root *awr, bool dst_is_new)
 
AW_windowMG_create_preserves_selection_window (AW_root *awr)
 
AW_windowMG_create_merge_SAIs_window (AW_root *awr)
 
AW_windowMG_create_merge_trees_window (AW_root *awr)
 
AW_windowMG_create_merge_configs_window (AW_root *awr)
 
AW_windowcreate_mg_check_fields_window (AW_root *aw_root)
 
void MG_create_config_awar (AW_root *aw_root, AW_default aw_def)
 
void MG_create_trees_awar (AW_root *aw_root, AW_default aw_def)
 
void MG_create_extendeds_awars (AW_root *aw_root, AW_default aw_def)
 
void MG_create_species_awars (AW_root *aw_root, AW_default aw_def)
 
void MG_create_rename_awars (AW_root *aw_root, AW_default aw_def)
 
void MG_create_db_dependent_rename_awars (AW_root *aw_root, GBDATA *gb_src, GBDATA *gb_dst)
 
void MG_set_renamed (bool renamed, AW_root *aw_root, const char *reason)
 
GB_ERROR MG_expect_renamed ()
 
int MG_copy_and_check_alignments ()
 
void MG_create_gene_species_awars (AW_root *aw_root, AW_default aw_def)
 
AW_windowMG_gene_species_create_field_transfer_def_window (AW_root *aw_root)
 
GB_ERROR MG_export_fields (AW_root *aw_root, GBDATA *gb_src, GBDATA *gb_dst, GB_HASH *error_suppressor, GB_HASH *source_organism_hash)
 
long mg_count_queried (GBDATA *gb_main)
 
const charMG_left_AWAR_SPECIES_NAME ()
 
GBDATAget_gb_main (DbSel db)
 

Macro Definition Documentation

#define mg_assert (   bed)    arb_assert(bed)
#define AWAR_MERGE_SAV   "merge/"

Definition at line 26 of file merge.hxx.

#define AWAR_MERGE_TMP   "tmp/" AWAR_MERGE_SAV

Definition at line 27 of file merge.hxx.

#define AWAR_MERGE_TMP_SRC   AWAR_MERGE_TMP "src/"

Definition at line 29 of file merge.hxx.

Referenced by awar_name_tmp(), and bindAdmin().

#define AWAR_MERGE_TMP_DST   AWAR_MERGE_TMP "dst/"

Definition at line 30 of file merge.hxx.

Referenced by awar_name_tmp(), and bindAdmin().

#define AWAR_DB_SRC   AWAR_MERGE_TMP_SRC "db"
#define AWAR_DB_DST   AWAR_MERGE_TMP_DST "db"
#define AWAR_REMAP_SPECIES_LIST   AWAR_MERGE_SAV "remap_species_list"
#define AWAR_REMAP_ENABLE   AWAR_MERGE_SAV "remap_enable"
#define IS_QUERIED_SPECIES (   gb_species)    GB_user_flag(gb_species, GB_USERFLAG_QUERY)

Enumeration Type Documentation

enum DbSel
Enumerator
SRC_DB 
DST_DB 

Definition at line 35 of file merge.hxx.

Function Documentation

bool validDb ( DbSel  db)
inline

Definition at line 37 of file merge.hxx.

References DST_DB, and SRC_DB.

Referenced by awar_name_tmp(), bindAdmin(), and get_gb_main().

const char* awar_name_tmp ( DbSel  db,
const char name 
)
inline

Definition at line 39 of file merge.hxx.

References AWAR_MERGE_TMP_DST, AWAR_MERGE_TMP_SRC, buffer, mg_assert, SRC_DB, and validDb().

AW_window* MG_create_merge_alignment_window ( AW_root awr)
AW_window* MG_create_merge_names_window ( AW_root awr)
AW_window* MG_create_merge_species_window ( AW_root awr,
bool  dst_is_new 
)

Definition at line 1188 of file MG_species.cxx.

References AW_awar::add_callback(), AW_window::at(), aw_message(), AW_POPDOWN(), AW_root::awar(), AW_root::awar_int(), AWAR_REMAP_ENABLE, AWAR_REMAP_SPECIES_LIST, AWAR_SPECIES_DST, AWAR_SPECIES_SRC, AWAR_SPECIES_XFER_FTS, AWAR_SPECIES_XFER_SCOPE, AWAR_SPECIES_XFER_TYPE, AW_root::awar_string(), AWM_ALL, AWM_DISABLED, AW_window::button_length(), QUERY::query_spec::by_pos_fig, AW_window::callback(), QUERY::query_spec::config_pos_fig, QUERY::query_spec::count_pos_fig, DbScanner::create(), AW_window::create_autosize_button(), AW_window::create_button(), AW_window::create_menu(), create_mg_check_fields_window(), create_mg_merge_tagged_fields_window(), AW_window::create_option_menu(), QUERY::create_query_box(), AW_window::create_text_field(), AW_window::create_toggle(), DB_SCANNER, QUERY::query_spec::do_delete_pos_fig, QUERY::query_spec::do_mark_pos_fig, QUERY::query_spec::do_query_pos_fig, QUERY::query_spec::do_refresh_pos_fig, QUERY::query_spec::do_set_pos_fig, QUERY::query_spec::do_unmark_pos_fig, DST_DB, QUERY::query_spec::ere_pos_fig, error(), QUERY::query_spec::expect_hit_in_ref_list, QUERY::query_spec::gb_main, QUERY::query_spec::gb_ref, GB_USERFLAG_QUERY, QUERY::query_spec::get_queried_itemtype(), AW_window::get_root(), GLOBAL_gb_dst, GLOBAL_gb_src, AW_window_simple_menu::init(), AW_window::insert_menu_topic(), AW_window::insert_option(), QUERY::query_spec::key_pos_fig, AW_window::load_xfig(), makeHelpCallback(), MG_create_preserves_selection_window(), MG_expect_renamed(), MG_gene_species_create_field_transfer_def_window(), mg_initialize_species_selectors(), MG_map_species(), MG_transfer_species(), NULp, QUERY::query_spec::open_parser_pos_fig, QUERY::query_spec::qbox_pos_fig, QUERY::query_spec::query_pos_fig, QUERY::query_spec::result_pos_fig, QUERY::query_spec::select_bit, AW_window::sens_mask(), AW_window::sep______________(), ScopedTransporter::set_query_to_update(), AW_window::shadow_width(), QUERY::query_spec::species_name, SRC_DB, SXS_LISTED_SPECIES, SXS_SELECTED_SPECIES, SXT_SINGLE_FIELD, SXT_USING_FTS, SXT_USING_FTS_SKIP_ALI, SXT_WHOLE_SPECIES, QUERY::query_spec::tree_name, AW_window::update_option_menu(), QUERY::query_spec::use_menu, AW_awar::write_int(), and XFER_select_RuleSet().

Referenced by MERGE_create_main_window().

AW_window* MG_create_preserves_selection_window ( AW_root awr)
AW_window* MG_create_merge_SAIs_window ( AW_root awr)
AW_window* MG_create_merge_trees_window ( AW_root awr)
AW_window* MG_create_merge_configs_window ( AW_root awr)
AW_window* create_mg_check_fields_window ( AW_root aw_root)
void MG_create_config_awar ( AW_root aw_root,
AW_default  aw_def 
)

Definition at line 31 of file MG_configs.cxx.

References AWAR_CONFIG_NAME_DST, AWAR_CONFIG_NAME_SRC, and AW_root::awar_string().

Referenced by MERGE_create_all_awars().

void MG_create_trees_awar ( AW_root aw_root,
AW_default  aw_def 
)
void MG_create_extendeds_awars ( AW_root aw_root,
AW_default  aw_def 
)

Definition at line 24 of file MG_extendeds.cxx.

References AWAR_EX_NAME_DST, AWAR_EX_NAME_SRC, and AW_root::awar_string().

Referenced by MERGE_create_all_awars().

void MG_create_species_awars ( AW_root aw_root,
AW_default  aw_def 
)
void MG_create_rename_awars ( AW_root aw_root,
AW_default  aw_def 
)
void MG_create_db_dependent_rename_awars ( AW_root aw_root,
GBDATA gb_src,
GBDATA gb_dst 
)
void MG_set_renamed ( bool  renamed,
AW_root aw_root,
const char reason 
)
GB_ERROR MG_expect_renamed ( )
int MG_copy_and_check_alignments ( )
void MG_create_gene_species_awars ( AW_root aw_root,
AW_default  aw_def 
)
AW_window* MG_gene_species_create_field_transfer_def_window ( AW_root aw_root)
GB_ERROR MG_export_fields ( AW_root aw_root,
GBDATA gb_src,
GBDATA gb_dst,
GB_HASH error_suppressor,
GB_HASH source_organism_hash 
)
long mg_count_queried ( GBDATA gb_main)
const char* MG_left_AWAR_SPECIES_NAME ( )
GBDATA* get_gb_main ( DbSel  db)
inline