X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fviews.h;h=3c29c77cf385dc7e6f4d3bd77dc1269cd18a12d8;hb=711cae0ee02e046370fdb4d6c6f440596ff71980;hp=99ae2756280488f801487289ccd98f180c1f90bc;hpb=16d093f9366acfccee0f701f736840bcd47c0709;p=ctsim.git diff --git a/src/views.h b/src/views.h index 99ae275..3c29c77 100644 --- a/src/views.h +++ b/src/views.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: views.h,v 1.4 2000/07/18 14:51:06 kevin Exp $ +** $Id: views.h,v 1.6 2000/07/28 08:28:08 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -57,7 +57,7 @@ private: public: ImageFileView(void); - ~ImageFileView(void); + virtual ~ImageFileView(void); bool OnCreate(wxDocument *doc, long flags); void OnDraw(wxDC* dc); @@ -103,7 +103,7 @@ private: public: ProjectionFileView(void); - ~ProjectionFileView(void); + virtual ~ProjectionFileView(void); bool OnCreate(wxDocument *doc, long flags); void OnDraw(wxDC* dc); @@ -141,12 +141,12 @@ private: public: PhantomView(void); - ~PhantomView(void); + virtual ~PhantomView(void); bool OnCreate(wxDocument *doc, long flags); - void OnDraw(wxDC* dc); 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); @@ -157,12 +157,13 @@ public: DECLARE_EVENT_TABLE() }; -class PhantomCanvas: public wxPanel +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); };