Use labs() for long instead of abs()
[ardour.git] / gtk2_ardour / route_ui.h
index 011498124ebb810c6b8e47af571097d26e2d72ee..82a0ee1ec4b1e0bd4b1d0da1b91835b61ef0663a 100644 (file)
@@ -1,21 +1,26 @@
 /*
-    Copyright (C) 2002 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-2017 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com>
+ * Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
+ * Copyright (C) 2006-2011 David Robillard <d@drobilla.net>
+ * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
+ * Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
+ * Copyright (C) 2014-2015 Ben Loftis <ben@harrisonconsoles.com>
+ *
+ * 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_ui__
 #define __ardour_route_ui__
@@ -63,6 +68,8 @@ namespace ArdourWidgets {
 class ArdourWindow;
 class IOSelectorWindow;
 class ControlSlaveUI;
+class PatchChangeGridDialog;
+class SaveTemplateDialog;
 
 class RoutePinWindowProxy : public WM::ProxyBase
 {
@@ -112,6 +119,8 @@ public:
        Gdk::Color route_color () const;
        void choose_color ();
 
+       void select_midi_patch ();
+
        bool ignore_toggle;
        bool wait_for_release;
        bool multiple_mute_change;
@@ -242,8 +251,7 @@ public:
 
        virtual void map_frozen ();
 
-       void adjust_latency ();
-       bool process_save_template_prompter (ArdourWidgets::Prompter& prompter, const std::string& dir);
+       void save_as_template_dialog_response (int response, SaveTemplateDialog* d);
        void save_as_template ();
 
        static Gtkmm2ext::ActiveState solo_active_state (boost::shared_ptr<ARDOUR::Stripable>);
@@ -267,6 +275,8 @@ public:
        void comment_edited ();
        bool ignore_comment_edit;
 
+       void set_disk_io_point (ARDOUR::DiskIOPoint);
+
 protected:
 
        ArdourWindow*  comment_window;
@@ -298,10 +308,13 @@ protected:
 
        bool mark_hidden (bool yn);
 
+       PatchChangeGridDialog* patch_change_dialog () const;
+
 private:
        void parameter_changed (std::string const&);
        void relabel_solo_button ();
        void track_mode_changed ();
+       void delete_patch_change_dialog ();
 
        std::string route_state_id () const;