| 1 | #ifndef GEN_HXX |
|---|
| 2 | #define GEN_HXX |
|---|
| 3 | |
|---|
| 4 | #ifndef ARBDB_H |
|---|
| 5 | #include <arbdb.h> |
|---|
| 6 | #endif |
|---|
| 7 | #ifndef AW_WINDOW_HXX |
|---|
| 8 | #include <aw_window.hxx> |
|---|
| 9 | #endif |
|---|
| 10 | #ifndef ADGENE_H |
|---|
| 11 | #include <adGene.h> |
|---|
| 12 | #endif |
|---|
| 13 | |
|---|
| 14 | class AWT_canvas; |
|---|
| 15 | |
|---|
| 16 | // -------------------------------------------------------------------------------- |
|---|
| 17 | // this header is visible ARB-wide (so here are only things needed somewhere else) |
|---|
| 18 | // see GEN_local.hxx for local stuff |
|---|
| 19 | // -------------------------------------------------------------------------------- |
|---|
| 20 | |
|---|
| 21 | // -------------------------------------------------------------------------------- |
|---|
| 22 | // awars: |
|---|
| 23 | |
|---|
| 24 | #define AWAR_GENE_NAME "tmp/gene/name" |
|---|
| 25 | |
|---|
| 26 | void GEN_create_awars(AW_root *aw_root, AW_default aw_def); |
|---|
| 27 | |
|---|
| 28 | // -------------------------------------------------------------------------------- |
|---|
| 29 | // windows/menus: |
|---|
| 30 | |
|---|
| 31 | AW_window *GEN_create_gene_window(AW_root *aw_root); |
|---|
| 32 | void GEN_popup_gene_window(AW_window *aww, AW_CL, AW_CL); // preferred over GEN_create_gene_window |
|---|
| 33 | AW_window *GEN_create_gene_query_window(AW_root *aw_root); |
|---|
| 34 | AW_window *GEN_map_first(AW_root *aw_root); |
|---|
| 35 | |
|---|
| 36 | void GEN_create_genes_submenu(AW_window_menu_modes *awm, bool for_ARB_NTREE); |
|---|
| 37 | |
|---|
| 38 | // -------------------------------------------------------------------------------- |
|---|
| 39 | // genes: |
|---|
| 40 | |
|---|
| 41 | GBDATA* GEN_get_current_organism(GBDATA *gb_main, AW_root *aw_root); // uses AWAR_ORGANISM_NAME |
|---|
| 42 | GBDATA* GEN_get_current_gene_data(GBDATA *gb_main, AW_root *aw_root); // uses AWAR_ORGANISM_NAME |
|---|
| 43 | GBDATA* GEN_get_current_gene(GBDATA *gb_main, AW_root *aw_root); // searches the current gene (using AWAR_ORGANISM_NAME and AWAR_GENE_NAME) |
|---|
| 44 | |
|---|
| 45 | // -------------------------------------------------------------------------------- |
|---|
| 46 | // toolkit: |
|---|
| 47 | |
|---|
| 48 | void GEN_select_gene(GBDATA* gb_main, AW_root *aw_root, const char *item_name); |
|---|
| 49 | |
|---|
| 50 | class AW_repeated_question; |
|---|
| 51 | GB_ERROR GEN_testAndRemoveTranslations(GBDATA *gb_gene_data, void (*warn )(AW_CL cd, const char *msg ), AW_CL cd, AW_repeated_question *ok_to_ignore_wrong_start_codon); |
|---|
| 52 | |
|---|
| 53 | struct ad_item_selector; |
|---|
| 54 | ad_item_selector *GEN_get_selector(); // return GEN_item_selector |
|---|
| 55 | |
|---|
| 56 | #endif // GEN_HXX |
|---|