|
Public Member Functions |
| MyFrame (wxWindow *parent, const wxWindowID id, const wxString &title, const wxPoint &pos, const wxSize &size, const long style) |
| Constructor.
|
virtual | ~MyFrame () |
| Destructor.
|
virtual void | initme () |
| Initializes the frame.
|
virtual void | rememberLastProject () |
| Stores the last open project for reopening on program start.
|
virtual wxString | check4update () |
| Is a new version available online?
|
virtual void | update2version (wxString ver) |
| Download the new version of GENtle.
|
virtual wxMenu * | getFileMenu (int options=0) |
| Returns the standard File menu, with variations.
|
virtual wxMenu * | getToolMenu (bool _pcr=false) |
| Returns the standard Tools menu, with variations.
|
virtual wxMenu * | getHelpMenu () |
| Returns the standard Help menu.
|
virtual void | InitToolBar (wxToolBar *toolBar) |
| Sets the icon size for the toolbar.
|
virtual void | OnSize (wxSizeEvent &event) |
| Handles OnSize events.
|
virtual void | OnAbout (wxCommandEvent &event) |
| Displays "About" text.
|
virtual void | OnHelp (wxCommandEvent &event) |
| Invokes help.
|
virtual void | OnHomepage (wxCommandEvent &event) |
| Invokes homepage.
|
virtual void | OnProgramOptions (wxCommandEvent &event) |
| Handles the Program Options menu event, and stores the options in the local database.
|
virtual void | OnProjectSave (wxCommandEvent &event) |
| Handles the Save Project menu event.
|
virtual void | OnProjectLoad (wxCommandEvent &event) |
| Handles the Load Project menu event.
|
virtual void | OnProjectClose (wxCommandEvent &event) |
| Handles the Close Project menu event.
|
virtual void | OnImageViewer (wxCommandEvent &event) |
| Invokes the image viewer module.
|
virtual void | OnExternalInterface (wxCommandEvent &event) |
| Creates a new external interface for NCBI/BLAST searching.
|
virtual void | OnCalculator (wxCommandEvent &event) |
| Handles the Calculator menu event by calling MyFrame::RunCalculator.
|
virtual void | OnGraph (wxCommandEvent &event) |
| Handles the Graph menu event by calling MyFrame::RunGraph.
|
virtual void | OnLigation (wxCommandEvent &event) |
virtual void | OnCloningAssistant (wxCommandEvent &event) |
virtual void | OnSequencingAssistant (wxCommandEvent &event) |
virtual void | RerouteMenu (wxCommandEvent &event) |
| Reroutes menu events from the frame to the active child.
|
virtual void | OnlineTools (wxCommandEvent &event) |
| Reroutes context menu events to online tools.
|
virtual void | BollocksMenu (wxCommandEvent &event) |
| Bug-patch function to catch illegal events.
|
virtual void | TestMenu (wxCommandEvent &event) |
| Handles the menu request for running the test suite.
|
virtual void | OnMDIClose (wxCommandEvent &event) |
| Closes MDI child via (Crtl-F4).
|
virtual void | OnEnzymeEditor (wxCommandEvent &event) |
| Invokes the enzyme editor.
|
virtual void | OnAlignment (wxCommandEvent &event) |
| Handles the Alignment menu event, calls MyFrame::runAlignment.
|
virtual void | OnFileOpen (wxCommandEvent &event) |
| Invokes the "open from database" dialog.
|
virtual void | OnFileImport (wxCommandEvent &event) |
| Handles the "import from file" dialog, then calls MyFrame::importFile.
|
virtual void | OnManageDatabase (wxCommandEvent &event) |
| Handles the Manage Database menu event.
|
virtual void | OnTextImport (wxCommandEvent &event) |
| Invokes the "enter sequence manually" dialog and calls the appropriate creation function.
|
virtual void | OnQuit (wxCommandEvent &event) |
| Handles the Quit command, closes.
|
virtual void | OnClose (wxCloseEvent &event) |
| Handles close event.
|
virtual void | OnSashDrag (wxSashEvent &event) |
| Handles SashDrag events (sash between the main tree and the current child.
|
virtual void | updateCCP (ChildBase *c) |
| Updates cut, copy, paste, find icons.
|
virtual void | addTool (wxToolBar *toolBar, int id) |
| Adds a tool to a given toolbar.
|
virtual void | addDefaultTools (wxToolBar *toolBar) |
| Adds default tools to a given toolbar.
|
virtual void | addCCPFTools (wxToolBar *toolBar, bool findbutton=false) |
| Adds cut,copy,paste (and find) tools to a given toolbar.
|
virtual void | setDummyToolbar (ChildBase *c) |
| Generates a basic tooblar.
|
virtual TCalculator * | RunCalculator () |
| Invokes the calculator module.
|
virtual TGraph * | RunGraph () |
| Invokes the graph module.
|
virtual MyChild * | newFromVector (TVector *nv, int type=TYPE_VECTOR) |
| Creates a new DNA entry from a TVector structure.
|
virtual TAminoAcids * | newAminoAcids (wxString aa, wxString title=_T("")) |
| Creates a new amino acid entry from a string.
|
virtual TAminoAcids * | newAminoAcids (TVector *nv, wxString title=_T("")) |
| Creates a new amino acid entry from a TVector structure.
|
virtual TABIviewer * | newABI (wxString filename, wxString title) |
| Creates a new sequencing entry from an ABI file.
|
virtual MyChild * | newCLONE (TClone &clone) |
| Creates a new entry from a CLONE import.
|
virtual void | newGB (TGenBank &gb, wxString title=_T("")) |
| Creates a new entry from a GenBank import.
|
virtual void | newPDB (TPDB &pdb, wxString title=_T("")) |
| Creates a new entry from a PDB import.
|
virtual void | newXML (TXMLfile &xml, wxString title=_T("")) |
| Creates a new entry from an XML file (GenBankXML; DNA or amino acids).
|
virtual TPhyloTree * | newPhyloTree (wxString title=_T("")) |
| Creates a new module with a phylogenetic tree.
|
virtual void | blast (wxString seq, wxString prg) |
| Runs a blast search by invoking MyFrame::OnExternalInterface.
|
virtual bool | importFile (wxString file, wxString path, int filter=-1) |
| Imports a file.
|
virtual void | setChild (ChildBase *ch) |
| Adds a child, if it is not already in the children list.
|
virtual void | removeChild (ChildBase *ch) |
| Safely removes a child from the children list.
|
virtual TStorage * | getTempDB (wxString name) |
| Creates a temporary database, or uses one from the cache.
|
virtual TAlignment * | runAlignment (wxArrayString &vs, wxArrayChildBase &vc, TVector *nv=NULL) |
| Creates a new alignment window.
|
virtual ChildBase * | GetActiveChild () |
| Returns pointer to last (active) child.
|
virtual void | setActiveChild (ChildBase *c) |
| Sets the active child.
|
virtual wxWindow * | getCommonParent () |
| Returns the base window for all children.
|
virtual int | getChildIndex (ChildBase *c) |
| Gets the number of a child in the children list.
|
virtual void | activateChild (int a) |
| Activates a child (brings to front, makes visible, etc.).
|
virtual void | lockDisplay (bool lock=true) |
| Locks/unlocks display, counts (un)lock requests.
|
virtual bool | isLocked () |
| Is display locked?
|
virtual bool | isActivating () |
| Is a child activation sequence running?
|
virtual TVirtualGel * | useGel (wxString type) |
| Creates/reuses a virtual gel.
|
virtual void | saveImage (wxBitmap *bmp, wxString name=_T("")) |
| Saves an image (actually, a wxBitmap) to a file, with "save as" dialog.
|
virtual wxChoice * | AddFontsizeTool (wxToolBar *toolBar, int id) |
virtual void | push_help (wxString name) |
virtual void | pop_help () |
virtual wxString | get_help () |
virtual int | count_help () |
Public Attributes |
TMainTree * | mainTree |
| The main tree (for sequences etc.).
|
TStorage * | LS |
| Pointer to the local TStorage database structure.
|
bool | dying |
bool | enhancedRefresh |
bool | showVectorTitle |
bool | showVectorLength |
bool | loadLastProject |
bool | useMetafile |
bool | showSplashScreen |
bool | checkUpdate |
bool | useCoolCanvas |
bool | useInternalHelp |
bool | doRegisterStuff |
bool | showEnzymePos |
bool | useTwoToolbars |
bool | useOnlineHelp |
bool | showToolTips |
wxColour | aa_color |
int | editFeatureMode |
int | showStopCodon |
TProject | project |
| The current project.
|
TEnzymeRules * | global_enzyme_rules |
| The global rules for which enzymes to use/display.
|
wxString | lang_string |
| The user interface language name.
|
wxArrayString | lastCocktail |
| Enzymes of the last restriction cocktail.
|
wxArrayChildBase | children |
| List of pointers to all child windows.
|
wxHtmlEasyPrinting * | html_ep |
| HTML printer wrapper for TCalculator.
|
vector< wxBitmap > | bitmaps |
| The bitmaps in the user interface.
|
wxToolBar * | tb_mychild |
| The shared toolbar (?).
|
char | stopcodon |
int | nonstandard_translation_table |
wxArrayString | dna_marker |
wxToolBar * | mainToolBar |
| The main toolbar.
|
TOnlineTools * | online_tools |
Private Member Functions |
wxBitmap | to_grey (wxBitmap &bmp1) |
Private Attributes |
wxSashLayoutWindow * | m_topWindow |
| Frame layout, top window (unused).
|
wxSashLayoutWindow * | m_leftWindow1 |
| Frame layout, left window.
|
wxSashLayoutWindow * | m_leftWindow2 |
| Frame layout, right window.
|
wxSashLayoutWindow * | m_bottomWindow |
| Frame layout, bottom window (unused).
|
wxArrayTStorage | dbcache |
| Cache of databases for faster access.
|
ChildBase * | lastChild |
| Last child shown.
|
wxMenuBar * | menu_bar |
| The current menu bar.
|
int | locked |
| State of display locking.
|
bool | activating |
| In child activation?
|
vector< wxString > | help_name |
This class contains the actually displayed frame, as well as several often-used functions.