+class PhantomCanvas;
+class PhantomView : public wxView
+{
+ DECLARE_DYNAMIC_CLASS(PhantomView)
+
+private:
+ PhantomCanvas *CreateCanvas(wxView *view, wxFrame *parent);
+ wxFrame *CreateChildFrame(wxDocument *doc, wxView *view);
+
+ PhantomCanvas *m_canvas;
+ wxFrame *m_frame;
+
+public:
+ PhantomView(void);
+ virtual ~PhantomView(void);
+
+ bool OnCreate(wxDocument *doc, long flags);
+ void OnUpdate(wxView *sender, wxObject *hint = NULL);
+ bool OnClose (bool deleteWindow = true);
+ void OnDraw(wxDC* dc);
+ void OnProperties (wxCommandEvent& event);
+ void OnRasterize (wxCommandEvent& event);
+ void OnProjections (wxCommandEvent& event);
+
+ PhantomDocument* GetDocument(void)
+ { return dynamic_cast<PhantomDocument*>(wxView::GetDocument()); }
+
+ DECLARE_EVENT_TABLE()
+};
+
+class PhantomCanvas: public wxScrolledWindow
+{
+public:
+ PhantomView* m_pView;
+
+ PhantomCanvas (PhantomView* v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style);
+
+ virtual void OnDraw(wxDC& dc);
+
+};
+
+