ARB
|
#include "awti_edit.hxx"
#include "awti_exp_local.hxx"
#include "awti_imp_local.hxx"
#include <seqio.hxx>
#include <db_scanner.hxx>
#include <awt_prompt.hxx>
#include <aw_root.hxx>
#include <aw_edit.hxx>
#include <aw_msg.hxx>
#include <aw_awar_defs.hxx>
#include <aw_select.hxx>
#include <BufferedFileReader.h>
#include <FileWatch.h>
#include <arb_strbuf.h>
#include <arb_progress.h>
#include <arb_misc.h>
Go to the source code of this file.
Classes | |
class | FormatTester |
struct | ImportTestData |
Macros | |
#define | TESTER_AWAR_PREFIX "tmp/tester/" |
#define | AWAR_TESTER_LINK_EX2IMPORT TESTER_AWAR_PREFIX "link" |
#define | AWAR_TESTER_EXPORT_RESULT TESTER_AWAR_PREFIX "result" |
#define | AWAR_TESTER_IMPORT_FILENAME TESTER_AWAR_PREFIX "filename" |
#define | AWAR_TESTER_IMPORT_STATUS TESTER_AWAR_PREFIX "status" |
#define | AWAR_TESTER_IMPORT_SPECIES TESTER_AWAR_PREFIX "species" |
Typedefs | |
typedef SmartPtr< FormatTester > | FormatTesterPtr |
Enumerations | |
enum | FormatType { FT_IMPORT, FT_EXPORT } |
enum | FormatAction { EDIT, COPY, RENAME, DELETE } |
Variables | |
static const char * | action_name [] |
static bool | test_import_active = false |
static bool | test_export_active = false |
#define TESTER_AWAR_PREFIX "tmp/tester/" |
Definition at line 207 of file AWTI_edit.cxx.
#define AWAR_TESTER_LINK_EX2IMPORT TESTER_AWAR_PREFIX "link" |
Definition at line 208 of file AWTI_edit.cxx.
Referenced by AWTI_activate_export_test_window(), create_tester_awars(), disable_test_export(), exportImportLinkChanged_cb(), and update_exportTest_result_cb().
#define AWAR_TESTER_EXPORT_RESULT TESTER_AWAR_PREFIX "result" |
Definition at line 209 of file AWTI_edit.cxx.
Referenced by AWTI_activate_export_test_window(), create_tester_awars(), and update_exportTest_result_cb().
#define AWAR_TESTER_IMPORT_FILENAME TESTER_AWAR_PREFIX "filename" |
Definition at line 210 of file AWTI_edit.cxx.
Referenced by AWTI_activate_import_test_window(), create_tester_awars(), rerun_importTest_cb(), update_exportTest_result_cb(), and update_import_filename_cb().
#define AWAR_TESTER_IMPORT_STATUS TESTER_AWAR_PREFIX "status" |
Definition at line 211 of file AWTI_edit.cxx.
Referenced by AWTI_activate_import_test_window(), create_tester_awars(), and rerun_importTest_cb().
#define AWAR_TESTER_IMPORT_SPECIES TESTER_AWAR_PREFIX "species" |
Definition at line 212 of file AWTI_edit.cxx.
Referenced by AWTI_activate_import_test_window(), create_tester_awars(), get_selected_imported_species(), and rerun_importTest_cb().
typedef SmartPtr<FormatTester> FormatTesterPtr |
Definition at line 157 of file AWTI_edit.cxx.
enum FormatType |
Enumerator | |
---|---|
FT_IMPORT | |
FT_EXPORT |
Definition at line 34 of file AWTI_edit.cxx.
enum FormatAction |
Enumerator | |
---|---|
EDIT | |
COPY | |
RENAME | |
DELETE |
Definition at line 35 of file AWTI_edit.cxx.
|
static |
Definition at line 159 of file AWTI_edit.cxx.
References FormatTester::handle_action_cb().
Referenced by FormatTester::create_common_gui().
Definition at line 185 of file AWTI_edit.cxx.
References ARB_strdup(), GB_IO_error(), LineReader::getLine(), line, GBS_strstruct::ncat(), NULp, GBS_strstruct::put(), GBS_strstruct::release(), and result.
Referenced by update_exportTest_result_cb().
|
static |
Definition at line 217 of file AWTI_edit.cxx.
References test_import_active.
Referenced by AWTI_activate_import_test_window().
|
static |
Definition at line 220 of file AWTI_edit.cxx.
References AW_root::awar(), AWAR_TESTER_LINK_EX2IMPORT, AW_window::get_root(), test_export_active, and AW_awar::write_int().
Referenced by AWTI_activate_export_test_window().
|
static |
Definition at line 225 of file AWTI_edit.cxx.
References AW_root::awar_int(), AW_root::awar_string(), AWAR_TESTER_EXPORT_RESULT, AWAR_TESTER_IMPORT_FILENAME, AWAR_TESTER_IMPORT_SPECIES, AWAR_TESTER_IMPORT_STATUS, AWAR_TESTER_LINK_EX2IMPORT, and initialized.
Referenced by AWTI_activate_export_test_window(), and AWTI_activate_import_test_window().
|
static |
Definition at line 237 of file AWTI_edit.cxx.
References AW_root::awar(), AWAR_DB_NAME, AWAR_EXPORT_COMPRESS, AWAR_EXPORT_CUTSTOP, AWAR_EXPORT_FORMATNAME, AWAR_EXPORT_FTS, AWAR_SPECIES_NAME, AWAR_TESTER_EXPORT_RESULT, AWAR_TESTER_IMPORT_FILENAME, AWAR_TESTER_LINK_EX2IMPORT, awt_get_filter(), SEQIO::EBF_ONE, error(), SEQIO::export_by_format(), formname, GB_create_tempfile(), GB_unlink_or_warn(), GBS_global_string(), GBT_find_species(), get_file_content_for_viewer(), NULp, AW_awar::read_char_pntr(), AW_awar::read_int(), AW_awar::read_string(), ta, test_export_active, AW_awar::write_string(), and XFER_getFullFTS().
Referenced by AWTI_activate_export_test_window(), and exportImportLinkChanged_cb().
|
static |
Definition at line 294 of file AWTI_edit.cxx.
References AW_root::awar(), AWAR_IMPORT_FILENAME, AW_root::awar_no_error(), AWAR_TESTER_LINK_EX2IMPORT, AW_awar::read_int(), AW_awar::touch(), and update_exportTest_result_cb().
Referenced by AWTI_activate_export_test_window().
|
static |
Definition at line 379 of file AWTI_edit.cxx.
References awti_assert.
Referenced by rerun_importTest_cb().
|
static |
Definition at line 381 of file AWTI_edit.cxx.
References AW_root::awar(), AWAR_IMPORT_ALI, AWAR_TESTER_IMPORT_FILENAME, AWAR_TESTER_IMPORT_SPECIES, AWAR_TESTER_IMPORT_STATUS, ImportTestData::countSpeciesAndData(), error(), ImportTestData::forgetLastImport(), ImportTestData::gb_main_lastImport, GBS_global_string(), GBS_readable_size(), GBT_find_species(), GBT_first_species(), GBT_get_name(), ArbImporter::import_data(), importer, neverCalledDummy_cb(), AW_awar::read_char_pntr(), AW_awar::read_string(), ImportTestData::refill_species_list(), ImportTestData::setNewImport(), status, ta, ArbImporter::takeImportDB(), test_import_active, AW_awar::touch(), and AW_awar::write_string().
Referenced by AWTI_activate_import_test_window(), and import_file_changed_cb().
|
static |
Definition at line 438 of file AWTI_edit.cxx.
References ImportTestData::remap_scanner().
Referenced by AWTI_activate_import_test_window().
Definition at line 440 of file AWTI_edit.cxx.
References AW_root::awar(), AWAR_TESTER_IMPORT_SPECIES, GBT_find_species(), NULp, and AW_awar::read_string().
Referenced by get_importedSpecies_selector().
|
static |
Definition at line 449 of file AWTI_edit.cxx.
References get_selected_imported_species(), MutableItemSelector::get_selected_item, and SPECIES_get_selector().
Referenced by AWTI_activate_import_test_window().
|
static |
Definition at line 455 of file AWTI_edit.cxx.
References AW_root::awar(), AWAR_IMPORT_FILENAME, AWAR_TESTER_IMPORT_FILENAME, AW_awar::read_char_pntr(), and AW_awar::write_string().
Referenced by AWTI_activate_import_test_window().
|
static |
Definition at line 460 of file AWTI_edit.cxx.
References rerun_importTest_cb(), and AW_root::SINGLETON.
Referenced by AWTI_activate_import_test_window().
void AWTI_activate_import_test_window | ( | AW_window * | awp | ) |
Definition at line 464 of file AWTI_edit.cxx.
References AW_awar::add_callback(), AW_root::awar(), AWAR_IMPORT_ALI, AWAR_IMPORT_FILENAME, AWAR_IMPORT_FORMATNAME, AWAR_IMPORT_FTS, AWAR_TESTER_IMPORT_FILENAME, AWAR_TESTER_IMPORT_SPECIES, AWAR_TESTER_IMPORT_STATUS, DbScanner::create(), create_tester_awars(), DB_SCANNER, disable_test_import(), ImportTestData::field_scanner, FT_IMPORT, get_importedSpecies_selector(), AW_window::get_root(), import_file_changed_cb(), NULp, remap_scanner_cb(), rerun_importTest_cb(), ImportTestData::species_sellist, test_import_active, AW_awar::touch(), and update_import_filename_cb().
Referenced by AWTI_open_import_window().
void AWTI_activate_export_test_window | ( | AW_window * | awp, |
GBDATA * | gb_main, | ||
adfiltercbstruct * | acbs | ||
) |
Definition at line 510 of file AWTI_edit.cxx.
References AW_awar::add_callback(), AW_root::awar(), AWAR_EXPORT_COMPRESS, AWAR_EXPORT_CUTSTOP, AWAR_EXPORT_FORMATNAME, AWAR_EXPORT_FTS, AWAR_SPECIES_NAME, AWAR_TESTER_EXPORT_RESULT, AWAR_TESTER_LINK_EX2IMPORT, create_tester_awars(), adfiltercbstruct::def_filter, disable_test_export(), exportImportLinkChanged_cb(), FT_EXPORT, AW_window::get_root(), NULp, test_export_active, AW_awar::touch(), and update_exportTest_result_cb().
Referenced by create_AWTC_export_window().
|
static |
Definition at line 37 of file AWTI_edit.cxx.
|
static |
Definition at line 214 of file AWTI_edit.cxx.
Referenced by AWTI_activate_import_test_window(), disable_test_import(), and rerun_importTest_cb().
|
static |
Definition at line 215 of file AWTI_edit.cxx.
Referenced by AWTI_activate_export_test_window(), disable_test_export(), and update_exportTest_result_cb().