From a16c7a8a906c4087fd1d1a756648ca75b7e91e78 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 28 Mar 2016 18:07:43 +0200 Subject: add option to create new routes with strict-i/o enabled. --- gtk2_ardour/add_route_dialog.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gtk2_ardour/add_route_dialog.cc') diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc index b2602f029e..54a1b5361d 100644 --- a/gtk2_ardour/add_route_dialog.cc +++ b/gtk2_ardour/add_route_dialog.cc @@ -39,6 +39,7 @@ #include "utils.h" #include "add_route_dialog.h" #include "route_group_dialog.h" +#include "tooltips.h" #include "i18n.h" using namespace Gtk; @@ -57,6 +58,7 @@ AddRouteDialog::AddRouteDialog () , configuration_label (_("Configuration:")) , mode_label (_("Record Mode:")) , instrument_label (_("Instrument:")) + , strict_io (_("Strict I/O")) { set_name ("AddRouteDialog"); set_modal (true); @@ -159,6 +161,13 @@ AddRouteDialog::AddRouteDialog () table2->attach (insert_at_combo, 2, 3, n, n + 1, Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0); ++n; + /* New Route's Routing is.. */ + strict_io.set_active (Config->get_strict_io ()); + ARDOUR_UI_UTILS::set_tooltip (strict_io, + _("With strict-i/o enabled, Effect Processors will not modify the number of channels on a track. The number of output channels will always match the number of input channels.")); + table2->attach (strict_io, 2, 3, n, n + 1, Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0); + ++n; + options_box->pack_start (*table2, false, true); vbox->pack_start (*options_box, false, true); @@ -221,9 +230,12 @@ AddRouteDialog::maybe_update_name_template_entry () name_template_entry.get_text() != _("MIDI") && name_template_entry.get_text() != _("Audio+MIDI") && name_template_entry.get_text() != _("Bus")) { + strict_io.set_sensitive (false); return; } + strict_io.set_sensitive (true); + switch (type_wanted()) { case AudioTrack: name_template_entry.set_text (_("Audio")); -- cgit v1.2.3