File: PrimerDesign.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 (104 lines) | stat: -rwxr-xr-x 3,802 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/** \file
	\brief Contains the TPrimerDesign module class
*/
#ifndef _PRIMER_DSEGIN_H_
#define _PRIMER_DSEGIN_H_

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

class TVector ;
class TPrimerDialog ;
class TPrimerDesign ;
class TPrimer ;

/**	\brief The virtual PCR/primer design module
*/
class TPrimerDesign : public ChildBase
    {
    public :
    TPrimerDesign(wxWindow *parent, 
                    wxString title,
                    TVector *_vec,
                    vector <TPrimer> pl ,
                    int _mut = -1 ) ; ///< Constructor
    ~TPrimerDesign () ; ///< Destructor
    
    void initme () ; ///< Initialize
    virtual wxString getName () ; ///< Returns the name of the vector
    virtual void AddPrimer ( wxString s , wxString pname = _T("") ) ; ///< Add a primer to the module
    virtual void showSequence () ; ///< Refresh the sequence map
    virtual void updateResultSequence () ; ///< Generates the resulting DNA and amino acid sequences from the template sequence and the primers
    virtual void updatePrimersFromSequence () ; ///< Updates the primers from the primer sequences in the map (after editing)
    virtual void updatePrimerStats () ; ///< Update primer detail display
    virtual void doShowPrimer ( int i ) ; ///< Mark and scroll to a primer in the sequence map

    virtual void OnCopy(wxCommandEvent& event);
    virtual void OnEditMode(wxCommandEvent& event);
    
    virtual void OnSelectPrimer ( wxListEvent& event);
    virtual void OnActivatePrimer ( wxListEvent& event);
    virtual void OnPrint ( wxCommandEvent &ev ) ;

    virtual void OnExportPrimer ( wxCommandEvent &ev ) ;
    virtual void OnImportPrimer ( wxCommandEvent &ev ) ;
    virtual void OnFind(wxCommandEvent& event);
    virtual void OnDummy(wxCommandEvent& WXUNUSED(event)){};

    virtual void OnEditPrimer ( wxCommandEvent &ev ) ;
    virtual void OnDeletePrimer ( wxCommandEvent &ev ) ;
    virtual void OnToggleFeatures ( wxCommandEvent &ev ) ;
    virtual void OnSpin(wxSpinEvent& event);
    virtual void OnSpinText(wxCommandEvent& event);
    
    virtual void OnAA_all(wxCommandEvent& event);
    virtual void OnAA_three(wxCommandEvent& event);
    virtual void OnAA_one(wxCommandEvent& event);
    virtual void OnAA_three_1(wxCommandEvent& event);
    virtual void OnAA_three_2(wxCommandEvent& event);
    virtual void OnAA_three_3(wxCommandEvent& event);
    virtual void OnAA_three_M1(wxCommandEvent& event);
    virtual void OnAA_three_M2(wxCommandEvent& event);
    virtual void OnAA_three_M3(wxCommandEvent& event);
    virtual void OnAA_known(wxCommandEvent& event);
    virtual void OnAA_setit(int mode);
    virtual void OnInsertRestrictionSiteLeft ( wxCommandEvent &ev ) ;
    virtual void OnInsertRestrictionSiteRight ( wxCommandEvent &ev ) ;
    virtual void OnTroubleshoot ( wxCommandEvent &ev ) ;
    
    virtual void OnSilmut ( wxCommandEvent& event) ;
    virtual void OnHorizontal ( wxCommandEvent& event ) ;
    virtual void OnPaste (wxCommandEvent& WXUNUSED(event)) ;
    virtual void OnFontsize(wxCommandEvent& event); ///< Fontsize event handler
    
    // Variables
    SequenceCanvas *sc ;
    int from ;
    vector <TPrimer> primer ;
    TVector *inverse_template_vector , *resulting_sequence_vector ;
    
    int aa_state , aa_disp ;
    int lastPrimerActivated ;
    int show_features ;
    int mut ;
    
    private :
    virtual void guessOptNuc () ;
    virtual void calculateResultSequence () ;
    
    wxSpinCtrl *spin ;
    wxTextCtrl *stat ;
    wxBoxSizer *v0 ;
    wxListCtrl *lc ;
    bool spinTextEnabeled ;
    bool updating ;
    wxChoice *fontsize ;
    
    DECLARE_EVENT_TABLE()
    } ;



#endif