From 1c36b09910ebb1152f40db9967949d832bf39c80 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 3 Sep 2014 09:48:30 -0400 Subject: [PATCH] put marker "track" above rulers --- gtk2_ardour/editor_rulers.cc | 49 +++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/gtk2_ardour/editor_rulers.cc b/gtk2_ardour/editor_rulers.cc index 8a9040d48a..2968f5e3e8 100644 --- a/gtk2_ardour/editor_rulers.cc +++ b/gtk2_ardour/editor_rulers.cc @@ -440,6 +440,23 @@ Editor::update_ruler_visibility () videotl_label.hide(); #endif + if (Profile->get_trx()) { + if (ruler_marker_action->get_active()) { + old_unit_pos = marker_group->position().y; + if (tbpos != old_unit_pos) { + marker_group->move (ArdourCanvas::Duple (0.0, tbpos - old_unit_pos)); + } + marker_group->show(); + mark_label.show(); + tbpos += timebar_height; + tbgpos += timebar_height; + visible_timebars++; + } else { + marker_group->hide(); + mark_label.hide(); + } + } + if (ruler_minsec_action->get_active()) { old_unit_pos = minsec_ruler->position().y; if (tbpos != old_unit_pos) { @@ -579,21 +596,23 @@ Editor::update_ruler_visibility () // make sure all cd markers show up in their respective places update_cd_marker_display(); } - - if (ruler_marker_action->get_active()) { - old_unit_pos = marker_group->position().y; - if (tbpos != old_unit_pos) { - marker_group->move (ArdourCanvas::Duple (0.0, tbpos - old_unit_pos)); - } - marker_group->show(); - mark_label.show(); - tbpos += timebar_height; - tbgpos += timebar_height; - visible_timebars++; - } else { - marker_group->hide(); - mark_label.hide(); - } + + if (!Profile->get_trx()) { + if (ruler_marker_action->get_active()) { + old_unit_pos = marker_group->position().y; + if (tbpos != old_unit_pos) { + marker_group->move (ArdourCanvas::Duple (0.0, tbpos - old_unit_pos)); + } + marker_group->show(); + mark_label.show(); + tbpos += timebar_height; + tbgpos += timebar_height; + visible_timebars++; + } else { + marker_group->hide(); + mark_label.hide(); + } + } if (ruler_video_action->get_active()) { old_unit_pos = videotl_group->position().y;