21 #define AWAR_TEMPL_SYNCED_WITH_WINDOW "tmp/sync%i/with"
22 #define AWAR_TEMPL_AUTO_SYNCED "tmp/sync%i/auto"
24 #define MAX_AWARNAME_LENGTH (3+1+5+1+4)
28 inline const char *
awarname(
const char *awarname_template,
int idx) {
32 #if defined(ASSERTION_USED)
35 sprintf(buffer, awarname_template, idx);
65 int master_idx = awar_sync_with->
read_int();
66 bool autosync = awar_autosync->
read_int();
90 AW_window_simple *aws =
new AW_window_simple;
103 :
"Synchronize tree scrolling");
106 aws->load_xfig(
"syncscroll.fig");
110 aws->create_button(
"CLOSE",
"CLOSE",
"C");
114 aws->create_button(
"HELP",
"HELP",
"H");
116 RootCallback sync_changed_rcb = makeRootCallback(
sync_changed_cb, ntw_idx);
124 refill_sellist_cb(awr);
131 aws->create_autosize_button(
"SYNC_SCROLL",
"Sync scroll");
134 aws->label(
"Auto-sync?");
135 aws->create_toggle(awar_autosync->
awar_name);
#define implicated(hypothesis, conclusion)
void insert_default(const char *displayed, const AW_scalar &value)
const char * GBS_global_string(const char *templat,...)
void AW_POPDOWN(AW_window *window)
void add_timed_callback(int ms, const TimedCallback &tcb)
TREE_canvas * NT_get_canvas_by_index(int idx)
char buffer[MESSAGE_BUFFERSIZE]
#define DOWNCAST(totype, expr)
AW_awar * add_callback(const RootCallback &cb)
WindowCallback makeHelpCallback(const char *helpfile)
#define AWAR_NTREE_MAIN_WINDOW_COUNT
static void error(const char *msg)
void at_screen_update_call(screen_update_callback cb, AW_CL cd)
AW_awar * awar(const char *awar)
AW_awar * awar_int(const char *var_name, long default_value=0, AW_default default_file=AW_ROOT_DEFAULT)
void aw_message(const char *msg)
void NT_fill_canvas_selection_list(class AW_selection_list *sellst, TREE_canvas *to_skip)
GB_ERROR write_int(long aw_int)
void aw_message_if(GB_ERROR error)
char * GBS_global_string_copy(const char *templat,...)