#include <ChildBase.h>
Inheritance diagram for ChildBase:
Public Member Functions | |
ChildBase () | |
Default constructor. | |
ChildBase (wxWindow *parent, const wxString &title, const wxPoint &pos, const wxSize &size, const long style) | |
Constructor. | |
ChildBase (wxWindow *parent, const wxString &title) | |
Constructor. | |
virtual wxString | getName () |
Returns the name of the module (e.g., the vector name). | |
virtual void | showName (wxString x=_T("")) |
Shows the module name in the window title. | |
virtual void | OnFocus (wxFocusEvent &event) |
Event handler for focus event. | |
virtual bool | caniclose (wxCloseEvent &event) |
Checks for unsaved edits. | |
virtual void | OnFileSave (wxCommandEvent &WXUNUSED(event)) |
virtual wxToolBar * | CreateToolBar (int i) |
Tool bar creation. | |
virtual void | Maximize (bool isit=true) |
Maximize the window. | |
virtual void | updateUndoMenu () |
Updates the "undo" menu entry. | |
virtual void | updateSequenceCanvas (bool remember=false) |
Refresh the sequence display. | |
virtual void | OnClose (wxCloseEvent &event) |
Close event handler. | |
virtual void | OnDummy (wxCommandEvent &WXUNUSED(event)) |
virtual void | OnPaste (wxCommandEvent &WXUNUSED(event)) |
Dummy event handler. | |
virtual void | OnExport (wxCommandEvent &WXUNUSED(event)) |
Export command event handler. | |
virtual void | EnforceRefesh () |
virtual void | init () |
Initializes pointers and toolbar options. | |
virtual void | initHelp () |
Initializes help link for online help. | |
virtual wxToolBar * | CreateToolBar (int i, int j, wxString s) |
Generates the tool bar. | |
virtual void | SetMenuBar (wxMenuBar *menu_bar) |
Sets the menu bar for the window. | |
virtual wxMenuBar * | GetMenuBar () |
Returns a pointer to the menu bar. | |
virtual wxToolBar * | GetToolBar () |
Returns a pointer to the tool bar. | |
virtual void | Activate () |
Activates the module (in foreground etc.). | |
virtual void | SetIcon (wxIcon icon) |
Sets the module icon (unused). | |
virtual void | SetMyMenuBar () |
Sets the menu bar (used for mac version primarily). | |
Public Attributes | |
wxString | def |
The class name, as a wxString. | |
TVector * | vec |
Pointer to the base vector (may be NULL, depending on the module). | |
wxTreeItemId | inMainTree |
The ID of this module in the main tree. | |
SequenceCanvas * | cSequence |
Pointer to the sequence display (may be NULL, depending on the module). | |
bool | allow_cut |
bool | allow_copy |
bool | allow_paste |
bool | allow_find |
bool | allow_save |
bool | allow_print |
bool | allow_undo |
Protected Member Functions | |
virtual wxString | getExportFilters () |
virtual void | doExport (wxString filename, int filter) |
Export data, depending on filename and export type. | |
virtual void | exportVector (TVector *vec, wxFile &out, int filter, wxString filename=_T("")) |
Exports a TVector. | |
virtual void | arrangedExport (wxFile &out, wxString n, wxString s, int l) |
virtual void | updateToolbar () |
Sets the tool bar. | |
Protected Attributes | |
wxMenuBar * | menubar |
Pointer to the window menu bar. | |
wxToolBar * | toolbar |
Pointer to the window too bar. | |
Friends | |
class | MyFrame |
|
Default constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Activates the module (in foreground etc.).
|
|
|
|
Checks for unsaved edits.
|
|
Generates the tool bar.
|
|
Tool bar creation.
|
|
Export data, depending on filename and export type.
Reimplemented in TAlignment. |
|
Reimplemented in TCloningAssistant, and MyChild. |
|
Exports a TVector.
|
|
Reimplemented in TAlignment. |
|
Returns a pointer to the menu bar.
|
|
Returns the name of the module (e.g., the vector name).
Reimplemented in TABIviewer, TAlignment, TAminoAcids, TCloningAssistant, ExternalInterface, MyChild, TPrimerDesign, TCalculator, TGraph, TImageDisplay, TPhyloTree, and TVirtualGel. |
|
Returns a pointer to the tool bar.
|
|
Initializes pointers and toolbar options.
|
|
Initializes help link for online help.
|
|
Maximize the window.
|
|
Close event handler.
|
|
Reimplemented in TABIviewer, TAminoAcids, MyChild, TPrimerDesign, TCalculator, and TGraph. |
|
Export command event handler.
|
|
Reimplemented in TAminoAcids, and MyChild. |
|
Event handler for focus event.
|
|
Dummy event handler.
Reimplemented in TPrimerDesign. |
|
Sets the module icon (unused).
|
|
Sets the menu bar for the window.
|
|
Sets the menu bar (used for mac version primarily).
|
|
Shows the module name in the window title.
|
|
Refresh the sequence display.
Reimplemented in MyChild. |
|
Sets the tool bar.
Reimplemented in TAminoAcids, and MyChild. |
|
Updates the "undo" menu entry.
Reimplemented in TAminoAcids, and MyChild. |
|
Reimplemented in TABIviewer. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pointer to the sequence display (may be NULL, depending on the module).
|
|
The class name, as a wxString.
|
|
The ID of this module in the main tree.
|
|
Pointer to the window menu bar.
|
|
Pointer to the window too bar.
|
|
Pointer to the base vector (may be NULL, depending on the module).
|