Thicker bars, better letters
[mussa.git] / qui / ThresholdWidget.h
1 #ifndef _THRESHOLD_WIDGET_H_ 
2 #define _THRESHOLD_WIDGET_H_
3
4 #include <QWidget>
5
6 class QSlider;
7
8 class ThresholdWidget : public QWidget
9 {
10   Q_OBJECT 
11
12 public: 
13   ThresholdWidget(QWidget *parent = 0, int min=21, int max=30);
14
15   //! return what percent of our maximum threshold we are.
16   float percent() const;
17   //! return our current threshold
18   int threshold() const;
19
20 public slots:
21   void setThreshold(int threshold);
22   void setRange(int min, int max);
23
24 signals:
25   void thresholdChanged(int new_threshold);
26
27 protected:
28   QSlider *slider;
29
30 };
31 const int threshold_max_display_digits = 2;
32
33 #endif