From 41f66e32ed817ac2da74f5d0e319fda6b02a6242 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 28 Feb 2009 11:05:43 +0000 Subject: updated bs2b plugin. Now it uses updated bs2b library and enabled by default git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@810 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Effect/bs2b/effectbs2bfactory.cpp | 69 +++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/plugins/Effect/bs2b/effectbs2bfactory.cpp (limited to 'src/plugins/Effect/bs2b/effectbs2bfactory.cpp') diff --git a/src/plugins/Effect/bs2b/effectbs2bfactory.cpp b/src/plugins/Effect/bs2b/effectbs2bfactory.cpp new file mode 100644 index 000000000..b594b41d1 --- /dev/null +++ b/src/plugins/Effect/bs2b/effectbs2bfactory.cpp @@ -0,0 +1,69 @@ +/*************************************************************************** + * Copyright (C) 2009 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program 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. * + * * + * This program 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 more 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., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include +#include +#include "effectbs2bfactory.h" +#include "settingsdialog.h" +#include "bs2bplugin.h" + +const EffectProperties EffectBs2bFactory::properties() const +{ + EffectProperties properties; + properties.name = tr("BS2B Plugin"); + properties.shortName = "bs2b"; + properties.hasSettings = TRUE; + properties.hasAbout = TRUE; + return properties; +}; + +Effect *EffectBs2bFactory::create(QObject *parent) +{ + return new Bs2bPlugin(parent); +}; + +void EffectBs2bFactory::showSettings(QWidget *parent) +{ + SettingsDialog *s = new SettingsDialog(parent); + s ->show(); +}; + +void EffectBs2bFactory::showAbout(QWidget *parent) +{ + QMessageBox::about (parent, tr("About BS2B Effect Plugin"), + "

"+tr("This is the Qmmp plugin version of Boris Mikhaylov's headphone DSP " + "effect \"Bauer stereophonic-to-binaural\", abbreviated bs2b.")+"

"+ + QString("

" + tr("Visit %1 for more details")+"

") + .arg("http://bs2b.sourceforge.net/")+ + QString("

" + tr("Compiled against libbs2b-%1") + "

").arg(BS2B_VERSION_STR)+ + "

"+tr("Developers:")+"
"+ + tr("Ilya Kotov") + " <forkotov02@hotmail.ru>"+"
"+ + tr("Sebastian Pipping") + " <sebastian@pipping.org>"+"

"); +}; + +QTranslator *EffectBs2bFactory::createTranslator(QObject *parent) +{ + QTranslator *translator = new QTranslator(parent); + QString locale = QLocale::system().name(); + translator->load(QString(":/bs2b_plugin_") + locale); + return translator; +}; + +Q_EXPORT_PLUGIN(EffectBs2bFactory) -- cgit v1.2.3-13-gbd6f