1 #ifndef _THRESHOLD_WIDGET_H_
2 #define _THRESHOLD_WIDGET_H_
8 class ThresholdWidget : public QWidget
13 ThresholdWidget(QWidget *parent = 0, int min=21, int max=30);
15 //! return what percent of our maximum threshold we are.
16 float percent() const;
17 //! return our current threshold
18 int threshold() const;
21 void setThreshold(int threshold);
22 void setRange(int min, int max);
25 void thresholdChanged(int new_threshold);
31 const int threshold_max_display_digits = 2;