Stimfit  0.13.15
Public Member Functions | Protected Member Functions

The view class, derived from wxView. More...

#include <view.h>

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

List of all members.

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.
wxStfGraphGetGraph ()
 Retrieve the attached graph.
wxStfDocDoc ()
 Retrieve the attached document.
wxStfDocDocC () 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.

Detailed Description

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.

Definition at line 38 of file view.h.


Member Function Documentation

Retrieve the attached document.

Returns:
A pointer to the attached document.

Retrieve the attached document.

Returns:
A pointer to the attached document.

Retrieve the attached graph.

Returns:
A pointer to the attached graph.

Definition at line 76 of file view.h.

virtual void wxStfView::OnActivateView ( bool  activate,
wxView activeView,
wxView deactiveView 
) [protected, virtual]

Called when the view is activated; dialogs and menus are then updated.

Parameters:
activatetrue if this view is being activated.
activeViewPointer to the view that is now active.
deactiveViewPointer to the view that has just been deactivated.
virtual bool wxStfView::OnClose ( bool  deleteWindow = true) [virtual]

Override default file closing behaviour.

Parameters:
deleteWindowtrue if the child frame should be deleted.
Returns:
true if file closing was successful.
virtual bool wxStfView::OnCreate ( wxDocument doc,
long  flags 
) [virtual]

Override default view creation.

Creates a child frame and a graph, sets the window title.

Parameters:
docPointer to the attached document.
flagsView creation flags.
Returns:
true upon successful view creation, false otherwise.
virtual void wxStfView::OnDraw ( wxDC *  dc) [virtual]

The drawing function (note that actual drawing happens in wxStfGraph::OnDraw())

Parameters:
dcPointer to the device context.
See also:
wxStfGraph::OnDraw()
virtual void wxStfView::OnUpdate ( wxView sender,
wxObject *  hint = (wxObject *) NULL 
) [virtual]

Override default updating behaviour.

Called when the graph should be refreshed.

Parameters:
senderPointer to the view that requested the update.
hintUnused.

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