From fbb2d0e368673fd953b6934d8ac63e79460b5b47 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 8 Nov 2011 09:09:48 +0000 Subject: [PATCH] Integrate patch from A.Geay (move getPlotObject() and getPlotCurve() fucntions to the public section) --- src/Plot2d/Plot2d_ViewFrame.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Plot2d/Plot2d_ViewFrame.h b/src/Plot2d/Plot2d_ViewFrame.h index 5c49e9f10..71985514a 100755 --- a/src/Plot2d/Plot2d_ViewFrame.h +++ b/src/Plot2d/Plot2d_ViewFrame.h @@ -170,23 +170,19 @@ public: Plot2d_Curve* getClosestCurve( QPoint, double&, int& ) const; Plot2d_Object* getPlotObject( QwtPlotItem* ) const; - + QwtPlotItem* getPlotObject( Plot2d_Object* ) const; + QwtPlotCurve* getPlotCurve( Plot2d_Curve* ) const; + Plot2d_Plot2d* getPlot() const { return myPlot; } protected: int testOperation( const QMouseEvent& ); void readPreferences(); void writePreferences(); QString getInfo( const QPoint& ); virtual void wheelEvent( QWheelEvent* ); - QwtPlotCurve* getPlotCurve( Plot2d_Curve* ) const; bool hasPlotCurve( Plot2d_Curve* ) const; void setCurveType( QwtPlotCurve*, int ); - QwtPlotItem* getPlotObject( Plot2d_Object* ) const; bool hasPlotObject( Plot2d_Object* ) const; - - - - public slots: void onViewPan(); void onViewZoom(); -- 2.39.2