ARB
|
#include <SyncRoot.hxx>
#include <TreeRead.h>
#include <aw_window.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <aw_select.hxx>
#include <aw_awar.hxx>
#include <awt_sel_boxes.hxx>
#include <arb_global_defs.h>
Go to the source code of this file.
Macros | |
#define | TREE_SYNCROOT_AWAR_BASE "tree/syncroot/" |
#define | TREE_SYNCROOT_TEMP_BASE "tmp/" TREE_SYNCROOT_AWAR_BASE |
#define | AWAR_TREE_SYNCROOT_SELECTED TREE_SYNCROOT_TEMP_BASE "selected" |
Functions | |
static GB_ERROR | load_and_add_tree (GBDATA *gb_main, const char *treename, RootSynchronizer &addTo) |
static ARB_ERROR | adjustTreeRoot (ConstSizeAwareTreePtr newRootEdge, RootSynchronizer &rsync, size_t t, GBDATA *gb_main, const char *distInfo, int rt) |
static ARB_ERROR | adjustTreeRoot (ErrorOrSizeAwareTreePtr bestEdge, RootSynchronizer &rsync, size_t t, GBDATA *gb_main, const char *distInfo, int rt) |
static void | rootsync_subsetTrees_vs_selected (AW_window *aws, GBDATA *gb_main, AW_selection *tosync_trees_selection) |
static void | multiroot_sync_subsetTrees (AW_window *, GBDATA *gb_main, AW_selection *tosync_trees_selection) |
static void | create_syncroot_awars (AW_root *awr) |
AW_window * | NT_create_syncroot_window (AW_root *awr, GBDATA *gb_main) |
Variables | |
const int | MULTIROOT_SEARCH_DEPTH = 1 |
#define TREE_SYNCROOT_AWAR_BASE "tree/syncroot/" |
Definition at line 25 of file NT_syncroot.cxx.
#define TREE_SYNCROOT_TEMP_BASE "tmp/" TREE_SYNCROOT_AWAR_BASE |
Definition at line 26 of file NT_syncroot.cxx.
#define AWAR_TREE_SYNCROOT_SELECTED TREE_SYNCROOT_TEMP_BASE "selected" |
Definition at line 27 of file NT_syncroot.cxx.
Referenced by create_syncroot_awars(), NT_create_syncroot_window(), and rootsync_subsetTrees_vs_selected().
|
static |
Definition at line 29 of file NT_syncroot.cxx.
References RootSynchronizer::add(), DOWNCAST, error(), GB_await_error(), GBT_read_tree(), NULp, and ta.
Referenced by multiroot_sync_subsetTrees(), and rootsync_subsetTrees_vs_selected().
|
static |
save tree to DB (if 'bestEdge' not already is the root edge). logs into tree comment + prints info message to gui.
newRootEdge | son node of edge wanted as root edge. |
rsync | synchronizer used to find 'bestEdge'. |
t | index of tree in 'rsync' (tree has to contain 'bestEdge') |
gb_main | the database |
distInfo | information about distance. gets added to message and/or log entries. |
rt | index of reference tree (or -1 when multiroot optimization is performed) |
Definition at line 42 of file NT_syncroot.cxx.
References arb_assert, aw_message(), GB_transaction::close(), error(), GBS_global_string(), GBT_find_tree(), GBT_log_to_tree_remark(), GBT_overwrite_tree(), TreeContainer::get_tree_info(), TreeInfo::name(), ta, and RootSynchronizer::take_tree().
Referenced by adjustTreeRoot(), multiroot_sync_subsetTrees(), and rootsync_subsetTrees_vs_selected().
|
static |
Definition at line 96 of file NT_syncroot.cxx.
References adjustTreeRoot(), gb_main, ErrorOr< TYPE >::getError(), ErrorOr< TYPE >::getValue(), and ErrorOr< TYPE >::hasError().
|
static |
Definition at line 102 of file NT_syncroot.cxx.
References adjustTreeRoot(), aw_message(), aw_message_if(), AW_root::awar(), AWAR_TREE_SYNCROOT_SELECTED, error(), RootSynchronizer::find_best_root_candidate(), GBS_global_string(), AW_window::get_root(), TreeContainer::get_tree_count(), AW_selection::get_values(), arb_progress::inc_and_check_user_abort(), load_and_add_tree(), NO_TREE_SELECTED, AW_awar::read_char_pntr(), and arb_progress::subtitle().
Referenced by NT_create_syncroot_window().
|
static |
Definition at line 161 of file NT_syncroot.cxx.
References arb_progress::aborted(), adjustTreeRoot(), aw_message(), aw_message_if(), RootSynchronizer::deconstruct_all_trees(), error(), RootSynchronizer::find_good_roots_for_trees(), GBS_global_string(), RootSynchronizer::get_current_roots(), TreeContainer::get_tree_count(), AW_selection::get_values(), ErrorOr< TYPE >::getError(), ErrorOr< TYPE >::getValue(), ErrorOr< TYPE >::hasError(), and load_and_add_tree().
Referenced by NT_create_syncroot_window().
|
static |
Definition at line 216 of file NT_syncroot.cxx.
References AW_ROOT_DEFAULT, AW_root::awar_string(), AWAR_TREE_SYNCROOT_SELECTED, and NO_TREE_SELECTED.
Referenced by NT_create_syncroot_window().
Definition at line 220 of file NT_syncroot.cxx.
References AW_POPDOWN(), AWAR_TREE_SYNCROOT_SELECTED, awt_create_subset_selection_list(), awt_create_TREE_selection_list(), create_syncroot_awars(), AW_selection::get_sellist(), makeHelpCallback(), multiroot_sync_subsetTrees(), NULp, and rootsync_subsetTrees_vs_selected().
Referenced by popup_new_main_window().
const int MULTIROOT_SEARCH_DEPTH = 1 |
Definition at line 159 of file NT_syncroot.cxx.