From 7ef669c33d39941e1c327b4c4c2506fcb3edd017 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 6 Nov 2015 10:09:06 +0100 Subject: [PATCH] Set seeAlso modgui.ttl in manifest files when available --- dpf/distrho/src/DistrhoPluginLV2export.cpp | 5 +++-- plugins/AmplitudeImposer/DistrhoUIAmplitudeImposer.hpp | 6 +----- plugins/CycleShifter/DistrhoUICycleShifter.hpp | 6 +----- plugins/Kars/DistrhoPluginInfo.h | 1 + plugins/MVerb/DistrhoPluginInfo.h | 1 + plugins/PingPongPan/DistrhoPluginInfo.h | 1 + plugins/SoulForce/DistrhoUISoulForce.hpp | 10 +--------- 7 files changed, 9 insertions(+), 21 deletions(-) diff --git a/dpf/distrho/src/DistrhoPluginLV2export.cpp b/dpf/distrho/src/DistrhoPluginLV2export.cpp index e973532..6d96a3e 100644 --- a/dpf/distrho/src/DistrhoPluginLV2export.cpp +++ b/dpf/distrho/src/DistrhoPluginLV2export.cpp @@ -116,7 +116,8 @@ void lv2_generate_ttl(const char* const basename) manifestString += " a lv2:Plugin ;\n"; manifestString += " lv2:binary <" + pluginDLL + "." DISTRHO_DLL_EXTENSION "> ;\n"; #if DISTRHO_PLUGIN_USES_MODGUI - manifestString += " rdfs:seeAlso <" + pluginTTL + " , modgui.ttl> .\n"; + manifestString += " rdfs:seeAlso <" + pluginTTL + "> ,\n"; + manifestString += " .\n"; #else manifestString += " rdfs:seeAlso <" + pluginTTL + "> .\n"; #endif @@ -166,7 +167,7 @@ void lv2_generate_ttl(const char* const basename) presetString = "<" DISTRHO_PLUGIN_URI + presetSeparator + "preset" + strBuf + ">\n"; presetString += " a pset:Preset ;\n"; presetString += " lv2:appliesTo <" DISTRHO_PLUGIN_URI "> ;\n"; - presetString += " rdfs:label \"" + plugin.getProgramName(i) + "\" ;\n\n"; + presetString += " rdfs:label \"" + plugin.getProgramName(i) + "\" ;\n"; presetString += " rdfs:seeAlso .\n"; presetString += "\n"; diff --git a/plugins/AmplitudeImposer/DistrhoUIAmplitudeImposer.hpp b/plugins/AmplitudeImposer/DistrhoUIAmplitudeImposer.hpp index 5fe1c27..f736f1f 100644 --- a/plugins/AmplitudeImposer/DistrhoUIAmplitudeImposer.hpp +++ b/plugins/AmplitudeImposer/DistrhoUIAmplitudeImposer.hpp @@ -26,14 +26,10 @@ #define DISTRHO_UI_AMPLITUDE_IMPOSER_HPP_INCLUDED #include "DistrhoUI.hpp" - -#include "ImageSlider.hpp" +#include "ImageWidgets.hpp" #include "DistrhoArtworkAmplitudeImposer.hpp" -using DGL::Image; -using DGL::ImageSlider; - START_NAMESPACE_DISTRHO // ----------------------------------------------------------------------- diff --git a/plugins/CycleShifter/DistrhoUICycleShifter.hpp b/plugins/CycleShifter/DistrhoUICycleShifter.hpp index 632a391..2b0466d 100644 --- a/plugins/CycleShifter/DistrhoUICycleShifter.hpp +++ b/plugins/CycleShifter/DistrhoUICycleShifter.hpp @@ -26,14 +26,10 @@ #define DISTRHO_UI_CYCLE_SHIFTER_HPP_INCLUDED #include "DistrhoUI.hpp" - -#include "ImageSlider.hpp" +#include "ImageWidgets.hpp" #include "DistrhoArtworkCycleShifter.hpp" -using DGL::Image; -using DGL::ImageSlider; - START_NAMESPACE_DISTRHO // ----------------------------------------------------------------------- diff --git a/plugins/Kars/DistrhoPluginInfo.h b/plugins/Kars/DistrhoPluginInfo.h index 224b0bc..7a1463e 100644 --- a/plugins/Kars/DistrhoPluginInfo.h +++ b/plugins/Kars/DistrhoPluginInfo.h @@ -25,5 +25,6 @@ #define DISTRHO_PLUGIN_IS_SYNTH 1 #define DISTRHO_PLUGIN_NUM_INPUTS 0 #define DISTRHO_PLUGIN_NUM_OUTPUTS 1 +#define DISTRHO_PLUGIN_USES_MODGUI 1 #endif // DISTRHO_PLUGIN_INFO_H_INCLUDED diff --git a/plugins/MVerb/DistrhoPluginInfo.h b/plugins/MVerb/DistrhoPluginInfo.h index f6a0e34..db02d73 100644 --- a/plugins/MVerb/DistrhoPluginInfo.h +++ b/plugins/MVerb/DistrhoPluginInfo.h @@ -27,6 +27,7 @@ #define DISTRHO_PLUGIN_NUM_INPUTS 2 #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 #define DISTRHO_PLUGIN_WANT_PROGRAMS 1 +#define DISTRHO_PLUGIN_USES_MODGUI 1 #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin" diff --git a/plugins/PingPongPan/DistrhoPluginInfo.h b/plugins/PingPongPan/DistrhoPluginInfo.h index 95d7de3..1d656fb 100644 --- a/plugins/PingPongPan/DistrhoPluginInfo.h +++ b/plugins/PingPongPan/DistrhoPluginInfo.h @@ -25,6 +25,7 @@ #define DISTRHO_PLUGIN_NUM_INPUTS 2 #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 #define DISTRHO_PLUGIN_WANT_PROGRAMS 1 +#define DISTRHO_PLUGIN_USES_MODGUI 1 #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:SpatialPlugin" diff --git a/plugins/SoulForce/DistrhoUISoulForce.hpp b/plugins/SoulForce/DistrhoUISoulForce.hpp index b540946..951a5c3 100644 --- a/plugins/SoulForce/DistrhoUISoulForce.hpp +++ b/plugins/SoulForce/DistrhoUISoulForce.hpp @@ -26,18 +26,10 @@ #define DISTRHO_UI_SOUL_FORCE_HPP_INCLUDED #include "DistrhoUI.hpp" - -#include "ImageButton.hpp" -#include "ImageKnob.hpp" -#include "ImageSwitch.hpp" +#include "ImageWidgets.hpp" #include "DistrhoArtworkSoulForce.hpp" -using DGL::Image; -using DGL::ImageButton; -using DGL::ImageKnob; -using DGL::ImageSwitch; - START_NAMESPACE_DISTRHO // -----------------------------------------------------------------------