]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/plot.h
SCROLLWIN instead of SCROLL again
[wxWidgets.git] / include / wx / generic / plot.h
index 449d68fed1652fd3ec51ae827b49f2ffb1cb2e76..f046a6e78d7d41de819cd68c11c3dfcf0eaf8216 100644 (file)
@@ -195,6 +195,8 @@ public:
     void SetCurrent( wxPlotCurve* current );
     wxPlotCurve *GetCurrent();
     
+    void Delete( wxPlotCurve* curve );
+    
     // vertical representation
     // -----------------------
     
@@ -211,7 +213,20 @@ public:
     void SetZoom( double zoom );
     double GetZoom()
         { return m_xZoom; }
-    
+        
+    // options
+    // -------
+
+    void SetScrollOnThumbRelease( bool scrollOnThumbRelease = TRUE )
+        { m_scrollOnThumbRelease = scrollOnThumbRelease; }
+    bool GetScrollOnThumbRelease()
+        { return m_scrollOnThumbRelease; }
+        
+    void SetEnlargeAroundWindowCentre( bool enlargeAroundWindowCentre = TRUE )
+        { m_enlargeAroundWindowCentre = enlargeAroundWindowCentre; }
+    bool GetEnlargeAroundWindowCentre()
+        { return m_enlargeAroundWindowCentre; }
+
     // events (may be overridden)
     // --------------------------
 
@@ -247,6 +262,9 @@ private:
     wxPlotXAxisArea   *m_xaxis;
     wxPlotYAxisArea   *m_yaxis;
     wxPlotCurve       *m_current;
+    
+    bool               m_scrollOnThumbRelease;
+    bool               m_enlargeAroundWindowCentre;
 
     DECLARE_CLASS(wxPlotWindow)
     DECLARE_EVENT_TABLE()