25 #define AWAR_NAMESERVER_STATUS "tmp/nameserver/status"
29 const char *filename = field[0] ?
GBS_global_string(
"names_%s.dat", field) :
"names.dat";
37 GBS_global_string(
"This may DESTROY the name-consistency for ALL USERS of names.dat!\n"
38 "Names will have to be regenerated for all databases.\n"
40 "Are you REALLY sure you like to continue %s names.dat?", kindOfDestruction));
85 if (!error && show_advice) {
99 AW_window_simple *aws =
new AW_window_simple;
101 aws->init(root,
"NAME_SERVER_ADMIN",
"Nameserver admin");
103 aws->load_xfig(
"awtc/names_admin.fig");
107 aws->create_button(
"HELP",
"HELP",
"H");
111 aws->create_button(
"CLOSE",
"CLOSE",
"C");
113 aws->button_length(30);
119 aws->create_button(
"DELETE_OLD_NAMES_FILE",
"Delete old names file");
123 aws->create_button(
"EDIT_NAMES_FILE",
"Edit names file");
125 aws->at(
"remove_arb");
127 aws->create_button(
"REMOVE_SUPERFLUOUS_ENTRIES_IN_NAMES_FILE",
128 "Remove all entries with an\n'ARB*' accession number\nfrom names file");
132 aws->create_button(
"CREATE_TEMPLATE",
"Configure arb_tcp.dat");
139 aws->at(
"add_field");
143 aws->button_length(50);
#define AWAR_NAMESERVER_ADDID
static void addid_changed_cb(AW_root *awr, GBDATA *gb_main, bool show_advice)
void AW_edit(const char *path)
const char * GBS_global_string(const char *templat,...)
void AW_advice(const char *message, AW_Advice_Type type, const char *title, const char *corresponding_help)
Show a message box with an advice for the user.
bool continue_with_namesDat_destruction(const char *kindOfDestruction)
char * GBS_string_eval(const char *insource, const char *icommand)
void AW_POPDOWN(AW_window *window)
AW_awar * add_callback(const RootCallback &cb)
void AW_create_namesadmin_awars(AW_root *awr, GBDATA *gb_main)
const char * AW_get_nameserver_addid(GBDATA *gb_main)
WindowCallback makeHelpCallback(const char *helpfile)
void awt_edit_arbtcpdat_cb(AW_window *)
GB_ERROR GB_move_file(const char *oldpath, const char *newpath)
static void error(const char *msg)
#define AWAR_NAMESERVER_STATUS
AW_awar * awar(const char *awar)
static void awtc_remove_arb_acc(AW_window *, GBDATA *gb_main)
bool aw_ask_sure(const char *unique_id, const char *msg)
static void awtc_delete_names_file(AW_window *, GBDATA *gb_main)
void AW_popup_namesadmin_window(AW_window *parent_win, GBDATA *gb_main)
static char * namesFilename(GBDATA *gb_main)
GB_CSTR GB_concat_path_in_ARBLIB(const char *relative_path_left, const char *anypath_right)
void aw_message(const char *msg)
GB_ERROR write_string(const char *aw_string)
GB_ERROR AW_test_nameserver(GBDATA *gb_main)
AW_awar * awar_string(const char *var_name, const char *default_value="", AW_default default_file=AW_ROOT_DEFAULT)
char * GBS_global_string_copy(const char *templat,...)
static void awtc_edit_names_file(AW_window *, GBDATA *gb_main)
void AWT_system_cb(AW_window *, const char *command)