X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcrossfade_view.h;h=a1f6d56f8e5c888804c05310431ca7ed413b80d5;hb=965c295451916cf7f04d33fbf41ff2beb573439b;hp=d8a5d89858b67b0691ea2fbbc6e71e82a4b97a53;hpb=14d43ca9fe28a8309b4a52fa85e2b0c64a92248b;p=ardour.git diff --git a/gtk2_ardour/crossfade_view.h b/gtk2_ardour/crossfade_view.h index d8a5d89858..a1f6d56f8e 100644 --- a/gtk2_ardour/crossfade_view.h +++ b/gtk2_ardour/crossfade_view.h @@ -15,39 +15,37 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id$ */ #ifndef __gtk_ardour_crossfade_view_h__ #define __gtk_ardour_crossfade_view_h__ #include -#include -#include +#include #include #include #include "time_axis_view_item.h" -class AudioTimeAxisView; +class RouteTimeAxisView; class AudioRegionView; struct CrossfadeView : public TimeAxisViewItem { - CrossfadeView (GnomeCanvasGroup*, - AudioTimeAxisView&, - ARDOUR::Crossfade&, + CrossfadeView (ArdourCanvas::Group*, + RouteTimeAxisView&, + boost::shared_ptr, double initial_samples_per_unit, - GdkColor& basic_color, + Gdk::Color& basic_color, AudioRegionView& leftview, AudioRegionView& rightview); ~CrossfadeView (); - ARDOUR::Crossfade& crossfade; // ok, let 'em have it + boost::shared_ptr crossfade; // ok, let 'em have it + AudioRegionView& left_view; // and these too AudioRegionView& right_view; - std::string get_item_name(); void set_height (double); bool valid() const { return _valid; } @@ -71,14 +69,15 @@ struct CrossfadeView : public TimeAxisViewItem double spu; - GnomeCanvasItem *overlap_rect; - GnomeCanvasItem *fade_in; - GnomeCanvasItem *fade_out; - GnomeCanvasItem *active_button; + ArdourCanvas::Item *overlap_rect; + ArdourCanvas::Line *fade_in; + ArdourCanvas::Line *fade_out; + ArdourCanvas::Item *active_button; void crossfade_changed (ARDOUR::Change); void active_changed (); void redraw_curves (); + void color_handler (); }; #endif /* __gtk_ardour_crossfade_view_h__ */