X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fviews.h;h=a11cfaf8d8df918d3dbc7899b0f8298ded9ef1d4;hb=1e88cf0f7fa4f690ea9f110e8ed3f2b5338d0a10;hp=96de20e311782c07788cb5272bd78c43bcfbaba4;hpb=4b18b0a7fed4e25130c6edf7929d0df50b8c24ea;p=ctsim.git diff --git a/src/views.h b/src/views.h index 96de20e..a11cfaf 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.3 2000/07/18 03:14:35 kevin Exp $ +** $Id: views.h,v 1.7 2000/08/25 15:59:13 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,15 +57,15 @@ private: public: ImageFileView(void); - ~ImageFileView(void); + virtual ~ImageFileView(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 OnWindowAuto (wxCommandEvent& event); - void OnWindowMinMax (wxCommandEvent& event); + void OnScaleAuto (wxCommandEvent& event); + void OnScaleMinMax (wxCommandEvent& event); ImageFileDocument* GetDocument(void) { return dynamic_cast(wxView::GetDocument()); } @@ -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); @@ -163,6 +163,7 @@ public: PhantomView* m_pView; PhantomCanvas (PhantomView* v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style); + virtual void OnDraw(wxDC& dc); };