X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fdocs.h;h=e19f962069952530da16bf8679e8688903d916b9;hb=9bf016234cd06857e8d98cc1170cad7a42f0e45e;hp=bf69f06d95a6d09b07f7f21359228a5335519c0e;hpb=e4c1f7f8eb87558c3abf3bf1d20732361f425351;p=ctsim.git diff --git a/src/docs.h b/src/docs.h index bf69f06..e19f962 100644 --- a/src/docs.h +++ b/src/docs.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: docs.h,v 1.2 2000/07/15 08:36:13 kevin Exp $ +** $Id: docs.h,v 1.5 2000/09/07 01:28:33 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 @@ -33,7 +33,9 @@ #define __DOCSH__ #include "wx/docview.h" + #include "imagefile.h" +#include "phantom.h" #include "projections.h" @@ -47,6 +49,7 @@ public: virtual bool OnSaveDocument (const wxString& filename); virtual bool OnOpenDocument (const wxString& filename); virtual bool IsModified (void) const; + virtual bool OnCloseDocument (); virtual void Modify (bool mod); ImageFileDocument (void) {} @@ -70,6 +73,7 @@ public: virtual bool OnSaveDocument (const wxString& filename); virtual bool OnOpenDocument (const wxString& filename); virtual bool IsModified (void) const; + virtual bool OnCloseDocument (); virtual void Modify (bool mod); ProjectionFileDocument (void) {} @@ -89,7 +93,7 @@ class PhantomDocument: public wxDocument private: Phantom m_phantom; - Phantom::PhantomID m_idPhantom; + int m_idPhantom; wxString m_namePhantom; public: @@ -100,7 +104,7 @@ public: ~PhantomDocument (void) {} - const Phantom::PhantomID getPhantomID (void) const + const int getPhantomID (void) const { return m_idPhantom; } const wxString& getPhantomName (void) const @@ -113,6 +117,7 @@ public: { return m_phantom; } virtual bool OnOpenDocument (const wxString& filename); + virtual bool OnCloseDocument (); virtual bool IsModified (void) const; virtual void Modify (bool mod); };