summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_region_view.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-09-06 12:58:54 +0200
committerRobin Gareus <robin@gareus.org>2015-09-06 12:58:54 +0200
commit787fe69ff870e634dafcbe9a4b5f35b3e3395eea (patch)
tree05267a1a633e97544993fde5866f7fa3947dce70 /gtk2_ardour/audio_region_view.cc
parent1aa4c62abeb7b587dbdba368f1b7de326001dedf (diff)
highlight regions with pending peak-files
Diffstat (limited to 'gtk2_ardour/audio_region_view.cc')
-rw-r--r--gtk2_ardour/audio_region_view.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc
index b0ca3ff8af..7a65dc2012 100644
--- a/gtk2_ardour/audio_region_view.cc
+++ b/gtk2_ardour/audio_region_view.cc
@@ -984,6 +984,17 @@ AudioRegionView::set_amplitude_above_axis (gdouble a)
}
}
+uint32_t
+AudioRegionView::get_fill_color() const
+{
+ ArdourCanvas::Color c = TimeAxisViewItem::get_fill_color();
+ if (!tmp_waves.empty()) {
+ // peak-data is not ready.
+ c &= 0xffffff1f; // TODO: themable color or pattern?
+ }
+ return c;
+}
+
void
AudioRegionView::set_colors ()
{
@@ -1111,6 +1122,9 @@ AudioRegionView::create_waves ()
// cerr << "\tdata is not ready\n";
// we'll get a PeaksReady signal from the source in the future
// and will call create_one_wave(n) then.
+
+ // hightlight track, missing peaks
+ set_colors ();
}
} else {
@@ -1211,6 +1225,8 @@ AudioRegionView::create_one_wave (uint32_t which, bool /*direct*/)
waves = tmp_waves;
tmp_waves.clear ();
+ /* set color to indicate peak-completed */
+ set_colors ();
}
/* channel wave created, don't hook into peaks ready anymore */