43 iSettingParameter{ false }
52 iSettingParameter{ false }
61 iSettingParameter{ false }
68 return iSlider.minimum();
72 if (iSettingParameter)
75 iSlider.set_minimum(aMinimum);
77 ConstraintsChanged.trigger();
81 return iSlider.maximum();
85 if (iSettingParameter)
88 iSlider.set_maximum(aMaximum);
90 ConstraintsChanged.trigger();
94 return iSlider.step();
98 if (iSettingParameter)
101 iSlider.set_step(aStep);
103 ConstraintsChanged.trigger();
107 return iSlider.value();
111 if (iSettingParameter)
114 iSlider.set_value(aValue);
116 ValueChanged.trigger();
119 const basic_slider<value_type>&
slider()
const
138 iSlider.ValueChanged([&]()
140 if (iSettingParameter)
144 ValueChanged.trigger();
146 iSpinBox.ValueChanged([&]()
148 if (iSettingParameter)
151 iSlider.set_value(iSpinBox.
value());
152 ValueChanged.trigger();
154 iSlider.ConstraintsChanged([&]()
156 if (iSettingParameter)
162 ConstraintsChanged.trigger();
164 iSpinBox.ConstraintsChanged([&]()
166 if (iSettingParameter)
169 iSlider.set_minimum(iSpinBox.
minimum());
170 iSlider.set_maximum(iSpinBox.
maximum());
171 iSlider.set_step(iSpinBox.
step());
172 ConstraintsChanged.trigger();
176 horizontal_layout iLayout;
177 basic_slider<value_type> iSlider;
178 basic_spin_box<value_type> iSpinBox;
179 bool iSettingParameter;
basic_slider< value_type > & slider()
void set_minimum(value_type aMinimum)
basic_slider_box(i_layout &aLayout)
define_event(ValueChanged, value_changed) define_event(ConstraintsChanged
basic_slider_box(i_widget &aParent)
const basic_slider< value_type > & slider() const
void set_step(value_type aStep)
void set_value(value_type aValue)
value_type minimum() const
const basic_spin_box< value_type > & spin_box() const
basic_spin_box< value_type > & spin_box()
value_type maximum() const
void set_maximum(value_type aMaximum)
void set_step(value_type aStep)
value_type maximum() const
void set_maximum(value_type aMaximum)
void set_value(value_type aValue, bool aNotify=true)
void set_minimum(value_type aMinimum)
value_type minimum() const
basic_slider_box< double > double_slider_box
basic_slider_box< int32_t > slider_box
#define define_event(name, declName,...)