From 0b55529ec42c7130421ba37f0762cec83e1e4df3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 21 Nov 2012 19:54:52 +0000 Subject: [PATCH] tweak display of remote control id (dialog text) git-svn-id: svn://localhost/ardour2/branches/3.0@13541 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/route_ui.cc | 23 +++++++++++++++++------ 1 file 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" - "Use the User Interaction tab of the Preferences window if you want to change this"), - (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(), + "", + "", + Glib::Markup::escape_text (_route->name()))); + } dialog.get_vbox()->pack_start (*l); dialog.add_button (Stock::OK, RESPONSE_CANCEL); }