summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_types.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-01-30 15:08:09 +0000
committerCarl Hetherington <carl@carlh.net>2009-01-30 15:08:09 +0000
commita384dab13095f3d909e52eff9e6170ae55416601 (patch)
treec8af98d36927095909f54d3e8e8819af4c98b184 /gtk2_ardour/port_matrix_types.h
parent24aab941eb4d77e5bdf3933b11f8ce5659872b52 (diff)
More port matrix re-working. Global matrix now has separate visibility buttons
for ins and outs. The matrix will now be arranged so that more ports are labelled horizontally than vertically, to aid readability. git-svn-id: svn://localhost/ardour2/branches/3.0@4467 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_types.h')
-rw-r--r--gtk2_ardour/port_matrix_types.h36
1 files changed, 5 insertions, 31 deletions
diff --git a/gtk2_ardour/port_matrix_types.h b/gtk2_ardour/port_matrix_types.h
index 16fb440ace..2c80c24cce 100644
--- a/gtk2_ardour/port_matrix_types.h
+++ b/gtk2_ardour/port_matrix_types.h
@@ -22,36 +22,10 @@
#include "ardour/bundle.h"
-struct PortMatrixBundleChannel {
- PortMatrixBundleChannel () : channel (0) {}
- PortMatrixBundleChannel (boost::shared_ptr<ARDOUR::Bundle> b, uint32_t c)
- : bundle (b), channel (c) {}
-
- bool operator== (PortMatrixBundleChannel const& other) const {
- return bundle == other.bundle && channel == other.channel;
- }
- bool operator!= (PortMatrixBundleChannel const& other) const {
- return bundle != other.bundle || channel != other.channel;
- }
-
- uint32_t nchannels (ARDOUR::BundleList const& bl) const {
- uint32_t n = 0;
- ARDOUR::BundleList::const_iterator i = bl.begin();
- while (i != bl.end() && *i != bundle) {
- n += (*i)->nchannels ();
- ++i;
- }
- n += channel;
- return n;
- }
-
- boost::shared_ptr<ARDOUR::Bundle> bundle;
- uint32_t channel;
-};
-
-struct PortMatrixNode {
+struct PortMatrixNode
+{
PortMatrixNode () {}
- PortMatrixNode (PortMatrixBundleChannel r, PortMatrixBundleChannel c) : row (r), column (c) {}
+ PortMatrixNode (ARDOUR::BundleChannel r, ARDOUR::BundleChannel c) : row (r), column (c) {}
bool operator== (PortMatrixNode const& other) const {
return row == other.row && column == other.column;
@@ -60,8 +34,8 @@ struct PortMatrixNode {
return row != other.row || column != other.column;
}
- PortMatrixBundleChannel row;
- PortMatrixBundleChannel column;
+ ARDOUR::BundleChannel row;
+ ARDOUR::BundleChannel column;
};
#endif