source: branches/profile/EDIT4/ed4_extern.hxx

Last change on this file was 8623, checked in by westram, 8 years ago

merge from e4fix [8376] [8377] [8378] [8379] [8380] [8386] [8387] [8388] [8389]

  • do not save AWARs which have default values
    • motivation: edit4-props saved after [8362] did not load with older versions
    • pros:
      • if the user did not change the default, changing the default in code will propagate to the user
    • cons:
      • AWARs used by multiple applications will trigger in non-saving application, when the database containing the awar is saved
        • only happens once if AWAR was previously stored with default-value
        • the most obvious ones were those edit4-search-strings linked to ntree (primer, probe, gene). disarmed them by setting the default to NULL
  • always generate definitions of SAI color translation tables (since default no longer saved)
    • drawback: when user deletes a default color translation table, it will re-appear after restart
  • allow experts to save fast-aligner protection to properties
  • deliver errors exported by awar callbacks (when triggered by widget change)
  • sequence color mapping
    • translate stored old default ('=0') to new default ('') on awar creation
    • removed code talking to AWARs via ARBDB interface - just use AWARs straightforward
  • ignore request_refresh_for_sequence_terminals when there is no hierarchy yet (now triggered by seq colors)
  • lib/arb_default/edit4.arb
    • removed default values (where code defaulted to same value)
    • changed some defaults
      • aligner (explicit, but empty ref)
      • helix setting (stolen from WL)
  • lib/arb_default/ntree.arb
    • removed all values
      • equal to default value
      • obsolete entries (former awar names)
      • entries that are now stored in main DB
  • removed unused AWARS (AWTC_create_rename_awars)
  • default for AWAR_TREE now "" everywhere
  • removed unused AISC variable
  • renamed edit direction related variables/awars
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1// =============================================================== //
2//                                                                 //
3//   File      : ed4_extern.hxx                                    //
4//   Purpose   : external interface (e.g. for secedit)             //
5//                                                                 //
6//   Coded by Ralf Westram (coder@reallysoft.de) in August 2007    //
7//   Institute of Microbiology (Technical University Munich)       //
8//   http://www.arb-home.de/                                       //
9//                                                                 //
10// =============================================================== //
11
12#ifndef ED4_EXTERN_HXX
13#define ED4_EXTERN_HXX
14
15#ifndef AW_COLOR_GROUPS_HXX
16#include <aw_color_groups.hxx>
17#endif
18
19// define GCs
20// (used by plugins to sync colors)
21
22#define ED4_G_FIRST_FONT ED4_G_STANDARD // ED4_G_SEQUENCES
23#define ED4_G_LAST_FONT  ED4_G_HELIX
24
25enum ED4_gc {
26    ED4_G_STANDARD,
27
28    ED4_G_SEQUENCES,
29    ED4_G_HELIX,
30
31    ED4_G_COLOR_2,
32    ED4_G_COLOR_3,
33    ED4_G_COLOR_4,
34    ED4_G_COLOR_5,
35    ED4_G_COLOR_6,
36    ED4_G_COLOR_7,
37    ED4_G_COLOR_8,
38    ED4_G_COLOR_9,
39
40    ED4_G_CBACK_0,  // Ranges for column statistics
41    ED4_G_CBACK_1,
42    ED4_G_CBACK_2,
43    ED4_G_CBACK_3,
44    ED4_G_CBACK_4,
45    ED4_G_CBACK_5,
46    ED4_G_CBACK_6,
47    ED4_G_CBACK_7,
48    ED4_G_CBACK_8,
49    ED4_G_CBACK_9,
50
51    ED4_G_SBACK_0,  // Background for search
52    ED4_G_SBACK_1,
53    ED4_G_SBACK_2,
54    ED4_G_SBACK_3,
55    ED4_G_SBACK_4,
56    ED4_G_SBACK_5,
57    ED4_G_SBACK_6,
58    ED4_G_SBACK_7,
59    ED4_G_SBACK_8,
60    ED4_G_MBACK,    // Mismatches
61
62    ED4_G_CURSOR,               // Color of cursor
63    ED4_G_MARKED,               // Background for marked species
64    ED4_G_SELECTED,             // Background for selected species
65
66    ED4_G_FIRST_COLOR_GROUP,   // Background colors for colored species
67    ED4_G_LAST_COLOR_GROUP = ED4_G_FIRST_COLOR_GROUP+AW_COLOR_GROUPS-1,
68
69    ED4_G_DRAG = ED4_G_LAST_COLOR_GROUP+1               // must be last
70};
71
72
73#define ED4_AWAR_SEARCH_RESULT_CHANGED "tmp/search/result_changed" // triggered when search result changes
74#define AWAR_EDIT_RIGHTWARD            "tmp/edit4/edit_direction"
75
76#else
77#error ed4_extern.hxx included twice
78#endif // ED4_EXTERN_HXX
Note: See TracBrowser for help on using the repository browser.