X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcrossfade_edit.h;h=fab459c54fead1fdfbce9b9e245e67955721f2cf;hb=6aaf4ea17a326eb06d81b06cb83048fbdaaa8a52;hp=f2ec1a125bdd493d064bab253c1b6739833f4ac4;hpb=bb9cc45cd22af67ac275a5e73accbe14fee664d8;p=ardour.git diff --git a/gtk2_ardour/crossfade_edit.h b/gtk2_ardour/crossfade_edit.h index f2ec1a125b..fab459c54f 100644 --- a/gtk2_ardour/crossfade_edit.h +++ b/gtk2_ardour/crossfade_edit.h @@ -27,6 +27,8 @@ #include #include "evoral/Curve.hpp" +#include "ardour/session_handle.h" + #include "ardour_dialog.h" #include "canvas.h" @@ -40,7 +42,7 @@ namespace ARDOUR class CrossfadeEditor : public ArdourDialog { public: - CrossfadeEditor (ARDOUR::Session&, boost::shared_ptr, double miny, double maxy); + CrossfadeEditor (ARDOUR::Session*, boost::shared_ptr, double miny, double maxy); ~CrossfadeEditor (); void apply (); @@ -79,7 +81,6 @@ class CrossfadeEditor : public ArdourDialog private: boost::shared_ptr xfade; - ARDOUR::Session& session; Gtk::VBox vpacker; @@ -182,10 +183,11 @@ class CrossfadeEditor : public ArdourDialog void set (const ARDOUR::AutomationList& alist, WhichFade); - sigc::connection peaks_ready_connection; + PBD::ScopedConnection* _peaks_ready_connection; + PBD::ScopedConnection state_connection; void make_waves (boost::shared_ptr, WhichFade); - void peaks_ready (boost::shared_ptr r, WhichFade); + void peaks_ready (boost::weak_ptr r, WhichFade); void _apply_to (boost::shared_ptr xf); void setup (boost::shared_ptr); @@ -211,7 +213,7 @@ class CrossfadeEditor : public ArdourDialog void audition_right_dry (); void audition_right (); - void xfade_changed (ARDOUR::Change); + void xfade_changed (const PBD::PropertyChange&); void dump (); };