X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fviews.h;h=88f0e2145bbea15a4f231883d2565fcee329a041;hb=31a835d9aebd8acb367a033cc92efb4c944a7b4d;hp=c36ad23f3eb58d71a90d762fef2a7d178a66f258;hpb=5f4aaf9a5ecff050f19a405bd274353a1b935163;p=ctsim.git diff --git a/src/views.h b/src/views.h index c36ad23..88f0e21 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.43 2001/01/30 10:58:14 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 @@ -35,6 +35,7 @@ #include "wx/wx.h" #include "docs.h" #include "imagefile.h" +#include "graph3dview.h" class ImageFileCanvas; class ImageFileView : public wxView @@ -86,12 +87,12 @@ public: void OnUpdate(wxView *sender, wxObject *hint = NULL); bool OnClose (bool deleteWindow = true); - void OnScaleSize (wxCommandEvent& event); - void OnExport (wxCommandEvent& event); - + void OnRevert (wxCommandEvent& event); + void OnExport (wxCommandEvent& event); void OnProperties (wxCommandEvent& event); - void OnCompare (wxCommandEvent& event); - + + void OnCompare (wxCommandEvent& event); + void OnScaleSize (wxCommandEvent& event); void OnInvertValues (wxCommandEvent& event); void OnSquare (wxCommandEvent& event); void OnSquareRoot (wxCommandEvent& event); @@ -105,6 +106,7 @@ public: void OnInverseFourier (wxCommandEvent& event); void OnShuffleNaturalToFourierOrder (wxCommandEvent& event); void OnShuffleFourierToNaturalOrder (wxCommandEvent& event); + void OnConvert3d (wxCommandEvent& event); #ifdef HAVE_FFT void OnFFT (wxCommandEvent& event); @@ -158,6 +160,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 +449,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