r435: *** empty log message ***
[ctsim.git] / src / views.h
index 834bdfeb3468d45898647982f18879c2fcda97bc..9f57f5588ffa74bce8a213fd6814c1fcd9e18a2d 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: views.h,v 1.28 2001/01/20 17:43:41 kevin Exp $
+**  $Id: views.h,v 1.29 2001/01/26 00:45:24 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
@@ -69,6 +69,8 @@ private:
 public:
   ImageFileView(void);
   virtual ~ImageFileView(void);
+  void canvasClosed()
+  { m_canvas = NULL; m_frame = NULL; }
 
   wxMenu* getFileMenu()
   { return m_pFileMenu; }
@@ -201,6 +203,8 @@ private:
 public:
   ProjectionFileView(void);
   virtual ~ProjectionFileView(void);
+  void canvasClosed()
+  { m_canvas = NULL; m_frame = NULL; }
   
   bool OnCreate(wxDocument *doc, long flags);
   void OnDraw(wxDC* dc);
@@ -274,6 +278,8 @@ private:
 public:
   PhantomView(void);
   virtual ~PhantomView(void);
+  void canvasClosed()
+  { m_canvas = NULL; m_frame = NULL; }
   
   bool OnCreate(wxDocument *doc, long flags);
   void OnUpdate(wxView *sender, wxObject *hint = NULL);
@@ -333,6 +339,8 @@ private:
 public:
   PlotFileView(void);
   virtual ~PlotFileView(void);
+  void canvasClosed()
+  { m_canvas = NULL; m_frame = NULL; }
   
   bool OnCreate(wxDocument *doc, long flags);
   void OnDraw(wxDC* dc);
@@ -385,6 +393,8 @@ public:
       : wxView() , m_pFrame(0), m_pCanvas(0)
     {}
     ~TextEditView();
+    void canvasClosed()
+    { m_pFrame = NULL; }
 
    wxFrame *CreateChildFrame(wxDocument *doc, wxView *view);