r428: no message
[ctsim.git] / src / docs.h
index d4c1ca2bdfd96f8e2b4533bf2e3f5ad3662cb9a1..06cddcc6632dce2512b305c750242d40b1f31d85 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: docs.h,v 1.12 2001/01/20 08:10:33 kevin Exp $
+**  $Id: docs.h,v 1.13 2001/01/20 17:43:41 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
@@ -39,6 +39,7 @@
 #include "projections.h"
 #include "plotfile.h"
 
+
 class ImageFileDocument: public wxDocument
 {
     DECLARE_DYNAMIC_CLASS(ImageFileDocument)
@@ -151,5 +152,24 @@ public:
     virtual void Modify (bool mod);
 };
 
+#include "views.h"
+
+class TextEditDocument: public wxDocument
+{
+ private:
+  DECLARE_DYNAMIC_CLASS(TextEditDocument)
+
+ public:
+  TextEditDocument(void) {}
+  ~TextEditDocument(void) {}
+
+  virtual bool OnSaveDocument(const wxString& filename);
+  virtual bool OnOpenDocument(const wxString& filename);
+  virtual bool IsModified(void) const;
+
+  wxTextCtrl* getTextCtrl()
+  { return dynamic_cast<TextEditView*>(GetFirstView())->getTextCtrl(); }
+};
+
 
 #endif