source: branches/profile/GENOM/GEN_local.hxx

Last change on this file was 8309, checked in by westram, 8 years ago
  • moved much code into static scope

(partly reverted by [8310])

  • 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// to extract genes to pseudo-species:
26#define AWAR_GENE_EXTRACT_ALI "tmp/gene/extract/ali"
27
28// --------------------------------------------------------------------------------
29// view-local awars for organism and gene
30
31#define AWAR_LOCAL_ORGANISM_NAME(window_nr) GEN_window_local_awar_name("tmp/genemap/organism", window_nr)
32#define AWAR_LOCAL_GENE_NAME(window_nr)     GEN_window_local_awar_name("tmp/genemap/gene", window_nr)
33
34#define AWAR_LOCAL_ORGANISM_LOCK(window_nr) GEN_window_local_awar_name("tmp/genemap/organism_lock", window_nr)
35#define AWAR_LOCAL_GENE_LOCK(window_nr)     GEN_window_local_awar_name("tmp/genemap/gene_lock", window_nr)
36
37// --------------------------------------------------------------------------------
38// display styles:
39#define AWAR_GENMAP_DISPLAY_TYPE(window_nr) GEN_window_local_awar_name("genemap/display/type", window_nr)
40
41// all display styles:
42#define AWAR_GENMAP_ARROW_SIZE   "genemap/display/arrow_size"
43#define AWAR_GENMAP_SHOW_HIDDEN  "genemap/display/show_hidden"
44#define AWAR_GENMAP_SHOW_ALL_NDS "genemap/display/show_all_nds"
45
46// display book-style:
47#define AWAR_GENMAP_BOOK_WIDTH_FACTOR   "genemap/display/book/width_factor"
48#define AWAR_GENMAP_BOOK_BASES_PER_LINE "genemap/display/book/base_per_line"
49#define AWAR_GENMAP_BOOK_LINE_HEIGHT    "genemap/display/book/line_height"
50#define AWAR_GENMAP_BOOK_LINE_SPACE     "genemap/display/book/line_space"
51
52// display vertical-style:
53#define AWAR_GENMAP_VERTICAL_FACTOR_X "genemap/display/vertical/factor_x"
54#define AWAR_GENMAP_VERTICAL_FACTOR_Y "genemap/display/vertical/factor_y"
55
56// display radial-style:
57#define AWAR_GENMAP_RADIAL_INSIDE  "genemap/display/radial/inside"
58#define AWAR_GENMAP_RADIAL_OUTSIDE "genemap/display/radial/outside"
59
60// other options:
61#define AWAR_GENMAP_AUTO_JUMP       "genemap/options/autojump"
62
63// --------------------------------------------------------------------------------
64
65const char *GEN_window_local_awar_name(const char *awar_name, int window_nr);
66
67struct GEN_create_map_param {
68    GBDATA *gb_main;
69    int     window_nr;
70    GEN_create_map_param(GBDATA *gb_main_, int window_nr_) : gb_main(gb_main_) , window_nr(window_nr_) { }
71};
72
73GB_ERROR GEN_mark_organism_or_corresponding_organism(GBDATA *gb_species, int *client_data);
74
75// --------------------------------------------------------------------------------
76
77#else
78#error GEN_local.hxx included twice
79#endif // GEN_LOCAL_HXX
Note: See TracBrowser for help on using the repository browser.