File: AminoAcids.h

package info (click to toggle)
gentle 1.9+cvs20100605+dfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 12,224 kB
  • ctags: 6,214
  • sloc: cpp: 41,569; ansic: 3,978; sh: 1,420; makefile: 243
file content (84 lines) | stat: -rwxr-xr-x 4,158 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/** \file
	\brief Contains the TAminoAcids module class
*/
#ifndef _AMINO_ACIDS_H_
#define _AMINO_ACIDS_H_

#include "main.h"
#include "ChildBase.h"
#include <wx/splitter.h>

class TVector ;
class TURLtext ;
class TTestSuite ;

/**	\brief The amino acid sequence display module
*/
class TAminoAcids : public ChildBase
    {
    public :
    TAminoAcids(wxWindow *parent, const wxString& title) ; ///< Constructor
    virtual ~TAminoAcids () ; ///< Destructor
    
    virtual void initme () ; ///< Initialization
    virtual wxString getName () ; ///< Returns the name of the TVector structure
    virtual void showSequence () ; ///< Update the sequence display
    virtual void showStat () ; ///< Show the sequence statistics box
    
    virtual void OnMarkAll(wxCommandEvent& event); ///< "Mark all" event handler
    virtual void OnFileSave(wxCommandEvent& WXUNUSED(event) ) ; ///< "Save sequence" event handler
    virtual void OnFind(wxCommandEvent& event); ///< Find event handler
    virtual void OnCut(wxCommandEvent& event); ///< "Cut" event handler
    virtual void OnCopy(wxCommandEvent& event); ///< "Copy" event handler
    virtual void OnPaste(wxCommandEvent& event); ///< "Paste" event handler
    virtual void OnEditMode(wxCommandEvent& event); ///< "Toggle edit mode" event handler
    virtual void OnEditName(wxCommandEvent& event); ///< "Edit name" event handler
    virtual void OnPrint(wxCommandEvent& event); ///< Print event handler
    virtual void OnAsNewFeature(wxCommandEvent& event); ///< "Selection as new feature" event handler
    virtual void OnBlastAA(wxCommandEvent& event); ///< "Blast sequence" event handler
    virtual void OnPhotometer(wxCommandEvent& event); ///< "Start photometer calculator" event handler
    virtual void invokeVectorEditor ( wxString what = _T("") , int num = 0 , bool forceUpdate = false ) ; ///< "Edit sequence dialog" event handler
    virtual void OnHorizontal ( wxCommandEvent& event ) ; ///< "Toggle horizontal/vertical" event handler
    virtual void OnListBox ( wxCommandEvent& event ) ; ///< "List box choice" event handler
    virtual void OnIP ( wxCommandEvent& event ) ; ///< "Inline plot dropdown box" event handler
    virtual void OnBacktranslate ( wxCommandEvent& event ) ; ///< "Backtranslate to DNA" event handler
    virtual void OnIPC ( wxCommandEvent& event ) ; ///< "IPC prediction" event handler
    virtual void OnSpeak(wxCommandEvent& WXUNUSED(event)); ///< Speak sequence event handler
    virtual void OnProteolysis(wxCommandEvent& WXUNUSED(event)); ///< Proteolysis event handler
    virtual void OnFontsize(wxCommandEvent& event); ///< Fontsize event handler
    virtual void OnDummy(wxCommandEvent& WXUNUSED(event)){}; ///< Dummy event handler
    
    virtual void Undo(wxCommandEvent& event); ///< "Undo" event handler
    virtual void Redo(wxCommandEvent& event); ///< "Redo" event handler (unused)
    virtual void updateUndoMenu () ; ///< Updates the message for the undo function
    virtual void handleListBox ( wxString t ) ; ///< Choses a new entry from the listbox
    virtual bool HasUndoData () ;
        
    // Variables
    SequenceCanvas *sc , *sc2 ;
    wxTextCtrl *stat ; ///< Pointer to the sequence statistics mini-display
    TURLtext *desc ; ///< Pointer to the sequence description mini-display
    wxSplitterWindow *hs , *vs ;
    int from ; ///< Cursor position (sometimes...)
    int miniDisplayOptions ; ///< Options for the mini-display
    
    wxWindow *curDisplay ;
    PlasmidCanvas *pc ; ///< Plasmid canvas, used in "scheme" mini-display
    wxBoxSizer *v0 ;

    protected :
    virtual void updateToolbar () ; ///< Updates the toolbar to the current module

    private :
    friend class TTestSuite ;
    wxListBox *lb ; ///< Pointer to the listbox with different "mini-displays"
    wxBoxSizer *h1 , *v1 ;
    wxChoice *inlinePlot ; ///< Inline plot dropdown box (in toolbar)
    wxString lastLBsel ; ///< The last selected "mini-display", as the string from the listbox
    wxChoice *fontsize ;

    DECLARE_EVENT_TABLE()
    } ;
    
#endif