mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-31 10:57:43 +01:00
Add MIDI readahead to options editor.
This commit is contained in:
parent
a8aae56d92
commit
408090adce
3 changed files with 24 additions and 9 deletions
|
|
@ -506,6 +506,7 @@ public:
|
|||
* @param page Page step for the spin button.
|
||||
* @param unit Unit name.
|
||||
* @param scale Scaling factor (such that for a value x in the spinbutton, x * scale is written to the config)
|
||||
* @param digits Number of decimal digits to show.
|
||||
*/
|
||||
SpinOption (
|
||||
std::string const & i,
|
||||
|
|
@ -517,7 +518,8 @@ public:
|
|||
T step,
|
||||
T page,
|
||||
std::string const & unit = "",
|
||||
float scale = 1
|
||||
float scale = 1,
|
||||
unsigned digits = 0
|
||||
)
|
||||
: Option (i, n),
|
||||
_get (g),
|
||||
|
|
@ -530,6 +532,7 @@ public:
|
|||
_spin = Gtk::manage (new Gtk::SpinButton);
|
||||
_spin->set_range (min, max);
|
||||
_spin->set_increments (step, page);
|
||||
_spin->set_digits(digits);
|
||||
|
||||
_box = Gtk::manage (new Gtk::HBox);
|
||||
_box->pack_start (*_spin, true, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue