source: tags/ms_r18q1/GENOM/GEN_local.hxx

Last change on this file was 16508, checked in by westram, 7 years ago
  • reintegrates 'macros' into 'trunk'
    • introduce generic input prompt (related #179)
    • use it instead of locally generated windows:
      • species (rename + create)
      • alignment (rename, copy + create)
      • experiments (rename, copy + create)
      • genes (rename, copy + extract)
      • mergetool (rename SAI + configs)
      • SAIviz color translation (copy + create)
    • fixed bugs in mergetool ([16503],[16504])
  • adds: log:branches/macros@16484:16507
  • 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);
63int         GEN_find_windowNr_for(class GEN_graphic *gg);
64
65struct GEN_create_map_param {
66    GBDATA *gb_main;
67    int     window_nr;
68    GEN_create_map_param(GBDATA *gb_main_, int window_nr_) : gb_main(gb_main_) , window_nr(window_nr_) { }
69};
70
71GB_ERROR GEN_mark_organism_or_corresponding_organism(GBDATA *gb_species, int *client_data);
72
73void GEN_refresh_all_windows();
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.