2009-01-26 23:21:13 -05:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2009 Paul Davis
|
2009-01-26 23:21:13 -05:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ardour_gtk_port_matrix_types_h__
|
|
|
|
#define __ardour_gtk_port_matrix_types_h__
|
|
|
|
|
2009-01-27 12:37:07 -05:00
|
|
|
#include "ardour/bundle.h"
|
|
|
|
|
2009-01-30 10:08:09 -05:00
|
|
|
struct PortMatrixNode
|
|
|
|
{
|
2009-01-26 23:21:13 -05:00
|
|
|
PortMatrixNode () {}
|
2009-01-30 10:08:09 -05:00
|
|
|
PortMatrixNode (ARDOUR::BundleChannel r, ARDOUR::BundleChannel c) : row (r), column (c) {}
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2009-01-26 23:21:13 -05:00
|
|
|
bool operator== (PortMatrixNode const& other) const {
|
|
|
|
return row == other.row && column == other.column;
|
|
|
|
}
|
|
|
|
bool operator!= (PortMatrixNode const& other) const {
|
|
|
|
return row != other.row || column != other.column;
|
|
|
|
}
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2009-01-30 10:08:09 -05:00
|
|
|
ARDOUR::BundleChannel row;
|
|
|
|
ARDOUR::BundleChannel column;
|
2009-05-03 10:31:42 -04:00
|
|
|
|
|
|
|
enum State {
|
|
|
|
ASSOCIATED, ///< the ports are associated
|
|
|
|
NOT_ASSOCIATED, ///< the ports are not associated
|
|
|
|
PARTIAL ///< used when we are examining bundles; the bundles are partially associated
|
|
|
|
};
|
2009-01-26 23:21:13 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|