--- /dev/null
+//==========================================================================\r
+// Name: fdmdv2_plot.h
+// Purpose: Declares simple wxWidgets application with GUI
+// Created: Apr. 10, 2012
+// Initial author: David Witten\r
+// License: BSD License (other licenses may apply to other\r
+// components of this project)\r
+//==========================================================================\r
+#ifndef __FDMDV2_PLOT__
+#define __FDMDV2_PLOT__
+
+//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=\r
+// Class DrawPanel\r
+//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=\r
+class DrawPanel : public wxPanel\r
+{\r
+ public:\r
+ DrawPanel(wxFrame* parent);\r
+ void paintEvent(wxPaintEvent & evt);\r
+ void paintNow();\r
+ void render(wxDC& dc);\r
+ wxPen m_penShortDash;\r
+ wxPen m_penDotDash;\r
+ wxRect m_rectCtrl;\r
+ wxRect m_rectGrid;\r
+ wxRect m_rectPlot;\r
+ int m_gridLeftOffset;\r
+ int m_gridRightOffset;\r
+ int m_gridTopOffset;\r
+ int m_gridBottomOffset;\r
+\r
+ // some useful events\r
+ void OnMouseMove(wxMouseEvent& event);\r
+ void OnMouseDown(wxMouseEvent& event);\r
+ void OnMouseUp(wxMouseEvent& event);\r
+ void OnMouseWheelMoved(wxMouseEvent& event);\r
+ void OnPaint(wxPaintEvent& event);
+ void OnClose( wxCloseEvent& event ){ event.Skip(); }
+ void OnSize( wxSizeEvent& event );\r
+ void OnErase(wxEraseEvent& event);\r
+ //void OnUpdateUI( wxUpdateUIEvent& event ){ event.Skip(); }\r
+ void OnShow(wxShowEvent& event);\r
+
+ protected:\r
+ bool m_bitmap;\r
+ bool m_clip;\r
+ bool m_rubberBand;\r
+ bool m_mouseDown;\r
+ DECLARE_EVENT_TABLE()\r
+};\r
+#endif //__FDMDV2_PLOT__\r