X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fviews.h;h=9f57f5588ffa74bce8a213fd6814c1fcd9e18a2d;hp=834bdfeb3468d45898647982f18879c2fcda97bc;hb=dd8faeb9c2a1633c96ca31bce81e338a591fab71;hpb=80515cbe55a03bfb7b06f85f6a6ca265fe9a2fb3 diff --git a/src/views.h b/src/views.h index 834bdfe..9f57f55 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.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);