X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fdocs.h;h=06cddcc6632dce2512b305c750242d40b1f31d85;hp=d4c1ca2bdfd96f8e2b4533bf2e3f5ad3662cb9a1;hb=a5d437cb4228b07f8c005eaca497c317b8c19d14;hpb=01ed72399d433ce45a0195f8acaea349a421461e diff --git a/src/docs.h b/src/docs.h index d4c1ca2..06cddcc 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.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(GetFirstView())->getTextCtrl(); } +}; + #endif