summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-11-21 19:54:52 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-11-21 19:54:52 +0000
commit0b55529ec42c7130421ba37f0762cec83e1e4df3 (patch)
tree68179d13ca51c362d27cb7359b6dd3844e517cf4 /gtk2_ardour/route_ui.cc
parentfa3e223c8f5798dc128ea5d76f2d305a1e340593 (diff)
tweak display of remote control id (dialog text)
git-svn-id: svn://localhost/ardour2/branches/3.0@13541 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r--gtk2_ardour/route_ui.cc23
1 files changed, 17 insertions, 6 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index 536b4f110b..c264588b2b 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -1738,12 +1738,23 @@ RouteUI::open_remote_control_id_dialog ()
dialog.add_button (Stock::APPLY, RESPONSE_ACCEPT);
} else {
Label* l = manage (new Label());
- l->set_markup (string_compose (_("Remote Control IDs are currently determined by track/bus ordering in %1\n\n"
- "This %2 has remote control ID %3\n\n\n"
- "<span size=\"small\" style=\"italic\">Use the User Interaction tab of the Preferences window if you want to change this</span>"),
- (Config->get_remote_model() == MixerOrdered ? _("the mixer") : ("the editor")),
- (is_track() ? _("track") : _("bus")),
- _route->remote_control_id()));
+ if (_route->is_master() || _route->is_monitor()) {
+ l->set_markup (string_compose (_("The remote control ID of %1 is: %2\n\n\n"
+ "The remote control ID of %3 cannot be changed."),
+ Glib::Markup::escape_text (_route->name()),
+ _route->remote_control_id(),
+ (_route->is_master() ? _("the master bus") : _("the monitor bus"))));
+ } else {
+ l->set_markup (string_compose (_("The remote control ID of %6 is: %3\n\n\n"
+ "Remote Control IDs are currently determined by track/bus ordering in %1\n\n"
+ "%4Use the User Interaction tab of the Preferences window if you want to change this%5"),
+ (Config->get_remote_model() == MixerOrdered ? _("the mixer") : ("the editor")),
+ (is_track() ? _("track") : _("bus")),
+ _route->remote_control_id(),
+ "<span size=\"small\" style=\"italic\">",
+ "</span>",
+ Glib::Markup::escape_text (_route->name())));
+ }
dialog.get_vbox()->pack_start (*l);
dialog.add_button (Stock::OK, RESPONSE_CANCEL);
}