summaryrefslogtreecommitdiff
path: root/gtk2_ardour/add_route_dialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-03-28 18:07:43 +0200
committerRobin Gareus <robin@gareus.org>2016-03-28 18:25:34 +0200
commita16c7a8a906c4087fd1d1a756648ca75b7e91e78 (patch)
tree158ff80dd643f82282260ab1c350b14da1b94876 /gtk2_ardour/add_route_dialog.cc
parent5f16e48d7e2b08a23847ad45c96f6583349ff820 (diff)
add option to create new routes with strict-i/o enabled.
Diffstat (limited to 'gtk2_ardour/add_route_dialog.cc')
-rw-r--r--gtk2_ardour/add_route_dialog.cc12
1 files changed, 12 insertions, 0 deletions
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"));