17 #ifndef QGSGRADUATEDHISTOGRAMWIDGET_H
18 #define QGSGRADUATEDHISTOGRAMWIDGET_H
25 class QgsGraduatedHistogramEventFilter;
70 void mousePress(
double value );
71 void mouseRelease(
double value );
76 QwtPlotPicker *mHistoPicker =
nullptr;
77 QgsGraduatedHistogramEventFilter *mFilter =
nullptr;
78 double mPressedValue = 0;
80 void findClosestRange(
double value,
int &closestRangeIndex,
int &pixelDistance )
const;
82 QwtPlotHistogram *createPlotHistogram(
const QString &title,
const QColor &color )
const;
94 class GUI_EXPORT QgsGraduatedHistogramEventFilter:
public QObject
100 QgsGraduatedHistogramEventFilter( QwtPlot *plot );
102 bool eventFilter( QObject *
object, QEvent *event )
override;
106 void mousePress(
double );
107 void mouseRelease(
double );
111 QwtPlot *mPlot =
nullptr;
112 double posToValue( QPointF point )
const;
117 #endif //QGSGRADUATEDHISTOGRAMWIDGET_H