** Date Started: July 2000
**
** This is part of the CTSim program
-** Copyright (C) 1983-2000 Kevin Rosenberg
+** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: views.h,v 1.34 2001/01/27 02:01:41 kevin Exp $
+** $Id: views.h,v 1.36 2001/01/28 03:48:55 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
wxWindow* getFrameForChild()
#if CTSIM_MDI
- { return theApp->getMainFrame()->GetClientWindow(); }
+ { return theApp->getMainFrame(); }
#else
{ return m_pFrame; }
#endif
void OnCompareRow (wxCommandEvent& event);
void OnCompareCol (wxCommandEvent& event);
- wxFrame* getFrame()
- { return m_pFrame; }
+#if CTSIM_MDI
+ wxDocMDIChildFrame* getFrame() { return m_pFrame; }
+#else
+ wxDocChildFrame* getFrame() { return m_pFrame; }
+#endif
ImageFileDocument* GetDocument()
{ return dynamic_cast<ImageFileDocument*>(wxView::GetDocument()); }
wxWindow* getFrameForChild()
#if CTSIM_MDI
- { return theApp->getMainFrame()->GetClientWindow(); }
+ { return theApp->getMainFrame(); }
#else
{ return m_pFrame; }
#endif
void OnConvertPolar (wxCommandEvent& event);
void OnConvertFFTPolar (wxCommandEvent& event);
- wxFrame* getFrame () { return m_pFrame; }
-
+#if CTSIM_MDI
+ wxDocMDIChildFrame* getFrame() { return m_pFrame; }
+#else
+ wxDocChildFrame* getFrame() { return m_pFrame; }
+#endif
wxMenu* getFileMenu() { return m_pFileMenu; }
ProjectionFileDocument* GetDocument()
wxWindow* getFrameForChild()
#if CTSIM_MDI
- { return theApp->getMainFrame()->GetClientWindow(); }
+ { return theApp->getMainFrame(); }
#else
{ return m_pFrame; }
#endif
{ return dynamic_cast<PhantomFileDocument*>(wxView::GetDocument()); }
wxMenu* getFileMenu() { return m_pFileMenu; }
- wxFrame* getFrame() { return m_pFrame; }
+#if CTSIM_MDI
+ wxDocMDIChildFrame* getFrame() { return m_pFrame; }
+#else
+ wxDocChildFrame* getFrame() { return m_pFrame; }
+#endif
};
class PhantomCanvas: public wxScrolledWindow
PlotFileCanvas *CreateCanvas(wxView *view, wxFrame *parent);
wxWindow* getFrameForChild()
#if CTSIM_MDI
- { return theApp->getMainFrame()->GetClientWindow(); }
+ { return theApp->getMainFrame(); }
#else
{ return m_pFrame; }
#endif
void OnScaleAuto (wxCommandEvent& event);
void OnScaleFull (wxCommandEvent& event);
- wxFrame* getFrame ()
- { return m_pFrame; }
+#if CTSIM_MDI
+ wxDocMDIChildFrame* getFrame() { return m_pFrame; }
+#else
+ wxDocChildFrame* getFrame() { return m_pFrame; }
+#endif
wxMenu* getFileMenu() { return m_pFileMenu; }
PlotFileDocument* GetDocument()
bool OnClose (bool deleteWindow = TRUE);
TextFileCanvas* getTextCtrl() { return m_pCanvas; }
- wxFrame* getFrame() { return m_pFrame; }
wxMenu* getFileMenu() { return m_pFileMenu; }
+#if CTSIM_MDI
+ wxDocMDIChildFrame* getFrame() { return m_pFrame; }
+#else
+ wxDocChildFrame* getFrame() { return m_pFrame; }
+#endif
};
class TextFileCanvas: public wxTextCtrl