remove "New Return" menu option from processor box; make return toggle processor...
[ardour.git] / gtk2_ardour / port_matrix_component.h
index 3d9e5488b4885b23eec83d0894ae0edee16381e2..196a24b0c01333987d88a7e156a906a1e42bf3b7 100644 (file)
@@ -47,8 +47,11 @@ public:
        virtual double parent_to_component_x (double x) const = 0;
        virtual double component_to_parent_y (double y) const = 0;
        virtual double parent_to_component_y (double y) const = 0;
-       virtual void mouseover_changed (PortMatrixNode const &) = 0;
+       virtual void mouseover_changed (std::list<PortMatrixNode> const &) = 0;
        virtual void draw_extra (cairo_t *) = 0;
+       virtual void button_press (double, double, int, uint32_t, guint) {}
+       virtual void button_release (double, double, int, uint32_t, guint) {}
+       virtual void motion (double, double) {}
 
        void set_show_ports (bool);
        void setup ();
@@ -169,8 +172,8 @@ protected:
        void set_source_rgb (cairo_t *, Gdk::Color const &);
        void set_source_rgba (cairo_t *, Gdk::Color const &, double);
        uint32_t group_size (boost::shared_ptr<const PortGroup>) const;
-       uint32_t channel_to_position (ARDOUR::BundleChannel, PortGroupList const *) const;
-       std::pair<boost::shared_ptr<PortGroup>, ARDOUR::BundleChannel> position_to_group_and_channel (uint32_t, PortGroupList const *) const;
+       uint32_t channel_to_position (ARDOUR::BundleChannel, boost::shared_ptr<const PortGroup>) const;
+       virtual ARDOUR::BundleChannel position_to_channel (double, double, boost::shared_ptr<const PortGroup>) const;
 
        /** Render the complete component to a cairo context. */
        virtual void render (cairo_t *) = 0;