17 #ifndef QGSGRADUATEDHISTOGRAMWIDGET_H 18 #define QGSGRADUATEDHISTOGRAMWIDGET_H 23 class QgsGraduatedHistogramEventFilter;
57 void rangesModified(
bool rangesAdded );
65 void mousePress(
double value );
66 void mouseRelease(
double value );
71 QwtPlotPicker* mHistoPicker;
72 QgsGraduatedHistogramEventFilter* mFilter;
75 void findClosestRange(
double value,
int &closestRangeIndex,
int &pixelDistance )
const;
77 #if defined(QWT_VERSION) && QWT_VERSION>=0x060000 78 QwtPlotHistogram* createPlotHistogram(
const QString& title,
const QColor& color )
const;
80 HistogramItem* createHistoItem(
const QString& title,
const QColor& color )
const;
91 class GUI_EXPORT QgsGraduatedHistogramEventFilter:
public QObject 97 QgsGraduatedHistogramEventFilter( QwtPlot *plot );
99 virtual ~QgsGraduatedHistogramEventFilter() {}
105 void mousePress(
double );
106 void mouseRelease(
double );
111 double posToValue(
QPointF point )
const;
115 #endif //QGSGRADUATEDHISTOGRAMWIDGET_H
virtual bool eventFilter(QObject *watched, QEvent *event)