- ARDOUR::Crossfade& xfade;
- ARDOUR::Session& session;
-
- Gtk::VBox vpacker;
-
- struct Point {
- ~Point();
-
- ArdourCanvas::SimpleRect* box;
- ArdourCanvas::Line* curve;
- double x;
- double y;
-
- static const int32_t size;
-
- void move_to (double x, double y, double xfract, double yfract);
- };
-
- struct PointSorter
- {
- bool operator() (const CrossfadeEditor::Point* a, const CrossfadeEditor::Point *b) {
- return a->x < b->x;
- }
- };
-
- ArdourCanvas::SimpleRect* toplevel;
- ArdourCanvas::Canvas* canvas;
-
- struct Half {
- ArdourCanvas::Line* line;
- ArdourCanvas::Polygon* shading;
- list<Point*> points;
- ARDOUR::Curve normative_curve; /* 0 - 1.0, linear */
- ARDOUR::Curve gain_curve; /* 0 - 2.0, gain mapping */
- vector<ArdourCanvas::WaveView*> waves;
-
- Half();
- };
-
- enum WhichFade {
- In = 0,
- Out = 1
- };
-
- Half fade[2];
- WhichFade current;
-
- bool point_grabbed;
- vector<Gtk::Button*> fade_out_buttons;
- vector<Gtk::Button*> fade_in_buttons;
-
- //Gtk::HBox action_box;
+ boost::shared_ptr<ARDOUR::Crossfade> xfade;
+ ARDOUR::Session& session;
+
+ Gtk::VBox vpacker;
+
+ struct Point {
+ ~Point();
+
+ ArdourCanvas::SimpleRect* box;
+ ArdourCanvas::Line* curve;
+ double x;
+ double y;
+
+ static const int32_t size;
+
+ void move_to (double x, double y, double xfract, double yfract);
+ };
+
+ struct PointSorter
+ {
+ bool operator() (const CrossfadeEditor::Point* a, const CrossfadeEditor::Point *b) {
+ return a->x < b->x;
+ }
+ };
+
+ ArdourCanvas::SimpleRect* toplevel;
+ ArdourCanvas::Canvas* canvas;
+
+ struct Half {
+ ArdourCanvas::Line* line;
+ ArdourCanvas::Polygon* shading;
+ list<Point*> points;
+ ARDOUR::AutomationList normative_curve; /* 0 - 1.0, linear */
+ ARDOUR::AutomationList gain_curve; /* 0 - 2.0, gain mapping */
+ vector<ArdourCanvas::WaveView*> waves;
+
+ Half();
+ };
+
+ enum WhichFade {
+ In = 0,
+ Out = 1
+ };
+
+ Half fade[2];
+ WhichFade current;
+
+ bool point_grabbed;
+ vector<Gtk::Button*> fade_out_buttons;
+ vector<Gtk::Button*> fade_in_buttons;