summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_labels.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-05-03 14:31:42 +0000
committerCarl Hetherington <carl@carlh.net>2009-05-03 14:31:42 +0000
commit1ae39840b3e7b1740b44e5889983e93d837f8e90 (patch)
tree3d0e33c90ae040fff6f4b30250d0a22d0ce2c0c8 /gtk2_ardour/port_matrix_labels.cc
parent7e48118bf16702dc174875510b935f37290d56a7 (diff)
Support for the port matrix working at the bundle level and hiding details of ports.
git-svn-id: svn://localhost/ardour2/branches/3.0@5029 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_labels.cc25
1 files changed, 18 insertions, 7 deletions
diff --git a/gtk2_ardour/port_matrix_labels.cc b/gtk2_ardour/port_matrix_labels.cc
index 2734a193ef..8b34b71ffb 100644
--- a/gtk2_ardour/port_matrix_labels.cc
+++ b/gtk2_ardour/port_matrix_labels.cc
@@ -19,19 +19,30 @@
#include "ardour/bundle.h"
#include "port_matrix_labels.h"
+#include "port_matrix.h"
void
PortMatrixLabels::draw_extra (cairo_t* cr)
{
for (std::vector<ARDOUR::BundleChannel>::const_iterator i = _channel_highlights.begin(); i != _channel_highlights.end(); ++i) {
- render_channel_name (
- cr,
- highlighted_channel_colour(),
- component_to_parent_x (channel_x (*i)),
- component_to_parent_y (channel_y (*i)),
- *i
- );
+ if (_matrix->show_only_bundles()) {
+ render_bundle_name (
+ cr,
+ highlighted_channel_colour(),
+ component_to_parent_x (channel_x (*i)),
+ component_to_parent_y (channel_y (*i)),
+ i->bundle
+ );
+ } else {
+ render_channel_name (
+ cr,
+ highlighted_channel_colour(),
+ component_to_parent_x (channel_x (*i)),
+ component_to_parent_y (channel_y (*i)),
+ *i
+ );
+ }
}
}