source: branches/nameserver/GENOM/GEN_local.hxx

Last change on this file was 17595, checked in by westram, 6 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1// =============================================================== //
2//                                                                 //
3//   File      : GEN_local.hxx                                     //
4//   Purpose   :                                                   //
5//                                                                 //
6//   Coded by Ralf Westram (coder@reallysoft.de) in 2001           //
7//   Institute of Microbiology (Technical University Munich)       //
8//   http://www.arb-home.de/                                       //
9//                                                                 //
10// =============================================================== //
11
12#ifndef GEN_LOCAL_HXX
13#define GEN_LOCAL_HXX
14
15#ifndef GEN_HXX
16#include "GEN.hxx"
17#endif
18
19#define gen_assert(bed) arb_assert(bed)
20
21// contains the path to the gene:  "organism_name;gene_name"
22// writing this awar has no effect
23#define AWAR_COMBINED_GENE_NAME "tmp/gene/combined_name"
24
25// --------------------------------------------------------------------------------
26// view-local awars for organism and gene
27
28#define AWAR_LOCAL_ORGANISM_NAME(window_nr) GEN_window_local_awar_name("tmp/genemap/organism", window_nr)
29#define AWAR_LOCAL_GENE_NAME(window_nr)     GEN_window_local_awar_name("tmp/genemap/gene", window_nr)
30
31#define AWAR_LOCAL_ORGANISM_LOCK(window_nr) GEN_window_local_awar_name("tmp/genemap/organism_lock", window_nr)
32#define AWAR_LOCAL_GENE_LOCK(window_nr)     GEN_window_local_awar_name("tmp/genemap/gene_lock", window_nr)
33
34// --------------------------------------------------------------------------------
35// display styles:
36#define AWAR_GENMAP_DISPLAY_TYPE(window_nr) GEN_window_local_awar_name("genemap/display/type", window_nr)
37
38// all display styles:
39#define AWAR_GENMAP_ARROW_SIZE   "genemap/display/arrow_size"
40#define AWAR_GENMAP_SHOW_HIDDEN  "genemap/display/show_hidden"
41#define AWAR_GENMAP_SHOW_ALL_NDS "genemap/display/show_all_nds"
42
43// display book-style:
44#define AWAR_GENMAP_BOOK_WIDTH_FACTOR   "genemap/display/book/width_factor"
45#define AWAR_GENMAP_BOOK_BASES_PER_LINE "genemap/display/book/base_per_line"
46#define AWAR_GENMAP_BOOK_LINE_HEIGHT    "genemap/display/book/line_height"
47#define AWAR_GENMAP_BOOK_LINE_SPACE     "genemap/display/book/line_space"
48
49// display vertical-style:
50#define AWAR_GENMAP_VERTICAL_FACTOR_X "genemap/display/vertical/factor_x"
51#define AWAR_GENMAP_VERTICAL_FACTOR_Y "genemap/display/vertical/factor_y"
52
53// display radial-style:
54#define AWAR_GENMAP_RADIAL_INSIDE  "genemap/display/radial/inside"
55#define AWAR_GENMAP_RADIAL_OUTSIDE "genemap/display/radial/outside"
56
57// other options:
58#define AWAR_GENMAP_AUTO_JUMP       "genemap/options/autojump"
59
60// --------------------------------------------------------------------------------
61
62const char *GEN_window_local_awar_name(const char *awar_name, int window_nr);
63
64struct GEN_create_map_param {
65    GBDATA *gb_main;
66    int     window_nr;
67    GEN_create_map_param(GBDATA *gb_main_, int window_nr_) : gb_main(gb_main_) , window_nr(window_nr_) { }
68};
69
70GB_ERROR GEN_mark_organism_or_corresponding_organism(GBDATA *gb_species, int *client_data);
71
72void GEN_refresh_all_windows();
73
74// --------------------------------------------------------------------------------
75
76#else
77#error GEN_local.hxx included twice
78#endif // GEN_LOCAL_HXX
Note: See TracBrowser for help on using the repository browser.