From cee85c34b225584189dc2cc34953748429969426 Mon Sep 17 00:00:00 2001 From: nick_m Date: Thu, 29 Dec 2016 03:46:25 +1100 Subject: add preference for showing non-quarter note tempi (Misc subsection Tempo). --- gtk2_ardour/rc_option_editor.cc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 574933738f..11edeb0cf7 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -2256,12 +2256,26 @@ RCOptionEditor::RCOptionEditor () 1, 1000, 1, 20 )); + add_option (_("Misc"), new OptionEditorHeading (_("Tempo"))); + + BoolOption* tsf; + + tsf = new BoolOption ( + "allow-non-quarter-pulse", + _("Allow non quarter-note pulse"), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_allow_non_quarter_pulse), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_allow_non_quarter_pulse) + ); + Gtkmm2ext::UI::instance()->set_tip (tsf->tip_widget(), + string_compose (_("When enabled %1 will allow tempo to be expressed in divisions per minute\n" + "When disabled %1 will only allow tempo to be expressed in quarter notes per minute"), + PROGRAM_NAME)); + add_option (_("Misc"), tsf); + /* TRANSPORT */ add_option (_("Transport"), new OptionEditorHeading (S_("Transport Options"))); - BoolOption* tsf; - tsf = new BoolOption ( "latched-record-enable", _("Keep record-enable engaged on stop"), -- cgit v1.2.3