ARB
|
#include "xfergui.h"
#include <xferset.h>
#include <awt_prompt.hxx>
#include <aw_window.hxx>
#include <aw_root.hxx>
#include <aw_awar.hxx>
#include <aw_file.hxx>
#include <aw_msg.hxx>
#include <aw_select.hxx>
#include <arb_file.h>
#include <arb_str.h>
#include <StrUniquifier.h>
#include <FileWatch.h>
#include <set>
#include <string>
Go to the source code of this file.
Classes | |
struct | lt_field |
Typedefs | |
typedef set< string, lt_field > | StrSet |
typedef StrSet::iterator | StrSetIter |
Enumerations | |
enum | AvailCategory { ALL_AVAILABLE_FIELDS, FIELDS_BY_RULESET, UNREAD_BY_RULESET, UNWRITTEN_BY_RULESET, INPUT_FIELDS_BY_CLIENT, OUTPUT_FIELDS_BY_CLIENT } |
enum | FieldMoveDest { MV_UP, MV_DOWN, MV_OFF } |
enum | copyMoveMode { COPY_RULESET, MOVE_RULESET } |
Variables | |
static const AvailableFieldScanner * | currentFieldScanner = NULp |
static StrArray | knownFieldsClientInput |
static StrArray | knownFieldsClientOutput |
static StrArray | knownFieldsRulesetInput |
static StrArray | knownFieldsRulesetOutput |
static StrSet | knownFields |
static int | onlyLintRuleWithIdx = -1 |
static bool | warnAboutDuplicateTargets = true |
static bool | ignoreRuleDetailChange = false |
static bool | ignoreRulesetAwarChange = false |
#define AWARBASE_XFERSET_TMP "tmp/fts/" |
Definition at line 36 of file xfergui.cxx.
#define AWARBASE_XFERRULE_TMP AWARBASE_XFERSET_TMP "rule/" |
Definition at line 37 of file xfergui.cxx.
#define AWAR_XFERSET_SELECTED AWARBASE_XFERSET_TMP "focus" |
Definition at line 39 of file xfergui.cxx.
Referenced by awar_selected_FTS(), initXferAwars(), popup_rule_definition_window(), popup_ruleset_admin_window(), and XFER_select_RuleSet().
#define AWAR_XFERSET_COMMENT AWARBASE_XFERSET_TMP "comment" |
Definition at line 40 of file xfergui.cxx.
Referenced by initXferAwars(), popup_ruleset_admin_window(), ruleset_awar_changed_cb(), and selected_fts_changed_cb().
#define AWAR_XFERSET_UNDEFINED AWARBASE_XFERSET_TMP "undefined" |
Definition at line 41 of file xfergui.cxx.
Referenced by initXferAwars(), popup_rule_definition_window(), ruleset_awar_changed_cb(), and selected_fts_changed_cb().
#define AWAR_XFERSET_FTSBASE AWARBASE_XFERSET_TMP "file" |
Definition at line 44 of file xfergui.cxx.
Referenced by fts_filesel_changed_cb(), initXferAwars(), popup_ruleset_admin_window(), refresh_fts_selbox(), and selected_fts_changed_cb().
#define AWAR_XFERSET_FTSNAME AWAR_XFERSET_FTSBASE "/file_name" |
Definition at line 45 of file xfergui.cxx.
Referenced by initXferAwars().
#define AWAR_XFERSET_FTSFILTER AWAR_XFERSET_FTSBASE "/filter" |
Definition at line 46 of file xfergui.cxx.
#define AWAR_XFERSET_FTSDIR AWAR_XFERSET_FTSBASE "/directory" |
Definition at line 47 of file xfergui.cxx.
#define AWAR_XFERRULE_SELECTED AWARBASE_XFERRULE_TMP "focus" |
Definition at line 49 of file xfergui.cxx.
Referenced by getSelectedRuleIndex(), init_rule_definition_awars(), popup_rule_definition_window(), and selectRule().
#define AWAR_XFERRULE_TARGETFIELD AWARBASE_XFERRULE_TMP "rule" |
Definition at line 50 of file xfergui.cxx.
Referenced by add_field_cb(), build_rule_from_awars(), init_rule_definition_awars(), popup_rule_definition_window(), and selected_rule_changed_cb().
#define AWAR_XFERRULE_ACI AWARBASE_XFERRULE_TMP "aci" |
Definition at line 51 of file xfergui.cxx.
Referenced by build_rule_from_awars(), init_rule_definition_awars(), popup_rule_definition_window(), and selected_rule_changed_cb().
#define AWAR_XFERRULE_SEP AWARBASE_XFERRULE_TMP "sep" |
Definition at line 52 of file xfergui.cxx.
Referenced by build_rule_from_awars(), init_rule_definition_awars(), popup_rule_definition_window(), and selected_rule_changed_cb().
#define AWAR_XFERRULE_TYPE AWARBASE_XFERRULE_TMP "type" |
Definition at line 53 of file xfergui.cxx.
Referenced by build_rule_from_awars(), init_rule_definition_awars(), popup_rule_definition_window(), and selected_rule_changed_cb().
#define AWAR_XFERRULE_LOSS AWARBASE_XFERRULE_TMP "loss" |
Definition at line 54 of file xfergui.cxx.
Referenced by build_rule_from_awars(), init_rule_definition_awars(), popup_rule_definition_window(), and selected_rule_changed_cb().
#define AWAR_XFERRULE_INPUT_FIELDS AWARBASE_XFERRULE_TMP "input/fields" |
Definition at line 55 of file xfergui.cxx.
Referenced by add_field_cb(), build_rule_from_awars(), init_rule_definition_awars(), move_field_cb(), popup_rule_definition_window(), refresh_inputfield_selbox_cb(), and selected_rule_changed_cb().
#define AWAR_XFERRULE_INPUT_SELECTED AWARBASE_XFERRULE_TMP "input/focus" |
Definition at line 56 of file xfergui.cxx.
Referenced by init_rule_definition_awars(), and popup_rule_definition_window().
#define AWAR_XFERRULE_AVAIL_SELECTED AWARBASE_XFERRULE_TMP "avail" |
Definition at line 57 of file xfergui.cxx.
Referenced by availfield_selected_cb(), init_rule_definition_awars(), popup_rule_definition_window(), and refresh_availfield_selbox_cb().
#define AWAR_XFERRULE_AVAIL_CATEGORY AWARBASE_XFERRULE_TMP "acat" |
Definition at line 58 of file xfergui.cxx.
Referenced by init_rule_definition_awars(), mergeKnownFields(), and popup_rule_definition_window().
#define AWAR_XFERRULE_FIELD AWARBASE_XFERRULE_TMP "field" |
Definition at line 59 of file xfergui.cxx.
Referenced by add_field_cb(), availfield_selected_cb(), clear_field_cb(), init_rule_definition_awars(), mergeKnownFields(), popup_rule_definition_window(), and refresh_availfield_selbox_cb().
#define NO_XFERSET_SELECTED "" |
Definition at line 63 of file xfergui.cxx.
Referenced by copyMoveRuleset_cb(), deleteRuleset_cb(), fts_filesel_changed_cb(), and noRuleset_cb().
Definition at line 84 of file xfergui.cxx.
typedef StrSet::iterator StrSetIter |
Definition at line 85 of file xfergui.cxx.
enum AvailCategory |
Enumerator | |
---|---|
ALL_AVAILABLE_FIELDS | |
FIELDS_BY_RULESET | |
UNREAD_BY_RULESET | |
UNWRITTEN_BY_RULESET | |
INPUT_FIELDS_BY_CLIENT | |
OUTPUT_FIELDS_BY_CLIENT |
Definition at line 458 of file xfergui.cxx.
enum FieldMoveDest |
Enumerator | |
---|---|
MV_UP | |
MV_DOWN | |
MV_OFF |
Definition at line 757 of file xfergui.cxx.
enum copyMoveMode |
Enumerator | |
---|---|
COPY_RULESET | |
MOVE_RULESET |
Definition at line 1024 of file xfergui.cxx.
|
inline |
Definition at line 68 of file xfergui.cxx.
Referenced by is_info(), lt_field::operator()(), and refresh_availfield_selbox_cb().
|
inline |
Definition at line 69 of file xfergui.cxx.
References is_info().
converts name (as contained in awar passed to XFER_select_RuleSet) into full path.
Definition at line 96 of file xfergui.cxx.
References GB_concat_path(), GB_path_in_arbprop(), GBS_global_string(), and result.
Referenced by export_go_cb(), get_selected_FTS(), ArbImporter::import_data(), mg_xfer_via_fts(), and update_exportTest_result_cb().
|
inline |
Definition at line 106 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERSET_SELECTED, and AW_root::SINGLETON.
Referenced by createRuleset_cb(), get_selected_FTS(), popup_rule_definition_window(), ruleset_awar_changed_cb(), saveChangedRuleset(), selected_fts_file_changed(), and set_selected_FTS().
|
static |
Definition at line 109 of file xfergui.cxx.
References awar_selected_FTS(), AW_awar::read_char_pntr(), and XFER_getFullFTS().
Referenced by askCopyMoveRuleset_cb(), copyMoveRuleset_cb(), createRuleset_cb(), deleteRuleset_cb(), editRuleset_cb(), getSelectedRuleset(), lintRuleset(), lintRulesetOnce(), ruleset_awar_changed_cb(), saveChangedRuleset(), and selected_fts_changed_cb().
|
inline |
Definition at line 113 of file xfergui.cxx.
References awar_selected_FTS(), and AW_awar::write_string().
Referenced by copyMoveRuleset_cb(), deleteRuleset_cb(), fts_filesel_changed_cb(), and noRuleset_cb().
Definition at line 117 of file xfergui.cxx.
References GB_split_full_path(), and NULp.
Referenced by check_valid_target_fts(), and fts_filesel_changed_cb().
|
static |
Definition at line 123 of file xfergui.cxx.
References GB_is_readablefile(), get_selected_FTS(), ErrorOr< TYPE >::getError(), ErrorOr< TYPE >::getValue(), ErrorOr< TYPE >::hasError(), NULp, and ARB_ERROR::set_handled().
Referenced by add_rule_cb(), del_rule_cb(), getSelectedRule(), overwriteSelectedRule(), refresh_rule_selection_box_cb(), and rule_stack_cb().
|
inline |
returns index of selected Rule [0..N-1] or -1 if none selected.
Definition at line 144 of file xfergui.cxx.
References ARB_strBeginsWith(), AW_root::awar(), AWAR_XFERRULE_SELECTED, AW_awar::read_char_pntr(), AW_root::SINGLETON, and xf_assert.
Referenced by add_rule_cb(), del_rule_cb(), getSelectedRule(), overwriteSelectedRule(), and rule_stack_cb().
Definition at line 156 of file xfergui.cxx.
References GBS_global_string().
Referenced by refresh_rule_selection_box_cb(), and selectRule().
|
inline |
return error if 'idx' invalid
Definition at line 159 of file xfergui.cxx.
References NULp.
Referenced by del_rule_cb(), getSelectedRule(), overwriteSelectedRule(), and rule_stack_cb().
select rule in rule selection list
idx | rule number inside RuleSet. allowed range: [0..N-1]. if idx is outside range -> deselect rule. |
ruleCount | amount of defined rules (N). |
Definition at line 164 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERRULE_SELECTED, ruleSelId(), AW_root::SINGLETON, and AW_awar::write_string().
Referenced by del_rule_cb(), deselectRule(), and rule_stack_cb().
|
static |
Definition at line 174 of file xfergui.cxx.
References checkValidIndex(), getSelectedRuleIndex(), getSelectedRuleset(), SmartPtr< T, C >::isSet(), and NULp.
Referenced by rebuild_rule_from_awars_cb(), and selected_rule_changed_cb().
|
inline |
Definition at line 193 of file xfergui.cxx.
References AW_refresh_fileselection(), AWAR_XFERSET_FTSBASE, and AW_root::SINGLETON.
Referenced by copyMoveRuleset_cb(), createRuleset_cb(), deleteRuleset_cb(), noRuleset_cb(), ruleset_awar_changed_cb(), and saveChangedRuleset().
|
inline |
Definition at line 196 of file xfergui.cxx.
References awar_selected_FTS(), error(), get_selected_FTS(), NULp, refresh_fts_selbox(), and AW_awar::touch().
Referenced by add_rule_cb(), del_rule_cb(), overwriteSelectedRule(), and rule_stack_cb().
|
static |
Definition at line 214 of file xfergui.cxx.
References aw_message(), GBS_global_string(), get_selected_FTS(), SmartPtr< T, C >::isSet(), FieldTransfer::WriteRule::targetField(), warnAboutDuplicateTargets, and xf_assert.
Referenced by lintRulesetOnce().
|
static |
Definition at line 270 of file xfergui.cxx.
References get_selected_FTS(), SmartPtr< T, C >::isSet(), lintRuleset(), and xf_assert.
Referenced by refresh_rule_selection_box_cb().
|
static |
Definition at line 294 of file xfergui.cxx.
References aw_message_if(), checkValidIndex(), error(), getSelectedRuleIndex(), getSelectedRuleset(), SmartPtr< T, C >::isSet(), NULp, and saveChangedRuleset().
Referenced by rebuild_rule_from_awars_cb().
Definition at line 315 of file xfergui.cxx.
References GB_is_readablefile(), and NULp.
Referenced by askCopyMoveRuleset_cb(), copyMoveRuleset_cb(), deleteRuleset_cb(), and editRuleset_cb().
Definition at line 318 of file xfergui.cxx.
References error(), GB_is_readablefile(), GBS_global_string(), getNameOnly(), and NULp.
Referenced by copyMoveRuleset_cb(), and createRuleset_cb().
|
static |
Definition at line 337 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERRULE_ACI, AWAR_XFERRULE_INPUT_FIELDS, AWAR_XFERRULE_LOSS, AWAR_XFERRULE_SEP, AWAR_XFERRULE_TARGETFIELD, AWAR_XFERRULE_TYPE, GB_NONE, getSelectedRule(), ignoreRuleDetailChange, SmartPtr< T, C >::isSet(), AW_awar::write_int(), and AW_awar::write_string().
Referenced by popup_rule_definition_window(), and refresh_rule_selection_box_cb().
Definition at line 355 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERRULE_ACI, AWAR_XFERRULE_INPUT_FIELDS, AWAR_XFERRULE_LOSS, AWAR_XFERRULE_SEP, AWAR_XFERRULE_TARGETFIELD, AWAR_XFERRULE_TYPE, GB_NONE, AW_awar::read_char_pntr(), AW_awar::read_int(), and type.
Referenced by add_rule_cb(), and rebuild_rule_from_awars_cb().
|
static |
Definition at line 375 of file xfergui.cxx.
References build_rule_from_awars(), fputs(), getSelectedRule(), ignoreRuleDetailChange, SmartPtr< T, C >::isSet(), and overwriteSelectedRule().
Referenced by popup_rule_definition_window(), and refresh_inputfield_selbox_cb().
|
static |
Definition at line 405 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERRULE_AVAIL_SELECTED, AWAR_XFERRULE_FIELD, AW_awar::read_string(), and AW_awar::write_string().
Referenced by popup_rule_definition_window().
|
static |
Definition at line 411 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERRULE_AVAIL_SELECTED, AWAR_XFERRULE_FIELD, AW_selection_list::clear(), GBS_global_string(), info, AW_selection_list::insert(), AW_selection_list::insert_default(), is_info(), knownFields, AW_awar::read_char_pntr(), AW_selection_list::update(), and AW_awar::write_string().
Referenced by popup_rule_definition_window().
|
inline |
Definition at line 467 of file xfergui.cxx.
References knownFields.
Referenced by mergeKnownFields().
|
inline |
Definition at line 472 of file xfergui.cxx.
References knownFields.
Referenced by mergeKnownFields().
|
static |
Definition at line 480 of file xfergui.cxx.
References ALL_AVAILABLE_FIELDS, AW_root::awar(), AWAR_XFERRULE_AVAIL_CATEGORY, AWAR_XFERRULE_FIELD, cat(), FIELDS_BY_RULESET, GBS_global_string(), INPUT_FIELDS_BY_CLIENT, knownFields, knownFieldsClientInput, knownFieldsClientOutput, knownFieldsRulesetInput, knownFieldsRulesetOutput, mergeToKnownFields(), OUTPUT_FIELDS_BY_CLIENT, AW_awar::read_int(), removeFromKnownFields(), AW_awar::touch(), UNREAD_BY_RULESET, and UNWRITTEN_BY_RULESET.
Referenced by popup_rule_definition_window(), refresh_available_fields_from_ruleset(), and XFER_refresh_available_fields().
|
static |
Definition at line 520 of file xfergui.cxx.
References SmartPtr< T, C >::isSet(), knownFieldsRulesetInput, knownFieldsRulesetOutput, and mergeKnownFields().
Referenced by refresh_rule_selection_box_cb().
void XFER_refresh_available_fields | ( | AW_root * | awr, |
const AvailableFieldScanner * | fieldScanner, | ||
FieldsToScan | whatToScan | ||
) |
refreshes the available fields (defined by client) shown in fts gui, if 'fieldScanner' is the currently active scanner. Otherwise do nothing (because GUI "belongs" to different client).
Definition at line 531 of file xfergui.cxx.
References knownFieldsClientInput, knownFieldsClientOutput, mergeKnownFields(), SCAN_INPUT_FIELDS, SCAN_OUTPUT_FIELDS, and AvailableFieldScanner::scanFields().
Referenced by AWTI_open_import_window(), create_AWTC_export_window(), and XFER_select_RuleSet().
|
static |
Definition at line 549 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERRULE_INPUT_FIELDS, AW_selection_list::clear(), GBT_splitNdestroy_string(), AW_selection_list::insert(), AW_selection_list::insert_default(), StrUniquifier::make_unique_key(), AW_awar::read_string(), rebuild_rule_from_awars_cb(), SPLIT_DROPEMPTY, AW_selection_list::update(), and xf_assert.
Referenced by popup_rule_definition_window().
|
static |
Definition at line 576 of file xfergui.cxx.
References AW_selection_list::clear(), GBS_global_string(), getSelectedRuleset(), FieldTransfer::Rule::getShortDescription(), AW_selection_list::insert(), AW_selection_list::insert_default(), SmartPtr< T, C >::isSet(), lintRulesetOnce(), refresh_available_fields_from_ruleset(), ruleSelId(), selected_rule_changed_cb(), AW_selection_list::update(), and xf_assert.
Referenced by popup_rule_definition_window().
|
static |
Definition at line 599 of file xfergui.cxx.
References ALL_AVAILABLE_FIELDS, AW_ROOT_DEFAULT, AW_root::awar_int(), AW_root::awar_string(), AWAR_XFERRULE_ACI, AWAR_XFERRULE_AVAIL_CATEGORY, AWAR_XFERRULE_AVAIL_SELECTED, AWAR_XFERRULE_FIELD, AWAR_XFERRULE_INPUT_FIELDS, AWAR_XFERRULE_INPUT_SELECTED, AWAR_XFERRULE_LOSS, AWAR_XFERRULE_SELECTED, AWAR_XFERRULE_SEP, AWAR_XFERRULE_TARGETFIELD, AWAR_XFERRULE_TYPE, and GB_NONE.
Referenced by initXferAwars().
|
static |
Definition at line 614 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERRULE_FIELD, AW_window::get_root(), and AW_awar::write_string().
Referenced by add_rule_cb(), and popup_rule_definition_window().
|
static |
Definition at line 618 of file xfergui.cxx.
References aw_message_if(), build_rule_from_awars(), clear_field_cb(), deselectRule(), error(), AW_window::get_root(), getSelectedRuleIndex(), getSelectedRuleset(), SmartPtr< T, C >::isSet(), NULp, and saveChangedRuleset().
Referenced by popup_rule_definition_window().
|
static |
Definition at line 646 of file xfergui.cxx.
References aw_message_if(), checkValidIndex(), error(), getSelectedRuleIndex(), getSelectedRuleset(), SmartPtr< T, C >::isSet(), NULp, saveChangedRuleset(), and selectRule().
Referenced by popup_rule_definition_window().
|
static |
Definition at line 666 of file xfergui.cxx.
References aw_message_if(), checkValidIndex(), error(), getSelectedRuleIndex(), getSelectedRuleset(), SmartPtr< T, C >::isSet(), NULp, saveChangedRuleset(), selectRule(), warnAboutDuplicateTargets, and xf_assert.
Referenced by popup_rule_definition_window().
|
inline |
Definition at line 714 of file xfergui.cxx.
References GBT_join_strings(), and AW_awar::write_string().
Referenced by add_field_cb(), and move_field_cb().
|
static |
Definition at line 720 of file xfergui.cxx.
References aw_message(), AW_root::awar(), AWAR_XFERRULE_FIELD, AWAR_XFERRULE_INPUT_FIELDS, AWAR_XFERRULE_TARGETFIELD, GB_check_hkey(), GBT_split_string(), AW_selection_list::get_index_of_selected(), AW_window::get_root(), ConstStrArray::put_before(), AW_awar::read_char_pntr(), AW_selection_list::select_element_at(), updateChangedInputFields(), and AW_awar::write_string().
Referenced by popup_rule_definition_window().
|
static |
Definition at line 758 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERRULE_INPUT_FIELDS, GBT_split_string(), AW_selection_list::get_index_of_selected(), AW_window::get_root(), CharPtrArray::move(), MV_DOWN, MV_OFF, MV_UP, AW_awar::read_char_pntr(), CharPtrArray::remove(), AW_selection_list::select_element_at(), CharPtrArray::size(), and updateChangedInputFields().
Referenced by popup_rule_definition_window().
|
static |
Definition at line 801 of file xfergui.cxx.
References AW_window::activate(), AW_awar::add_callback(), add_field_cb(), add_rule_cb(), ALL_AVAILABLE_FIELDS, availfield_selected_cb(), AW_POPDOWN(), AW_root::awar(), awar_selected_FTS(), AWAR_XFERRULE_ACI, AWAR_XFERRULE_AVAIL_CATEGORY, AWAR_XFERRULE_AVAIL_SELECTED, AWAR_XFERRULE_FIELD, AWAR_XFERRULE_INPUT_FIELDS, AWAR_XFERRULE_INPUT_SELECTED, AWAR_XFERRULE_LOSS, AWAR_XFERRULE_SELECTED, AWAR_XFERRULE_SEP, AWAR_XFERRULE_TARGETFIELD, AWAR_XFERRULE_TYPE, AWAR_XFERSET_SELECTED, AWAR_XFERSET_UNDEFINED, clear_field_cb(), del_rule_cb(), FIELDS_BY_RULESET, GB_BITS, GB_FLOAT, GB_INT, GB_NONE, GB_STRING, INPUT_FIELDS_BY_CLIENT, makeHelpCallback(), mergeKnownFields(), move_field_cb(), MV_DOWN, MV_OFF, MV_UP, NULp, OUTPUT_FIELDS_BY_CLIENT, rebuild_rule_from_awars_cb(), refresh_availfield_selbox_cb(), refresh_inputfield_selbox_cb(), refresh_rule_selection_box_cb(), rule_stack_cb(), selected_rule_changed_cb(), AW_awar::touch(), UNREAD_BY_RULESET, and UNWRITTEN_BY_RULESET.
Referenced by editRuleset_cb().
|
static |
Definition at line 908 of file xfergui.cxx.
References AW_get_selected_fullname(), AWAR_XFERSET_FTSBASE, GB_is_directory(), getNameOnly(), NO_XFERSET_SELECTED, and set_selected_FTS().
Referenced by initXferAwars().
|
static |
Definition at line 929 of file xfergui.cxx.
References aw_message_if(), AW_set_selected_fullname(), AW_root::awar(), AWAR_XFERSET_COMMENT, AWAR_XFERSET_FTSBASE, AWAR_XFERSET_UNDEFINED, ARB_ERROR::deliver(), GB_is_readablefile(), get_selected_FTS(), FieldTransfer::RuleSet::getComment(), ErrorOr< TYPE >::getError(), ErrorOr< TYPE >::getValue(), ErrorOr< TYPE >::hasError(), ignoreRulesetAwarChange, FieldTransfer::RuleSet::shallTransferUndefFields(), AW_awar::write_int(), and AW_awar::write_string().
Referenced by initXferAwars().
Definition at line 957 of file xfergui.cxx.
References aw_message(), aw_message_if(), AW_root::awar(), awar_selected_FTS(), AWAR_XFERSET_COMMENT, AWAR_XFERSET_UNDEFINED, ARB_ERROR::deliver(), error(), GB_is_readablefile(), get_selected_FTS(), ErrorOr< TYPE >::getError(), ErrorOr< TYPE >::getValue(), ErrorOr< TYPE >::hasError(), ignoreRulesetAwarChange, AW_awar::read_char_pntr(), AW_awar::read_int(), refresh_fts_selbox(), AW_awar::touch(), and xf_assert.
Referenced by initXferAwars().
|
static |
Definition at line 1003 of file xfergui.cxx.
References aw_message_if(), check_valid_existing_fts(), error(), AW_window::get_root(), get_selected_FTS(), and popup_rule_definition_window().
Referenced by createRuleset_cb(), and popup_ruleset_admin_window().
|
static |
Definition at line 1009 of file xfergui.cxx.
References aw_message_if(), awar_selected_FTS(), check_valid_target_fts(), editRuleset_cb(), error(), get_selected_FTS(), refresh_fts_selbox(), FieldTransfer::RuleSet::saveTo(), and AW_awar::touch().
Referenced by popup_ruleset_admin_window().
|
static |
Definition at line 1025 of file xfergui.cxx.
References check_valid_existing_fts(), check_valid_target_fts(), COPY_RULESET, error(), GB_append_suffix(), GB_concat_path(), GB_safe_copy_file(), GB_safe_rename_file(), GB_split_full_path(), get_selected_FTS(), MOVE_RULESET, NO_XFERSET_SELECTED, NULp, refresh_fts_selbox(), and set_selected_FTS().
Referenced by askCopyMoveRuleset_cb().
|
static |
Definition at line 1062 of file xfergui.cxx.
References aw_message(), AWT_activate_prompt(), check_valid_existing_fts(), COPY_RULESET, copyMoveRuleset_cb(), error(), GB_split_full_path(), get_selected_FTS(), MOVE_RULESET, NULp, and title.
Referenced by popup_ruleset_admin_window().
|
static |
Definition at line 1091 of file xfergui.cxx.
References aw_message_if(), check_valid_existing_fts(), error(), GB_await_error(), GB_unlink(), get_selected_FTS(), NO_XFERSET_SELECTED, refresh_fts_selbox(), and set_selected_FTS().
Referenced by popup_ruleset_admin_window().
|
static |
Definition at line 1106 of file xfergui.cxx.
References NO_XFERSET_SELECTED, refresh_fts_selbox(), and set_selected_FTS().
Referenced by popup_ruleset_admin_window(), and selected_fts_file_changed().
|
static |
Definition at line 1113 of file xfergui.cxx.
References awar_selected_FTS(), CR_CREATED, CR_DELETED, CR_MODIFIED, noRuleset_cb(), and AW_awar::touch().
Referenced by initXferAwars().
|
static |
Definition at line 1127 of file xfergui.cxx.
References AW_awar::add_callback(), AW_create_fileselection_awars(), AW_ROOT_DEFAULT, AW_root::awar(), AW_root::awar_int(), AW_root::awar_string(), AWAR_XFERSET_COMMENT, AWAR_XFERSET_FTSBASE, AWAR_XFERSET_FTSNAME, AWAR_XFERSET_SELECTED, AWAR_XFERSET_UNDEFINED, fts_filesel_changed_cb(), GB_path_in_arbprop(), init_rule_definition_awars(), initialized, ruleset_awar_changed_cb(), selected_fts_changed_cb(), and selected_fts_file_changed().
Referenced by XFER_select_RuleSet().
|
static |
Definition at line 1150 of file xfergui.cxx.
References AW_window::activate(), askCopyMoveRuleset_cb(), AW_create_fileselection(), AW_POPDOWN(), AWAR_XFERSET_COMMENT, AWAR_XFERSET_FTSBASE, AWAR_XFERSET_SELECTED, COPY_RULESET, createRuleset_cb(), deleteRuleset_cb(), editRuleset_cb(), makeHelpCallback(), MOVE_RULESET, MULTI_DIRS, noRuleset_cb(), and NULp.
Referenced by XFER_select_RuleSet().
void XFER_select_RuleSet | ( | AW_window * | aww, |
const char * | awar_selected_fts, | ||
const AvailableFieldScanner * | fieldScanner | ||
) |
initializes ruleset GUI to choose/edit 'awar_selected_fts'. May be bound via multiple callbacks; will always edit the awar of the last triggered callback.
Definition at line 1204 of file xfergui.cxx.
References AW_root::awar(), AWAR_XFERSET_SELECTED, fieldScanner, AW_window::get_root(), initXferAwars(), AW_awar::map(), popup_ruleset_admin_window(), SCAN_ALL_FIELDS, and XFER_refresh_available_fields().
Referenced by AWTI_open_import_window(), create_AWTC_export_window(), and MG_create_merge_species_window().
|
static |
Definition at line 82 of file xfergui.cxx.
|
static |
Definition at line 87 of file xfergui.cxx.
Referenced by mergeKnownFields(), and XFER_refresh_available_fields().
|
static |
Definition at line 88 of file xfergui.cxx.
Referenced by mergeKnownFields(), and XFER_refresh_available_fields().
|
static |
Definition at line 89 of file xfergui.cxx.
Referenced by mergeKnownFields(), and refresh_available_fields_from_ruleset().
|
static |
Definition at line 90 of file xfergui.cxx.
Referenced by mergeKnownFields(), and refresh_available_fields_from_ruleset().
|
static |
Definition at line 91 of file xfergui.cxx.
Referenced by mergeKnownFields(), mergeToKnownFields(), refresh_availfield_selbox_cb(), and removeFromKnownFields().
|
static |
Definition at line 212 of file xfergui.cxx.
|
static |
Definition at line 213 of file xfergui.cxx.
Referenced by lintRuleset(), and rule_stack_cb().
|
static |
Definition at line 335 of file xfergui.cxx.
Referenced by rebuild_rule_from_awars_cb(), and selected_rule_changed_cb().
|
static |
Definition at line 927 of file xfergui.cxx.
Referenced by ruleset_awar_changed_cb(), and selected_fts_changed_cb().