From f17661208686f7237efc902c61028462af75a240 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 8 Dec 2010 21:02:37 +0000 Subject: move display of silence for strip-silence into regionviews, along with text to describe impact on the region. this doesn't actually make strip-silence work any better, but the display is improving git-svn-id: svn://localhost/ardour2/branches/3.0@8224 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/region_view.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gtk2_ardour/region_view.h') diff --git a/gtk2_ardour/region_view.h b/gtk2_ardour/region_view.h index d9e6f1292b..c291d60cf6 100644 --- a/gtk2_ardour/region_view.h +++ b/gtk2_ardour/region_view.h @@ -38,6 +38,10 @@ class GhostRegion; class AutomationTimeAxisView; class AutomationRegionView; +namespace Gnome { namespace Canvas { + class NoEventText; +} } + class RegionView : public TimeAxisViewItem { public: @@ -108,6 +112,11 @@ class RegionView : public TimeAxisViewItem void trim_contents (framepos_t, bool, bool); virtual void thaw_after_trim (); + void set_silent_frames (const ARDOUR::AudioIntervalResult&); + void drop_silent_frames (); + void hide_silent_frames (); + void show_silent_frames (); + protected: /** Allows derived types to specify their visibility requirements @@ -164,6 +173,15 @@ class RegionView : public TimeAxisViewItem */ std::list _coverage_frames; + /** a list of rectangles which are used in stacked display mode to colour + different bits of regions according to whether or not they are the one + that will be played at any given time. + */ + std::list _silent_frames; + /** a text item to display strip silence statistics + */ + ArdourCanvas::NoEventText* _silence_text; + ARDOUR::BeatsFramesConverter _time_converter; }; -- cgit v1.2.3