|
Revision 5675, 1.6 KB
(checked in by westram, 3 years ago)
|
- removed automatic timestamps (the best they were good for, were vc-conflicts)
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | // ==================================================================== // |
|---|
| 2 | // // |
|---|
| 3 | // File : AWT_attributes.cxx // |
|---|
| 4 | // Purpose : get attribute colors for species/genes // |
|---|
| 5 | // // |
|---|
| 6 | // // |
|---|
| 7 | // Coded by Ralf Westram (coder@reallysoft.de) in July 2004 // |
|---|
| 8 | // Copyright Department of Microbiology (Technical University Munich) // |
|---|
| 9 | // // |
|---|
| 10 | // Visit our web site at: http://www.arb-home.de/ // |
|---|
| 11 | // // |
|---|
| 12 | // ==================================================================== // |
|---|
| 13 | |
|---|
| 14 | #include <stdio.h> |
|---|
| 15 | #include <arbdb.h> |
|---|
| 16 | |
|---|
| 17 | #include <aw_color_groups.hxx> |
|---|
| 18 | #include "awt_attributes.hxx" |
|---|
| 19 | |
|---|
| 20 | using namespace std; |
|---|
| 21 | |
|---|
| 22 | // faked attribute-interface (currently uses deprecated color groups) |
|---|
| 23 | |
|---|
| 24 | int AWT_gene_get_dominant_color(GBDATA *gb_gene) { |
|---|
| 25 | return AW_find_color_group(gb_gene, false); |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | int AWT_species_get_dominant_color(GBDATA *gb_species) { |
|---|
| 29 | return AW_find_color_group(gb_species, false); |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | bool AWT_gene_has_attribute(GBDATA *gb_gene, int attribute_nr) { |
|---|
| 33 | return AW_find_color_group(gb_gene, true) == attribute_nr; |
|---|
| 34 | } |
|---|
| 35 | bool AWT_species_has_attribute(GBDATA *gb_species, int attribute_nr) { |
|---|
| 36 | return AW_find_color_group(gb_species, true) == attribute_nr; |
|---|
| 37 | } |
|---|
| 38 | |
|---|