diff options
author | Carl Hetherington <carl@carlh.net> | 2009-11-17 00:30:42 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-11-17 00:30:42 +0000 |
commit | f2dbcec61d22f6e5aa483c9c787b660e691f85ad (patch) | |
tree | b237625696f965f624f7778aa2e426ea42c95740 /gtk2_ardour/port_matrix_component.h | |
parent | 25ccf0f5807cc48c8c5d35f1a352e66397ade7bc (diff) |
The matrix used to highlight connections on click-hold on a row or column label; now this happens, without a click, on any mouseover. Also mouseover a bundle name highlights everything connected to that bundle. Some cleanups along the way.
git-svn-id: svn://localhost/ardour2/branches/3.0@6102 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_component.h')
-rw-r--r-- | gtk2_ardour/port_matrix_component.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix_component.h b/gtk2_ardour/port_matrix_component.h index 3d9e5488b4..6a867f16e9 100644 --- a/gtk2_ardour/port_matrix_component.h +++ b/gtk2_ardour/port_matrix_component.h @@ -47,8 +47,10 @@ 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) {} + virtual void motion (double, double) {} void set_show_ports (bool); void setup (); @@ -170,7 +172,7 @@ protected: 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; + virtual std::pair<boost::shared_ptr<PortGroup>, ARDOUR::BundleChannel> position_to_group_and_channel (double, double, PortGroupList const *) const; /** Render the complete component to a cairo context. */ virtual void render (cairo_t *) = 0; |