Class declarations for the spectrum and waterfall classes.
authorwittend99 <wittend99@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 13 May 2012 19:10:56 +0000 (19:10 +0000)
committerwittend99 <wittend99@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 13 May 2012 19:10:56 +0000 (19:10 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@443 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2/fdmdv2_plot.h [new file with mode: 0644]

diff --git a/fdmdv2/fdmdv2_plot.h b/fdmdv2/fdmdv2_plot.h
new file mode 100644 (file)
index 0000000..2ba0a7b
--- /dev/null
@@ -0,0 +1,51 @@
+//==========================================================================\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