From f2dbcec61d22f6e5aa483c9c787b660e691f85ad Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 17 Nov 2009 00:30:42 +0000 Subject: 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 --- gtk2_ardour/port_matrix_body.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/port_matrix_body.h') diff --git a/gtk2_ardour/port_matrix_body.h b/gtk2_ardour/port_matrix_body.h index 341957a38a..c8dc0cce29 100644 --- a/gtk2_ardour/port_matrix_body.h +++ b/gtk2_ardour/port_matrix_body.h @@ -28,6 +28,7 @@ class PortMatrix; class PortMatrixColumnLabels; class PortMatrixRowLabels; class PortMatrixGrid; +class PortMatrixComponent; /** The main body of the port matrix. It is made up of three parts: * column labels, grid and row labels, each drawn using cairo. @@ -57,7 +58,8 @@ public: void rebuild_and_draw_grid (); void set_mouseover (PortMatrixNode const &); - PortMatrixNode mouseover () const { + void set_mouseover (std::list const &); + std::list mouseover () const { return _mouseover; } @@ -85,6 +87,7 @@ private: PortMatrixColumnLabels* _column_labels; PortMatrixRowLabels* _row_labels; PortMatrixGrid* _grid; + std::list _components; uint32_t _alloc_width; ///< allocated width uint32_t _alloc_height; ///< allocated height @@ -94,8 +97,7 @@ private: uint32_t _xoffset; uint32_t _yoffset; - PortMatrixNode _mouseover; - bool _mouse_over_grid; + std::list _mouseover; bool _ignore_component_size_changed; std::list _bundle_connections; -- cgit v1.2.3