Gtk::Label* l;
ColumnInfo ci[] = {
- { 0, _("Name"), _("Track/Bus Name") },
- { 1, _("V"), _("Track/Bus visible ?") },
- { 2, _("A"), _("Track/Bus active ?") },
- { 3, _("I"), _("MIDI input enabled") },
- { 4, _("R"), _("Record enabled") },
- { 5, _("M"), _("Muted") },
- { 6, _("S"), _("Soloed") },
- { 7, _("SI"), _("Solo Isolated") },
- { 8, _("SS"), _("Solo Safe (Locked)") },
+ { 0, _("Name"), _("Track/Bus Name") },
+ { 1, S_("Visible|V"), _("Track/Bus visible ?") },
+ { 2, S_("Active|A"), _("Track/Bus active ?") },
+ { 3, S_("MidiInput|I"), _("MIDI input enabled") },
+ { 4, S_("Rec|R"), _("Record enabled") },
+ { 5, S_("Mute|M"), _("Muted") },
+ { 6, S_("Solo|S"), _("Soloed") },
+ { 7, S_("SoloIso|SI"), _("Solo Isolated") },
+ { 8, S_("SoloLock|SS"), _("Solo Safe (Locked)") },
{ -1, 0, 0 }
};
for (ri = rows.begin(); ri != rows.end(); ++ri) {
+ /* skip two special values */
+
+ if (rid == Route::MasterBusRemoteControlID) {
+ rid++;
+ }
+
+ if (rid == Route::MonitorBusRemoteControlID) {
+ rid++;
+ }
+
boost::shared_ptr<Route> route = (*ri)[_columns.route];
bool visible = (*ri)[_columns.visible];
-
if (!route->is_master() && !route->is_monitor()) {
uint32_t new_rid = (visible ? rid : invisible_key--);
return;
}
- boost::shared_ptr<RouteList> routes = _session->get_routes();
-
- if (ARDOUR_UI::instance()->session_is_new ()) {
-
- /* new session: stamp all routes with the right editor order
- * key
- */
-
- _editor->add_routes (*(routes.get()));
-
- } else {
-
- /* existing session: sort a copy of the route list by
- * editor-order and add its contents to the display.
- */
-
- RouteList r (*routes);
- EditorOrderRouteSorter sorter;
-
- r.sort (sorter);
- _editor->add_routes (r);
-
- }
+ RouteList r (*_session->get_routes());
+
+ r.sort (EditorOrderRouteSorter ());
+ _editor->add_routes (r);
}
void