Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

FindSequenceDialog Class Reference

The class implementing the "Find" dialog in various ChildBase modules. More...

#include <FindSequenceDialog.h>

List of all members.

Public Member Functions

 FindSequenceDialog (wxWindow *parent, const wxString &title)
 Constructor.
 ~FindSequenceDialog ()
 Destructor.
virtual void OnCharHook (wxKeyEvent &event)
 Key event handler.
virtual void OnSearch (wxCommandEvent &ev)
 Search button event handler.
virtual void OnCancel (wxCommandEvent &ev)
 Cancel button event handler.
virtual void OnTextChange (wxCommandEvent &ev)
 Search text change event handler.
virtual void OnLB (wxCommandEvent &ev)
 List box choice change event handler.
virtual void OnLBdclick (wxCommandEvent &ev)
 List box double click event handler.
virtual void OnAddHighlights (wxCommandEvent &ev)
 Adds highlights.
virtual void OnSetHighlightColor (wxCommandEvent &ev)
 Changes highlght color.
virtual void OnResetHighlights (wxCommandEvent &ev)
 Resets highlights.

Public Attributes

wxString allowed_chars
 Chars one can search for.

Private Member Functions

virtual wxString getQuery ()
virtual bool doesMatch (char a, char b)
 Returns if a matches b ( more than "is equal"!).
virtual int subsearch (const wxString &s, const wxString &sub, int start)
 Compares a string and a substring.
virtual void sequenceSearch (bool invers=false)
 Search in sequence.
virtual void aaSearch ()
 Search in amino acid sequence.
virtual void itemSearch ()
 Search in items.
virtual void restrictionSearch ()
 Search for restriction enzymes.
virtual void doAction (bool doubleclick)
 Perform action, now that a list item has been double-clicked.
virtual void aaSubSearch (const wxString &s, int start, int dir, wxString rf)
 Search in resulting amino acid sequence.
virtual void getFromTo (wxString s, long &from, long &to, int idx=-1)
virtual SequenceCanvasgetMarkSequence (wxString &mark)

Private Attributes

ChildBasec
 Pointer to calling ChildBase class.
wxTextCtrl * t
 The text control.
int p
int last
wxListBox * lb
 The results list box control.
wxButton * find_button
 The "Find" button.
wxButton * do_highlight
 The "Highlight" button.
wxTextCtrl * status
 The status text.
wxCheckBox * cb_sequence
wxCheckBox * cb_items
wxCheckBox * cb_enzymes
wxCheckBox * cb_translation
wxColour highlight
wxArrayInt vi
wxHashChar codonhash
wxStaticText * highlight_display


Detailed Description

The class implementing the "Find" dialog in various ChildBase modules.


Constructor & Destructor Documentation

FindSequenceDialog::FindSequenceDialog wxWindow *  parent,
const wxString &  title
 

Constructor.

FindSequenceDialog::~FindSequenceDialog  ) 
 

Destructor.


Member Function Documentation

void FindSequenceDialog::aaSearch  )  [private, virtual]
 

Search in amino acid sequence.

void FindSequenceDialog::aaSubSearch const wxString &  s,
int  start,
int  dir,
wxString  rf
[private, virtual]
 

Search in resulting amino acid sequence.

void FindSequenceDialog::doAction bool  doubleclick  )  [private, virtual]
 

Perform action, now that a list item has been double-clicked.

bool FindSequenceDialog::doesMatch char  a,
char  b
[private, virtual]
 

Returns if a matches b ( more than "is equal"!).

void FindSequenceDialog::getFromTo wxString  s,
long &  from,
long &  to,
int  idx = -1
[private, virtual]
 

SequenceCanvas * FindSequenceDialog::getMarkSequence wxString &  mark  )  [private, virtual]
 

wxString FindSequenceDialog::getQuery  )  [private, virtual]
 

void FindSequenceDialog::itemSearch  )  [private, virtual]
 

Search in items.

void FindSequenceDialog::OnAddHighlights wxCommandEvent &  ev  )  [virtual]
 

Adds highlights.

void FindSequenceDialog::OnCancel wxCommandEvent &  ev  )  [virtual]
 

Cancel button event handler.

void FindSequenceDialog::OnCharHook wxKeyEvent &  event  )  [virtual]
 

Key event handler.

void FindSequenceDialog::OnLB wxCommandEvent &  ev  )  [virtual]
 

List box choice change event handler.

void FindSequenceDialog::OnLBdclick wxCommandEvent &  ev  )  [virtual]
 

List box double click event handler.

void FindSequenceDialog::OnResetHighlights wxCommandEvent &  ev  )  [virtual]
 

Resets highlights.

void FindSequenceDialog::OnSearch wxCommandEvent &  ev  )  [virtual]
 

Search button event handler.

void FindSequenceDialog::OnSetHighlightColor wxCommandEvent &  ev  )  [virtual]
 

Changes highlght color.

void FindSequenceDialog::OnTextChange wxCommandEvent &  ev  )  [virtual]
 

Search text change event handler.

void FindSequenceDialog::restrictionSearch  )  [private, virtual]
 

Search for restriction enzymes.

void FindSequenceDialog::sequenceSearch bool  invers = false  )  [private, virtual]
 

Search in sequence.

int FindSequenceDialog::subsearch const wxString &  s,
const wxString &  sub,
int  start
[private, virtual]
 

Compares a string and a substring.


Member Data Documentation

wxString FindSequenceDialog::allowed_chars
 

Chars one can search for.

ChildBase* FindSequenceDialog::c [private]
 

Pointer to calling ChildBase class.

wxCheckBox * FindSequenceDialog::cb_enzymes [private]
 

wxCheckBox * FindSequenceDialog::cb_items [private]
 

wxCheckBox* FindSequenceDialog::cb_sequence [private]
 

wxCheckBox * FindSequenceDialog::cb_translation [private]
 

wxHashChar FindSequenceDialog::codonhash [private]
 

wxButton* FindSequenceDialog::do_highlight [private]
 

The "Highlight" button.

wxButton* FindSequenceDialog::find_button [private]
 

The "Find" button.

wxColour FindSequenceDialog::highlight [private]
 

wxStaticText* FindSequenceDialog::highlight_display [private]
 

int FindSequenceDialog::last [private]
 

wxListBox* FindSequenceDialog::lb [private]
 

The results list box control.

int FindSequenceDialog::p [private]
 

wxTextCtrl* FindSequenceDialog::status [private]
 

The status text.

wxTextCtrl* FindSequenceDialog::t [private]
 

The text control.

wxArrayInt FindSequenceDialog::vi [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 11 16:19:44 2006 for GENtle by  doxygen 1.4.1