** 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
#include "projections.h"
#include "plotfile.h"
+
class ImageFileDocument: public wxDocument
{
DECLARE_DYNAMIC_CLASS(ImageFileDocument)
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