Code

Fixes for transient dialogs in win32.
[inkscape.git] / src / ui / widget / spin-slider.h
index b0a8daba981ce902f37af68d60d2f93192feb9a9..2779be029443109c682c87ab9f61a72eca630dd3 100644 (file)
@@ -46,6 +46,9 @@ public:
     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;
@@ -53,7 +56,7 @@ private:
 };
 
 // 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,
@@ -71,9 +74,14 @@ public:
     SpinSlider& get_spinslider2();
 
     void set_update_policy(const Gtk::UpdateType);
+
+    void remove_scale();
 private:
+    void link_toggled();
+    void update_linked();
     sigc::signal<void> _signal_value_changed;
     SpinSlider _s1, _s2;
+    Gtk::ToggleButton _link;
 };
 
 } // namespace Widget