Fix copy/paste mess in ab298f035ae
[ardour.git] / gtk2_ardour / route_params_ui.h
index 83ddf27110f937275159bd926b57745233279c7b..7dd00bc34cf6522d677980f77b9cb9206a303d95 100644 (file)
@@ -1,21 +1,24 @@
 /*
-    Copyright (C) 2000 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-2007 Taybin Rutkin <taybin@taybin.com>
+ * Copyright (C) 2005-2017 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2007-2011 David Robillard <d@drobilla.net>
+ * Copyright (C) 2009-2012 Carl Hetherington <carl@carlh.net>
+ * Copyright (C) 2014-2019 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 __ardour_route_params_ui_h__
 #define __ardour_route_params_ui_h__
 
 #include "ardour/ardour.h"
 
-#include <gtkmm2ext/pane.h>
+#include <widgets/pane.h>
 
 #include "ardour_window.h"
 #include "processor_box.h"
-#include "route_processor_selection.h"
-#include "latency_gui.h"
+#include "processor_selection.h"
 
 namespace ARDOUR {
        class Route;
@@ -58,49 +60,38 @@ class IOSelector;
 
 class RouteParams_UI : public ArdourWindow, public PBD::ScopedConnectionList
 {
-  public:
+public:
        RouteParams_UI ();
        ~RouteParams_UI();
 
        void set_session (ARDOUR::Session*);
        void session_going_away ();
-       PluginSelector* plugin_selector() { return _plugin_selector; }
+       PluginSelector* plugin_selector();
 
-  private:
+private:
        Gtk::VBox                list_vpacker;
        Gtk::ScrolledWindow      route_select_scroller;
 
        Gtk::Notebook            notebook;
-       Gtk::Frame               input_frame;
-       Gtk::Frame               output_frame;
-       Gtkmm2ext::HPane         redir_hpane;
+       Gtk::Frame               input_frame;
+       Gtk::Frame               output_frame;
+       ArdourWidgets::HPane     redir_hpane;
 
-       Gtk::Frame               route_select_frame;
+       Gtk::Frame               route_select_frame;
 
        Gtk::HBox                route_hpacker;
        Gtk::VBox                route_vpacker;
 
        ProcessorBox*            insert_box;
 
-       Gtkmm2ext::HPane         list_hpane;
+       ArdourWidgets::HPane     list_hpane;
 
-       Gtkmm2ext::HPane         right_hpane;
+       ArdourWidgets::HPane     right_hpane;
 
-       Gtk::Frame               route_param_frame;
+       Gtk::Frame               route_param_frame;
 
        Gtk::VBox                choice_vpacker;
 
-       Gtk::Frame               latency_frame;
-       Gtk::VBox                latency_packer;
-       Gtk::HButtonBox          latency_button_box;
-       Gtk::Button              latency_apply_button;
-       LatencyGUI*              latency_widget;
-       Gtk::Label               delay_label;
-
-       PBD::ScopedConnectionList latency_connections;
-       sigc::connection          latency_click_connection;
-
-       void refresh_latency ();
 
        Gtk::ToggleButton input_button;
        Gtk::ToggleButton output_button;
@@ -112,8 +103,7 @@ class RouteParams_UI : public ArdourWindow, public PBD::ScopedConnectionList
        IOSelector     * _input_iosel;
        IOSelector     * _output_iosel;
 
-       PluginSelector    *_plugin_selector;
-       RouteProcessorSelection  _rr_selection;
+       ProcessorSelection  _p_selection;
 
        boost::shared_ptr<ARDOUR::Route> _route;
        PBD::ScopedConnection _route_processors_connection;
@@ -160,11 +150,9 @@ class RouteParams_UI : public ArdourWindow, public PBD::ScopedConnectionList
        void route_selected();
        //void route_unselected (gint row, gint col, GdkEvent *ev);
 
-       void setup_io_frames();
-       void cleanup_io_frames();
+       void setup_io_selector();
+       void cleanup_io_selector();
        void cleanup_view(bool stopupdate = true);
-       void cleanup_latency_frame ();
-       void setup_latency_frame ();
 
        void processors_changed (ARDOUR::RouteProcessorChange);