ladish/gui/PatchagePort.hpp

56 lines
1.5 KiB
C++

/* This file is part of Patchage.
* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
*
* Patchage 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.
*
* Patchage 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 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 St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef PATCHAGE_PATCHAGEPORT_HPP
#define PATCHAGE_PATCHAGEPORT_HPP
#include "config.h"
#include <string>
#include <boost/shared_ptr.hpp>
#include <flowcanvas/Port.hpp>
#include <flowcanvas/Module.hpp>
using namespace FlowCanvas;
enum PortType { JACK_AUDIO, JACK_MIDI };
/** A Port on a PatchageModule
*
* \ingroup OmGtk
*/
struct PatchagePort : public FlowCanvas::Port
{
PatchagePort(
boost::shared_ptr<Module> module,
const std::string& name,
bool is_input,
int color)
: Port(module, name, is_input, color)
{
}
virtual ~PatchagePort() {}
PortType type;
bool is_a2j_mapped;
std::string a2j_jack_port_name; // valid only if is_a2j_mapped is true
};
#endif // PATCHAGE_PATCHAGEPORT_HPP