|
Stimfit
0.13.15
|
The view class, derived from wxView. More...
#include <view.h>


Public Member Functions | |
| wxStfView () | |
| Constructor. | |
| ~wxStfView () | |
| Destructor. | |
| virtual bool | OnCreate (wxDocument *doc, long flags) |
| Override default view creation. | |
| virtual void | OnDraw (wxDC *dc) |
| The drawing function (note that actual drawing happens in wxStfGraph::OnDraw()) | |
| virtual void | OnUpdate (wxView *sender, wxObject *hint=(wxObject *) NULL) |
| Override default updating behaviour. | |
| virtual bool | OnClose (bool deleteWindow=true) |
| Override default file closing behaviour. | |
| wxStfGraph * | GetGraph () |
| Retrieve the attached graph. | |
| wxStfDoc * | Doc () |
| Retrieve the attached document. | |
| wxStfDoc * | DocC () const |
| Retrieve the attached document. | |
Protected Member Functions | |
| virtual void | OnActivateView (bool activate, wxView *activeView, wxView *deactiveView) |
| Called when the view is activated; dialogs and menus are then updated. | |
The view class, derived from wxView.
It is used to model the viewing and editing component of the file-based data. It is part of the document/view framework supported by wxWidgets. Note that this class does almost nothing in stimfit. Its only purpose is to adhere to the doc/view paradigm. All of the actual drawing happens in wxStfGraph.
| wxStfDoc* wxStfView::Doc | ( | ) |
Retrieve the attached document.
| wxStfDoc* wxStfView::DocC | ( | ) | const |
Retrieve the attached document.
| wxStfGraph* wxStfView::GetGraph | ( | ) | [inline] |
| virtual void wxStfView::OnActivateView | ( | bool | activate, |
| wxView * | activeView, | ||
| wxView * | deactiveView | ||
| ) | [protected, virtual] |
Called when the view is activated; dialogs and menus are then updated.
| activate | true if this view is being activated. |
| activeView | Pointer to the view that is now active. |
| deactiveView | Pointer to the view that has just been deactivated. |
| virtual bool wxStfView::OnClose | ( | bool | deleteWindow = true | ) | [virtual] |
Override default file closing behaviour.
| deleteWindow | true if the child frame should be deleted. |
| virtual bool wxStfView::OnCreate | ( | wxDocument * | doc, |
| long | flags | ||
| ) | [virtual] |
Override default view creation.
Creates a child frame and a graph, sets the window title.
| doc | Pointer to the attached document. |
| flags | View creation flags. |
| virtual void wxStfView::OnDraw | ( | wxDC * | dc | ) | [virtual] |
The drawing function (note that actual drawing happens in wxStfGraph::OnDraw())
| dc | Pointer to the device context. |
| virtual void wxStfView::OnUpdate | ( | wxView * | sender, |
| wxObject * | hint = (wxObject *) NULL |
||
| ) | [virtual] |
Override default updating behaviour.
Called when the graph should be refreshed.
| sender | Pointer to the view that requested the update. |
| hint | Unused. |
1.7.6.1