+// ----------------------------------------------------------------------------
+// ImageCanvas
+// ----------------------------------------------------------------------------
+
+class ImageCanvas : public wxScrolledWindow
+{
+public:
+ ImageCanvas(wxView*);
+
+ virtual void OnDraw(wxDC& dc);
+private:
+ wxView *m_view;
+};
+
+// ----------------------------------------------------------------------------
+// ImageView
+// ----------------------------------------------------------------------------
+
+class ImageView : public wxView
+{
+public:
+ ImageView() : wxView() {}
+
+ virtual bool OnCreate(wxDocument*, long flags);
+ virtual void OnDraw(wxDC*);
+ virtual bool OnClose(bool deleteWindow = true);
+ virtual void OnUpdate(wxView *sender, wxObject *hint = NULL);
+
+ ImageDocument* GetDocument();
+
+private:
+ ImageCanvas* m_canvas;
+
+ DECLARE_DYNAMIC_CLASS(ImageView)
+};
+
+// ----------------------------------------------------------------------------
+// ImageDetailsView
+// ----------------------------------------------------------------------------
+
+class ImageDetailsView : public wxView
+{
+public:
+ ImageDetailsView(ImageDetailsDocument *doc);
+
+ virtual void OnDraw(wxDC *dc);
+ virtual bool OnClose(bool deleteWindow);
+
+private:
+ wxFrame *m_frame;
+
+ wxDECLARE_NO_COPY_CLASS(ImageDetailsView);
+};
+