- ImageFileView(void);
- virtual ~ImageFileView(void);
-
- bool OnCreate(wxDocument *doc, long flags);
- void OnDraw(wxDC* dc);
- void OnUpdate(wxView *sender, wxObject *hint = NULL);
- bool OnClose (bool deleteWindow = true);
- void OnProperties (wxCommandEvent& event);
- void OnCompare (wxCommandEvent& event);\r
- void OnScaleAuto (wxCommandEvent& event);
- void OnScaleMinMax (wxCommandEvent& event);
- void OnPlotRow (wxCommandEvent& event);\r
- void OnPlotCol (wxCommandEvent& event);\r
- void OnCompareRow (wxCommandEvent& event);\r
- void OnCompareCol (wxCommandEvent& event);\r
-\r
- wxFrame* getFrame()\r
- { return m_frame; }\r
-
- ImageFileDocument* GetDocument(void)
- { return dynamic_cast<ImageFileDocument*>(wxView::GetDocument()); }
-
- DECLARE_EVENT_TABLE()
+ ImageFileView();
+ virtual ~ImageFileView();
+ void canvasClosed()
+ { m_pCanvas = NULL; m_pFrame = NULL; }
+
+ wxMenu* getFileMenu()
+ { return m_pFileMenu; }
+
+ bool OnCreate(wxDocument *doc, long flags);
+ void OnDraw(wxDC* dc);
+ void OnUpdate(wxView *sender, wxObject *hint = NULL);
+ bool OnClose (bool deleteWindow = true);
+
+ void OnEditCopy (wxCommandEvent& event);
+ void OnEditCut (wxCommandEvent& event);
+ void OnEditPaste (wxCommandEvent& event);
+
+ void OnRevert (wxCommandEvent& event);
+ void OnExport (wxCommandEvent& event);
+ void OnProperties (wxCommandEvent& event);
+
+ void OnCompare (wxCommandEvent& event);
+ void OnScaleSize (wxCommandEvent& event);
+ void OnInvertValues (wxCommandEvent& event);
+ void OnSquare (wxCommandEvent& event);
+ void OnSquareRoot (wxCommandEvent& event);
+ void OnLog (wxCommandEvent& event);
+ void OnExp (wxCommandEvent& event);
+ void OnAdd (wxCommandEvent& event);
+ void OnSubtract (wxCommandEvent& event);
+ void OnMultiply (wxCommandEvent& event);
+ void OnDivide (wxCommandEvent& event);
+ void OnFourier (wxCommandEvent& event);
+ void OnInverseFourier (wxCommandEvent& event);
+ void OnShuffleNaturalToFourierOrder (wxCommandEvent& event);
+ void OnShuffleFourierToNaturalOrder (wxCommandEvent& event);
+#if wxUSE_GLCANVAS
+ void OnConvert3d (wxCommandEvent& event);
+#endif
+
+#ifdef HAVE_FFT
+ void OnFFT (wxCommandEvent& event);
+ void OnIFFT (wxCommandEvent& event);
+ void OnFFTRows (wxCommandEvent& event);
+ void OnIFFTRows (wxCommandEvent& event);
+ void OnFFTCols (wxCommandEvent& event);
+ void OnIFFTCols (wxCommandEvent& event);
+#endif
+
+ void OnMagnitude (wxCommandEvent& event);
+ void OnPhase (wxCommandEvent& event);
+ void OnReal (wxCommandEvent& event);
+ void OnImaginary (wxCommandEvent& event);
+
+ void OnScaleAuto (wxCommandEvent& event);
+ void OnScaleMinMax (wxCommandEvent& event);
+ void OnScaleFull (wxCommandEvent& event);
+ void OnPlotRow (wxCommandEvent& event);
+ void OnPlotCol (wxCommandEvent& event);
+#if HAVE_FFT
+ void OnPlotFFTRow (wxCommandEvent& event);
+ void OnPlotFFTCol (wxCommandEvent& event);
+#endif
+ void OnPlotHistogram (wxCommandEvent& event);
+ void OnCompareRow (wxCommandEvent& event);
+ void OnCompareCol (wxCommandEvent& event);
+
+#if CTSIM_MDI
+ wxDocMDIChildFrame* getFrame() { return m_pFrame; }
+#else
+ wxDocChildFrame* getFrame() { return m_pFrame; }
+#endif
+ void setInitialClientSize();
+
+ wxMenu* getMenuAnalyze() { return m_pMenuAnalyze; }
+
+ ImageFileDocument* GetDocument()
+ { return dynamic_cast<ImageFileDocument*>(wxView::GetDocument()); }
+
+ DECLARE_EVENT_TABLE()