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 | #ifndef AW_WINDOW_HXX |
---|
19 | #include <aw_window.hxx> |
---|
20 | #endif |
---|
21 | |
---|
22 | |
---|
23 | // define GCs |
---|
24 | // (used by secedit to sync colors) |
---|
25 | |
---|
26 | #define ED4_G_FIRST_FONT ED4_G_STANDARD // ED4_G_SEQUENCES |
---|
27 | #define ED4_G_LAST_FONT ED4_G_HELIX |
---|
28 | |
---|
29 | typedef enum |
---|
30 | { |
---|
31 | ED4_G_STANDARD, |
---|
32 | |
---|
33 | ED4_G_SEQUENCES, |
---|
34 | ED4_G_HELIX, |
---|
35 | |
---|
36 | ED4_G_COLOR_2, |
---|
37 | ED4_G_COLOR_3, |
---|
38 | ED4_G_COLOR_4, |
---|
39 | ED4_G_COLOR_5, |
---|
40 | ED4_G_COLOR_6, |
---|
41 | ED4_G_COLOR_7, |
---|
42 | ED4_G_COLOR_8, |
---|
43 | ED4_G_COLOR_9, |
---|
44 | |
---|
45 | ED4_G_CBACK_0, // Ranges for column statitics |
---|
46 | ED4_G_CBACK_1, |
---|
47 | ED4_G_CBACK_2, |
---|
48 | ED4_G_CBACK_3, |
---|
49 | ED4_G_CBACK_4, |
---|
50 | ED4_G_CBACK_5, |
---|
51 | ED4_G_CBACK_6, |
---|
52 | ED4_G_CBACK_7, |
---|
53 | ED4_G_CBACK_8, |
---|
54 | ED4_G_CBACK_9, |
---|
55 | |
---|
56 | ED4_G_SBACK_0, // Background for search |
---|
57 | ED4_G_SBACK_1, |
---|
58 | ED4_G_SBACK_2, |
---|
59 | ED4_G_SBACK_3, |
---|
60 | ED4_G_SBACK_4, |
---|
61 | ED4_G_SBACK_5, |
---|
62 | ED4_G_SBACK_6, |
---|
63 | ED4_G_SBACK_7, |
---|
64 | ED4_G_SBACK_8, |
---|
65 | ED4_G_MBACK, // Mismatches |
---|
66 | |
---|
67 | ED4_G_CURSOR, // Color of cursor |
---|
68 | ED4_G_MARKED, // Background for marked species |
---|
69 | ED4_G_SELECTED, // Background for selected species |
---|
70 | |
---|
71 | ED4_G_FIRST_COLOR_GROUP, // Background colors for colored species |
---|
72 | ED4_G_LAST_COLOR_GROUP = ED4_G_FIRST_COLOR_GROUP+AW_COLOR_GROUPS-1, |
---|
73 | |
---|
74 | ED4_G_DRAG = ED4_G_LAST_COLOR_GROUP+1 // must be last |
---|
75 | } ED4_gc; |
---|
76 | |
---|
77 | // ------------------------------ |
---|
78 | // get background colors |
---|
79 | // ------------------------------ |
---|
80 | |
---|
81 | // search background : |
---|
82 | |
---|
83 | #define ED4_AWAR_SEARCH_RESULT_CHANGED "tmp/search/result_changed" // triggered when search result changes |
---|
84 | #define AWAR_EDIT_DIRECTION "tmp/edit4/edit_direction" |
---|
85 | |
---|
86 | class ED4_sequence_terminal; |
---|
87 | |
---|
88 | ED4_sequence_terminal *ED4_find_seq_terminal(const char *species_name); |
---|
89 | const char *ED4_buildColorString(const ED4_sequence_terminal *seq_term, int start, int end); // search results |
---|
90 | |
---|
91 | // visualized SAIs |
---|
92 | |
---|
93 | bool ED4_SAIs_visualized(); |
---|
94 | const char *ED4_getSaiColorString(AW_root *aw_root, int start, int end); |
---|
95 | |
---|
96 | int ED4_get_base_position(const ED4_sequence_terminal *seq_term, int seq_position); |
---|
97 | |
---|
98 | // ------------------------ |
---|
99 | // event injection |
---|
100 | // ------------------------ |
---|
101 | |
---|
102 | void ED4_remote_event(AW_event *faked_event); // used to forward keystrokes from SECEDIT |
---|
103 | |
---|
104 | #else |
---|
105 | #error ed4_extern.hxx included twice |
---|
106 | #endif // ED4_EXTERN_HXX |
---|