X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fviews.h;h=ddc1d0a9b26b053ae00302d99fbcac570f95762c;hp=1abe90d59f900cad484bf7bd48230fa35908ec7a;hb=cbcb02ba9b76a82c9a09ce1c7712431bb215575a;hpb=9646a9addabd213c5a810dad21ea8ca810698420 diff --git a/src/views.h b/src/views.h index 1abe90d..ddc1d0a 100644 --- a/src/views.h +++ b/src/views.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: views.h,v 1.39 2001/01/30 01:21:37 kevin Exp $ +** $Id: views.h,v 1.40 2001/01/30 02:20:50 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 @@ -447,6 +447,9 @@ public: void OnUpdate (wxView *sender, wxObject *hint = (wxObject *) NULL); bool OnClose (bool deleteWindow = TRUE); + TextFileDocument* GetDocument() + { return dynamic_cast(wxView::GetDocument()); } + TextFileCanvas* getTextCtrl() { return m_pCanvas; } wxMenu* getFileMenu() { return m_pFileMenu; } #if CTSIM_MDI