From 87d8f1f36048f1a118cb077ad8ba127c163e8ba5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 19 Jul 2009 20:36:46 +0000 Subject: Modify line-drag behaviour in port matrix so that nodes under the drag get the toggled state of the starting node. git-svn-id: svn://localhost/ardour2/branches/3.0@5384 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix_grid.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/port_matrix_grid.h') diff --git a/gtk2_ardour/port_matrix_grid.h b/gtk2_ardour/port_matrix_grid.h index 22abe5fe43..35a4c84d6c 100644 --- a/gtk2_ardour/port_matrix_grid.h +++ b/gtk2_ardour/port_matrix_grid.h @@ -61,11 +61,12 @@ private: PortMatrixNode position_to_node (uint32_t, uint32_t) const; void queue_draw_for (PortMatrixNode const &); void draw_association_indicator (cairo_t *, uint32_t, uint32_t, double p = 1); + void draw_empty_square (cairo_t *, uint32_t, uint32_t); void draw_unknown_indicator (cairo_t *, uint32_t, uint32_t); - PortMatrixNode::State bundle_to_bundle_state (boost::shared_ptr, boost::shared_ptr) const; std::list nodes_on_line (int, int, int, int) const; - void toggle_association (PortMatrixNode node); - void set_association (PortMatrixNode node); + PortMatrixNode::State get_association (PortMatrixNode) const; + void set_association (PortMatrixNode, bool); + bool toggle_state (PortMatrixNode::State) const; bool _dragging; bool _moved; -- cgit v1.2.3