+class PlotFileCanvas;
+class PlotFileView : public wxView
+{
+ DECLARE_DYNAMIC_CLASS(PlotFileView)
+
+private:
+ PlotFileCanvas *CreateCanvas(wxView *view, wxFrame *parent);
+ wxFrame *CreateChildFrame(wxDocument *doc, wxView *view);
+
+ PlotFileCanvas *m_canvas;
+ wxFrame *m_frame;
+ EZPlot* m_pEZPlot;\r
+ bool m_bMinSpecified;\r
+ bool m_bMaxSpecified;\r
+ double m_dMinPixel;\r
+ double m_dMaxPixel;\r
+ double m_dAutoScaleFactor;\r
+
+public:
+ PlotFileView(void);
+ virtual ~PlotFileView(void);
+
+ bool OnCreate(wxDocument *doc, long flags);
+ void OnDraw(wxDC* dc);
+ void OnUpdate(wxView *sender, wxObject *hint = NULL);
+ bool OnClose (bool deleteWindow = true);
+ void OnProperties (wxCommandEvent& event);
+ void OnScaleAuto (wxCommandEvent& event);\r
+ void OnScaleMinMax (wxCommandEvent& event);\r
+
+ wxFrame* getFrame ()
+ { return m_frame; }
+
+ PlotFileDocument* GetDocument(void)
+ { return dynamic_cast<PlotFileDocument*>(wxView::GetDocument()); }
+
+ DECLARE_EVENT_TABLE()
+};
+
+class PlotFileCanvas: public wxScrolledWindow
+{
+public:
+ PlotFileView* m_pView;
+
+ PlotFileCanvas (PlotFileView* v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style);
+ virtual void OnDraw(wxDC& dc);
+};
+
+