From 8c40401438db0fa581cb3ccfb624315b09051065 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 17 Oct 2010 23:35:38 +0000 Subject: [PATCH] Reformat. git-svn-id: svn://localhost/ardour2/branches/3.0@7902 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/crossfade_view.h | 92 ++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 45 deletions(-) diff --git a/gtk2_ardour/crossfade_view.h b/gtk2_ardour/crossfade_view.h index 6f77a3043c..c283a92b62 100644 --- a/gtk2_ardour/crossfade_view.h +++ b/gtk2_ardour/crossfade_view.h @@ -30,54 +30,56 @@ class RouteTimeAxisView; class AudioRegionView; -struct CrossfadeView : public TimeAxisViewItem +class CrossfadeView : public TimeAxisViewItem { - CrossfadeView (ArdourCanvas::Group*, - RouteTimeAxisView&, - boost::shared_ptr, - double initial_samples_per_unit, - Gdk::Color& basic_color, - AudioRegionView& leftview, - AudioRegionView& rightview); - ~CrossfadeView (); +public: + CrossfadeView (ArdourCanvas::Group*, + RouteTimeAxisView&, + boost::shared_ptr, + double initial_samples_per_unit, + Gdk::Color& basic_color, + AudioRegionView& leftview, + AudioRegionView& rightview); + + ~CrossfadeView (); - boost::shared_ptr crossfade; // ok, let 'em have it + boost::shared_ptr crossfade; // ok, let 'em have it - AudioRegionView& left_view; // and these too - AudioRegionView& right_view; - - void set_height (double); - - bool valid() const { return _valid; } - bool visible() const { return _visible; } - void set_valid (bool yn); - - static PBD::Signal1 CatchDeletion; - - AudioRegionView& upper_regionview () const; - - void fake_hide (); - void hide (); - void show (); - void horizontal_position_changed (); - - protected: - void reset_width_dependent_items (double pixel_width); - - private: - bool _valid; - bool _visible; - bool _all_in_view; - - ArdourCanvas::Line *fade_in; - ArdourCanvas::Line *fade_out; - ArdourCanvas::Item *active_button; - - void crossfade_changed (const PBD::PropertyChange&); - void crossfade_fades_changed (); - void active_changed (); - void redraw_curves (); - void color_handler (); + AudioRegionView& left_view; // and these too + AudioRegionView& right_view; + + void set_height (double); + + bool valid() const { return _valid; } + bool visible() const { return _visible; } + void set_valid (bool yn); + + static PBD::Signal1 CatchDeletion; + + AudioRegionView& upper_regionview () const; + + void fake_hide (); + void hide (); + void show (); + void horizontal_position_changed (); + +protected: + void reset_width_dependent_items (double pixel_width); + +private: + bool _valid; + bool _visible; + bool _all_in_view; + + ArdourCanvas::Line *fade_in; + ArdourCanvas::Line *fade_out; + ArdourCanvas::Item *active_button; + + void crossfade_changed (const PBD::PropertyChange&); + void crossfade_fades_changed (); + void active_changed (); + void redraw_curves (); + void color_handler (); }; #endif /* __gtk_ardour_crossfade_view_h__ */