X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fviews.h;h=ddc1d0a9b26b053ae00302d99fbcac570f95762c;hb=cbcb02ba9b76a82c9a09ce1c7712431bb215575a;hp=c36ad23f3eb58d71a90d762fef2a7d178a66f258;hpb=5f4aaf9a5ecff050f19a405bd274353a1b935163;p=ctsim.git diff --git a/src/views.h b/src/views.h index c36ad23..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.38 2001/01/28 22:45:54 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 @@ -158,6 +158,7 @@ public: virtual ~ImageFileCanvas(); virtual void OnDraw(wxDC& dc); + void OnChar(wxKeyEvent& event); void OnMouseEvent(wxMouseEvent& event); void DrawRubberBandCursor (wxDC& dc, int x, int y); bool GetCurrentCursor (int& x, int& y); @@ -446,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