summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-01 17:00:29 +0000
committerDavid Robillard <d@drobilla.net>2011-06-01 17:00:29 +0000
commited626628b54e67dd9621c08d82a42afaed00c7ac (patch)
treecf621db4c44f07f75a6e6a3fb7f572cd2c3622cd /gtk2_ardour/port_matrix_column_labels.cc
parenta473d630eb165272992e90f8d854b1d66ec0be63 (diff)
Delete trailing whitespace
git-svn-id: svn://localhost/ardour2/branches/3.0@9656 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc
index ac4e1fef45..f9b5b6aef8 100644
--- a/gtk2_ardour/port_matrix_column_labels.cc
+++ b/gtk2_ardour/port_matrix_column_labels.cc
@@ -151,7 +151,7 @@ PortMatrixColumnLabels::render (cairo_t* cr)
} else {
x += _matrix->count_of_our_type ((*i)->bundle->nchannels()) * grid_spacing();
}
-
+
++N;
}
@@ -168,12 +168,12 @@ PortMatrixColumnLabels::render (cairo_t* cr)
if (!_matrix->should_show ((*i)->bundle->channel_type(j))) {
continue;
}
-
+
Gdk::Color c = (*i)->has_colour ? (*i)->colour : get_a_bundle_colour (N);
render_channel_name (cr, background_colour (), c, x, 0, ARDOUR::BundleChannel ((*i)->bundle, j));
x += grid_spacing();
}
-
+
++N;
}
}
@@ -213,7 +213,7 @@ PortMatrixColumnLabels::mouseover_changed (list<PortMatrixNode> const &)
ARDOUR::BundleChannel c = i->column;
ARDOUR::BundleChannel r = i->row;
-
+
if (c.bundle && r.bundle) {
add_channel_highlight (c);
} else if (c.bundle) {
@@ -359,7 +359,7 @@ PortMatrixColumnLabels::render_channel_name (
xoff + grid_spacing() - q * sin (angle ()),
yoff + _height - q * cos (angle ())
);
-
+
} else {
@@ -375,15 +375,15 @@ PortMatrixColumnLabels::render_channel_name (
/* only plot the name if the bundle has more than one channel;
the name of a single channel is assumed to be redundant */
-
+
cairo_save (cr);
cairo_rotate (cr, -angle());
-
+
cairo_show_text (
cr,
bc.bundle->channel_name(bc.channel).c_str()
);
-
+
cairo_restore (cr);
}
}
@@ -494,7 +494,7 @@ PortMatrixColumnLabels::motion (double x, double y)
) {
/* if the mouse is over a bundle name, highlight all channels in the bundle */
-
+
list<PortMatrixNode> n;
for (uint32_t i = 0; i < w.bundle->nchannels().n_total(); ++i) {
@@ -502,7 +502,7 @@ PortMatrixColumnLabels::motion (double x, double y)
if (!_matrix->should_show (w.bundle->channel_type(i))) {
continue;
}
-
+
ARDOUR::BundleChannel const bc (w.bundle, i);
n.push_back (PortMatrixNode (ARDOUR::BundleChannel (), bc));
}
@@ -510,7 +510,7 @@ PortMatrixColumnLabels::motion (double x, double y)
_body->set_mouseover (n);
} else {
-
+
_body->set_mouseover (PortMatrixNode (ARDOUR::BundleChannel (), w));
}
-}
+}