16 path += QString(
"/%1/%2.dll").arg(module, format);
17 #elif defined Q_OS_LINUX
18 path += QString(
"/%1/lib%2.so").arg(module, format);
19 #elif defined Q_OS_MAC
20 path += QString(
"/%1/lib%2.dylib").arg(module, format);
29 if(factory->properties().shortName ==
name)
41 if(factory->properties().shortName ==
name)
54 if(factory->properties().shortName ==
name)
66 if(factory->properties().shortName ==
name)
84 MusicPluginPropertyList properties;
88 if(factory->properties().shortName ==
"ladspa")
94 property.
m_type = factory->properties().shortName;
95 property.m_name = factory->properties().name;
96 property.m_hasSettings = factory->properties().hasSettings;
97 properties << property;
106 if(factory->properties().shortName ==
name)
108 QDialog *dialog = factory->createSettings(parent);
112 dialog->deleteLater();
122 settings.beginGroup(
"Http");
126 settings.beginGroup(
"Archive");
134 settings.beginGroup(
"OuterBlurWave");
136 settings.setValue(
"colors", colors.remove(
";"));
138 settings.setValue(
"opacity", opacity);
145 settings.beginGroup(
"Muffler");
148 settings.setValue(
"ratio", value);
152 value = settings.value(
"ratio", 100).toInt();
static QString configFile()
static QList< VisualFactory * > factories()
TTK_MODULE_EXPORT bool isVisualEnabled(const QString &name)
TTK_MODULE_EXPORT void setEffectsEnabled(bool enabled)
TTK_MODULE_EXPORT void updateVoiceConfig(bool update, int &value)
TTK_MODULE_EXPORT MusicPluginPropertyList effectModules()
Effect plugin interface (effect factory).
static bool isEnabled(const VisualFactory *factory)
static QString pluginPath()
static bool isEnabled(const EffectFactory *factory)
TTK_MODULE_EXPORT void setEffectEnabled(const QString &name, bool enabled)
static QList< EffectFactory * > factories()
static void initialize(QWidget *parent, QObject *receiver=nullptr, const char *member=nullptr)
TTK_MODULE_EXPORT void updateBlurConfig()
TTK_MODULE_EXPORT void updateBaseConfig()
TTK_MODULE_EXPORT void setVisualEnabled(const QString &name, bool enabled, QWidget *parent)
static void setEnabled(EffectFactory *factory, bool enable=true)
TTK_MODULE_EXPORT QString pluginPath(const QString &module, const QString &format)
Visual plugin interface (visual factory).
TTK_MODULE_EXPORT void showEffectSetting(const QString &name, QWidget *parent)
TTK_MODULE_EXPORT bool isEffectEnabled(const QString &name)
The class of the plugin property.
static void setEnabled(VisualFactory *factory, bool enable=true)