File: TLigationDialog.h

package info (click to toggle)
gentle 1.9+cvs20100605+dfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: squeeze
  • size: 12,264 kB
  • ctags: 5,235
  • sloc: cpp: 41,571; ansic: 3,978; sh: 1,420; makefile: 291
file content (54 lines) | stat: -rwxr-xr-x 1,688 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
/** \file
	\brief Contains the TLigationDialog class
*/
#ifndef _TLIGATIONDIALOG_H_
#define _TLIGATIONDIALOG_H_

#include "main.h"
#include <vector>
#include <wx/checklst.h>

using namespace std ;

class TVector ;
class MyFrame ;
class TStorage ;

/**	\brief The ligation dialog class
*/
class TLigationDialog : public wxDialog
    {
    public :
    TLigationDialog(wxWindow *parent, const wxString& title ) ; ///< Constructor
    ~TLigationDialog () ; ///< Destructor
    
    virtual void init () ; ///< Initialize
    virtual void generateTargets () ; ///< Generate the target list
    virtual void curseTargets ( vector <bool> &vc , vector <bool> &used , wxArrayInt &vi ) ; ///< Recurse through targets
    virtual bool doMatch ( int l , int r , bool invertSecond = false ) ; ///< Do these match?
    virtual wxString getVIName ( wxArrayInt &vi ) ; ///< Generate a name
    virtual void addVTname ( wxString name , wxArrayInt &vi , bool circular ) ; ///< Add this one

    virtual void OnCharHook(wxKeyEvent& event) ; ///< Key event handler
    virtual void OnToggleSources ( wxCommandEvent &ev ) ; ///< Toggle source list event handler
    virtual void OnOK ( wxCommandEvent &ev ) ; ///< OK button event handler
    virtual void OnCancel ( wxCommandEvent &ev ) ; ///< Cancel button event handler

    wxCheckListBox *l_sources , *l_targets ;

    wxArrayTVector vv ;
    vector <TVector> ligates ;
    wxArrayString vt ;
    vector <bool> orientation ;
    bool doLigate ;
    
    private :
    virtual wxString invert ( wxString s ) ; ///< Invert the string

	wxTextCtrl *message ;

    DECLARE_EVENT_TABLE()
    } ;


#endif