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 TPrimerDialog class
*/
#ifndef _T_PRIMER_DIALOG_
#define _T_PRIMER_DIALOG_
#include "main.h"
#include <wx/spinctrl.h>
class TStorage ;
class MyFrame ;
class MyChild ;
class TRestrictionEnzyme ;
class ChildBase ;
class TPrimer ;
class TPrimerDesign ;
/** \brief The dialog to optimize primers
*/
class TPrimerDialog : public wxDialog
{
public:
TPrimerDialog(wxWindow *parent , const wxString& title ) ; ///< Constructor
~TPrimerDialog() ; ///< Destructor
void initme ( TPrimer *_p , TPrimerDesign *_pd ) ; ///< Initialize
wxSpinCtrl *addSpinCtrl ( int id , wxString title , int x , int y , int def ) ; ///< Create a new wxSpinCtrl (this dialog has so many of them...)
TPrimer *p , *cp ;
private :
void OnSearch ( wxCommandEvent &ev ) ; ///< "Search for primers button" event handler
void OnReset ( wxCommandEvent &ev ) ; ///< "Reset button" event handler
virtual void OnOK ( wxCommandEvent &ev ) ; ///< "OK button" event handler
virtual void OnCancel ( wxCommandEvent &ev ) ; ///< "Cancel button" event handler
void OnActivatePrimer ( wxListEvent& event); ///< Primer activation event handler
void OnSpinChanged ( wxSpinEvent &ev ) ; ///< "A spin control has changed" event handler
void OnCharHook(wxKeyEvent& event) ; ///< Key event handler
void updateList () ; ///< Update the potential primer list
void ShowCur () ; ///< Refreshes the currently selected primer and its properties
void ShowLC () ; ///< Refreshes the potential primer list
private :
TPrimerDesign *pd ;
vector <TPrimer> pl ; ///< The list of potential primers
wxSpinCtrl *l3 , *l5 , *r3 , *r5 , *lmin , *lmax , *tmin , *tmax ;
wxTextCtrl *seq , *rep ;
wxListCtrl *lc ; ///< The list display of potential primers
DECLARE_EVENT_TABLE()
} ;
#endif
|