Add API set bar-controller spinbox digits
..and reduce default to 4 digits.
This commit is contained in:
parent
a9c8a25fc4
commit
39fb5762b0
@ -58,7 +58,7 @@ BarController::BarController (Gtk::Adjustment& adj,
|
|||||||
Gtk::SpinButton& spinner = _slider.get_spin_button();
|
Gtk::SpinButton& spinner = _slider.get_spin_button();
|
||||||
spinner.signal_activate().connect (mem_fun (*this, &BarController::entry_activated));
|
spinner.signal_activate().connect (mem_fun (*this, &BarController::entry_activated));
|
||||||
spinner.signal_focus_out_event().connect (mem_fun (*this, &BarController::entry_focus_out));
|
spinner.signal_focus_out_event().connect (mem_fun (*this, &BarController::entry_focus_out));
|
||||||
spinner.set_digits (9);
|
spinner.set_digits (4);
|
||||||
spinner.set_numeric (true);
|
spinner.set_numeric (true);
|
||||||
spinner.set_name ("BarControlSpinner");
|
spinner.set_name ("BarControlSpinner");
|
||||||
add (_slider);
|
add (_slider);
|
||||||
|
@ -36,6 +36,7 @@ public:
|
|||||||
virtual ~BarController ();
|
virtual ~BarController ();
|
||||||
|
|
||||||
void set_sensitive (bool yn);
|
void set_sensitive (bool yn);
|
||||||
|
void set_digits (guint d) { _slider.get_spin_button().set_digits (d); }
|
||||||
|
|
||||||
ArdourFader::Tweaks tweaks() const { return _slider.tweaks (); }
|
ArdourFader::Tweaks tweaks() const { return _slider.tweaks (); }
|
||||||
void set_tweaks (ArdourFader::Tweaks t) { _slider.set_tweaks (t);}
|
void set_tweaks (ArdourFader::Tweaks t) { _slider.set_tweaks (t);}
|
||||||
|
Loading…
Reference in New Issue
Block a user