Add files from zip
This commit is contained in:
31
examples/splineeditor/CanvasPicker.h
Normal file
31
examples/splineeditor/CanvasPicker.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*****************************************************************************
|
||||
* Qwt Examples - Copyright (C) 2002 Uwe Rathmann
|
||||
* This file may be used under the terms of the 3-clause BSD License
|
||||
*****************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QwtGlobal>
|
||||
#include <QObject>
|
||||
|
||||
class QPointF;
|
||||
class QwtPlot;
|
||||
class QwtPlotCurve;
|
||||
|
||||
class CanvasPicker : public QObject
|
||||
{
|
||||
public:
|
||||
CanvasPicker( bool sortedX, QwtPlot* plot );
|
||||
virtual bool eventFilter( QObject*, QEvent* ) QWT_OVERRIDE;
|
||||
|
||||
private:
|
||||
void select( const QPointF& );
|
||||
void move( const QPointF& );
|
||||
|
||||
QwtPlot* plot();
|
||||
const QwtPlot* plot() const;
|
||||
|
||||
QwtPlotCurve* m_selectedCurve;
|
||||
int m_selectedPoint;
|
||||
const bool m_sortedX;
|
||||
};
|
||||
Reference in New Issue
Block a user