index b0a8daba981ce902f37af68d60d2f93192feb9a9..2779be029443109c682c87ab9f61a72eca630dd3 100644 (file)
Gtk::SpinButton& get_spin_button();
void set_update_policy(const Gtk::UpdateType);
Gtk::SpinButton& get_spin_button();
void set_update_policy(const Gtk::UpdateType);
+
+ // Change the SpinSlider into a SpinButton with AttrWidget support)
+ void remove_scale();
private:
Gtk::Adjustment _adjustment;
Gtk::HScale _scale;
private:
Gtk::Adjustment _adjustment;
Gtk::HScale _scale;
};
// Contains two SpinSliders for controlling number-opt-number attributes
};
// Contains two SpinSliders for controlling number-opt-number attributes
-class DualSpinSlider : public AttrWidget
+class DualSpinSlider : public Gtk::HBox, public AttrWidget
{
public:
DualSpinSlider(double value, double lower, double upper, double step_inc,
{
public:
DualSpinSlider(double value, double lower, double upper, double step_inc,
SpinSlider& get_spinslider2();
void set_update_policy(const Gtk::UpdateType);
SpinSlider& get_spinslider2();
void set_update_policy(const Gtk::UpdateType);
+
+ void remove_scale();
private:
private:
+ void link_toggled();
+ void update_linked();
sigc::signal<void> _signal_value_changed;
SpinSlider _s1, _s2;
sigc::signal<void> _signal_value_changed;
SpinSlider _s1, _s2;
+ Gtk::ToggleButton _link;
};
} // namespace Widget
};
} // namespace Widget