From b1406a0e09b0cb27032ade94c58d9a471086b89a Mon Sep 17 00:00:00 2001
From: David Robillard
Date: Sun, 7 Oct 2007 19:59:13 +0000
Subject: Remove DSSI.
git-svn-id: http://svn.drobilla.net/lad/ingen@838 a436a847-0d15-0410-975c-d299462d15a1
---
src/common/interface/Plugin.hpp | 2 +-
src/libs/client/DeprecatedLoader.cpp | 52 ----
src/libs/client/NodeModel.cpp | 16 --
src/libs/client/NodeModel.hpp | 3 -
src/libs/client/PluginModel.hpp | 3 -
src/libs/engine/DSSINode.cpp | 361 --------------------------
src/libs/engine/DSSINode.hpp | 104 --------
src/libs/engine/LADSPANode.cpp | 1 -
src/libs/engine/Makefile.am | 14 -
src/libs/engine/NodeFactory.cpp | 176 -------------
src/libs/engine/NodeFactory.hpp | 5 -
src/libs/engine/OSCClientSender.cpp | 10 +-
src/libs/engine/OSCEngineReceiver.cpp | 44 ----
src/libs/engine/OSCEngineReceiver.hpp | 4 -
src/libs/engine/PluginImpl.hpp | 12 +-
src/libs/engine/QueuedEngineInterface.cpp | 5 +-
src/libs/engine/events.hpp | 7 -
src/libs/engine/events/DSSIConfigureEvent.cpp | 76 ------
src/libs/engine/events/DSSIConfigureEvent.hpp | 50 ----
src/libs/engine/events/DSSIControlEvent.cpp | 70 -----
src/libs/engine/events/DSSIControlEvent.hpp | 52 ----
src/libs/engine/events/DSSIProgramEvent.cpp | 79 ------
src/libs/engine/events/DSSIProgramEvent.hpp | 50 ----
src/libs/engine/events/DSSIUpdateEvent.cpp | 80 ------
src/libs/engine/events/DSSIUpdateEvent.hpp | 55 ----
src/libs/engine/events/Makefile.am | 8 -
src/libs/gui/DSSIController.cpp | 280 --------------------
src/libs/gui/DSSIController.hpp | 77 ------
src/libs/gui/DSSIModule.cpp | 43 ---
src/libs/gui/DSSIModule.hpp | 46 ----
src/libs/gui/LoadPluginWindow.cpp | 2 -
src/libs/gui/Makefile.am | 4 -
src/libs/gui/NodeModule.hpp | 3 +-
src/libs/gui/UploadPatchWindow.hpp | 1 -
34 files changed, 14 insertions(+), 1781 deletions(-)
delete mode 100644 src/libs/engine/DSSINode.cpp
delete mode 100644 src/libs/engine/DSSINode.hpp
delete mode 100644 src/libs/engine/events/DSSIConfigureEvent.cpp
delete mode 100644 src/libs/engine/events/DSSIConfigureEvent.hpp
delete mode 100644 src/libs/engine/events/DSSIControlEvent.cpp
delete mode 100644 src/libs/engine/events/DSSIControlEvent.hpp
delete mode 100644 src/libs/engine/events/DSSIProgramEvent.cpp
delete mode 100644 src/libs/engine/events/DSSIProgramEvent.hpp
delete mode 100644 src/libs/engine/events/DSSIUpdateEvent.cpp
delete mode 100644 src/libs/engine/events/DSSIUpdateEvent.hpp
delete mode 100644 src/libs/gui/DSSIController.cpp
delete mode 100644 src/libs/gui/DSSIController.hpp
delete mode 100644 src/libs/gui/DSSIModule.cpp
delete mode 100644 src/libs/gui/DSSIModule.hpp
diff --git a/src/common/interface/Plugin.hpp b/src/common/interface/Plugin.hpp
index 7fc7468b..d9665662 100644
--- a/src/common/interface/Plugin.hpp
+++ b/src/common/interface/Plugin.hpp
@@ -27,7 +27,7 @@ namespace Shared {
class Plugin
{
public:
- enum Type { LV2, LADSPA, DSSI, Internal, Patch };
+ enum Type { LV2, LADSPA, Internal, Patch };
virtual Type type() const = 0;
virtual const std::string& uri() const = 0;
diff --git a/src/libs/client/DeprecatedLoader.cpp b/src/libs/client/DeprecatedLoader.cpp
index 96305884..4913b038 100644
--- a/src/libs/client/DeprecatedLoader.cpp
+++ b/src/libs/client/DeprecatedLoader.cpp
@@ -355,58 +355,6 @@ DeprecatedLoader::load_node(const Path& parent, xmlDocPtr doc, const xmlNodePtr
nm->add_port(pm);
#endif
- // DSSI hacks. Stored in the patch files as special elements, but sent to
- // the engine as normal metadata with specially formatted key/values. Not
- // sure if this is the best way to go about this, but it's the least damaging
- // right now
- } else if ((!xmlStrcmp(cur->name, (const xmlChar*)"dssi-program"))) {
- cerr << "FIXME: load dssi program\n";
-#if 0
- xmlNodePtr child = cur->xmlChildrenNode;
-
- string bank;
- string program;
-
- while (child != NULL) {
- key = xmlNodeListGetString(doc, child->xmlChildrenNode, 1);
-
- if ((!xmlStrcmp(child->name, (const xmlChar*)"bank"))) {
- bank = (char*)key;
- } else if ((!xmlStrcmp(child->name, (const xmlChar*)"program"))) {
- program = (char*)key;
- }
-
- xmlFree(key);
- key = NULL; // Avoid a (possible?) double free
- child = child->next;
- }
- nm->set_metadata("dssi-program", Atom(bank.append("/").append(program).c_str()));
-#endif
-
- } else if ((!xmlStrcmp(cur->name, (const xmlChar*)"dssi-configure"))) {
- cerr << "FIXME: load dssi configure\n";
-#if 0
- xmlNodePtr child = cur->xmlChildrenNode;
-
- string dssi_key;
- string dssi_value;
-
- while (child != NULL) {
- key = xmlNodeListGetString(doc, child->xmlChildrenNode, 1);
-
- if ((!xmlStrcmp(child->name, (const xmlChar*)"key"))) {
- dssi_key = (char*)key;
- } else if ((!xmlStrcmp(child->name, (const xmlChar*)"value"))) {
- dssi_value = (char*)key;
- }
-
- xmlFree(key);
- key = NULL; // Avoid a (possible?) double free
-
- child = child->next;
- }
- nm->set_metadata(string("dssi-configure--").append(dssi_key), Atom(dssi_value.c_str()));
-#endif
} else { // Don't know what this tag is, add it as metadata
if (key)
add_metadata(initial_data, (const char*)cur->name, (const char*)key);
diff --git a/src/libs/client/NodeModel.cpp b/src/libs/client/NodeModel.cpp
index 2816c7fa..c3348f89 100644
--- a/src/libs/client/NodeModel.cpp
+++ b/src/libs/client/NodeModel.cpp
@@ -137,22 +137,6 @@ NodeModel::get_port(const string& port_name) const
}
-void
-NodeModel::add_program(int bank, int program, const string& name)
-{
- _banks[bank][program] = name;
-}
-
-
-void
-NodeModel::remove_program(int bank, int program)
-{
- _banks[bank].erase(program);
- if (_banks[bank].size() == 0)
- _banks.erase(bank);
-}
-
-
void
NodeModel::port_value_range(SharedPtr port, float& min, float& max)
{
diff --git a/src/libs/client/NodeModel.hpp b/src/libs/client/NodeModel.hpp
index 080d8f4c..1df7f35e 100644
--- a/src/libs/client/NodeModel.hpp
+++ b/src/libs/client/NodeModel.hpp
@@ -51,8 +51,6 @@ public:
SharedPtr get_port(const string& port_name) const;
- const Table >& get_programs() const { return _banks; }
-
const string& plugin_uri() const { return _plugin_uri; }
SharedPtr plugin() const { return _plugin; }
uint32_t num_ports() const { return _ports.size(); }
@@ -84,7 +82,6 @@ protected:
PortModelList _ports; ///< List of ports (not a Table to preserve order)
string _plugin_uri; ///< Plugin URI (if PluginModel is unknown)
SharedPtr _plugin; ///< The plugin this node is an instance of
- Table > _banks; ///< DSSI banks
};
diff --git a/src/libs/client/PluginModel.hpp b/src/libs/client/PluginModel.hpp
index f3d0a329..67a0295f 100644
--- a/src/libs/client/PluginModel.hpp
+++ b/src/libs/client/PluginModel.hpp
@@ -65,7 +65,6 @@ public:
/*const char* const type_string() const {
if (_type == LV2) return "LV2";
else if (_type == LADSPA) return "LADSPA";
- else if (_type == DSSI) return "DSSI";
else if (_type == Internal) return "Internal";
else if (_type == Patch) return "Patch";
else return "";
@@ -74,7 +73,6 @@ public:
const char* const type_uri() const {
if (_type == LV2) return "ingen:LV2";
else if (_type == LADSPA) return "ingen:LADSPA";
- else if (_type == DSSI) return "ingen:DSSI";
else if (_type == Internal) return "ingen:Internal";
else if (_type == Patch) return "ingen:Patch";
else return "";
@@ -84,7 +82,6 @@ public:
void set_type(const string& type_string) {
if (type_string == "LV2") _type = LV2;
else if (type_string == "LADSPA") _type = LADSPA;
- else if (type_string == "DSSI") _type = DSSI;
else if (type_string == "Internal") _type = Internal;
else if (type_string == "Patch") _type = Patch;
}
diff --git a/src/libs/engine/DSSINode.cpp b/src/libs/engine/DSSINode.cpp
deleted file mode 100644
index 33f8b86c..00000000
--- a/src/libs/engine/DSSINode.cpp
+++ /dev/null
@@ -1,361 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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
- */
-
-#include
\n \n
*/
void
OSCClientSender::polyphonic(const std::string& path,
@@ -472,8 +472,8 @@ OSCClientSender::port_activity(const std::string& port_path)
/** \page client_osc_namespace
* \b /ingen/plugin - Notification of the existance of a plugin
- * \arg \b type (string) - Type of plugin ("LADSPA", "DSSI", or "Internal")
- * \arg \b uri (string) - Type of plugin ("LADSPA", "DSSI", or "Internal")
+ * \arg \b type (string) - Type of plugin ("LADSPA", "LV2", or "Internal")
+ * \arg \b uri (string) - Type of plugin ("LADSPA", "LV2", or "Internal")
* \arg \b name (string) - Descriptive human-readable name of plugin (ie "ADSR Envelope")
*/
void
@@ -547,7 +547,7 @@ OSCClientSender::object_renamed(const std::string& old_path, const std::string&
}
-/** Sends information about a program associated with a DSSI plugin node.
+/** Sends information about a program associated with a node.
*/
void
OSCClientSender::program_add(const std::string& node_path, uint32_t bank, uint32_t program, const std::string& name)
diff --git a/src/libs/engine/OSCEngineReceiver.cpp b/src/libs/engine/OSCEngineReceiver.cpp
index 41437244..cfb3f860 100644
--- a/src/libs/engine/OSCEngineReceiver.cpp
+++ b/src/libs/engine/OSCEngineReceiver.cpp
@@ -116,13 +116,6 @@ OSCEngineReceiver::OSCEngineReceiver(Engine& engine, size_t queue_size, uint16_t
lo_server_add_method(_server, "/ingen/request_plugins", "i", request_plugins_cb, this);
lo_server_add_method(_server, "/ingen/request_all_objects", "i", request_all_objects_cb, this);
-
- // DSSI support
-#ifdef HAVE_DSSI
- // XXX WARNING: notice this is a catch-all
- lo_server_add_method(_server, NULL, NULL, dssi_cb, this);
-#endif
-
lo_server_add_method(_server, NULL, NULL, unknown_cb, NULL);
Thread::set_name("OSC Pre-Processor");
@@ -958,43 +951,6 @@ OSCEngineReceiver::_request_all_objects_cb(const char* path, const char* types,
}
-#ifdef HAVE_DSSI
-int
-OSCEngineReceiver::_dssi_cb(const char* path, const char* types, lo_arg** argv, int argc, lo_message msg)
-{
-#if 0
- string node_path(path);
-
- if (node_path.substr(0, 5) != "/dssi")
- return 1;
-
- string command = node_path.substr(node_path.find_last_of("/")+1);
- node_path = node_path.substr(5); // chop off leading "/dssi/"
- node_path = node_path.substr(0, node_path.find_last_of("/")); // chop off command at end
-
- //cout << "DSSI: Got message " << command << " for node " << node_path << endl;
-
- QueuedEvent* ev = NULL;
-
- if (command == "update" && !strcmp(types, "s"))
- ev = new DSSIUpdateEvent(NULL, node_path, &argv[0]->s);
- else if (command == "control" && !strcmp(types, "if"))
- ev = new DSSIControlEvent(NULL, node_path, argv[0]->i, argv[1]->f);
- else if (command == "configure" && ~strcmp(types, "ss"))
- ev = new DSSIConfigureEvent(NULL, node_path, &argv[0]->s, &argv[1]->s);
- else if (command == "program" && ~strcmp(types, "ii"))
- ev = new DSSIProgramEvent(NULL, node_path, argv[0]->i, argv[1]->i);
-
- if (ev != NULL)
- push(ev);
- else
- cerr << "[OSCEngineReceiver] Unknown DSSI command received: " << path << endl;
-#endif
- return 0;
-}
-#endif
-
-
// Static Callbacks //
diff --git a/src/libs/engine/OSCEngineReceiver.hpp b/src/libs/engine/OSCEngineReceiver.hpp
index c4f86b8c..918c15e2 100644
--- a/src/libs/engine/OSCEngineReceiver.hpp
+++ b/src/libs/engine/OSCEngineReceiver.hpp
@@ -124,10 +124,6 @@ private:
LO_HANDLER(request_plugins);
LO_HANDLER(request_all_objects);
-#ifdef HAVE_DSSI
- LO_HANDLER(dssi);
-#endif
-
lo_server _server;
};
diff --git a/src/libs/engine/PluginImpl.hpp b/src/libs/engine/PluginImpl.hpp
index e2aa4374..13f17ca6 100644
--- a/src/libs/engine/PluginImpl.hpp
+++ b/src/libs/engine/PluginImpl.hpp
@@ -95,7 +95,6 @@ public:
const char* type_string() const {
if (_type == LADSPA) return "LADSPA";
else if (_type == LV2) return "LV2";
- else if (_type == DSSI) return "DSSI";
else if (_type == Internal) return "Internal";
else if (_type == Patch) return "Patch";
else return "";
@@ -108,7 +107,6 @@ public:
void set_type(const string& type_string) {
if (type_string == "LADSPA") _type = LADSPA;
else if (type_string == "LV2") _type = LV2;
- else if (type_string == "DSSI") _type = DSSI;
else if (type_string == "Internal") _type = Internal;
else if (type_string == "Patch") _type = Patch;
}
@@ -124,11 +122,11 @@ public:
private:
Plugin::Type _type;
string _uri; ///< LV2 only
- string _lib_path; ///< LADSPA/DSSI only
- string _lib_name; ///< LADSPA/DSSI only
- string _plug_label; ///< LADSPA/DSSI only
- string _name; ///< LADSPA/DSSI only
- unsigned long _id; ///< LADSPA/DSSI only
+ string _lib_path; ///< LADSPA only
+ string _lib_name; ///< LADSPA only
+ string _plug_label; ///< LADSPA only
+ string _name; ///< LADSPA only
+ unsigned long _id; ///< LADSPA only
Glib::Module* _module;
diff --git a/src/libs/engine/QueuedEngineInterface.cpp b/src/libs/engine/QueuedEngineInterface.cpp
index b7d18bde..9899916c 100644
--- a/src/libs/engine/QueuedEngineInterface.cpp
+++ b/src/libs/engine/QueuedEngineInterface.cpp
@@ -15,6 +15,7 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include
#include "QueuedEngineInterface.hpp"
#include CONFIG_H_PATH
#include "QueuedEventSource.hpp"
@@ -292,9 +293,7 @@ QueuedEngineInterface::set_program(const string& node_path,
uint32_t bank,
uint32_t program)
{
-#ifdef HAVE_DSSI
- push_queued(new DSSIProgramEvent(_engine, _responder, now(), node_path, bank, program));
-#endif
+ std::cerr << "FIXME: set program" << std::endl;
}
diff --git a/src/libs/engine/events.hpp b/src/libs/engine/events.hpp
index 7f87888d..54b23cce 100644
--- a/src/libs/engine/events.hpp
+++ b/src/libs/engine/events.hpp
@@ -51,12 +51,5 @@
#include "SetPortValueQueuedEvent.hpp"
#include "UnregisterClientEvent.hpp"
-#ifdef HAVE_DSSI
-#include "DSSIConfigureEvent.hpp"
-#include "DSSIControlEvent.hpp"
-#include "DSSIProgramEvent.hpp"
-#include "DSSIUpdateEvent.hpp"
-#endif
-
#endif // EVENTS_H
diff --git a/src/libs/engine/events/DSSIConfigureEvent.cpp b/src/libs/engine/events/DSSIConfigureEvent.cpp
deleted file mode 100644
index 25c9ab31..00000000
--- a/src/libs/engine/events/DSSIConfigureEvent.cpp
+++ /dev/null
@@ -1,76 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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
- */
-
-#include "DSSIConfigureEvent.hpp"
-#include "Engine.hpp"
-#include "NodeImpl.hpp"
-#include "ClientBroadcaster.hpp"
-#include "PluginImpl.hpp"
-#include "ObjectStore.hpp"
-
-using namespace std;
-
-namespace Ingen {
-
-
-DSSIConfigureEvent::DSSIConfigureEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& node_path, const string& key, const string& val)
-: QueuedEvent(engine, responder, timestamp),
- _node_path(node_path),
- _key(key),
- _val(val),
- _node(NULL)
-{
-}
-
-
-void
-DSSIConfigureEvent::pre_process()
-{
- NodeImpl* node = _engine.object_store()->find_node(_node_path);
-
- if (node != NULL && node->plugin()->type() == Plugin::DSSI) {
- _node = (DSSINode*)node;
- _node->configure(_key, _val);
- }
-
- QueuedEvent::pre_process();
-}
-
-
-void
-DSSIConfigureEvent::execute(ProcessContext& context)
-{
- QueuedEvent::execute(context);
- // Nothing.
-}
-
-
-void
-DSSIConfigureEvent::post_process()
-{
- if (_node == NULL) {
- cerr << "Unable to find DSSI node " << _node_path << endl;
- } else {
- string key = "dssi-configure--";
- key += _key;
- _engine.broadcaster()->send_metadata_update(_node_path, key, Atom(_val.c_str()));
- }
-}
-
-
-} // namespace Ingen
-
diff --git a/src/libs/engine/events/DSSIConfigureEvent.hpp b/src/libs/engine/events/DSSIConfigureEvent.hpp
deleted file mode 100644
index 5960daf9..00000000
--- a/src/libs/engine/events/DSSIConfigureEvent.hpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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 DSSICONFIGUREEVENT_H
-#define DSSICONFIGUREEVENT_H
-
-#include "QueuedEvent.hpp"
-#include "DSSINode.hpp"
-
-namespace Ingen {
-
-
-/** Change of a 'configure' key/value pair for a DSSI plugin.
- *
- * \ingroup engine
- */
-class DSSIConfigureEvent : public QueuedEvent
-{
-public:
- DSSIConfigureEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& node_path, const string& key, const string& val);
-
- void pre_process();
- void execute(ProcessContext& context);
- void post_process();
-
-private:
- string _node_path;
- string _key;
- string _val;
- DSSINode* _node;
-};
-
-
-} // namespace Ingen
-
-#endif // DSSICONFIGUREEVENT_H
diff --git a/src/libs/engine/events/DSSIControlEvent.cpp b/src/libs/engine/events/DSSIControlEvent.cpp
deleted file mode 100644
index 70c7dc99..00000000
--- a/src/libs/engine/events/DSSIControlEvent.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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
- */
-
-#include "DSSIControlEvent.hpp"
-#include "Engine.hpp"
-#include "NodeImpl.hpp"
-#include "PluginImpl.hpp"
-#include "ObjectStore.hpp"
-
-namespace Ingen {
-
-
-DSSIControlEvent::DSSIControlEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& node_path, int port_num, Sample val)
-: QueuedEvent(engine, responder, timestamp),
- _node_path(node_path),
- _port_num(port_num),
- _val(val),
- _node(NULL)
-{
-}
-
-
-void
-DSSIControlEvent::pre_process()
-{
- NodeImpl* node = _engine.object_store()->find_node(_node_path);
-
- if (node->plugin()->type() != Plugin::DSSI)
- _node = NULL;
- else
- _node = (DSSINode*)node;
-
- QueuedEvent::pre_process();
-}
-
-
-void
-DSSIControlEvent::execute(ProcessContext& context)
-{
- QueuedEvent::execute(context);
-
- if (_node != NULL)
- _node->set_control(_port_num, _val);
-}
-
-
-void
-DSSIControlEvent::post_process()
-{
- if (_node == NULL)
- std::cerr << "Unable to find DSSI node " << _node_path << std::endl;
-}
-
-
-} // namespace Ingen
-
diff --git a/src/libs/engine/events/DSSIControlEvent.hpp b/src/libs/engine/events/DSSIControlEvent.hpp
deleted file mode 100644
index 56fd05cf..00000000
--- a/src/libs/engine/events/DSSIControlEvent.hpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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 DSSICONTROLEVENT_H
-#define DSSICONTROLEVENT_H
-
-#include "QueuedEvent.hpp"
-#include "DSSINode.hpp"
-
-namespace Ingen {
-
-
-/** A control change event for a DSSI plugin.
- *
- * This does essentially the same thing as a SetPortValueEvent.
- *
- * \ingroup engine
- */
-class DSSIControlEvent : public QueuedEvent
-{
-public:
- DSSIControlEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& node_path, int port_num, Sample val);
-
- void pre_process();
- void execute(ProcessContext& context);
- void post_process();
-
-private:
- string _node_path;
- int _port_num;
- float _val;
- DSSINode* _node;
-};
-
-
-} // namespace Ingen
-
-#endif // DSSICONTROLEVENT_H
diff --git a/src/libs/engine/events/DSSIProgramEvent.cpp b/src/libs/engine/events/DSSIProgramEvent.cpp
deleted file mode 100644
index 94cd20dc..00000000
--- a/src/libs/engine/events/DSSIProgramEvent.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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
- */
-
-#include "DSSIProgramEvent.hpp"
-#include
-#include
-#include "Engine.hpp"
-#include "NodeImpl.hpp"
-#include "ClientBroadcaster.hpp"
-#include "PluginImpl.hpp"
-#include "ObjectStore.hpp"
-using std::cout; using std::cerr; using std::endl;
-
-
-namespace Ingen {
-
-
-DSSIProgramEvent::DSSIProgramEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& node_path, int bank, int program)
-: QueuedEvent(engine, responder, timestamp),
- _node_path(node_path),
- _bank(bank),
- _program(program),
- _node(NULL)
-{
-}
-
-
-void
-DSSIProgramEvent::pre_process()
-{
- NodeImpl* node = _engine.object_store()->find_node(_node_path);
-
- if (node != NULL && node->plugin()->type() == Plugin::DSSI)
- _node = (DSSINode*)node;
-
- QueuedEvent::pre_process();
-}
-
-
-void
-DSSIProgramEvent::execute(ProcessContext& context)
-{
- QueuedEvent::execute(context);
-
- if (_node != NULL)
- _node->program(_bank, _program);
-}
-
-
-void
-DSSIProgramEvent::post_process()
-{
- if (_node == NULL) {
- cerr << "Unable to find DSSI node " << _node_path << endl;
- } else {
- // sends program as metadata in the form bank/program
- char* temp_buf = new char[16];
- snprintf(temp_buf, 16, "%d/%d", _bank, _program);
- _engine.broadcaster()->send_metadata_update(_node_path, "dssi-program", temp_buf);
- }
-}
-
-
-} // namespace Ingen
-
diff --git a/src/libs/engine/events/DSSIProgramEvent.hpp b/src/libs/engine/events/DSSIProgramEvent.hpp
deleted file mode 100644
index b66dcb87..00000000
--- a/src/libs/engine/events/DSSIProgramEvent.hpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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 DSSIPROGRAMEVENT_H
-#define DSSIPROGRAMEVENT_H
-
-#include "QueuedEvent.hpp"
-#include "DSSINode.hpp"
-
-namespace Ingen {
-
-
-/** A program change for a DSSI plugin.
- *
- * \ingroup engine
- */
-class DSSIProgramEvent : public QueuedEvent
-{
-public:
- DSSIProgramEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& node_path, int bank, int program);
-
- void pre_process();
- void execute(ProcessContext& context);
- void post_process();
-
-private:
- string _node_path;
- int _bank;
- int _program;
- DSSINode* _node;
-};
-
-
-} // namespace Ingen
-
-#endif // DSSIPROGRAMEVENT_H
diff --git a/src/libs/engine/events/DSSIUpdateEvent.cpp b/src/libs/engine/events/DSSIUpdateEvent.cpp
deleted file mode 100644
index 8f2eea6a..00000000
--- a/src/libs/engine/events/DSSIUpdateEvent.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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
- */
-
-#include "DSSIUpdateEvent.hpp"
-#include
-#include "NodeImpl.hpp"
-#include "ObjectStore.hpp"
-#include "Engine.hpp"
-#include "DSSINode.hpp"
-#include "PluginImpl.hpp"
-
-using std::cerr; using std::endl;
-
-namespace Ingen {
-
-
-DSSIUpdateEvent::DSSIUpdateEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& path, const string& url)
-: QueuedEvent(engine, responder, timestamp),
- _path(path),
- _url(url),
- _node(NULL)
-{
-}
-
-
-void
-DSSIUpdateEvent::pre_process()
-{
- NodeImpl* node = _engine.object_store()->find_node(_path);
-
- if (node == NULL || node->plugin()->type() != Plugin::DSSI) {
- _node = NULL;
- QueuedEvent::pre_process();
- return;
- } else {
- _node = (DSSINode*)node;
- }
-
- QueuedEvent::pre_process();
-}
-
-
-void
-DSSIUpdateEvent::execute(ProcessContext& context)
-{
- QueuedEvent::execute(context);
-
- if (_node != NULL) {
- _node->set_ui_url(_url);
- }
-}
-
-
-void
-DSSIUpdateEvent::post_process()
-{
- cerr << "DSSI update event: " << _url << endl;
-
- if (_node != NULL) {
- _node->send_update();
- }
-}
-
-
-} // namespace Ingen
-
diff --git a/src/libs/engine/events/DSSIUpdateEvent.hpp b/src/libs/engine/events/DSSIUpdateEvent.hpp
deleted file mode 100644
index 16a2b50a..00000000
--- a/src/libs/engine/events/DSSIUpdateEvent.hpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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 DSSIUPDATEEVENT_H
-#define DSSIUPDATEEVENT_H
-
-#include "QueuedEvent.hpp"
-#include
-
-using std::string;
-
-namespace Ingen {
-
-class DSSINode;
-
-
-/** A DSSI "update" responder for a DSSI plugin/node.
- *
- * This sends all information about the plugin to the UI (over OSC).
- *
- * \ingroup engine
- */
-class DSSIUpdateEvent : public QueuedEvent
-{
-public:
- DSSIUpdateEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& path, const string& url);
-
- void pre_process();
- void execute(ProcessContext& context);
- void post_process();
-
-private:
- string _path;
- string _url;
- DSSINode* _node;
-};
-
-
-} // namespace Ingen
-
-#endif // DSSIUPDATEEVENT_H
diff --git a/src/libs/engine/events/Makefile.am b/src/libs/engine/events/Makefile.am
index 67ccf0e5..f437be2c 100644
--- a/src/libs/engine/events/Makefile.am
+++ b/src/libs/engine/events/Makefile.am
@@ -13,14 +13,6 @@ EXTRA_DIST = \
CreatePatchEvent.hpp \
CreatePortEvent.cpp \
CreatePortEvent.hpp \
- DSSIConfigureEvent.cpp \
- DSSIConfigureEvent.hpp \
- DSSIControlEvent.cpp \
- DSSIControlEvent.hpp \
- DSSIProgramEvent.cpp \
- DSSIProgramEvent.hpp \
- DSSIUpdateEvent.cpp \
- DSSIUpdateEvent.hpp \
DeactivateEvent.cpp \
DeactivateEvent.hpp \
DestroyEvent.cpp \
diff --git a/src/libs/gui/DSSIController.cpp b/src/libs/gui/DSSIController.cpp
deleted file mode 100644
index 9bb037ba..00000000
--- a/src/libs/gui/DSSIController.cpp
+++ /dev/null
@@ -1,280 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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
- */
-
-#include "DSSIController.hpp"
-#include
-#include
-#include
-#include
-#include
-#include "interface/EngineInterface.hpp"
-#include "client/NodeModel.hpp"
-#include "App.hpp"
-#include "DSSIModule.hpp"
-
-namespace Ingen {
-namespace GUI {
-
-
-DSSIController::DSSIController(SharedPtr model)
-: _banks_dirty(true)
-{
-#if 0
- assert(model->plugin()->type() == PluginModel::DSSI);
- Gtk::Menu::MenuList& items = _menu.items();
- items[0].property_sensitive() = true; // "Show Control Window" item
-
- Gtk::Menu_Helpers::MenuElem program_elem("Select Program", _program_menu);
- items.push_front(program_elem);
- _program_menu_item = program_elem.get_child();
- _program_menu_item->set_sensitive(false);
-
- items.push_front(Gtk::Menu_Helpers::MenuElem("Show Plugin GUI",
- sigc::mem_fun(this, &DSSIController::show_gui)));
-#endif
-}
-
-void
-DSSIController::program_add(int bank, int program, const string& name)
-{
- cerr << "FIXME: DSSI add program\n";
- //node_model()->add_program(bank, program, name);
- //m_banks_dirty = true;
-}
-
-
-void
-DSSIController::program_remove(int bank, int program)
-{
- cerr << "FIXME: DSSI add program\n";
- //node_model()->remove_program(bank, program);
- //m_banks_dirty = true;
-}
-
-/** Trivial wrapper of attempt_to_show_gui for libsigc
- */
-void
-DSSIController::show_gui()
-{
- attempt_to_show_gui();
-}
-
-
-void
-DSSIController::update_program_menu()
-{
- cerr << "FIXME: Program menu\n";
-#if 0
- _program_menu.items().clear();
-
- const map >& banks = node_model()->get_programs();
- std::ostringstream oss;
-
- map >::const_iterator i;
- for (i = banks.begin(); i != banks.end(); ++i) {
- Gtk::Menu* bank_menu;
- if (banks.size() > 1)
- bank_menu = manage(new Gtk::Menu());
- else
- bank_menu = &_program_menu;
- map::const_iterator j;
- for (j = i->second.begin(); j != i->second.end(); ++j) {
- oss.str("");
- oss << std::setw(3) << std::setfill('0')
- << j->first << ' ' << j->second;
- sigc::slot slt = bind(
- bind(sigc::mem_fun(*this, &DSSIController::send_program_change),
- j->first), i->first);
- bank_menu->items().push_back(
- Gtk::Menu_Helpers::MenuElem(oss.str(), slt));
- }
- if (banks.size() > 1) {
- oss.str("");
- oss << "Bank " << i->first;
- _program_menu.items().push_back(
- Gtk::Menu_Helpers::MenuElem(oss.str(), *bank_menu));
- }
- }
-
- // Disable the program menu if there are no programs
- if (banks.size() == 0)
- _program_menu_item->set_sensitive(false);
- else
- _program_menu_item->set_sensitive(true);
-
- _banks_dirty = false;
-#endif
-}
-
-
-void
-DSSIController::send_program_change(int bank, int program)
-{
- //App::instance().engine()->set_program(node_model()->path(), bank, program);
-}
-
-
-/** Attempt to show the DSSI GUI for this plugin.
- *
- * Returns whether or not GUI was successfully loaded/shown.
- */
-bool
-DSSIController::attempt_to_show_gui()
-{
- cerr << "FIXME: DSSI GUI" << endl;
-#if 0
- // Shamelessley "inspired by" jack-dssi-host
- // Copyright 2004 Chris Cannam, Steve Harris and Sean Bolton.
-
- const bool verbose = false;
-
- string engine_url = App::instance().engine()->engine_url();
- // Hack off last character if it's a /
- if (engine_url[engine_url.length()-1] == '/')
- engine_url = engine_url.substr(0, engine_url.length()-1);
-
- const char* dllName = node_model()->plugin()->lib_name().c_str();
- const char* label = node_model()->plugin()->plug_label().c_str();
- const char* myName = "ingenuity";
- const string& oscUrl = engine_url + "/dssi" + node_model()->path();
-
- struct dirent* entry = NULL;
- char* dllBase = strdup(dllName);
- char* subpath = NULL;
- DIR* subdir = NULL;
- char* filename = NULL;
- struct stat buf;
- int fuzzy = 0;
-
- char* env_dssi_path = getenv("DSSI_PATH");
- string dssi_path;
- if (!env_dssi_path) {
- cerr << "DSSI_PATH is empty. Assuming /usr/lib/dssi:/usr/local/lib/dssi." << endl;
- dssi_path = "/usr/lib/dssi:/usr/local/lib/dssi";
- } else {
- dssi_path = env_dssi_path;
- }
-
- if (strlen(dllBase) > 3 && !strcasecmp(dllBase + strlen(dllBase) - 3, ".so")) {
- dllBase[strlen(dllBase) - 3] = '\0';
- }
-
-
- // This is pretty nasty, it loops through the path, even if the dllBase is absolute
- while (dssi_path != "") {
- string directory = dssi_path.substr(0, dssi_path.find(':'));
- if (dssi_path.find(':') != string::npos)
- dssi_path = dssi_path.substr(dssi_path.find(':')+1);
- else
- dssi_path = "";
-
- if (*dllBase == '/') {
- subpath = strdup(dllBase);
- } else {
- subpath = (char*)malloc(strlen(directory.c_str()) + strlen(dllBase) + 2);
- sprintf(subpath, "%s/%s", directory.c_str(), dllBase);
- }
-
- for (fuzzy = 0; fuzzy <= 1; ++fuzzy) {
-
- if (!(subdir = opendir(subpath))) {
- if (verbose) {
- fprintf(stderr, "%s: can't open plugin GUI directory \"%s\"\n", myName, subpath);
- }
- break;
- }
-
- while ((entry = readdir(subdir))) {
-
- if (entry->d_name[0] == '.')
- continue;
- if (!strchr(entry->d_name, '_'))
- continue;
-
- if (fuzzy) {
- if (verbose) {
- fprintf(stderr, "checking %s against %s\n", entry->d_name, dllBase);
- }
- if (strncmp(entry->d_name, dllBase, strlen(dllBase)))
- continue;
- } else {
- if (verbose) {
- fprintf(stderr, "checking %s against %s\n", entry->d_name, label);
- }
- if (strncmp(entry->d_name, label, strlen(label)))
- continue;
- }
-
- filename = (char*)malloc(strlen(subpath) + strlen(entry->d_name) + 2);
- sprintf(filename, "%s/%s", subpath, entry->d_name);
-
- if (stat(filename, &buf)) {
- perror("stat failed");
- free(filename);
- continue;
- }
-
- if ((S_ISREG(buf.st_mode) || S_ISLNK(buf.st_mode)) &&
- (buf.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) {
-
- if (verbose) {
- fprintf(stderr, "%s: trying to execute GUI at \"%s\"\n",
- myName, filename);
- }
-
- if (fork() == 0) {
- execlp(filename, filename, oscUrl.c_str(), dllName, label,
- node_model()->name().c_str(), 0);
- perror("exec failed");
- exit(1);
- }
-
- free(filename);
- free(subpath);
- free(dllBase);
- return true;
- }
-
- free(filename);
- }
- }
- }
-
- cerr << "Unable to launch DSSI GUI for " << node_model()->path() << endl;
-
- free(subpath);
- free(dllBase);
-#endif
- return false;
-}
-
-
-void
-DSSIController::show_menu(GdkEventButton* event)
-{
-#if 0
- if (_banks_dirty)
- update_program_menu();
-
- NodeController::show_menu(event);
-#endif
-}
-
-
-} // namespace GUI
-} // namespace Ingen
-
diff --git a/src/libs/gui/DSSIController.hpp b/src/libs/gui/DSSIController.hpp
deleted file mode 100644
index 7d6e0c97..00000000
--- a/src/libs/gui/DSSIController.hpp
+++ /dev/null
@@ -1,77 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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 DSSICONTROLLER_H
-#define DSSICONTROLLER_H
-
-#include
-#include
-#include
-#include "client/NodeModel.hpp"
-
-using std::string;
-using namespace Ingen::Client;
-
-namespace Ingen { namespace Client {
- class MetadataModel;
- class NodeModel;
- class PortModel;
-} }
-
-namespace Ingen {
-namespace GUI {
-
-class NodeControlWindow;
-
-
-/* Controller for a DSSI node.
- *
- * FIXME: legacy cruft. move this code to the appropriate places and nuke
- * this class.
- *
- * \ingroup GUI
- */
-class DSSIController
-{
-public:
- DSSIController(SharedPtr model);
-
- virtual ~DSSIController() {}
-
- void show_gui();
- bool attempt_to_show_gui();
- void program_add(int bank, int program, const string& name);
- void program_remove(int bank, int program);
-
- void send_program_change(int bank, int program);
-
- void show_menu(GdkEventButton* event);
-
-private:
- void update_program_menu();
-
- Gtk::Menu _program_menu;
- Glib::RefPtr _program_menu_item;
-
- bool _banks_dirty;
-};
-
-
-} // namespace GUI
-} // namespace Ingen
-
-#endif // DSSICONTROLLER_H
diff --git a/src/libs/gui/DSSIModule.cpp b/src/libs/gui/DSSIModule.cpp
deleted file mode 100644
index 84058100..00000000
--- a/src/libs/gui/DSSIModule.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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
- */
-
-#include "DSSIModule.hpp"
-#include "DSSIController.hpp"
-
-namespace Ingen {
-namespace GUI {
-
-
-DSSIModule::DSSIModule(boost::shared_ptr canvas, SharedPtr node)
-: NodeModule(canvas, node)
-{
-}
-
-
-void
-DSSIModule::on_double_click(GdkEventButton* ev)
-{
- /*
- DSSIController* dc = dynamic_cast(_node);
- if (!dc || ! dc->attempt_to_show_gui())
- show_control_window();
- */
-}
-
-
-} // namespace GUI
-} // namespace Ingen
diff --git a/src/libs/gui/DSSIModule.hpp b/src/libs/gui/DSSIModule.hpp
deleted file mode 100644
index 76824bdc..00000000
--- a/src/libs/gui/DSSIModule.hpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * Ingen 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.
- *
- * Ingen 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 DSSIMODULE_H
-#define DSSIMODULE_H
-
-#include "NodeModule.hpp"
-
-namespace Ingen {
-namespace GUI {
-
-class DSSIController;
-
-/* Module for a DSSI node.
- *
- * \ingroup GUI
- */
-class DSSIModule : public NodeModule
-{
-public:
- DSSIModule(boost::shared_ptr canvas, SharedPtr node);
- virtual ~DSSIModule() {}
-
- void on_double_click(GdkEventButton* ev);
-};
-
-
-} // namespace GUI
-} // namespace Ingen
-
-#endif // DSSIMODULE_H
-
diff --git a/src/libs/gui/LoadPluginWindow.cpp b/src/libs/gui/LoadPluginWindow.cpp
index 9aaed171..6d698f94 100644
--- a/src/libs/gui/LoadPluginWindow.cpp
+++ b/src/libs/gui/LoadPluginWindow.cpp
@@ -224,8 +224,6 @@ LoadPluginWindow::set_plugins(const Raul::Table >
row[_plugins_columns._col_type] = "Internal";
else if (!strcmp(plugin->type_uri(), "ingen:LV2"))
row[_plugins_columns._col_type] = "LV2";
- else if (!strcmp(plugin->type_uri(), "ingen:DSSI"))
- row[_plugins_columns._col_type] = "DSSI";
else if (!strcmp(plugin->type_uri(), "ingen:LADSPA"))
row[_plugins_columns._col_type] = "LADSPA";
else
diff --git a/src/libs/gui/Makefile.am b/src/libs/gui/Makefile.am
index a1e070cd..d0d07fd8 100644
--- a/src/libs/gui/Makefile.am
+++ b/src/libs/gui/Makefile.am
@@ -46,10 +46,6 @@ libingen_gui_la_SOURCES = \
ControlGroups.hpp \
ControlPanel.cpp \
ControlPanel.hpp \
- DSSIController.cpp \
- DSSIController.hpp \
- DSSIModule.cpp \
- DSSIModule.hpp \
GladeFactory.cpp \
GladeFactory.hpp \
LoadPatchWindow.cpp \
diff --git a/src/libs/gui/NodeModule.hpp b/src/libs/gui/NodeModule.hpp
index cf4bff9e..32e9220d 100644
--- a/src/libs/gui/NodeModule.hpp
+++ b/src/libs/gui/NodeModule.hpp
@@ -42,8 +42,7 @@ class Port;
/** A module in a patch.
*
- * This base class is extended for various types of modules - SubpatchModule,
- * DSSIModule, etc.
+ * This base class is extended for various types of modules.
*
* \ingroup GUI
*/
diff --git a/src/libs/gui/UploadPatchWindow.hpp b/src/libs/gui/UploadPatchWindow.hpp
index c3de55fa..af064bdb 100644
--- a/src/libs/gui/UploadPatchWindow.hpp
+++ b/src/libs/gui/UploadPatchWindow.hpp
@@ -28,7 +28,6 @@
#include "client/PatchModel.hpp"
#include "client/PluginModel.hpp"
using Ingen::Client::PatchModel;
-using Ingen::Client::MetadataMap;
namespace Ingen {
namespace GUI {
--
cgit v1.2.1