20 #define AWAR_EX_NAME_SRC AWAR_MERGE_TMP_SRC "extended_name"
21 #define AWAR_EX_NAME_DST AWAR_MERGE_TMP_DST "extended_name"
22 #define AWAR_EX_NAME(db) awar_name_tmp(db, "extended_name")
43 else if (!gb_sai) error =
"Please select a SAI";
55 AWT_activate_prompt(
"Rename SAI",
"Enter the new name of the SAI:", source,
"Rename", handler);
66 else error =
"Please select a SAI first";
83 if (!gb_src) error =
"Please select the SAI you want to transfer";
150 for (
int s = 0;
s <= 1; ++
s) {
164 AW_window_simple *aws =
new AW_window_simple;
168 aws->init(awr,
"MERGE_SAI",
"MERGE SAI");
169 aws->load_xfig(
"merge/extended.fig");
173 aws->create_button(
"CLOSE",
"CLOSE",
"C");
177 aws->create_button(
"HELP",
"HELP",
"H");
189 aws->button_length(20);
193 aws->create_button(
"DELETE_SAI_DB1",
"Delete SAI");
197 aws->create_button(
"DELETE_SAI_DB2",
"Delete SAI");
201 aws->create_button(
"RENAME_SAI_DB1",
"Rename SAI");
205 aws->create_button(
"RENAME_SAI_DB2",
"Rename SAI");
209 aws->create_button(
"TRANSFER_SAI",
"Transfer SAI");
211 aws->button_length(0);
212 aws->shadow_width(1);
215 aws->create_button(
"HELP_MERGE",
"#merge/icon.xpm");
GB_ERROR GB_begin_transaction(GBDATA *gbd)
GB_ERROR GB_copy_dropProtectMarksAndTempstate(GBDATA *dest, GBDATA *source)
static GB_ERROR extended_rename_handler(const char *dest, DbSel db)
AW_DB_selection * awt_create_SAI_selection_list(GBDATA *gb_main, AW_window *aws, const char *varname, const SaiSelectionlistFilterCallback &fcb)
static GBDATA * mg_get_first_sai_data1(GBDATA *, AW_root *, QUERY_RANGE)
GB_ERROR GB_end_transaction(GBDATA *gbd, GB_ERROR error)
void GB_end_transaction_show_error(GBDATA *gbd, GB_ERROR error, void(*error_handler)(GB_ERROR))
const char * GBS_global_string(const char *templat,...)
void AW_POPDOWN(AW_window *window)
static GBDATA * mg_get_selected_sai1(GBDATA *, AW_root *aw_root)
static GBDATA * mg_get_selected_sai2(GBDATA *, AW_root *aw_root)
GB_ERROR GB_delete(GBDATA *&source)
static MutableItemSelector MG_SAI_selector[2]
GBDATA * GBT_find_SAI(GBDATA *gb_main, const char *name)
const char * read_char_pntr() const
GB_ERROR GB_await_error()
static AW_root * SINGLETON
GBDATA * GB_create_container(GBDATA *father, const char *key)
WindowCallback makeHelpCallback(const char *helpfile)
AW_window * MG_create_merge_SAIs_window(AW_root *awr)
GBDATA *(* get_selected_item)(GBDATA *gb_main, AW_root *aw_root)
GBDATA *(* get_first_item_container)(GBDATA *, AW_root *, QUERY_RANGE)
static void MG_extended_delete_cb(AW_window *aww, DbSel db)
static void error(const char *msg)
ItemSelector & SAI_get_selector()
static void map_extended(AW_root *aw_root, DbScanner *scanner, DbSel db)
static DbScanner * create(GBDATA *gb_main, const char *scanner_id, AW_window *aws, const char *box_pos_fig, const char *edit_pos_fig, const char *edit_enable_pos_fig, DB_SCANNERMODE scannermode, const char *mark_pos_fig, ItemSelector &selector)
char * read_string() const
AW_awar * awar(const char *awar)
void(* update_item_awars)(GBDATA *gb_main, AW_root *aw_root, const char *item_name)
static void mg_select_sai2(GBDATA *, AW_root *aw_root, const char *item_name)
GB_ERROR GBT_write_string(GBDATA *gb_container, const char *fieldpath, const char *content)
void Map(GBDATA *gb_new_item, const char *key_path)
static void mg_initialize_SAI_selectors()
static void mg_select_sai1(GBDATA *, AW_root *aw_root, const char *item_name)
void aw_message(const char *msg)
void MG_create_extendeds_awars(AW_root *aw_root, AW_default aw_def)
static void MG_transfer_extended(AW_window *aww)
GB_ERROR write_string(const char *aw_string)
GBDATA * GBT_find_SAI_rel_SAI_data(GBDATA *gb_sai_data, const char *name)
GB_transaction ta(gb_var)
AW_awar * awar_string(const char *var_name, const char *default_value="", AW_default default_file=AW_ROOT_DEFAULT)
GBDATA * GBT_get_SAI_data(GBDATA *gb_main)
static void extended_rename_cb(AW_window *aww, DbSel db)
GBDATA * get_gb_main(DbSel db)
static GBDATA * mg_get_first_sai_data2(GBDATA *, AW_root *, QUERY_RANGE)
void AWT_activate_prompt(const char *title, const char *prompt, const char *defaultResult, const char *button, const ResultHandler &handle_result, const char *helpfile, const char *srt)
GB_write_int const char s