Use conf.fatal for fatal configuration errors
[ardour.git] / gtk2_ardour / crossfade_edit.h
index 8e582baa524b1fa152290513de6558c6c79bef63..4c4333c5d640b8a89d83ee0e30994224283bb949 100644 (file)
@@ -1,21 +1,25 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
+ * Copyright (C) 2005-2013 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
+ * Copyright (C) 2006 Doug McLain <doug@nostar.net>
+ * Copyright (C) 2007-2009 David Robillard <d@drobilla.net>
+ * Copyright (C) 2009-2010 Carl Hetherington <carl@carlh.net>
+ * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
 
 #ifndef __gtk_ardour_xfade_edit_h__
 #define __gtk_ardour_xfade_edit_h__
@@ -44,12 +48,15 @@ namespace ArdourCanvas {
        class Rectangle;
        class Line;
        class Polygon;
+}
+
+namespace ArdourWaveview {
        class WaveView;
 }
 
 class CrossfadeEditor : public ArdourDialog
 {
-  public:
+public:
        CrossfadeEditor (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Crossfade>, double miny, double maxy);
        ~CrossfadeEditor ();
 
@@ -57,8 +64,7 @@ class CrossfadeEditor : public ArdourDialog
 
        static const double canvas_border;
 
-       /* these are public so that a caller/subclass can make them do the right thing.
-        */
+       /* these are public so that a caller/subclass can make them do the right thing. */
 
        Gtk::Button* cancel_button;
        Gtk::Button* ok_button;
@@ -83,11 +89,11 @@ class CrossfadeEditor : public ArdourDialog
        static Presets* fade_in_presets;
        static Presets* fade_out_presets;
 
-  protected:
+protected:
        bool on_key_press_event (GdkEventKey*);
        bool on_key_release_event (GdkEventKey*);
 
-  private:
+private:
        boost::shared_ptr<ARDOUR::Crossfade> xfade;
 
        Gtk::VBox vpacker;
@@ -120,7 +126,7 @@ class CrossfadeEditor : public ArdourDialog
                std::list<Point*>       points;
                ARDOUR::AutomationList  normative_curve; /* 0 - 1.0, linear */
                ARDOUR::AutomationList  gain_curve;      /* 0 - 2.0, gain mapping */
-               std::vector<ArdourCanvas::WaveView*>  waves;
+               std::vector<ArdourWaveView::WaveView*>  waves;
 
                Half();
        };