summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_body.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-18 02:10:15 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-18 02:10:15 +0000
commit91dae1fb0329b49deb74f2972418c71b0373114c (patch)
treed38d1ec958535bfa7bd03c22f11fcd8c73220de0 /gtk2_ardour/port_matrix_body.cc
parent50437bff22279473cd364d007d5e474af2a542bc (diff)
Drag a line in the port matrix to connect a group of things together in one go. Probably futile attempt at some cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@5375 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_body.cc')
-rw-r--r--gtk2_ardour/port_matrix_body.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/gtk2_ardour/port_matrix_body.cc b/gtk2_ardour/port_matrix_body.cc
index 593c365d3c..a29f2483e3 100644
--- a/gtk2_ardour/port_matrix_body.cc
+++ b/gtk2_ardour/port_matrix_body.cc
@@ -347,6 +347,14 @@ PortMatrixBody::on_button_release_event (GdkEventButton* ev)
_row_labels->clear_channel_highlights ();
_column_labels->clear_channel_highlights ();
+ } else if (Gdk::Region (_grid->parent_rectangle()).point_in (ev->x, ev->y)) {
+
+ _grid->button_release (
+ _grid->parent_to_component_x (ev->x),
+ _grid->parent_to_component_y (ev->y),
+ ev->button, ev->time
+ );
+
}
return true;
@@ -387,11 +395,14 @@ bool
PortMatrixBody::on_motion_notify_event (GdkEventMotion* ev)
{
if (Gdk::Region (_grid->parent_rectangle()).point_in (ev->x, ev->y)) {
- _grid->mouseover_event (
+
+ _grid->motion (
_grid->parent_to_component_x (ev->x),
_grid->parent_to_component_y (ev->y)
);
+
_mouse_over_grid = true;
+
} else {
if (_mouse_over_grid) {
set_mouseover (PortMatrixNode ());
@@ -417,8 +428,6 @@ PortMatrixBody::set_mouseover (PortMatrixNode const & n)
_column_labels->mouseover_changed (old);
}
-
-
void
PortMatrixBody::highlight_associated_channels (int dim, ARDOUR::BundleChannel h)
{