Extend time canvas to use available space to the rigt (and line up nicely).
[ardour.git] / gtk2_ardour / redirect_box.h
index 4b872ed0bfcf3c1714f8d090e3525cee8b78fe04..089542b0411c56360724a2bd41b533d71913b321 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_gtk_redirect_box__
@@ -53,7 +52,7 @@ class PluginUIWindow;
 class RouteRedirectSelection;
 
 namespace ARDOUR {
-       class Connection;
+       class Bundle;
        class Insert;
        class Plugin;
        class PluginInsert;
@@ -92,6 +91,7 @@ class RedirectBox : public Gtk::HBox
        boost::shared_ptr<ARDOUR::Route>  _route;
        ARDOUR::Session &   _session;
        bool                _owner_is_mixer;
+       bool                 ab_direction;
 
        ARDOUR::Placement   _placement;
 
@@ -151,17 +151,13 @@ class RedirectBox : public Gtk::HBox
        bool ignore_delete;
 
        bool redirect_button_press_event (GdkEventButton *);
+       bool redirect_button_release_event (GdkEventButton *);
        void redisplay_redirects (void* src);
        void add_redirect_to_display (boost::shared_ptr<ARDOUR::Redirect>);
        void row_deleted (const Gtk::TreeModel::Path& path);
-       void show_redirect_name (void*, boost::weak_ptr<ARDOUR::Redirect>);
-
-       /* these are handlers for Redirect signals, so they take Redirect*
-          directly, rather than shared_ptr<Redirect>
-       */
-
-       void show_redirect_active (boost::weak_ptr<ARDOUR::Redirect>, void *);
-
+       void show_redirect_active_r (ARDOUR::Redirect*, void *, boost::weak_ptr<ARDOUR::Redirect>);
+       void show_redirect_active (boost::weak_ptr<ARDOUR::Redirect>);
+       void show_redirect_name (void* src, boost::weak_ptr<ARDOUR::Redirect>);
        string redirect_name (boost::weak_ptr<ARDOUR::Redirect>);
 
        void remove_redirect_gui (boost::shared_ptr<ARDOUR::Redirect>);
@@ -175,10 +171,13 @@ class RedirectBox : public Gtk::HBox
        void redirect_drag_begin (GdkDragContext*);
        void redirect_drag_end (GdkDragContext*);
        void all_redirects_active(bool state);
+       void all_plugins_active(bool state);
+       void ab_plugins ();
 
        void cut_redirects ();
        void copy_redirects ();
        void paste_redirects ();
+       void delete_redirects ();
        void clear_redirects ();
        void clone_redirects ();
        void rename_redirects ();
@@ -199,7 +198,7 @@ class RedirectBox : public Gtk::HBox
 
        gint idle_delete_redirect (boost::weak_ptr<ARDOUR::Redirect>);
 
-       void wierd_plugin_dialog (ARDOUR::Plugin& p, uint32_t streams, boost::shared_ptr<ARDOUR::IO> io);
+       void weird_plugin_dialog (ARDOUR::Plugin& p, uint32_t streams, boost::shared_ptr<ARDOUR::IO> io);
 
        static RedirectBox* _current_redirect_box;
        static bool enter_box (GdkEventCrossing*, RedirectBox*);
@@ -212,6 +211,7 @@ class RedirectBox : public Gtk::HBox
        static void rb_cut ();
        static void rb_copy ();
        static void rb_paste ();
+       static void rb_delete ();
        static void rb_rename ();
        static void rb_select_all ();
        static void rb_deselect_all ();
@@ -220,6 +220,8 @@ class RedirectBox : public Gtk::HBox
        static void rb_activate_all ();
        static void rb_deactivate_all ();
        static void rb_edit ();
+       static void rb_ab_plugins ();
+       static void rb_deactivate_plugins ();
        
        void route_name_changed (void* src, PluginUIWindow* plugin_ui, boost::weak_ptr<ARDOUR::PluginInsert> pi);
        std::string generate_redirect_title (boost::shared_ptr<ARDOUR::PluginInsert> pi);