23 #include <QDoubleSpinBox>
27 using boost::optional;
36 optional< pair<double, double> > range,
37 optional<double> step,
61 Glib::VariantBase variant =
getter_();
65 double value = Glib::VariantBase::cast_dynamic<Glib::Variant<double>>(
79 connect(
spin_box_, SIGNAL(valueChanged(
double)),
const boost::optional< double > step_
void on_value_changed(double)
std::function< void(Glib::VariantBase)> Setter
QWidget * get_widget(QWidget *parent, bool auto_commit)
Double(QString name, int decimals, QString suffix, boost::optional< std::pair< double, double > > range, boost::optional< double > step, Getter getter, Setter setter)
QDoubleSpinBox * spin_box_
const boost::optional< std::pair< double, double > > range_
std::function< Glib::VariantBase()> Getter