source: branches/profile/EDIT4/ed4_ProteinViewer.hxx

Last change on this file was 8607, checked in by westram, 7 years ago

merge from e4fix [8135] [8136] [8137] [8138] [8139] [8140] [8141] [8142] [8143] [8144] [8222]
(this revives the reverted patches [8129] [8130] [8131] [8132]; see [8133])

  • fixes
    • some free/delete mismatches
    • wrong definition of ORF objects (Level was no bit value)
    • amino consensus (failed for columns only containing 'C')
  • rename
    • AA_sequence_term → orf_term
    • ED4_sequence_terminal_basic → ED4_abstract_sequence_terminal
  • cleaned up hierarchy dumps
  • tweaked is_terminal()/to_terminal()
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 KB
Line 
1// =======================================================================================
2//
3//    File       : ed4_ProteinViewer.hxx
4//    Purpose    : Protein viewer
5//    Author     : Yadhu Kumar (yadhu@arb-home.de)
6//    web site   : http://www.arb-home.de/
7//
8//        Copyright Department of Microbiology (Technical University Munich)
9//
10// =======================================================================================
11
12#ifndef ED4_PROTEINVIEWER_HXX
13#define ED4_PROTEINVIEWER_HXX
14
15#ifndef ARBDB_BASE_H
16#include <arbdb_base.h>
17#endif
18#ifndef AW_BASE_HXX
19#include <aw_base.hxx>
20#endif
21
22
23// Define Awars
24#define AWAR_PROTVIEW                        "protView/"
25#define AWAR_PV_DISPLAY_ALL                  AWAR_PROTVIEW "display_all"
26#define AWAR_PROTVIEW_FORWARD_STRAND_1       AWAR_PROTVIEW "forward_strand_1"
27#define AWAR_PROTVIEW_FORWARD_STRAND_2       AWAR_PROTVIEW "forward_strand_2"
28#define AWAR_PROTVIEW_FORWARD_STRAND_3       AWAR_PROTVIEW "forward_strand_3"
29#define AWAR_PROTVIEW_COMPLEMENTARY_STRAND_1 AWAR_PROTVIEW "complementary_strand_1"
30#define AWAR_PROTVIEW_COMPLEMENTARY_STRAND_2 AWAR_PROTVIEW "complementary_strand_2"
31#define AWAR_PROTVIEW_COMPLEMENTARY_STRAND_3 AWAR_PROTVIEW "complementary_strand_3"
32#define AWAR_PROTVIEW_DEFINED_FIELDS         AWAR_PROTVIEW "defined_fields"
33#define AWAR_PROTVIEW_DISPLAY_OPTIONS        AWAR_PROTVIEW "display_options"
34
35// Awars for different display configurations
36#define AWAR_PV_SELECTED         AWAR_PROTVIEW "selected"
37#define AWAR_PV_SELECTED_DB      AWAR_PROTVIEW "selected_db"
38#define AWAR_PV_SELECTED_FS_1    AWAR_PROTVIEW "selected_fs_1"
39#define AWAR_PV_SELECTED_FS_2    AWAR_PROTVIEW "selected_fs_2"
40#define AWAR_PV_SELECTED_FS_3    AWAR_PROTVIEW "selected_fs_3"
41#define AWAR_PV_SELECTED_CS_1    AWAR_PROTVIEW "selected_cs_1"
42#define AWAR_PV_SELECTED_CS_2    AWAR_PROTVIEW "selected_cs_2"
43#define AWAR_PV_SELECTED_CS_3    AWAR_PROTVIEW "selected_cs_3"
44
45#define AWAR_PV_MARKED         AWAR_PROTVIEW "marked"
46#define AWAR_PV_MARKED_DB      AWAR_PROTVIEW "marked_db"
47#define AWAR_PV_MARKED_FS_1    AWAR_PROTVIEW "marked_fs_1"
48#define AWAR_PV_MARKED_FS_2    AWAR_PROTVIEW "marked_fs_2"
49#define AWAR_PV_MARKED_FS_3    AWAR_PROTVIEW "marked_fs_3"
50#define AWAR_PV_MARKED_CS_1    AWAR_PROTVIEW "marked_cs_1"
51#define AWAR_PV_MARKED_CS_2    AWAR_PROTVIEW "marked_cs_2"
52#define AWAR_PV_MARKED_CS_3    AWAR_PROTVIEW "marked_cs_3"
53
54#define AWAR_PV_CURSOR         AWAR_PROTVIEW "cursor"
55#define AWAR_PV_CURSOR_DB      AWAR_PROTVIEW "cursor_db"
56#define AWAR_PV_CURSOR_FS_1    AWAR_PROTVIEW "cursor_fs_1"
57#define AWAR_PV_CURSOR_FS_2    AWAR_PROTVIEW "cursor_fs_2"
58#define AWAR_PV_CURSOR_FS_3    AWAR_PROTVIEW "cursor_fs_3"
59#define AWAR_PV_CURSOR_CS_1    AWAR_PROTVIEW "cursor_cs_1"
60#define AWAR_PV_CURSOR_CS_2    AWAR_PROTVIEW "cursor_cs_2"
61#define AWAR_PV_CURSOR_CS_3    AWAR_PROTVIEW "cursor_cs_3"
62
63
64// Create Awars For Protein Viewer
65void  PV_CreateAwars(AW_root *root, AW_default aw_def);
66
67// Create All Terminals
68void PV_CallBackFunction(AW_root *root);
69
70// Create ProteinViewer window
71AW_window *ED4_CreateProteinViewer_window(AW_root *aw_root);
72
73// callback function to update sequence change in EDITOR
74void PV_SequenceUpdate_CB(GB_CB_TYPE gbtype);
75
76// refresh all orf_terminal's
77void PV_RefreshWindow(AW_root *root);
78
79// Creates new orf_terminal's for new species added to the editor ** called from ED4_cursor.cxx **
80void PV_AddCorrespondingOrfTerminals(class ED4_species_name_terminal *spNameTerm);
81
82// Creates new orf_terminal's when newly marked species is loaded
83void PV_AddOrfTerminalsToLoadedSpecies();
84
85// flags to use in display options
86enum {
87    PV_AA_CODE = 0,
88    PV_AA_NAME,
89    PV_AA_BOX
90};
91
92#endif
Note: See TracBrowser for help on using the repository browser.