summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_view.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-12-08 21:02:37 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-12-08 21:02:37 +0000
commitf17661208686f7237efc902c61028462af75a240 (patch)
tree0443d126054643c476b63a8be4722c13320d3ce4 /gtk2_ardour/region_view.h
parent32ac2049fe5a873853ac3c3b6dcb682150222dd3 (diff)
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
Diffstat (limited to 'gtk2_ardour/region_view.h')
-rw-r--r--gtk2_ardour/region_view.h18
1 files changed, 18 insertions, 0 deletions
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<ArdourCanvas::SimpleRect*> _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<ArdourCanvas::SimpleRect*> _silent_frames;
+ /** a text item to display strip silence statistics
+ */
+ ArdourCanvas::NoEventText* _silence_text;
+
ARDOUR::BeatsFramesConverter _time_converter;
};