X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcrossfade_view.h;h=a042611cc9172d45caad943087e5c7140afcbd15;hb=65eeeb7a652d7022783b10e35941ce56e0fc7207;hp=d984f5d2954bc485648c2f49f4268744c09b90c7;hpb=67914e4fc7f74d9679d502dd800cb9276a8845b3;p=ardour.git diff --git a/gtk2_ardour/crossfade_view.h b/gtk2_ardour/crossfade_view.h index d984f5d295..a042611cc9 100644 --- a/gtk2_ardour/crossfade_view.h +++ b/gtk2_ardour/crossfade_view.h @@ -21,7 +21,6 @@ #define __gtk_ardour_crossfade_view_h__ #include -#include #include "pbd/signals.h" #include "ardour/crossfade.h" @@ -30,13 +29,17 @@ class RouteTimeAxisView; class AudioRegionView; +namespace ArdourCanvas { + class PolyLine; +} + class CrossfadeView : public TimeAxisViewItem { public: - CrossfadeView (ArdourCanvas::Group*, + CrossfadeView (ArdourCanvas::Container*, RouteTimeAxisView&, boost::shared_ptr, - double initial_samples_per_unit, + double initial_samples_per_pixel, Gdk::Color& basic_color, AudioRegionView& leftview, AudioRegionView& rightview); @@ -48,7 +51,7 @@ public: AudioRegionView& left_view; // and these too AudioRegionView& right_view; - void set_height (double); + void set_heights (double, double); bool valid() const { return _valid; } bool visible() const { return _visible; } @@ -68,9 +71,10 @@ private: bool _valid; bool _visible; bool _all_in_view; + double _child_height; - ArdourCanvas::Line *fade_in; - ArdourCanvas::Line *fade_out; + ArdourCanvas::PolyLine *fade_in; + ArdourCanvas::PolyLine *fade_out; void crossfade_changed (const PBD::PropertyChange&); void crossfade_fades_changed ();