r191: *** empty log message ***
[ctsim.git] / src / docs.h
index b56ebe5442cbb5cd66d5f6d6ef3b9e47aaacf7b4..e19f962069952530da16bf8679e8688903d916b9 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: docs.h,v 1.3 2000/07/19 04:33:27 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
@@ -49,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) {}
@@ -72,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) {}
@@ -91,7 +93,7 @@ class PhantomDocument: public wxDocument
 
 private:
     Phantom m_phantom;
-    Phantom::PhantomID m_idPhantom;
+    int m_idPhantom;
     wxString m_namePhantom;
 
 public:
@@ -102,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
@@ -115,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);
 };