From: vsr Date: Tue, 8 Nov 2011 09:09:48 +0000 (+0000) Subject: Integrate patch from A.Geay (move getPlotObject() and getPlotCurve() fucntions to... X-Git-Tag: RELIQUAT_6x_15112011~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fbb2d0e368673fd953b6934d8ac63e79460b5b47;p=modules%2Fgui.git Integrate patch from A.Geay (move getPlotObject() and getPlotCurve() fucntions to the public section) --- 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();