2009-01-26 23:21:13 -05:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2009-2012 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2009 Carl Hetherington <carl@carlh.net>
|
|
|
|
*
|
|
|
|
* 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.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2009-01-26 23:21:13 -05:00
|
|
|
|
|
|
|
#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"
|
|
|
|
|
2012-05-23 22:54:10 -04:00
|
|
|
class PortMatrixNode
|
2009-01-30 10:08:09 -05:00
|
|
|
{
|
2012-05-23 22:54:10 -04:00
|
|
|
public:
|
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
|