source: tags/arb-6.0.4/AWTI/awti_import.hxx

Last change on this file was 10265, checked in by westram, 11 years ago
  • allocate ArbImporter dynamically (when import window is opened)
  • destroy ArbImporter in all possible callbacks
    • in all existing user callbacks
    • in CLOSE callback of import window
  • no longer return import-DB from AWTI_open_import_window
    • instead use access functions to peek at or take ownership of import-DB
  • after importing into a running DB, reset global database-pointers of merge-tool
  • remove DB from DB-browser if it still is owned by AWTI
    • AWT_browser_forget_db now accepts NULL ("forget nothing")
  • fixes:
    • assertion failures in GB_shell (caused by import-DB remaining unclosed in some execution paths)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1// =========================================================== //
2//                                                             //
3//   File      : awti_import.hxx                               //
4//   Purpose   :                                               //
5//                                                             //
6//   Institute of Microbiology (Technical University Munich)   //
7//   http://www.arb-home.de/                                   //
8//                                                             //
9// =========================================================== //
10
11#ifndef AWTI_IMPORT_HXX
12#define AWTI_IMPORT_HXX
13
14#ifndef AW_BASE_HXX
15#include <aw_base.hxx>
16#endif
17#ifndef CB_H
18#include <cb.h>
19#endif
20
21#define AWAR_READ_GENOM_DB "tmp/import/genom_db"
22
23enum AWTI_ImportType { IMP_GENOME_FLATFILE, IMP_PLAIN_SEQUENCE };
24
25void AWTI_import_set_ali_and_type(AW_root *awr, const char *ali_name, const char *ali_type, GBDATA *gbmain);
26
27void AWTI_open_import_window(AW_root *awr, const char *defname, bool do_exit, GBDATA *gb_main, const RootCallback& after_import_cb);
28
29GBDATA *AWTI_peek_imported_DB();
30void    AWTI_cleanup_importer();
31
32GBDATA *AWTI_take_imported_DB_and_cleanup_importer();
33
34#else
35#error awti_import.hxx included twice
36#endif // AWTI_IMPORT_HXX
Note: See TracBrowser for help on using the repository browser.