2007-02-07 07:57:53 +02:00
|
|
|
/* This file is part of Patchage.
|
|
|
|
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
|
2006-06-09 05:18:57 +03:00
|
|
|
*
|
2006-10-02 23:56:28 +03:00
|
|
|
* Patchage is free software; you can redistribute it and/or modify it under the
|
2006-06-09 05:18:57 +03:00
|
|
|
* 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.
|
|
|
|
*
|
2006-10-02 23:56:28 +03:00
|
|
|
* Patchage is distributed in the hope that it will be useful, but WITHOUT ANY
|
2006-06-09 05:18:57 +03:00
|
|
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for 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.,
|
2007-04-06 07:29:27 +03:00
|
|
|
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2006-06-09 05:18:57 +03:00
|
|
|
*/
|
|
|
|
|
2008-03-16 19:08:02 +02:00
|
|
|
#ifndef PATCHAGE_PATCHAGEPORT_HPP
|
|
|
|
#define PATCHAGE_PATCHAGEPORT_HPP
|
2006-06-09 05:18:57 +03:00
|
|
|
|
2008-10-03 04:10:58 +03:00
|
|
|
#include "config.h"
|
2006-06-09 05:18:57 +03:00
|
|
|
#include <string>
|
2006-10-03 04:04:11 +03:00
|
|
|
#include <boost/shared_ptr.hpp>
|
2007-07-24 22:26:47 +03:00
|
|
|
#include <flowcanvas/Port.hpp>
|
|
|
|
#include <flowcanvas/Module.hpp>
|
|
|
|
|
2007-06-06 05:51:08 +03:00
|
|
|
using namespace FlowCanvas;
|
2006-06-09 05:18:57 +03:00
|
|
|
|
2008-08-02 17:13:39 +03:00
|
|
|
enum PortType { JACK_AUDIO, JACK_MIDI };
|
2006-06-09 05:18:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
/** A Port on a PatchageModule
|
|
|
|
*
|
|
|
|
* \ingroup OmGtk
|
|
|
|
*/
|
2008-08-02 17:13:39 +03:00
|
|
|
struct PatchagePort : public FlowCanvas::Port
|
2006-06-09 05:18:57 +03:00
|
|
|
{
|
2008-08-02 17:13:39 +03:00
|
|
|
PatchagePort(
|
|
|
|
boost::shared_ptr<Module> module,
|
|
|
|
const std::string& name,
|
|
|
|
bool is_input,
|
|
|
|
int color)
|
2008-01-02 06:14:26 +02:00
|
|
|
: Port(module, name, is_input, color)
|
2006-06-09 05:18:57 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~PatchagePort() {}
|
|
|
|
|
2008-08-02 17:13:39 +03:00
|
|
|
PortType type;
|
|
|
|
bool is_a2j_mapped;
|
|
|
|
std::string a2j_jack_port_name; // valid only if is_a2j_mapped is true
|
2006-06-09 05:18:57 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-03-16 19:08:02 +02:00
|
|
|
#endif // PATCHAGE_PATCHAGEPORT_HPP
|