diff options
author | nick_m <mainsbridge@gmail.com> | 2017-06-17 04:25:50 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2017-07-22 02:15:20 +1000 |
commit | 33c06fd3ca3519e1322a4d5e6b3ca8339fe7e7a2 (patch) | |
tree | a8483320c90c75fcd5118aed5cc94b1abdcce955 /gtk2_ardour/editor_markers.cc | |
parent | 29e580a2493467efb864d0e9a0d0a0a3b5f2ec4e (diff) |
Indicate musical position lock style of regions and locations using BEAMED EIGHTH NOTES in name
Also attempt to indicate lock type with symbols CROSS OF JERUSALEM and
LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR
Diffstat (limited to 'gtk2_ardour/editor_markers.cc')
-rw-r--r-- | gtk2_ardour/editor_markers.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_markers.cc b/gtk2_ardour/editor_markers.cc index 64018f3f21..6fda0ad3f1 100644 --- a/gtk2_ardour/editor_markers.cc +++ b/gtk2_ardour/editor_markers.cc @@ -165,6 +165,7 @@ Editor::add_new_location_internal (Location* location) } location->name_changed.connect (*this, invalidator (*this), boost::bind (&Editor::location_changed, this, _1), gui_context()); + location->position_lock_style_changed.connect (*this, invalidator (*this), boost::bind (&Editor::location_changed, this, _1), gui_context()); location->FlagsChanged.connect (*this, invalidator (*this), boost::bind (&Editor::location_flags_changed, this, location), gui_context()); pair<Location*,LocationMarkers*> newpair; @@ -205,7 +206,12 @@ Editor::location_changed (Location *location) return; } - lam->set_name (location->name ()); + if (location->position_lock_style() == MusicTime) { + lam->set_name ("\u266B" + location->name ()); // BEAMED EIGHTH NOTES + } else { + lam->set_name (location->name ()); + } + lam->set_position (location->start(), location->end()); if (location->is_auto_loop()) { |