source: tags/ms_r16q2/GENOM/GEN.hxx

Last change on this file was 14445, checked in by westram, 8 years ago
  • fix callback handling in genemap
    • revert first attempt to fix ([14436])
    • bind callbacks to correct gene_data if genemap is attached to an organism (was always bound to globally "selected organism")
    • test whether organism still exists before removing callbacks (if not → just forget callbacks)
    • fixes
      • crash at exit (as fixed by [14436])
      • various crashes occurring while attaching, deleting and unattaching organisms from views
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1// =============================================================== //
2//                                                                 //
3//   File      : GEN.hxx                                           //
4//   Purpose   :                                                   //
5//                                                                 //
6//   Coded by Ralf Westram (coder@reallysoft.de) in January 2001   //
7//   Institute of Microbiology (Technical University Munich)       //
8//   http://www.arb-home.de/                                       //
9//                                                                 //
10// =============================================================== //
11
12#ifndef GEN_HXX
13#define GEN_HXX
14
15#ifndef AW_BASE_HXX
16#include <aw_base.hxx>
17#endif
18#ifndef ARBDB_BASE_H
19#include <arbdb_base.h>
20#endif
21#ifndef ITEMS_H
22#include <items.h>
23#endif
24
25// --------------------------------------------------------------------------------
26// this header is visible ARB-wide (so here are only things needed somewhere else)
27// see GEN_local.hxx for local stuff
28// --------------------------------------------------------------------------------
29
30// --------------------------------------------------------------------------------
31// awars:
32
33#define AWAR_GENE_NAME  "tmp/gene/name"
34
35void GEN_create_awars(AW_root *aw_root, AW_default aw_def, GBDATA *gb_main);
36
37// --------------------------------------------------------------------------------
38// windows/menus:
39
40void GEN_popup_gene_infowindow(AW_root *aw_root, GBDATA *gb_main);
41AW_window *GEN_create_gene_query_window(AW_root *aw_root, GBDATA *gb_main);
42AW_window *GEN_create_first_map(AW_root *aw_root, GBDATA *gb_main);
43
44class AW_window_menu_modes;
45void GEN_create_genes_submenu(AW_window_menu_modes *awm, GBDATA *gb_main, bool for_ARB_NTREE);
46
47// --------------------------------------------------------------------------------
48// genes:
49
50GBDATA* GEN_get_current_organism(GBDATA *gb_main, AW_root *aw_root); // uses AWAR_ORGANISM_NAME
51GBDATA* GEN_get_current_gene_data(GBDATA *gb_main, AW_root *aw_root); // uses AWAR_ORGANISM_NAME
52
53// --------------------------------------------------------------------------------
54// toolkit:
55
56class AW_repeated_question;
57GB_ERROR GEN_testAndRemoveTranslations(GBDATA *gb_gene_data, void (*warn)(AW_CL cd, const char *msg), AW_CL cd, AW_repeated_question *ok_to_ignore_wrong_start_codon);
58
59ItemSelector& GEN_get_selector();
60
61#else
62#error GEN.hxx included twice
63#endif // GEN_HXX
Note: See TracBrowser for help on using the repository browser.