1 #ifndef _THRESHOLD_WIDGET_H_
2 #define _THRESHOLD_WIDGET_H_
9 class ThresholdWidget : public QWidget
14 ThresholdWidget(QWidget *parent = 0, int min=20, int max=30);
16 //! return min_threshold/max_threshold
17 double min_ratio() const;
18 //! return current_threshold/maximum_threshold
20 //! return our current threshold
21 int threshold() const;
22 //! update percent threshold
23 void updatePercentThreshold();
26 void setBasepairThreshold(int threshold);
27 //void setPercentThreshold(int percent_threshold);
28 //! set the min and max base pair range
29 void setRange(int min, int max);
32 //! the current number of base pairs needed for a window of conservation
33 void thresholdChanged(int new_threshold);
37 QSpinBox *basepair_spinner;
38 QLabel *window_size_label;
39 QLabel *percent_label;
42 int cur_percent_threshold;
44 const int threshold_max_display_digits = 2;