ARB
Classes | Enumerations | Functions
xfergui.h File Reference
#include <arb_strarray.h>
#include <aw_base.hxx>
Include dependency graph for xfergui.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AvailableFieldScanner
 

Enumerations

enum  FieldsToScan { SCAN_INPUT_FIELDS = 1, SCAN_OUTPUT_FIELDS = 2, SCAN_ALL_FIELDS = SCAN_INPUT_FIELDS | SCAN_OUTPUT_FIELDS }
 

Functions

void XFER_select_RuleSet (AW_window *aww, const char *awar_selected_fts, const AvailableFieldScanner *fieldScanner)
 
const charXFER_getFullFTS (const char *name)
 
void XFER_refresh_available_fields (AW_root *awr, const AvailableFieldScanner *fieldScanner, FieldsToScan whatToScan)
 

Enumeration Type Documentation

Enumerator
SCAN_INPUT_FIELDS 
SCAN_OUTPUT_FIELDS 
SCAN_ALL_FIELDS 

Definition at line 21 of file xfergui.h.

Function Documentation

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().

const char* XFER_getFullFTS ( const char name)

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().

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().