Stimfit  0.13.15
Public Member Functions

Provides the top-level frame. More...

#include <parentframe.h>

Inheritance diagram for wxStfParentFrame:
Inheritance graph
[legend]
Collaboration diagram for wxStfParentFrame:
Collaboration graph
[legend]

List of all members.

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.
wxStfGraphCreateGraph (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 ()

Detailed Description

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.


Constructor & Destructor Documentation

wxStfParentFrame::wxStfParentFrame ( wxDocManager *  manager,
wxFrame *  frame,
const wxString title,
const wxPoint pos,
const wxSize size,
long  style 
)

Constructor.

Parameters:
managerPointer to the document manager.
framePointer to the parent frame (should be NULL, because this is the top-level frame
titleTitle of this frame.
posInitial position of this frame.
sizeInitial size of this frame.
styleWindow style.

Member Function Documentation

void wxStfParentFrame::CheckUpdate ( wxProgressDialog *  progDlg = NULL) const

Checks for updates.

Parameters:
progDlgAn optional progress dialog

Creates a new graph.

Called from view.cpp when a new drawing view is created.

Parameters:
viewPointer to the attached view.
parentPointer to the child frame that will serve as a parent for the new graph.
Returns:
A pointer to the newly created graph.
wxAuiManager& wxStfParentFrame::GetMgr ( ) [inline]

Retrieve the wxAuiManager.

Returns:
A reference to the wxAuiManager.

Definition at line 153 of file parentframe.h.

Retrieve the current mouse mode.

Returns:
The current mouse cursor mode.
wxPageSetupDialogData* wxStfParentFrame::GetPageSetup ( ) [inline]

Retrieves the page setup.

Returns:
Pointer to the page setup data.

Definition at line 148 of file parentframe.h.

wxPrintData* wxStfParentFrame::GetPrintData ( ) [inline]

Retrieves the print data.

Returns:
Pointer to the stored print data.

Definition at line 143 of file parentframe.h.

Retrieve which channels will be affected by scaling operations.

Returns:
The channels affected by scaling operations.

Shows the "About" dialog.

Parameters:
eventThe menu event that made the call.

Sets the current mouse cursor mode.

Parameters:
valueThe new mouse cursor mode.
void wxStfParentFrame::SetSelectedButton ( bool  selected)

Sets status of the toolbar's selection button.

Parameters:
selectedThe desired toggle status of the selection button.
void wxStfParentFrame::SetSingleChannel ( bool  value)

Set the zoom buttons to single- or multi-channel mode.

Parameters:
valueSet to true for single- or false for multi-channel mode.

Set the channels that will be affected by scaling operations.

Parameters:
valueThe channels affected by scaling operations.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines