source: tags/initial/NTREE/NT_import.cxx

Last change on this file was 2, checked in by oldcode, 23 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 650 bytes
Line 
1#include <stdio.h>
2#include <stdlib.h>
3#include <arbdb.h>
4#include <arbdbt.h>
5#include <aw_root.hxx>
6#include <aw_window.hxx>
7#include <awtc_import.hxx>
8
9#include <mg_merge.hxx>
10#include "nt_import.hxx"
11#include "ad_spec.hxx"
12
13
14void nt_seq_load_cb(AW_root *awr, AW_CL, AW_CL){
15        gb_dest = gb_main;
16        AW_window *aww = ad_create_query_window(awr);
17        ad_unquery_all();
18        GB_ERROR error = MG_simple_merge(awr);
19        ad_query_update_list();
20        if (!error){
21            aww->show();
22        }
23}
24
25void NT_import_sequences(AW_window *aww,AW_CL,AW_CL){
26        if (gb_merge){
27                GB_close(gb_merge);
28        }
29        gb_merge = open_AWTC_import_window(aww->get_root(),"",0,(AW_RCB)nt_seq_load_cb,0,0);
30}
31
Note: See TracBrowser for help on using the repository browser.