1 #ifndef _THRESHOLD_WIDGET_H_
2 #define _THRESHOLD_WIDGET_H_
8 class ThresholdWidget : public QWidget
13 ThresholdWidget(QWidget *parent = 0, int min=20, int max=30);
15 //! return min_threshold/max_threshold
16 double min_ratio() const;
17 //! return current_threshold/maximum_threshold
19 //! return our current threshold
20 int threshold() const;
21 //! update percent threshold
22 void updatePercentThreshold();
25 void setBasepairThreshold(int threshold);
26 //void setPercentThreshold(int percent_threshold);
27 //! set the min and max base pair range
28 void setRange(int min, int max);
31 //! the current number of base pairs needed for a window of conservation
32 void thresholdChanged(int new_threshold);
35 QSpinBox basepair_spinner;
36 QLabel window_size_label;
40 int cur_percent_threshold;
42 const int threshold_max_display_digits = 2;