ARB
|
#include "ScrollSynchronizer.h"
#include "NT_sync_scroll.h"
#include <TreeDisplay.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <aw_awar.hxx>
#include <aw_select.hxx>
Go to the source code of this file.
Macros | |
#define | AWAR_TEMPL_SYNCED_WITH_WINDOW "tmp/sync%i/with" |
#define | AWAR_TEMPL_AUTO_SYNCED "tmp/sync%i/auto" |
#define | MAX_AWARNAME_LENGTH (3+1+5+1+4) |
Functions | |
const char * | awarname (const char *awarname_template, int idx) |
static void | refill_syncWithList_cb (AW_root *, AW_selection_list *sellst, TREE_canvas *ntw) |
static unsigned | auto_refresh_cb (AW_root *) |
static void | canvas_updated_cb (AWT_canvas *ntw, AW_CL) |
static void | sync_changed_cb (AW_root *awr, int slave_idx) |
static void | explicit_scroll_sync_cb (AW_window *, int tgt_idx) |
AW_window * | NT_create_syncScroll_window (AW_root *awr, TREE_canvas *ntw) |
Variables | |
static ScrollSynchronizer | synchronizer |
#define AWAR_TEMPL_SYNCED_WITH_WINDOW "tmp/sync%i/with" |
Definition at line 21 of file NT_sync_scroll.cxx.
Referenced by NT_create_syncScroll_window(), and sync_changed_cb().
#define AWAR_TEMPL_AUTO_SYNCED "tmp/sync%i/auto" |
Definition at line 22 of file NT_sync_scroll.cxx.
Referenced by NT_create_syncScroll_window(), and sync_changed_cb().
#define MAX_AWARNAME_LENGTH (3+1+5+1+4) |
Definition at line 24 of file NT_sync_scroll.cxx.
Referenced by awarname().
Definition at line 28 of file NT_sync_scroll.cxx.
References buffer, MAX_AWARNAME_LENGTH, MAX_NT_WINDOWS, and nt_assert.
Referenced by NT_create_syncScroll_window(), and sync_changed_cb().
|
static |
Definition at line 41 of file NT_sync_scroll.cxx.
References AW_selection_list::clear(), AW_selection_list::insert_default(), NO_SCROLL_SYNC, NT_fill_canvas_selection_list(), and AW_selection_list::update().
Referenced by NT_create_syncScroll_window().
|
static |
Definition at line 48 of file NT_sync_scroll.cxx.
References ScrollSynchronizer::auto_update().
Referenced by canvas_updated_cb().
|
static |
Definition at line 53 of file NT_sync_scroll.cxx.
References AW_root::add_timed_callback(), ScrollSynchronizer::announce_update(), auto_refresh_cb(), AWT_canvas::awr, DOWNCAST, and TREE_canvas::get_index().
Referenced by sync_changed_cb().
Definition at line 61 of file NT_sync_scroll.cxx.
References TREE_canvas::at_screen_update_call(), aw_message(), AW_root::awar(), AWAR_TEMPL_AUTO_SYNCED, AWAR_TEMPL_SYNCED_WITH_WINDOW, awarname(), canvas_updated_cb(), ScrollSynchronizer::define_dependency(), error(), GBS_global_string(), implicated, nt_assert, NT_get_canvas_by_index(), AW_awar::read_int(), ScrollSynchronizer::update_implicit(), valid_canvas_index(), and AW_awar::write_int().
Referenced by NT_create_syncScroll_window().
Definition at line 85 of file NT_sync_scroll.cxx.
References aw_message_if(), and ScrollSynchronizer::update_explicit().
Referenced by NT_create_syncScroll_window().
AW_window* NT_create_syncScroll_window | ( | AW_root * | awr, |
TREE_canvas * | ntw | ||
) |
Definition at line 89 of file NT_sync_scroll.cxx.
References AW_awar::add_callback(), AW_POPDOWN(), AW_ROOT_DEFAULT, AW_root::awar(), AW_root::awar_int(), AW_awar::awar_name, AWAR_NTREE_MAIN_WINDOW_COUNT, AWAR_TEMPL_AUTO_SYNCED, AWAR_TEMPL_SYNCED_WITH_WINDOW, awarname(), explicit_scroll_sync_cb(), GBS_global_string(), GBS_global_string_copy(), TREE_canvas::get_index(), makeHelpCallback(), NO_SCROLL_SYNC, nt_assert, refill_syncWithList_cb(), and sync_changed_cb().
Referenced by popup_new_main_window().
|
static |
Definition at line 26 of file NT_sync_scroll.cxx.