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 callbacks
- in CLOSE callback of import window
- no longer return import- from AWTI_open_import_window
- instead use access functions to peek at or take ownership of import-
- after importing into a running , reset global database-pointers of merge-tool
- remove from -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- 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 | |
---|
23 | enum AWTI_ImportType { IMP_GENOME_FLATFILE, IMP_PLAIN_SEQUENCE }; |
---|
24 | |
---|
25 | void AWTI_import_set_ali_and_type(AW_root *awr, const char *ali_name, const char *ali_type, GBDATA *gbmain); |
---|
26 | |
---|
27 | void AWTI_open_import_window(AW_root *awr, const char *defname, bool do_exit, GBDATA *gb_main, const RootCallback& after_import_cb); |
---|
28 | |
---|
29 | GBDATA *AWTI_peek_imported_DB(); |
---|
30 | void AWTI_cleanup_importer(); |
---|
31 | |
---|
32 | GBDATA *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.