|
Public Member Functions |
| SequenceCanvas (wxWindow *parent, const wxPoint &pos, const wxSize &size) |
| Constructor.
|
virtual | ~SequenceCanvas () |
| Destructor.
|
virtual void | OnDraw (wxDC &dc) |
| Draws the sequence.
|
virtual void | safeShow (wxDC &dc) |
| Draws the sequence in a memory device context, then blits it over to the "real" one.
|
virtual void | OnEvent (wxMouseEvent &event) |
| Mouse event handler.
|
virtual void | OnSize (wxSizeEvent &event) |
| Resize event handler.
|
virtual void | OnCharHook (wxKeyEvent &event) |
| Key event handler.
|
virtual void | vecEdit (wxCommandEvent &ev) |
| Edit event handler.
|
virtual void | blastDNA (wxCommandEvent &ev) |
| "BLAST DNA" event handler
|
virtual void | blastAA (wxCommandEvent &ev) |
| "BLAST amino acids" event handler
|
virtual void | OnCopyText (wxCommandEvent &ev) |
| "Copy as text" event handler
|
virtual void | OnCopyImage (wxCommandEvent &ev) |
| "Copy as image" event handler
|
virtual void | OnSaveImage (wxCommandEvent &ev) |
| "Save as image" event handler
|
virtual void | OnPrint (wxCommandEvent &ev) |
| Printing event handler.
|
virtual void | OnCut (wxCommandEvent &ev) |
| Cut event handler.
|
virtual void | OnCopy (wxCommandEvent &ev) |
| Copy event handler.
|
virtual void | OnPrimerForward (wxCommandEvent &ev) |
| "Run PCR with forward primer" event handler
|
virtual void | OnPrimerBackward (wxCommandEvent &ev) |
| "Run PCR with backward primer" event handler
|
virtual void | OnPrimerBoth (wxCommandEvent &ev) |
| "Run PCR with both primers" event handler
|
virtual void | OnPrimerMutation (wxCommandEvent &ev) |
| "Run PCR with mutation primers" event handler
|
virtual void | OnSilmut (wxCommandEvent &ev) |
| "Silent mutation" event handler
|
virtual void | OnWhatCuts (wxCommandEvent &event) |
| "Find restriction enzymes that cut" event handler
|
virtual void | OnSelAsNewPrimer (wxCommandEvent &ev) |
| "Selection as new primer" event handler
|
virtual void | OnViewOriginal (wxCommandEvent &ev) |
| "View original" mini-display event handler
|
virtual void | OnViewReal (wxCommandEvent &ev) |
| View 1:1" mini-display event handler.
|
virtual void | OnViewCondensed (wxCommandEvent &ev) |
| View condensed" mini-display event handler.
|
virtual void | OnBacktranslate (wxCommandEvent &ev) |
| "Backtranslate amino acids into DNA" event handler
|
virtual void | OnPhylip (wxCommandEvent &ev) |
| "Phylip" event handler (all in one)
|
virtual void | OnOpenFeature (wxCommandEvent &event) |
| "Open feature" event handler
|
virtual void | OnSeqUp (wxCommandEvent &ev) |
| "Move alignment sequence up" event handler
|
virtual void | OnSeqDown (wxCommandEvent &ev) |
| "Move alignment sequence down" event handler
|
virtual void | OnSeqTop (wxCommandEvent &ev) |
| "Move alignment sequence to top" event handler
|
virtual void | OnSeqBottom (wxCommandEvent &ev) |
| "Move alignment sequence to bottom" event handler
|
virtual void | OnToggleFeat (wxCommandEvent &ev) |
| "Toggle feature display for this alignment sequence" event handler
|
virtual void | OnCopyResultDNA (wxCommandEvent &ev) |
| "Copy DNA resulting from PCR" event handler
|
virtual void | OnCopyResultAA (wxCommandEvent &ev) |
| "Copy amino acids for DNA resulting from PCR" event handler
|
virtual void | OnNewFromResultDNA (wxCommandEvent &ev) |
| "New DNA module resulting from PCR" event handler
|
virtual void | OnNewFromResultAA (wxCommandEvent &ev) |
| "New amino acids module for DNA resulting from PCR" event handler
|
virtual void | OnInsertGap (wxCommandEvent &ev) |
| "Insert gap into alignment sequence" event handler
|
virtual void | OnDeleteGap (wxCommandEvent &ev) |
| "Delete gap from alignment sequence" event handler
|
virtual void | OnInsertOtherGaps (wxCommandEvent &ev) |
| "Insert gap into all other alignment sequences" event handler
|
virtual void | OnDeleteOtherGaps (wxCommandEvent &ev) |
| "Delete gap from all other alignment sequences" event handler
|
virtual void | OnStrandCopy35 (wxCommandEvent &event) |
| "Copy the 3'->5' strand" event handler
|
virtual void | OnStrandCopy53 (wxCommandEvent &event) |
| "Copy the 5'->3' strand" event handler
|
virtual void | OnStrandCopyBoth (wxCommandEvent &event) |
| "Copy both strands as a text" event handler
|
virtual void | OnStrandNew35 (wxCommandEvent &event) |
| "Generate new DNA module from 3'->5' strand" event handler
|
virtual void | OnStrandNew53 (wxCommandEvent &event) |
| "Generate new DNA module from 5'->3' strand" event handler
|
virtual void | OnStrandNewBoth (wxCommandEvent &event) |
| "Generate new DNA modules from both strands" event handler
|
virtual void | OnInsertRestrictionSiteLeft (wxCommandEvent &ev) |
| "Insert restriction site left of the marking" event handler
|
virtual void | OnInsertRestrictionSiteRight (wxCommandEvent &ev) |
| "Insert restriction site right of the marking" event handler
|
virtual void | OnPaste (wxCommandEvent &ev) |
| Paste event handler.
|
virtual void | OnFocus (wxFocusEvent &event) |
| "Display gets focus" event handler
|
virtual void | OnKillFocus (wxFocusEvent &event) |
| "Display loses focus" event handler
|
virtual void | OnAppearance (wxCommandEvent &event) |
| Change the apperance of the sequence.
|
virtual void | rsHideLimit (wxCommandEvent &ev) |
| "Limit restriction enzymes" event handler
|
virtual void | OnABIViewOnly (wxCommandEvent &ev) |
| View toggle for ABI display.
|
virtual wxString | getSelection () |
| Returns the current selection as a wxString.
|
virtual void | updateEdit (TVector *v, wxString id, int from) |
| Updates the sequences and display once a key was pressed and, thus, the sequence altered.
|
virtual void | arrange () |
| Arranges tghe layout for all the seq structures.
|
virtual SeqBasic * | findMouseTarget (wxPoint pt, int &pos) |
| Returns a pointer to the seq structure (and the position inside) the given point is within.
|
virtual int | findMouseTargetItem (wxPoint pt) |
| Returns the ID of the seq structure the given point is within.
|
virtual SeqBasic * | findID (wxString id) |
| Returns the pointer to the seq structure with the given ID string.
|
virtual void | mark (SeqBasic *where, int from, int to, int value=1) |
| Marks part of a sequence.
|
virtual void | mark (wxString id, int from, int to, int value=1, int force_row=-1) |
| Marks part of a sequence.
|
virtual bool | inMarkRange (int x, int f, int t, int l) |
| Is this span withing the marked range?
|
virtual void | ensureVisible (int pos) |
| Make sure the position is in the visible part of the display; scroll if necessary.
|
virtual int | getBatchMark () |
| I forgot what this does.
|
virtual void | MyGetClientSize (int *w, int *h) |
| Wrapper function; will compensate for printing device context.
|
virtual void | MyGetSize (int *w, int *h) |
| Wrapper function; will compensate for printing device context.
|
virtual wxSize | MyGetClientSize () |
| Wrapper function; will compensate for printing device context.
|
virtual void | MyGetViewStart (int *x, int *y) |
| Wrapper function; will compensate for printing device context.
|
virtual void | SilentRefresh () |
| Refresh without cleaning background first (no flicker).
|
virtual bool | doOverwrite () |
| Are we in edit overwrite mode?
|
virtual TAminoAcids * | getAA () |
| Returns pointer to amino acid module, or NULL.
|
virtual TPrimerDesign * | getPD () |
| Returns pointer to primer design module, or NULL.
|
virtual TAlignment * | getAln () |
| Returns pointer to alignment module, or NULL.
|
virtual wxString | getChildType () |
| Returns the child identifier, or _T("").
|
virtual bool | getPrintToColor () |
| Are we printing to a color printer?
|
virtual void | setPrintToColor (bool _b) |
| We are printing to a color printer!
|
virtual bool | getDrawAll () |
| Are we drawing everything ( not just the visible part)?
|
virtual void | setDrawAll (bool _b) |
| We are drawing everything ( not just the visible part).
|
virtual bool | isHorizontal () |
| Is the display set to horizontal mode?
|
virtual void | setHorizontal (bool _b) |
| Set the display to horizontal mode.
|
virtual void | toggleHorizontal () |
| Toggle horizontal/vertical mode.
|
virtual bool | getHide () |
| Is the display hidden (so we don't have to draw anything)?
|
virtual void | doHide (bool _b) |
| Hide the display.
|
virtual bool | isMiniDisplay () |
| Is this a mini display in the amino acid module?
|
virtual void | setMiniDisplay (bool _b) |
| This is a mini display in the amino acid module.
|
virtual SeqBasic * | getLastWhere () |
| Returns a pointer to the last marked seq structure.
|
virtual void | setLastWhere (SeqBasic *where) |
virtual bool | isPrinting () |
| Are we printing (or drawing on the screen)?
|
virtual void | forceOverwrite (bool _b) |
| Ensure overwrite mode (for example, ABI and PCR mode).
|
virtual bool | getEditMode () |
| Are we editing?
|
virtual void | setEditMode (bool _b) |
| Sets wether we're editing.
|
virtual void | setLowX (int _i) |
| Minimum X coodrinate to draw.
|
virtual void | startEdit (wxString id) |
| Initiate editing mode.
|
virtual void | stopEdit () |
| Terminate editing mode.
|
virtual int | markedFrom () |
| Return first marked position, or -1.
|
virtual int | markedTo () |
| Return last marked position, or -1.
|
virtual void | unmark () |
| Removes any marking.
|
virtual int | NumberOfLines () |
| Returns the number of seq struntures AND blank lines.
|
virtual void | set_font_size (int size=12) |
Public Attributes |
ChildBase * | child |
| Wanna-be universal pointer to the containing module.
|
MyChild * | p |
| Pointer to the containing MyChild; if this is not within the DNA module, NULL.
|
int | blankline |
int | charwidth |
int | charheight |
int | hardstop |
int | lastmarked |
int | maxendnumberlength |
int | lastyoffset |
int | blocksize |
int | border |
wxArraySeqBasic | seq |
| The list of SeqBasic structures.
|
wxFont * | font |
wxFont * | smallFont |
wxFont * | varFont |
wxString | edit_id |
wxString | edit_valid |
Private Member Functions |
virtual wxBitmap * | getSequenceBitmap () |
| Returns the sequences display as a bitmap.
|
virtual TVector * | getPCR_DNA_vector () |
| Returns a pointer to the DNA vector in PCR mode; otherwise, NULL.
|
virtual void | showContextMenu (SeqBasic *where, int pos, wxPoint pt) |
| Generates the context menu.
|
virtual void | insertRestrictionSite (bool left) |
| Creates a new restriction site via simulated editing, left or right of the current mark.
|
virtual void | editSequence (int k, wxKeyEvent &event) |
virtual void | editCharPressed (int k, TVector *v, wxString *the_sequence) |
virtual void | editSpecialKeyPressed (int k, TVector *v, wxString *the_sequence, int wy, wxKeyEvent &event) |
Private Attributes |
bool | printToColor |
bool | drawall |
bool | horizontal |
bool | hide |
bool | miniDisplay |
bool | preventUpdate |
bool | marking |
bool | drawing |
bool | printing |
bool | wantOverwrite |
bool | forceoverwrite |
bool | editMode |
wxDC * | print_dc |
int | _from |
int | _to |
int | mark_firstrow |
int | mark_lastrow |
int | lastclick |
int | lowx |
int | lowy |
int | lastpos |
int | print_maxx |
int | vpx |
int | vpy |
wxString | lastToolTip |
SeqAlign * | last_al |
SeqBasic * | lastwhere |
int | contextMenuPosition |
int | last_font_size |