40 for (
int i = 0; names[i] && !
error; ++i) {
41 const char *name = names[i];
50 if (!gb_dst_presets) {
69 if (strcmp(src_type, dst_type) != 0) {
70 error =
GBS_global_string(
"The alignments '%s' have different types (%s != %s)", name, src_type, dst_type);
96 AliAdmin *
const admin =
new AliAdmin(type, gb_main, awarname_select, awarbase);
107 AW_window_simple *aws =
new AW_window_simple;
109 aws->init(awr,
"MERGE_ALIGNMENTS",
"MERGE ALIGNMENTS");
114 aws->create_button(
"CLOSE",
"CLOSE",
"C");
118 aws->create_button(
"HELP",
"HELP",
"H");
122 aws->create_button(
"CHECK",
"Check");
127 aws->button_length(0);
128 aws->shadow_width(1);
131 aws->create_button(
"HELP_MERGE",
"#merge/icon.xpm");
GB_ERROR GB_begin_transaction(GBDATA *gbd)
GB_ERROR GB_copy_dropProtectMarksAndTempstate(GBDATA *dest, GBDATA *source)
AW_window * ALI_create_admin_window(AW_root *root, AliAdmin *admin)
void load_xfig(const char *file, bool resize=true)
GB_ERROR GB_end_transaction(GBDATA *gbd, GB_ERROR error)
GBDATA * GBT_get_alignment(GBDATA *gb_main, const char *aliname)
void GBT_get_alignment_names(ConstStrArray &names, GBDATA *gbd)
const char * GBS_global_string(const char *templat,...)
void AW_POPDOWN(AW_window *window)
char * GBT_get_alignment_type_string(GBDATA *gb_main, const char *aliname)
static void copy_and_check_alignments_ignoreResult()
GB_ERROR GBT_add_alignment_changekeys(GBDATA *gb_main, const char *ali)
GB_ERROR GB_await_error()
GBDATA * GB_create_container(GBDATA *father, const char *key)
WindowCallback makeHelpCallback(const char *helpfile)
static void error(const char *msg)
int MG_copy_and_check_alignments()
AW_DB_selection * awt_create_ALI_selection_list(GBDATA *gb_main, AW_window *aws, const char *varname, const char *ali_type_match)
#define AWAR_MERGE_TMP_DST
AW_window * MG_create_merge_alignment_window(AW_root *awr)
void aw_message(const char *msg)
#define AWAR_MERGE_TMP_SRC
void callback(const WindowCallback &cb)
AW_awar * awar_string(const char *var_name, const char *default_value="", AW_default default_file=AW_ROOT_DEFAULT)
GBDATA * GBT_get_presets(GBDATA *gb_main)
GBDATA * get_gb_main(DbSel db)
static void bindAdmin(AW_window *aws, const char *at_ali, const char *at_modify, const char *button_id, AdminType type)
void create_button(const char *macro_name, AW_label label, const char *mnemonic=NULp, const char *color=NULp)