Stimfit
0.13.15
|
Provides the top-level frame. More...
#include <parentframe.h>
Public Member Functions | |
wxStfParentFrame (wxDocManager *manager, wxFrame *frame, const wxString &title, const wxPoint &pos, const wxSize &size, long style) | |
Constructor. | |
~wxStfParentFrame () | |
Destructor. | |
void | OnAbout (wxCommandEvent &event) |
Shows the "About" dialog. | |
wxStfGraph * | CreateGraph (wxView *view, wxStfChildFrame *parent) |
Creates a new graph. | |
stf::cursor_type | GetMouseQual () const |
Retrieve the current mouse mode. | |
void | SetMouseQual (stf::cursor_type value) |
Sets the current mouse cursor mode. | |
void | SetSelectedButton (bool selected) |
Sets status of the toolbar's selection button. | |
stf::zoom_channels | GetZoomQual () const |
Retrieve which channels will be affected by scaling operations. | |
void | SetZoomQual (stf::zoom_channels value) |
Set the channels that will be affected by scaling operations. | |
void | SetSingleChannel (bool value) |
Set the zoom buttons to single- or multi-channel mode. | |
wxPrintData * | GetPrintData () |
Retrieves the print data. | |
wxPageSetupDialogData * | GetPageSetup () |
Retrieves the page setup. | |
wxAuiManager & | GetMgr () |
Retrieve the wxAuiManager. | |
void | CheckUpdate (wxProgressDialog *progDlg=NULL) const |
Checks for updates. | |
new_wxwindow | MakePythonWindow (const std::string &windowFunc, const std::string &mgr_name="pythonShell", const std::string &caption="Python Shell", bool show=true, bool full=false, bool isfloat=true, int width=-1, int height=-1, double mpl_width=8.0, double mpl_height=6.0) |
int | GetMplFigNo () |
Provides the top-level frame.
It is part of the of the document/view framework implemented in wxWidgets. This class can only be used for MDI parent frames.
Definition at line 79 of file parentframe.h.
wxStfParentFrame::wxStfParentFrame | ( | wxDocManager * | manager, |
wxFrame * | frame, | ||
const wxString & | title, | ||
const wxPoint & | pos, | ||
const wxSize & | size, | ||
long | style | ||
) |
Constructor.
manager | Pointer to the document manager. |
frame | Pointer to the parent frame (should be NULL, because this is the top-level frame |
title | Title of this frame. |
pos | Initial position of this frame. |
size | Initial size of this frame. |
style | Window style. |
void wxStfParentFrame::CheckUpdate | ( | wxProgressDialog * | progDlg = NULL | ) | const |
Checks for updates.
progDlg | An optional progress dialog |
wxStfGraph* wxStfParentFrame::CreateGraph | ( | wxView * | view, |
wxStfChildFrame * | parent | ||
) |
Creates a new graph.
Called from view.cpp when a new drawing view is created.
view | Pointer to the attached view. |
parent | Pointer to the child frame that will serve as a parent for the new graph. |
wxAuiManager& wxStfParentFrame::GetMgr | ( | ) | [inline] |
Retrieve the wxAuiManager.
Definition at line 153 of file parentframe.h.
Retrieve the current mouse mode.
wxPageSetupDialogData* wxStfParentFrame::GetPageSetup | ( | ) | [inline] |
Retrieves the page setup.
Definition at line 148 of file parentframe.h.
wxPrintData* wxStfParentFrame::GetPrintData | ( | ) | [inline] |
Retrieves the print data.
Definition at line 143 of file parentframe.h.
Retrieve which channels will be affected by scaling operations.
void wxStfParentFrame::OnAbout | ( | wxCommandEvent & | event | ) |
Shows the "About" dialog.
event | The menu event that made the call. |
void wxStfParentFrame::SetMouseQual | ( | stf::cursor_type | value | ) |
Sets the current mouse cursor mode.
value | The new mouse cursor mode. |
void wxStfParentFrame::SetSelectedButton | ( | bool | selected | ) |
Sets status of the toolbar's selection button.
selected | The desired toggle status of the selection button. |
void wxStfParentFrame::SetSingleChannel | ( | bool | value | ) |
Set the zoom buttons to single- or multi-channel mode.
value | Set to true for single- or false for multi-channel mode. |
void wxStfParentFrame::SetZoomQual | ( | stf::zoom_channels | value | ) |
Set the channels that will be affected by scaling operations.
value | The channels affected by scaling operations. |