Stimfit  0.13.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
view.h
Go to the documentation of this file.
00001 // This program is free software; you can redistribute it and/or
00002 // modify it under the terms of the GNU General Public License
00003 // as published by the Free Software Foundation; either version 2
00004 // of the License, or (at your option) any later version.
00005 
00006 // This program is distributed in the hope that it will be useful,
00007 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00008 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00009 // GNU General Public License for more details.
00010 
00011 // You should have received a copy of the GNU General Public License
00012 // along with this program; if not, write to the Free Software
00013 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00014 
00021 #ifndef _VIEW_H
00022 #define _VIEW_H
00023 
00028 #include <wx/docview.h>
00029 class wxStfDoc;
00030 class wxStfGraph;
00031 
00033 
00038 class wxStfView : public wxView
00039 {
00040 public:
00042     wxStfView();
00044     ~wxStfView() {}
00045 
00047 
00052     virtual bool OnCreate(wxDocument *doc, long flags);
00053 
00055 
00058     virtual void OnDraw(wxDC *dc);
00059 
00061 
00065     virtual void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL);
00066 
00068 
00071     virtual bool OnClose(bool deleteWindow = true);
00072 
00074 
00076     wxStfGraph* GetGraph() { return graph; }
00077 
00079 
00081     wxStfDoc* Doc();
00082 
00084 
00086     wxStfDoc* DocC() const;
00087 
00088 protected:
00090 
00094     virtual void OnActivateView(bool activate, wxView *activeView, wxView *deactiveView);
00095 
00096 private:
00097     DECLARE_DYNAMIC_CLASS(wxStfView)
00098     DECLARE_EVENT_TABLE()
00099 
00100     wxStfGraph *graph;
00101     wxStfChildFrame *childFrame;
00102     
00103 };
00104 
00107 #endif
00108 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines