r384: Added first vesion of EZPlotDialog
[ctsim.git] / src / dlgezplot.h
diff --git a/src/dlgezplot.h b/src/dlgezplot.h
new file mode 100644 (file)
index 0000000..efba49a
--- /dev/null
@@ -0,0 +1,76 @@
+/*****************************************************************************
+** FILE IDENTIFICATION
+**
+**   Name:          dlgezplot.h
+**   Purpose:       Headers for EZPlot Dialog
+**   Programmer:    Kevin Rosenberg
+**   Date Started:  Jan 2001
+**
+**  This is part of the CTSim program
+**  Copyright (C) 1983-2001 Kevin Rosenberg
+**
+**  $Id: dlgezplot.h,v 1.1 2001/01/12 16:41:56 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
+**  published by the Free Software Foundation.
+**
+**  This program is distributed in the hope that it will be useful,
+**  but WITHOUT ANY WARRANTY; without even the implied warranty of
+**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+**  GNU General Public License for more details.
+**
+**  You should have received a copy of the GNU General Public License
+**  along with this program; if not, write to the Free Software
+**  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+******************************************************************************/
+
+#ifndef __DLGEZPLOT_H_
+#define __DLGEZPLOT_H_
+
+#ifdef __GNUG__
+#pragma interface "dlgezplot.h"
+#endif
+
+#include "wx/setup.h"
+#include "wx/dialog.h"
+#include "wx/dcmemory.h"
+
+class wxButton;
+class wxStaticText;
+class Projections;
+class SGP;
+class SGPDriver;
+class EZPlot;
+
+class EZPlotDialog : public wxDialog
+{
+private:
+  DECLARE_DYNAMIC_CLASS(EZPlotDialog)
+  DECLARE_EVENT_TABLE()
+
+   EZPlot* m_pEZPlot;
+   wxWindow *m_parentTop;     // parent top level window (may be NULL)
+   int m_iClientX;   // size of client window
+   int m_iClientY;
+
+   SGPDriver* m_pSGPDriver;
+   SGP* m_pSGP;
+   wxDC* m_pDC;
+
+public:
+  EZPlotDialog (wxWindow *parent = NULL);
+
+   ~EZPlotDialog();
+
+   /* Perform projection on view number
+       return true if ABORT button has not been pressed
+   */
+   EZPlot* getEZPlot ()
+   { return m_pEZPlot; }
+
+  void OnClose(wxCloseEvent& event);
+  void OnPaint(wxPaintEvent& event);
+};
+#endif
+