18 #ifndef ODINPLOT_RANGE_H
19 #define ODINPLOT_RANGE_H
23 #include <odinqt/floatedit.h>
28 class RangeWidget :
public QWidget {
33 RangeWidget(
double total_min,
double total_max,
double start_min,
double start_max, QWidget *parent);
36 double get_min() {
return min_x->get_value();}
37 double get_max() {
return max_x->get_value();}
40 void set_range(
double min,
double max,
bool discard_scrollbar=
false);
48 void new_scroll_val(
int v);
50 void new_minmax_val(
float);
53 friend class QScrollBar;
56 void check_and_set_range(
double min,
double max);
57 void update_scrollbar();
63 double total_min_cache, total_max_cache;
65 bool react_on_scrollbar_change;