diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-11-24 18:17:51 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-11-24 18:17:51 +0000 |
| commit | aa3f57c0236c77f2fd90415fc1f3062a93b25b93 (patch) | |
| tree | d9ab905b952cf9289239b95db99f39321a54e65b /src | |
| parent | 5c2f5798c6222d35e08fa0853812e2390181e735 (diff) | |
| download | qmmp-aa3f57c0236c77f2fd90415fc1f3062a93b25b93.tar.gz qmmp-aa3f57c0236c77f2fd90415fc1f3062a93b25b93.tar.bz2 qmmp-aa3f57c0236c77f2fd90415fc1f3062a93b25b93.zip | |
some api changes, partial mpris 2.0 implementation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1991 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
99 files changed, 822 insertions, 666 deletions
diff --git a/src/plugins/Engines/mplayer/mplayerenginefactory.cpp b/src/plugins/Engines/mplayer/mplayerenginefactory.cpp index 48de7f5fe..669161bc7 100644 --- a/src/plugins/Engines/mplayer/mplayerenginefactory.cpp +++ b/src/plugins/Engines/mplayer/mplayerenginefactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -32,10 +32,10 @@ const EngineProperties MplayerEngineFactory::properties() const EngineProperties properties; properties.name = tr("Mplayer Plugin"); properties.shortName = "mplayer"; - properties.filter = MplayerInfo::filters().join(" "); + properties.filters = MplayerInfo::filters(); properties.description = tr("Video Files"); //properties.contentType = "application/ogg;audio/x-vorbis+ogg"; - properties.protocols = "file"; + properties.protocols << "file"; properties.hasAbout = true; properties.hasSettings = true; return properties; diff --git a/src/plugins/General/mpris/CMakeLists.txt b/src/plugins/General/mpris/CMakeLists.txt index 069492b1c..d1eb3e2a3 100644 --- a/src/plugins/General/mpris/CMakeLists.txt +++ b/src/plugins/General/mpris/CMakeLists.txt @@ -33,6 +33,7 @@ SET(libmpris_SRCS mpris.cpp mprisfactory.cpp rootobject.cpp + root2object.cpp playerobject.cpp tracklistobject.cpp ) @@ -41,6 +42,7 @@ SET(libmpris_MOC_HDRS mprisfactory.h mpris.h rootobject.h + root2object.h playerobject.h tracklistobject.h ) diff --git a/src/plugins/General/mpris/mpris.cpp b/src/plugins/General/mpris/mpris.cpp index 4c6474311..d355f7f7f 100644 --- a/src/plugins/General/mpris/mpris.cpp +++ b/src/plugins/General/mpris/mpris.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -19,28 +19,28 @@ ***************************************************************************/ #include <QtDBus> - #include "playerobject.h" #include "rootobject.h" #include "tracklistobject.h" +#include "root2object.h" #include "mpris.h" -MPRIS::MPRIS(QObject *parent) - : General(parent) +MPRIS::MPRIS(QObject *parent) : General(parent) { - PlayerObject *player = new PlayerObject(this); - RootObject *root = new RootObject(this); - TrackListObject *trackList = new TrackListObject(this); QDBusConnection connection = QDBusConnection::sessionBus(); - connection.registerObject("/TrackList", trackList, QDBusConnection::ExportAllContents); - connection.registerObject("/Player", player, QDBusConnection::ExportAllContents); - connection.registerObject("/", root, QDBusConnection::ExportAllContents); + //MPRISv1 + connection.registerObject("/TrackList", new TrackListObject(this), QDBusConnection::ExportAllContents); + connection.registerObject("/Player", new PlayerObject(this), QDBusConnection::ExportAllContents); + connection.registerObject("/", new RootObject(this), QDBusConnection::ExportAllContents); + //MPRISv2 + connection.registerObject("/org/mpris/MediaPlayer2", new Root2Object(this), + QDBusConnection::ExportAllContents); connection.registerService("org.mpris.qmmp"); + connection.registerService("org.mpris.MediaPlayer2.qmmp"); } - MPRIS::~MPRIS() { + QDBusConnection::sessionBus().unregisterService("org.mpris.qmmp"); + QDBusConnection::sessionBus().unregisterService("org.mpris.MediaPlayer2.qmmp"); } - - diff --git a/src/plugins/General/mpris/mpris.pro b/src/plugins/General/mpris/mpris.pro index 7d1310348..e97282e03 100644 --- a/src/plugins/General/mpris/mpris.pro +++ b/src/plugins/General/mpris/mpris.pro @@ -40,16 +40,17 @@ INSTALLS += target HEADERS += mprisfactory.h \ mpris.h \ playerobject.h \ - rootobject.h \ - tracklistobject.h + rootobject.h \ + tracklistobject.h \ + root2object.h SOURCES += mprisfactory.cpp \ mpris.cpp \ playerobject.cpp \ - rootobject.cpp \ - tracklistobject.cpp + rootobject.cpp \ + tracklistobject.cpp \ + root2object.cpp INCLUDEPATH += ../../../../src LIBS += -lqmmpui -lqmmp - diff --git a/src/plugins/General/mpris/root2object.cpp b/src/plugins/General/mpris/root2object.cpp new file mode 100644 index 000000000..c0eca65fb --- /dev/null +++ b/src/plugins/General/mpris/root2object.cpp @@ -0,0 +1,88 @@ +/*************************************************************************** + * Copyright (C) 2010 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 <qmmp/qmmp.h> +#include <qmmp/decoder.h> +#include <qmmp/decoderfactory.h> +#include <qmmp/abstractengine.h> +#include <qmmp/enginefactory.h> +#include <qmmp/enginefactory.h> +#include <qmmp/inputsource.h> +#include <qmmp/inputsourcefactory.h> +#include <qmmp/metadatamanager.h> +#include "root2object.h" + +Root2Object::Root2Object(QObject *parent) : QObject(parent) +{} + + +Root2Object::~Root2Object() +{} + +bool Root2Object::canQuit() const +{ + return true; +} + +bool Root2Object::canRaise() const +{ + return false; +} + +QString Root2Object::desktopEntry() const +{ + return "qmmp"; +} + +bool Root2Object::hasTrackList() const +{ + return false; +} +QString Root2Object::identity() const +{ + QString name = "Qmmp " + Qmmp::strVersion(); + return name; +} + +QStringList Root2Object::supportedMimeTypes() const +{ + QStringList mimeTypes; + foreach(DecoderFactory *factory, *Decoder::factories()) + mimeTypes << factory->properties().contentTypes; + foreach(EngineFactory *factory, *AbstractEngine::factories()) + mimeTypes << factory->properties().contentTypes; + mimeTypes.removeDuplicates(); + return mimeTypes; +} + +QStringList Root2Object::supportedUriSchemes() const +{ + QStringList protocols = MetaDataManager::instance()->protocols(); + if(!protocols.contains("file")) //append file if needed + protocols.append("file"); + return protocols; +} + +void Root2Object::Quit() +{ + QMetaObject::invokeMethod(parent(), "exit"); +} + +void Root2Object::Raise(){} diff --git a/src/plugins/General/mpris/root2object.h b/src/plugins/General/mpris/root2object.h new file mode 100644 index 000000000..f661df200 --- /dev/null +++ b/src/plugins/General/mpris/root2object.h @@ -0,0 +1,58 @@ +/*************************************************************************** + * Copyright (C) 2010 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. * + ***************************************************************************/ +#ifndef ROOT2OBJECT_H +#define ROOT2OBJECT_H + +#include <QObject> +#include <QStringList> + +/** + @author Ilya Kotov <forkotov02@hotmail.ru> +*/ +class Root2Object : public QObject +{ +Q_OBJECT +Q_CLASSINFO("D-Bus Interface", "org.mpris.MediaPlayer2") +Q_PROPERTY(bool CanQuit READ canQuit) +Q_PROPERTY(bool CanRaise READ canRaise) +Q_PROPERTY(QString DesktopEntry READ desktopEntry) +Q_PROPERTY(bool HasTrackList READ hasTrackList) +Q_PROPERTY(QString Identity READ identity) +Q_PROPERTY(QStringList SupportedMimeTypes READ supportedMimeTypes) +Q_PROPERTY(QStringList SupportedUriSchemes READ supportedUriSchemes) + +public: + Root2Object(QObject *parent = 0); + virtual ~Root2Object(); + + bool canQuit() const; + bool canRaise() const; + QString desktopEntry() const; + bool hasTrackList() const; + QString identity() const; + QStringList supportedMimeTypes() const; + QStringList supportedUriSchemes() const; + +public slots: + void Quit(); + void Raise(); +}; + +#endif diff --git a/src/plugins/Input/aac/decoderaacfactory.cpp b/src/plugins/Input/aac/decoderaacfactory.cpp index bce1e2f51..a00d6ea43 100644 --- a/src/plugins/Input/aac/decoderaacfactory.cpp +++ b/src/plugins/Input/aac/decoderaacfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -43,7 +43,7 @@ const DecoderProperties DecoderAACFactory::properties() const { DecoderProperties properties; properties.name = tr("AAC Plugin"); - properties.filter = "*.aac"; + properties.filters << "*.aac"; properties.description = tr("AAC Files"); //properties.contentType = ; properties.shortName = "aac"; diff --git a/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp b/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp index cb334c4d5..9e5358e4c 100644 --- a/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp +++ b/src/plugins/Input/cdaudio/decodercdaudiofactory.cpp @@ -44,7 +44,7 @@ const DecoderProperties DecoderCDAudioFactory::properties() const DecoderProperties properties; properties.name = tr("CD Audio Plugin"); properties.shortName = "cdaudio"; - properties.protocols = "cdda"; + properties.protocols << "cdda"; properties.hasAbout = true; properties.noInput = true; properties.hasSettings = true; diff --git a/src/plugins/Input/cue/decodercuefactory.cpp b/src/plugins/Input/cue/decodercuefactory.cpp index 9a36cc948..a9924fd7e 100644 --- a/src/plugins/Input/cue/decodercuefactory.cpp +++ b/src/plugins/Input/cue/decodercuefactory.cpp @@ -43,10 +43,10 @@ const DecoderProperties DecoderCUEFactory::properties() const DecoderProperties properties; properties.name = tr("CUE Plugin"); properties.shortName = "cue"; - properties.filter = "*.cue"; + properties.filters << "*.cue"; properties.description = tr("CUE Files"); //properties.contentType = "application/ogg;audio/x-vorbis+ogg"; - properties.protocols = "cue"; + properties.protocols << "cue"; properties.hasAbout = true; properties.hasSettings = true; properties.noInput = true; diff --git a/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp b/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp index 2e6f163a1..d126d714b 100644 --- a/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp +++ b/src/plugins/Input/ffmpeg/decoderffmpegfactory.cpp @@ -51,14 +51,7 @@ extern "C" bool DecoderFFmpegFactory::supports(const QString &source) const { - QSettings settings(Qmmp::configFile(), QSettings::IniFormat); - QStringList filters; - filters << "*.wma" << "*.ape"; -#if (LIBAVCODEC_VERSION_INT >= ((52<<16)+(20<<8)+0)) - filters << "*.shn"; -#endif - filters = settings.value("FFMPEG/filters", filters).toStringList(); - foreach(QString filter, filters) + foreach(QString filter, properties().filters) { QRegExp regexp(filter, Qt::CaseInsensitive, QRegExp::Wildcard); if (regexp.exactMatch(source)) @@ -70,17 +63,7 @@ bool DecoderFFmpegFactory::supports(const QString &source) const bool DecoderFFmpegFactory::canDecode(QIODevice *i) const { av_register_all(); - QSettings settings(Qmmp::configFile(), QSettings::IniFormat); - QStringList filters; -#if (LIBAVCODEC_VERSION_INT >= ((51<<16)+(44<<8)+0)) - filters << "*.wma" << "*.ape"; -#else - filters << "*.wma"; -#endif -#if (LIBAVCODEC_VERSION_INT >= ((52<<16)+(20<<8)+0)) - filters << "*.shn"; -#endif - filters = settings.value("FFMPEG/filters", filters).toStringList(); + QStringList filters = properties().filters; AVProbeData pd; uint8_t buf[8192 + AVPROBE_PADDING_SIZE]; @@ -119,19 +102,21 @@ const DecoderProperties DecoderFFmpegFactory::properties() const filters = settings.value("FFMPEG/filters", filters).toStringList(); DecoderProperties properties; properties.name = tr("FFmpeg Plugin"); - properties.filter = filters.join(" "); + properties.filters = filters; properties.description = tr("FFmpeg Formats"); if(filters.contains("*.wma")) - properties.contentType += "audio/x-ms-wma"; + properties.contentTypes << "audio/x-ms-wma"; if(filters.contains("*.mp3")) - properties.contentType += " audio/mpeg"; + properties.contentTypes << "audio/mpeg"; if(filters.contains("*.aac")) - properties.contentType += " audio/aac audio/aacp"; + properties.contentTypes << "audio/aac" << "audio/aacp"; if(filters.contains("*.m4a")) - properties.contentType += " audio/x-ffmpeg-shorten"; + properties.contentTypes << "audio/x-ffmpeg-shorten"; if(filters.contains("*.shn")) - properties.contentType += " audio/3gpp audio/3gpp2 audio/mp4 audio/MP4A-LATM audio/mpeg4-generic"; - properties.contentType = properties.contentType.trimmed(); + { + properties.contentTypes << "audio/3gpp" << "audio/3gpp2" << "audio/mp4"; + properties.contentTypes << "audio/MP4A-LATM" << "audio/mpeg4-generic"; + } properties.shortName = "ffmpeg"; properties.hasAbout = true; properties.hasSettings = true; diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_cs.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_cs.ts index 4adbe0c51..5b1181810 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_cs.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_cs.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>O modulu FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Vstupní modul Qmmp FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>Modul FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>Formáty FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Přeloženo s libavformat-%1.%2.%3 a libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_de.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_de.ts index 40847013e..d4a9c3a68 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_de.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_de.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>Über FFmpeg-Audio-Modul</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Qmmp FFmpeg-Audio-Modul</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>FFmpeg-Modul</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>FFmpeg-Formate</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Kompiliert gegen libavformat-%1.%2.%3 und libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_es.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_es.ts index d125f74c9..d344c0044 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_es.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_es.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>Acerca del módulo de audio FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Módulo de audio FFmpeg para Qmmp</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Escrito por: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>Módulo FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>Formatos FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Compilado con libavformat-%1.%2.%3 y libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_it.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_it.ts index 100fc434f..2028baee5 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_it.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_it.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>Info sul modulo audi FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Modulo audio FFmpeg per Qmmp</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autore: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>Modulo FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>Formati FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Compilato con libavformat-%1.%2.%3 e libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_ja.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_ja.ts index 652c4feb3..a0f658c29 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_ja.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_ja.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>FFmpeg プラグイン</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>FFmpeg 用の形式</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>FFmpeg 音響プラグインについて</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>QMMP FFmpeg 音響プラグイン</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>libavformat-%1.%2.%3 と libavcodec-%4.%5.%6 対応でコンパイル</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>制作: Илья Котов (Ilya Kotov) <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_lt.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_lt.ts index 9d29c08ec..fe9cbc272 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_lt.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_lt.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>Apie FFmpeg įskiepį</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>FFmpeg Qmmp audio įskiepis</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Sukūrė: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>FFmpeg įskiepis</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>FFmpeg bylų tipai</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Surinkta iš libavformat-%1.%2.%3 ir libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_nl.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_nl.ts index ffe94687c..a21bcdbd7 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_nl.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_nl.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>Over de FFmpeg Audio Module</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>FFmpeg Audio Module voor Qmmp</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Auteur: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>FFmpeg Module</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>FFmpeg Formaat</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Gebouwd tegen libavformat-%1.%2.%3 en libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_pl.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_pl.ts index 3b4f6b7bb..1486420e5 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_pl.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_pl.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>Wtyczka FFMPEG</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>Formaty FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>O wtyczce FFmpeg Audio</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Wtyczka FFmpeg Audio dla Qmmp</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Skompilowane przy użyciu libavformat-%1.%2.%3 i libavcodec-%4.%5.%6</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_ru.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_ru.ts index dfaee7c45..ad4a27b9e 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_ru.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_ru.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>Об аудио-модуле FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Аудио-модуль FFmpeg для Qmmp</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Разработчик: Илья Котов <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>Модуль FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>Форматы FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Собрано с libavformat-%1.%2.%3 и libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_tr.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_tr.ts index b70442464..74ee59da3 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_tr.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_tr.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>FFmpeg Eklentisi</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>FFmpeg Biçimleri</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>FFmpeg Ses Eklentisi Hakkında</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Qmmp FFmpeg Ses Eklentisi</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>libavformat-%1.%2.%3 ve libavcodec-%4.%5.%6 ile derlenmiştir</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Yazan: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_uk_UA.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_uk_UA.ts index 9afeaef0f..d7307bb04 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_uk_UA.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_uk_UA.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>Про аудіо-модуль FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Аудіо-модуль FFmpeg для Qmmp</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Розробник: Ілля Котов <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>Модуль FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>Формати FFmpeg</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>Зібрано з libavformat-%1.%2.%3 та libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_zh_CN.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_zh_CN.ts index 5a169595f..729e63a4b 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_zh_CN.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_zh_CN.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>关于 FFmpeg 音频插件</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Qmmp FFmpeg 音频插件</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>FFmpeg 插件</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>FFmpeg 格式</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>编译依赖 libavformat-%1.%2.%3 和 libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_zh_TW.ts b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_zh_TW.ts index c181cd093..bdf67ec98 100644 --- a/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_zh_TW.ts +++ b/src/plugins/Input/ffmpeg/translations/ffmpeg_plugin_zh_TW.ts @@ -4,32 +4,32 @@ <context> <name>DecoderFFmpegFactory</name> <message> - <location filename="../decoderffmpegfactory.cpp" line="192"/> + <location filename="../decoderffmpegfactory.cpp" line="177"/> <source>About FFmpeg Audio Plugin</source> <translation>關於 FFmpeg 聲訊插件</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="194"/> + <location filename="../decoderffmpegfactory.cpp" line="179"/> <source>Qmmp FFmpeg Audio Plugin</source> <translation>Qmmp FFmpeg 聲訊插件</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="204"/> + <location filename="../decoderffmpegfactory.cpp" line="189"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="121"/> + <location filename="../decoderffmpegfactory.cpp" line="104"/> <source>FFmpeg Plugin</source> <translation>FFmpeg 插件</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="123"/> + <location filename="../decoderffmpegfactory.cpp" line="106"/> <source>FFmpeg Formats</source> <translation>FFmpeg 格式</translation> </message> <message> - <location filename="../decoderffmpegfactory.cpp" line="196"/> + <location filename="../decoderffmpegfactory.cpp" line="181"/> <source>Compiled against libavformat-%1.%2.%3 and libavcodec-%4.%5.%6</source> <translation>編譯依賴 libavformat-%1.%2.%3 與 libavcodec-%4.%5.%6</translation> </message> diff --git a/src/plugins/Input/flac/decoderflacfactory.cpp b/src/plugins/Input/flac/decoderflacfactory.cpp index f6ac9fdd8..33e97d1b4 100644 --- a/src/plugins/Input/flac/decoderflacfactory.cpp +++ b/src/plugins/Input/flac/decoderflacfactory.cpp @@ -49,11 +49,11 @@ const DecoderProperties DecoderFLACFactory::properties() const { DecoderProperties properties; properties.name = tr("FLAC Plugin"); - properties.filter = "*.flac *.oga"; + properties.filters << "*.flac" << "*.oga"; properties.description = tr("FLAC Files"); //properties.contentType = ; properties.shortName = "flac"; - properties.protocols = "flac"; + properties.protocols << "flac"; properties.hasAbout = true; properties.hasSettings = false; return properties; diff --git a/src/plugins/Input/gme/decodergmefactory.cpp b/src/plugins/Input/gme/decodergmefactory.cpp index 120a3cf61..e9a9a37ca 100644 --- a/src/plugins/Input/gme/decodergmefactory.cpp +++ b/src/plugins/Input/gme/decodergmefactory.cpp @@ -19,6 +19,7 @@ ***************************************************************************/ #include <QtGui> +#include <QRegExp> #include <gme/Gme_File.h> #include "gmehelper.h" #include "decoder_gme.h" @@ -28,13 +29,12 @@ bool DecoderGmeFactory::supports(const QString &source) const { - QString lExt = source.section(".",-1).toLower(); - lExt.prepend("."); - QStringList lExtList; - lExtList << ".ay" << ".gms" << ".gym" << ".hes" << ".kss" << ".nsf" << ".nsfe" << ".sap" << ".spc" - << ".vgm" << ".vgz"; - if (lExtList.contains(lExt)) - return true; + foreach(QString filter, properties().filters) + { + QRegExp regexp(filter, Qt::CaseInsensitive, QRegExp::Wildcard); + if (regexp.exactMatch(source)) + return true; + } return false; } @@ -47,14 +47,15 @@ const DecoderProperties DecoderGmeFactory::properties() const { DecoderProperties properties; properties.name = tr("GME Plugin"); - properties.filter = QString("*.ay *.gms *.gym *.hes *.kss *.nsf *.nsfe *.sap *.spc *.vgm *.vgz"); + properties.filters << "*.ay" << "*.gms" << "*.gym" << "*.hes" << "*.kss" << "*.nsf" << "*.nsfe"; + properties.filters << "*.sap" << "*.spc" << "*.vgm" << "*.vgz"; properties.description = tr("Game Music Files"); //properties.contentType = ; properties.shortName = "gme"; properties.hasAbout = true; properties.hasSettings = false; properties.noInput = true; - properties.protocols = "gme"; + properties.protocols << "gme"; return properties; } diff --git a/src/plugins/Input/gme/translations/gme_plugin_cs.ts b/src/plugins/Input/gme/translations/gme_plugin_cs.ts index ee88b1667..681061c4f 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_cs.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_cs.ts @@ -9,27 +9,27 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation type="unfinished">Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_de.ts b/src/plugins/Input/gme/translations/gme_plugin_de.ts index 25c602f21..b01326a42 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_de.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_de.ts @@ -9,27 +9,27 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation type="unfinished">Autor: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_it.ts b/src/plugins/Input/gme/translations/gme_plugin_it.ts index d97083f69..c206a2f4c 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_it.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_it.ts @@ -9,27 +9,27 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation type="unfinished">Autore: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_ja.ts b/src/plugins/Input/gme/translations/gme_plugin_ja.ts index cf53f3e03..273b23c13 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_ja.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_ja.ts @@ -9,27 +9,27 @@ <translation>GME プラグイン</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation>ゲーム音楽ファイル</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation>GME 音響プラグインについて</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation>QMMP 用 GME 音響プラグイン</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation>このプラグインは Game_Music_Emu ライブラリを用いてゲーム音楽ファイルを再生します。</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>制作: Илья Котов (Ilya Kotov) <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_lt.ts b/src/plugins/Input/gme/translations/gme_plugin_lt.ts index a75b279ce..c4ecea22c 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_lt.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_lt.ts @@ -9,27 +9,27 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation type="unfinished">Sukūrė: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_nl.ts b/src/plugins/Input/gme/translations/gme_plugin_nl.ts index a7c65f0cf..0264a87f2 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_nl.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_nl.ts @@ -9,27 +9,27 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation type="unfinished">Auteur: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_pl.ts b/src/plugins/Input/gme/translations/gme_plugin_pl.ts index d8c4e1933..02d3343c2 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_pl.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_pl.ts @@ -9,27 +9,27 @@ <translation>Wtyczka GME</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation>Game Music Files</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation>O wtyczce dźwiękowej GME</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation>Wtyczka dźwiękowa GME dla Qmmp</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation>Ta wtyczka używa biblioteki Game_Music_Emu do odtwarzania plików muzycznych z gier</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_ru.ts b/src/plugins/Input/gme/translations/gme_plugin_ru.ts index d5508a970..dcfef1691 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_ru.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_ru.ts @@ -9,27 +9,27 @@ <translation>Модуль GME</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation>Программы звукогенераторов</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation>Об аудио-модуле GME</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation>Аудио-модуль GME для Qmmp</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation>Для воспроизведения используется библиотека Game_Music_Emu </translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Разработчик: Илья Котов <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_tr.ts b/src/plugins/Input/gme/translations/gme_plugin_tr.ts index f6fd2e991..63bfe53f9 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_tr.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_tr.ts @@ -9,27 +9,27 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation type="unfinished">Yazan: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_uk_UA.ts b/src/plugins/Input/gme/translations/gme_plugin_uk_UA.ts index 942a8fcc6..113dc73dd 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_uk_UA.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_uk_UA.ts @@ -9,27 +9,27 @@ <translation>Модуль GME</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation>Програми звукогенераторів</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation>Про аудіо-модуль GME</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation>Аудіо-модуль GME для Qmmp</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation>Для відтворення використовується бібліотека Game_Music_Emu</translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Розробник: Ілля Котов <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_zh_CN.ts b/src/plugins/Input/gme/translations/gme_plugin_zh_CN.ts index ad54efe84..d3240cad4 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_zh_CN.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_zh_CN.ts @@ -9,27 +9,27 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation type="unfinished">作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/gme/translations/gme_plugin_zh_TW.ts b/src/plugins/Input/gme/translations/gme_plugin_zh_TW.ts index 8e1ec40fd..88b2327a6 100644 --- a/src/plugins/Input/gme/translations/gme_plugin_zh_TW.ts +++ b/src/plugins/Input/gme/translations/gme_plugin_zh_TW.ts @@ -9,27 +9,27 @@ <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="51"/> + <location filename="../decodergmefactory.cpp" line="52"/> <source>Game Music Files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="95"/> + <location filename="../decodergmefactory.cpp" line="96"/> <source>About GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="96"/> + <location filename="../decodergmefactory.cpp" line="97"/> <source>Qmmp GME Audio Plugin</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="97"/> + <location filename="../decodergmefactory.cpp" line="98"/> <source>This plugin uses Game_Music_Emu library to play game music files</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodergmefactory.cpp" line="98"/> + <location filename="../decodergmefactory.cpp" line="99"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation type="unfinished">作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/mad/decodermadfactory.cpp b/src/plugins/Input/mad/decodermadfactory.cpp index 3e38cb4b0..39f31d9da 100644 --- a/src/plugins/Input/mad/decodermadfactory.cpp +++ b/src/plugins/Input/mad/decodermadfactory.cpp @@ -55,6 +55,7 @@ bool DecoderMADFactory::supports(const QString &source) const return true; } } + qDebug("false"); return false; } @@ -86,9 +87,9 @@ const DecoderProperties DecoderMADFactory::properties() const DecoderProperties properties; properties.name = tr("MPEG Plugin"); properties.shortName = "mad"; - properties.filter = "*.mp1 *.mp2 *.mp3 *.wav"; + properties.filters << "*.mp1" << "*.mp2" << "*.mp3" << "*.wav"; properties.description = tr("MPEG Files"); - properties.contentType = "audio/mp3;audio/mpeg"; + properties.contentTypes << "audio/mp3" << "audio/mpeg"; properties.hasAbout = true; properties.hasSettings = true; return properties; diff --git a/src/plugins/Input/mad/translations/mad_plugin_cs.ts b/src/plugins/Input/mad/translations/mad_plugin_cs.ts index 8995478b6..40418073b 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_cs.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_cs.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>Modul MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>Soubory MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>O modulu MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Vstupní modul Qmmp MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Zkompilováno s libmad verze:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Zdrojový kód je založen na projektu mq3</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_de.ts b/src/plugins/Input/mad/translations/mad_plugin_de.ts index 484649853..d9cbae94d 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_de.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_de.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>MPEG-Modul</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>MPEG-Dateien</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>Über MPEG-Audio-Modul</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Qmmp MPEG-Audio-Modul</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Kompiliert gegen libmad-Version:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Quellcode basiert auf dem mq3-Projekt</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_es.ts b/src/plugins/Input/mad/translations/mad_plugin_es.ts index b41232e7b..0fa603efe 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_es.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_es.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>Módulo MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>Archivos MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>Acerca del módulo de audio MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Módulo de audio MPEG para Qmmp</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Compilado con libmad version:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Escrito por: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Código basado en el proyecto mq3</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_it.ts b/src/plugins/Input/mad/translations/mad_plugin_it.ts index d1a502d09..a0cf71b34 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_it.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_it.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>Modulo MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>Brani MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>Info sul modulo audio MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Modulo audio MPEG per Qmmp</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Compilato con libmad-Version:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autore: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Codice sorgente basato sul progetto mq3</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_ja.ts b/src/plugins/Input/mad/translations/mad_plugin_ja.ts index 9fbf16a70..a07394048 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_ja.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_ja.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>MPEG プラグイン</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>MPEG ファイル</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>MPEG 音響プラグインについて</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>QMMP MPEG 音響プラグイン</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>コンパイル時に使われた libmad の版はつぎのとおり:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>制作: Илья Котов (Ilya Kotov) <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>ソースコードは MP3 プロジェクトより流用</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_lt.ts b/src/plugins/Input/mad/translations/mad_plugin_lt.ts index d387ae0fc..e19d228b6 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_lt.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_lt.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>MPEG įskiepis</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>MPEG bylos</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>Apie MPEG audio įskiepį</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Qmmp MPEG įskiepis</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Sukurta libmad pagrindu:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Sukūrė: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Išvesties kodas sukurtas mq3 pagrindu</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_nl.ts b/src/plugins/Input/mad/translations/mad_plugin_nl.ts index 6bfc1cc76..78464ace2 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_nl.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_nl.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>MPEG Module</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>MPEG Bestanden</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>Over de MPEG Audio Module</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>MPEG Audio Module voor Qmmp</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Gebouwd tegen libmad versie:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Auteur: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Broncode gebasseerd op het 'mq3 project'</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_pl.ts b/src/plugins/Input/mad/translations/mad_plugin_pl.ts index 586d613cc..01fc93e09 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_pl.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_pl.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>Wtyczka MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>Pliki MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>O wtyczce Audio MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Wtyczka MPEG Audio dla Qmmp</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Skompilowane przy użyciu biblioteki libmad w wersji:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Kod źródłowy oparty na projekcie mq3</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_ru.ts b/src/plugins/Input/mad/translations/mad_plugin_ru.ts index 73d95047a..bc1a3b5aa 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_ru.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_ru.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>Модуль MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>Файлы MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>Об аудио-модуле MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Аудио-модуль MPEG для Qmmp</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Собрано с версией libmad:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Разработчик: Илья Котов <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Исходный код основан на проекте mq3</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_tr.ts b/src/plugins/Input/mad/translations/mad_plugin_tr.ts index 0c37533a7..b3285e437 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_tr.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_tr.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>MPEG Eklentisi</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>MPEG Dosyaları</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>MPEG Ses Eklentisi Hakkında</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Qmmp MPEG Ses Eklentisi</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Derlendiği libmad sürümü:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Yazan: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Kaynak kodu mq3 projesi temellidir</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_uk_UA.ts b/src/plugins/Input/mad/translations/mad_plugin_uk_UA.ts index 67ad78a3e..c553c6015 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_uk_UA.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_uk_UA.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>Модуль MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>Файли MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>Про аудіо-модуль MPEG</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Аудіо-модуль MPEG для Qmmp</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>Зібрано з версією libmad:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Розробник: Ілля Котов <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>Вихідний код базується на проекті mq3</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_zh_CN.ts b/src/plugins/Input/mad/translations/mad_plugin_zh_CN.ts index 53dba5050..41bd1494b 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_zh_CN.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_zh_CN.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>MPEG 插件</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>MPEG 文件</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>关于 MPEG 音频插件</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Qmmp MPEG 音频插件</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>编译基于 libmad 的版本:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>源代码基于 mq3 项目</translation> </message> diff --git a/src/plugins/Input/mad/translations/mad_plugin_zh_TW.ts b/src/plugins/Input/mad/translations/mad_plugin_zh_TW.ts index d39a2047a..8a0912314 100644 --- a/src/plugins/Input/mad/translations/mad_plugin_zh_TW.ts +++ b/src/plugins/Input/mad/translations/mad_plugin_zh_TW.ts @@ -4,37 +4,37 @@ <context> <name>DecoderMADFactory</name> <message> - <location filename="../decodermadfactory.cpp" line="87"/> + <location filename="../decodermadfactory.cpp" line="88"/> <source>MPEG Plugin</source> <translation>MPEG 插件</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="90"/> + <location filename="../decodermadfactory.cpp" line="91"/> <source>MPEG Files</source> <translation>MPEG 檔案</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="220"/> + <location filename="../decodermadfactory.cpp" line="221"/> <source>About MPEG Audio Plugin</source> <translation>關於 MPEG 聲訊插件</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="221"/> + <location filename="../decodermadfactory.cpp" line="222"/> <source>Qmmp MPEG Audio Plugin</source> <translation>Qmmp MPEG 聲訊插件</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="222"/> + <location filename="../decodermadfactory.cpp" line="223"/> <source>Compiled against libmad version:</source> <translation>編譯基於 libmad 的版本:</translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="226"/> + <location filename="../decodermadfactory.cpp" line="227"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermadfactory.cpp" line="227"/> + <location filename="../decodermadfactory.cpp" line="228"/> <source>Source code based on mq3 progect</source> <translation>源碼基於 mq3 項目</translation> </message> diff --git a/src/plugins/Input/modplug/decodermodplugfactory.cpp b/src/plugins/Input/modplug/decodermodplugfactory.cpp index bc80f549d..d5ed95e4b 100644 --- a/src/plugins/Input/modplug/decodermodplugfactory.cpp +++ b/src/plugins/Input/modplug/decodermodplugfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -20,11 +20,10 @@ #include <QtGui> #include <QStringList> - +#include <QRegExp> #include <libmodplug/stdafx.h> #include <libmodplug/it_defs.h> #include <libmodplug/sndfile.h> - #include "settingsdialog.h" #include "modplugmetadatamodel.h" #include "decoder_modplug.h" @@ -36,16 +35,12 @@ bool DecoderModPlugFactory::supports(const QString &source) const { - QString lExt = source.section(".",-1).toLower(); - lExt.prepend("."); - QStringList lExtList; - lExtList << ".amf" << ".ams" << ".dbm" << ".dbf" << ".dsm" << ".far" << ".mdl" - << ".stm" << ".ult" << ".ult" << ".j2b" << ".mt2" << ".mdz" /*<< ".mdr"*/ << ".mdgz" - << ".mdbz" << ".mod" << ".s3z" << /*".s3r" <<*/ ".s3gz" << ".s3m" << ".xmz" /*<< ".xmr"*/ - << ".xmgz" << ".itz" << /*".itr" <<*/ ".itgz" << ".dmf" << ".umx" << ".it" << ".669" - << ".xm" << ".mtm" << ".psm" << ".ft2"; - if (lExtList.contains(lExt)) - return true; + foreach(QString filter, properties().filters) + { + QRegExp regexp(filter, Qt::CaseInsensitive, QRegExp::Wildcard); + if (regexp.exactMatch(source)) + return true; + } return false; } @@ -58,16 +53,18 @@ const DecoderProperties DecoderModPlugFactory::properties() const { DecoderProperties properties; properties.name = tr("ModPlug Plugin"); - properties.filter = (QString) "*.amf *.ams *.dbm *.dbf *.dsm *.far *.mdl *.stm *.ult" + - "*.j2b *.mt2 *.mdz *.mdr *.mdgz *.mdbz *.mod *.s3z *.s3r *.s3gz *.s3m *.xmz"+ - "*.xmr *.xmgz *.itz *.itr *.itgz *.dmf *.umx *.it *.669 *.xm *.mtm *.psm *.ft2"; + properties.filters << "*.amf" << "*.ams" << "*.dbm" << "*.dbf" << "*.dsm" << "*.far" << "*.mdl"; + properties.filters << "*.stm" << "*.ult" << "*.j2b" << "*.mt2" << "*.mdz" << "*.mdr" << "*.mdgz"; + properties.filters << "*.mdbz" << "*.mod" << "*.s3z" << "*.s3r" << "*.s3gz" << "*.s3m" << "*.xmz"; + properties.filters << "*.xmr" << "*.xmgz" << "*.itz" << "*.itr" << "*.itgz" << "*.dmf" "*.umx"; + properties.filters << "*.it" << "*.669" << "*.xm" << "*.mtm" << "*.psm" << "*.ft2"; properties.description = tr("ModPlug Files"); //properties.contentType = ; properties.shortName = "modplug"; properties.hasAbout = true; properties.hasSettings = true; properties.noInput = true; - properties.protocols = "file"; + properties.protocols << "file"; return properties; } diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_cs.ts b/src/plugins/Input/modplug/translations/modplug_plugin_cs.ts index 78d4de940..af8f6c4ce 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_cs.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_cs.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>Modul ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>Soubory ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>O modulu ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Vstupní modul Qmmp ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Založeno na modulu Modplug pro XMMS</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Vývojáři modulu ModPlug:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_de.ts b/src/plugins/Input/modplug/translations/modplug_plugin_de.ts index 78406c300..3c60b62ef 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_de.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_de.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>ModPlug-Modul</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>ModPlug-Dateien</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>Über ModPlug-Audio-Modul</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Qmmp ModPlug-Audio-Modul</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Basiert auf dem Modplug-Modul für Xmms</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Entwickler des Modplug-Moduls:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_es.ts b/src/plugins/Input/modplug/translations/modplug_plugin_es.ts index bb91cda58..ddaec5796 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_es.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_es.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>Módulo ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>Archivos ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>Acerca del módulo de audio ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Módulo de audio ModPlug para Qmmp</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Escrito por: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Basado en el módulo Modplug para Xmms</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Desarrolladores del módulo Modplug:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_it.ts b/src/plugins/Input/modplug/translations/modplug_plugin_it.ts index 07d5e2b9b..78ad9fa1b 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_it.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_it.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>Modulo ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>Brani ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>Info sul modulo audio ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Modulo audio ModPlug per Qmmp</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autore: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Basato sul Modulo Modplug per Xmms</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Sviluppatori del modulo Modplug:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_ja.ts b/src/plugins/Input/modplug/translations/modplug_plugin_ja.ts index 1e8271195..9becea968 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_ja.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_ja.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>ModPlug プラグイン</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>ModoPlug ファイル</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>ModoPlug 音響プラグインについて</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>QMMP ModoPlug 音響プラグイン</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>制作: Илья Котов (Ilya Kotov) <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>XMMS 用 ModPlug プラグインを流用</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>ModPlug プラグインの開発者:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_lt.ts b/src/plugins/Input/modplug/translations/modplug_plugin_lt.ts index c32ff1639..b064b1298 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_lt.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_lt.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>ModPlug Įskiepis</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>ModPlug bylos</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>Apie ModPlug audio įskiepį</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Qmmp ModPlug audio įskiepis</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>sukūrė:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Sukurta Xmms Modplug įskiepio pagrindu</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Modplug įskiepio kūrėjai:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_nl.ts b/src/plugins/Input/modplug/translations/modplug_plugin_nl.ts index 9e19cbdb8..0f0e56de4 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_nl.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_nl.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>ModPlug Module</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>ModPlug Bestanden</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>Over de ModPlug Audio Module</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Modplug Audio Module voor Qmmp</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Auteur: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Gebasseerd op de Modplug Module voor Xmms</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Modplug Module ontwikkelaars:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_pl.ts b/src/plugins/Input/modplug/translations/modplug_plugin_pl.ts index bf0a00584..f5b75dfa1 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_pl.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_pl.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>Wtyczka ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>Pliki ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>O wtyczce ModPlug Audio</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Wtyczka ModPlug Audio dla Qmmp</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Oparty na wtyczce Modplug dla Xmms</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Twórcy wtyczki Modplug:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_ru.ts b/src/plugins/Input/modplug/translations/modplug_plugin_ru.ts index e68998a15..6f7ba4148 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_ru.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_ru.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>Модуль ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>Файлы ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>Об аудио-модуле ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Аудио-модуль ModPlug для Qmmp</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Разработчик: Илья Котов <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Основан на базе модуля Modplug для Xmms</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Разработчики модуля Modplug:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_tr.ts b/src/plugins/Input/modplug/translations/modplug_plugin_tr.ts index a55668d66..8f446b273 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_tr.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_tr.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>ModPlug Eklentisi</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>ModPlug Dosyaları</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>ModPlug Ses Eklentisi Hakkında</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Qmmp ModPlug Ses Eklentisi</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Yazan: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>Xmms için yazılan Modplug eklentisi temellidir</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_uk_UA.ts b/src/plugins/Input/modplug/translations/modplug_plugin_uk_UA.ts index ac61c7bbd..37af9c381 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_uk_UA.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_uk_UA.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>Модуль ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>Файли ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>Про аудіо-модуль ModPlug</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Аудіо-модуль для Qmmp</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Розробник: Ілля Котов <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>На базі модуля Modplug для Xmms</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation>Розробники модуля ModPlug:</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_zh_CN.ts b/src/plugins/Input/modplug/translations/modplug_plugin_zh_CN.ts index 4c3928987..ed8f4d0a2 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_zh_CN.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_zh_CN.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>ModPlug 插件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>ModPlug 文件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>关于 ModPlug 音频插件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Qmmp ModPlug 音频插件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>基于 Modplug 的 Xmms 插件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/modplug/translations/modplug_plugin_zh_TW.ts b/src/plugins/Input/modplug/translations/modplug_plugin_zh_TW.ts index 422e6eed2..fc466f401 100644 --- a/src/plugins/Input/modplug/translations/modplug_plugin_zh_TW.ts +++ b/src/plugins/Input/modplug/translations/modplug_plugin_zh_TW.ts @@ -4,52 +4,52 @@ <context> <name>DecoderModPlugFactory</name> <message> - <location filename="../decodermodplugfactory.cpp" line="60"/> + <location filename="../decodermodplugfactory.cpp" line="55"/> <source>ModPlug Plugin</source> <translation>ModPlug 插件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="64"/> + <location filename="../decodermodplugfactory.cpp" line="61"/> <source>ModPlug Files</source> <translation>ModPlug 檔案</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="130"/> + <location filename="../decodermodplugfactory.cpp" line="127"/> <source>About ModPlug Audio Plugin</source> <translation>關於 ModPlug 聲訊插件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="131"/> + <location filename="../decodermodplugfactory.cpp" line="128"/> <source>Qmmp ModPlug Audio Plugin</source> <translation>Qmmp ModPlug 聲訊插件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="132"/> + <location filename="../decodermodplugfactory.cpp" line="129"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="133"/> + <location filename="../decodermodplugfactory.cpp" line="130"/> <source>Based on the Modplug Plugin for Xmms</source> <translation>基於 Modplug 的 Xmms 插件</translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="134"/> + <location filename="../decodermodplugfactory.cpp" line="131"/> <source>Modplug Plugin developers:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="135"/> + <location filename="../decodermodplugfactory.cpp" line="132"/> <source>Olivier Lapicque <olivierl@jps.net></source> <translation>Olivier Lapicque <olivierl@jps.net></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="136"/> + <location filename="../decodermodplugfactory.cpp" line="133"/> <source>Kenton Varda <temporal@gauge3d.org></source> <translation>Kenton Varda <temporal@gauge3d.org></translation> </message> <message> - <location filename="../decodermodplugfactory.cpp" line="137"/> + <location filename="../decodermodplugfactory.cpp" line="134"/> <source>Konstanty Bialkowski <konstanty@ieee.org></source> <translation>Konstanty Bialkowski <konstanty@ieee.org></translation> </message> diff --git a/src/plugins/Input/mpc/decodermpcfactory.cpp b/src/plugins/Input/mpc/decodermpcfactory.cpp index 43366bc89..a3ab7ae5d 100644 --- a/src/plugins/Input/mpc/decodermpcfactory.cpp +++ b/src/plugins/Input/mpc/decodermpcfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -45,7 +45,7 @@ const DecoderProperties DecoderMPCFactory::properties() const { DecoderProperties properties; properties.name = tr("Musepack Plugin"); - properties.filter = "*.mpc"; + properties.filters << "*.mpc"; properties.description = tr("Musepack Files"); //properties.contentType = ; properties.shortName = "mpc"; diff --git a/src/plugins/Input/sndfile/decodersndfilefactory.cpp b/src/plugins/Input/sndfile/decodersndfilefactory.cpp index 5ffbb8ddb..e01ac3103 100644 --- a/src/plugins/Input/sndfile/decodersndfilefactory.cpp +++ b/src/plugins/Input/sndfile/decodersndfilefactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2009 by Ilya Kotov * + * Copyright (C) 2007-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -18,6 +18,7 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include <QtGui> +#include <QRegExp> extern "C" { #include <sndfile.h> @@ -31,17 +32,7 @@ extern "C" bool DecoderSndFileFactory::supports(const QString &source) const { - - if ((source.right(3).toLower() == ".au") || - (source.right(4).toLower() == ".snd") || - (source.right(4).toLower() == ".aif") || - (source.right(5).toLower() == ".aiff") || - (source.right(5).toLower() == ".8svx") || - (source.right(4).toLower() == ".sph") || - (source.right(3).toLower() == ".sf") || - (source.right(4).toLower() == ".voc")) - return true; - else if (source.right(4).toLower() == ".wav") + if (source.right(4).toLower() == ".wav") { //try top open the file SF_INFO snd_info; @@ -52,6 +43,12 @@ bool DecoderSndFileFactory::supports(const QString &source) const sndfile = 0; return true; } + foreach(QString filter, properties().filters) + { + QRegExp regexp(filter, Qt::CaseInsensitive, QRegExp::Wildcard); + if (regexp.exactMatch(source)) + return true; + } return false; } @@ -64,14 +61,15 @@ const DecoderProperties DecoderSndFileFactory::properties() const { DecoderProperties properties; properties.name = tr("Sndfile Plugin"); - properties.filter = "*.wav *.au *.snd *.aif *.aiff *.8svx *.sph *.sf *.voc"; + properties.filters << "*.wav" << "*.au" << "*.snd" << "*.aif" << "*.aiff" << "*.8svx"; + properties.filters << "*.sph" << "*.sf" << "*.voc"; properties.description = tr("PCM Files"); //properties.contentType = ""; properties.shortName = "sndfile"; properties.hasAbout = true; properties.hasSettings = false; properties.noInput = true; - properties.protocols = "file"; + properties.protocols << "file"; return properties; } diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts index 28c04a70c..109275191 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_cs.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Modul Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>Soubory PCM</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>O modulu Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Vstupní modul Qmmp Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Zkompilováno s</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilja Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts index eee5b58a3..dd6ed2a3d 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_de.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Sndfile-Modul</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>PCM-Dateien</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Über Sndfile-Audio-Modul</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Qmmp Sndfile-Audio-Modul</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Kompiliert gegen</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_es.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_es.ts index 09fd41f47..fa63b9baf 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_es.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_es.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Módulo Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>Archivos PCM</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Acerca del módulo de sonido Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Módulo de sonido Sndfile para Qmmp</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Compilado con</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Escrito por: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts index e03d61a1c..628c534ec 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_it.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Modulo Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>Brani PCM</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Info sul modulo audio Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Modulo audio Sndfile per Qmmp</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Compilato su</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autore: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_ja.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_ja.ts index 64bc1e524..60f950069 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_ja.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_ja.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Sndfile プラグイン</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>PCM ファイル</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Sndfile 音響プラグインについて</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>QMMP Sndfile 音響プラグイン</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>コンパイルに使用したライブラリ</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>制作: Илья Котов (Ilya Kotov) <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts index 39ef4efcf..852c23833 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_lt.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Sndfile įskiepis</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>PCM bylos</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Apie Sndfile Audio įskiepį</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Qmmp Sndfile Audio įskiepis</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Compiled against</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Sukūrė: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_nl.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_nl.ts index 426ae2e57..94480cf02 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_nl.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_nl.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Sndfile Module</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>PCM Bestanden</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Over de Sndfile Audio Module</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Sndfile Audio Module voor Qmmp</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Gebouwd tegen</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Auteur: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts index 70426ece5..8cf02b2dd 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_pl.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Wtyczka Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>Pliki PCM</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>O wtyczce Sndfile Audio</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Wtyczka Sndfile Audio dla Qmmp</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Skompilowano przy użyciu</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Autor: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts index 5842f2dc8..df231ef4c 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_ru.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Модуль Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>Файлы PCM</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Об аудио-модуле Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Модуль SndFile для Qmmp</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Собрано с</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Разработчик: Илья Котов <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts index 9fd98c7c1..a976bcfcf 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_tr.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Sndfile Eklentisi</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>PCM Dosyaları</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Sndfile Ses Eklentisi Hakkında</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Qmmp Sndfile Ses Eklentisi</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Derlendi</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Yazan: Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts index 23acc3081..735d4761d 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_uk_UA.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Модуль Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>Файли PCM</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>Про аудіо-модуль Sndfile</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Модуль SndFile для Qmmp</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>Зкомпільовано з</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>Розробник: Ілля Котов <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts index 13fa4d9e1..9d766a3a9 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_CN.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Sndfile 插件</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>PCM 文件</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>关于 Sndfile 音频插件</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Qmmp Sndfile 音频插件</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>编译依赖</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts b/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts index c36795f2b..8d0ef3990 100644 --- a/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts +++ b/src/plugins/Input/sndfile/translations/sndfile_plugin_zh_TW.ts @@ -4,32 +4,32 @@ <context> <name>DecoderSndFileFactory</name> <message> - <location filename="../decodersndfilefactory.cpp" line="66"/> + <location filename="../decodersndfilefactory.cpp" line="63"/> <source>Sndfile Plugin</source> <translation>Sndfile 插件</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="68"/> + <location filename="../decodersndfilefactory.cpp" line="66"/> <source>PCM Files</source> <translation>PCM 檔案</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="132"/> + <location filename="../decodersndfilefactory.cpp" line="130"/> <source>About Sndfile Audio Plugin</source> <translation>關於 Sndfile 聲訊插件</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="133"/> + <location filename="../decodersndfilefactory.cpp" line="131"/> <source>Qmmp Sndfile Audio Plugin</source> <translation>Qmmp Sndfile 聲訊插件</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="134"/> + <location filename="../decodersndfilefactory.cpp" line="132"/> <source>Compiled against</source> <translation>編譯依賴於</translation> </message> <message> - <location filename="../decodersndfilefactory.cpp" line="135"/> + <location filename="../decodersndfilefactory.cpp" line="133"/> <source>Writen by: Ilya Kotov <forkotov02@hotmail.ru></source> <translation>作者:Ilya Kotov <forkotov02@hotmail.ru></translation> </message> diff --git a/src/plugins/Input/vorbis/decodervorbisfactory.cpp b/src/plugins/Input/vorbis/decodervorbisfactory.cpp index 12ed9ba0a..2ca31b60e 100644 --- a/src/plugins/Input/vorbis/decodervorbisfactory.cpp +++ b/src/plugins/Input/vorbis/decodervorbisfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -49,9 +49,9 @@ const DecoderProperties DecoderVorbisFactory::properties() const DecoderProperties properties; properties.name = tr("Ogg Vorbis Plugin"); properties.shortName = "vorbis"; - properties.filter = "*.ogg"; + properties.filters << "*.ogg"; properties.description = tr("Ogg Vorbis Files"); - properties.contentType = "application/ogg;audio/x-vorbis+ogg"; + properties.contentTypes << "application/ogg" << "audio/x-vorbis+ogg"; properties.hasAbout = true; properties.hasSettings = false; properties.noInput = false; diff --git a/src/plugins/Input/wavpack/decoderwavpackfactory.cpp b/src/plugins/Input/wavpack/decoderwavpackfactory.cpp index 50a81c6c7..45a6bfaed 100644 --- a/src/plugins/Input/wavpack/decoderwavpackfactory.cpp +++ b/src/plugins/Input/wavpack/decoderwavpackfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -42,14 +42,14 @@ const DecoderProperties DecoderWavPackFactory::properties() const { DecoderProperties properties; properties.name = tr("WavPack Plugin"); - properties.filter = "*.wv"; + properties.filters << "*.wv"; properties.description = tr("WavPack Files"); //properties.contentType = ; properties.shortName = "wavpack"; properties.hasAbout = true; properties.hasSettings = false; properties.noInput = true; - properties.protocols = "file wvpack"; + properties.protocols << "file" << "wvpack"; return properties; } diff --git a/src/plugins/Input/wildmidi/decoderwildmidifactory.cpp b/src/plugins/Input/wildmidi/decoderwildmidifactory.cpp index 808341333..c9ed01c19 100644 --- a/src/plugins/Input/wildmidi/decoderwildmidifactory.cpp +++ b/src/plugins/Input/wildmidi/decoderwildmidifactory.cpp @@ -41,14 +41,14 @@ const DecoderProperties DecoderWildMidiFactory::properties() const { DecoderProperties properties; properties.name = tr("WildMidi Plugin"); - properties.filter = "*.mid"; + properties.filters << "*.mid"; properties.description = tr("Midi Files"); //properties.contentType = ; properties.shortName = "wildmidi"; properties.hasAbout = true; properties.hasSettings = true; properties.noInput = true; - properties.protocols = "file"; + properties.protocols << "file"; WildMidiHelper::instance()->initialize(); return properties; } diff --git a/src/plugins/Transports/http/httpinputfactory.cpp b/src/plugins/Transports/http/httpinputfactory.cpp index e1229a04b..f5353534c 100644 --- a/src/plugins/Transports/http/httpinputfactory.cpp +++ b/src/plugins/Transports/http/httpinputfactory.cpp @@ -30,7 +30,7 @@ const InputSourceProperties HTTPInputFactory::properties() const { InputSourceProperties p; - p.protocols = "http"; + p.protocols << "http"; p.name = tr("HTTP Plugin"); p.shortName = "http"; p.hasAbout = true; diff --git a/src/plugins/Transports/http/httpinputfactory.h b/src/plugins/Transports/http/httpinputfactory.h index 220984ad2..550b12e53 100644 --- a/src/plugins/Transports/http/httpinputfactory.h +++ b/src/plugins/Transports/http/httpinputfactory.h @@ -22,6 +22,7 @@ #define HTTPINPUTFACTORY_H #include <QObject> +#include <QStringList> #include <qmmp/inputsourcefactory.h> class QTranslator; diff --git a/src/plugins/Transports/mms/mmsinputfactory.cpp b/src/plugins/Transports/mms/mmsinputfactory.cpp index b0945ab70..48e36f957 100644 --- a/src/plugins/Transports/mms/mmsinputfactory.cpp +++ b/src/plugins/Transports/mms/mmsinputfactory.cpp @@ -30,7 +30,7 @@ const InputSourceProperties MMSInputFactory::properties() const { InputSourceProperties p; - p.protocols = "mms mmsh mmst mmsu"; + p.protocols << "mms" << "mmsh" << "mmst" << "mmsu"; p.name = tr("MMS Plugin"); p.shortName = "mms"; p.hasAbout = true; diff --git a/src/plugins/Transports/mms/mmsinputfactory.h b/src/plugins/Transports/mms/mmsinputfactory.h index a5997b697..a2853636a 100644 --- a/src/plugins/Transports/mms/mmsinputfactory.h +++ b/src/plugins/Transports/mms/mmsinputfactory.h @@ -22,6 +22,7 @@ #define HTTPINPUTFACTORY_H #include <QObject> +#include <QStringList> #include <qmmp/inputsourcefactory.h> class QTranslator; diff --git a/src/qmmp/abstractengine.cpp b/src/qmmp/abstractengine.cpp index 2aa468375..a9115d777 100644 --- a/src/qmmp/abstractengine.cpp +++ b/src/qmmp/abstractengine.cpp @@ -42,6 +42,7 @@ QWaitCondition *AbstractEngine::cond() // static methods QList<EngineFactory*> *AbstractEngine::m_factories = 0; +QList<EngineFactory*> *AbstractEngine::m_disabledFactories = 0; QStringList AbstractEngine::m_files; void AbstractEngine::checkFactories() @@ -49,8 +50,10 @@ void AbstractEngine::checkFactories() if (!m_factories) { QSettings settings (Qmmp::configFile(), QSettings::IniFormat); + QStringList disabledNames = settings.value("Engine/disabled_plugins").toStringList (); m_files.clear(); m_factories = new QList<EngineFactory *>; + m_disabledFactories = new QList<EngineFactory *>; QDir pluginsDir (Qmmp::pluginsPath()); pluginsDir.cd("Engines"); @@ -71,6 +74,8 @@ void AbstractEngine::checkFactories() m_factories->append(factory); m_files << pluginsDir.absoluteFilePath(fileName); qApp->installTranslator(factory->createTranslator(qApp)); + if(disabledNames.contains(factory->properties().shortName)) + m_disabledFactories->append(factory); } } //remove physically deleted plugins from disabled list @@ -79,13 +84,12 @@ void AbstractEngine::checkFactories() { names.append(factory->properties().shortName); } - QStringList disabledList = settings.value("Engine/disabled_plugins").toStringList (); - foreach (QString name, disabledList) + foreach (QString name, disabledNames) { if (!names.contains(name)) - disabledList.removeAll(name); + disabledNames.removeAll(name); } - settings.setValue("Engine/disabled_plugins",disabledList); + settings.setValue("Engine/disabled_plugins", disabledNames); } } @@ -112,29 +116,28 @@ void AbstractEngine::setEnabled(EngineFactory* factory, bool enable) if (!m_factories->contains(factory)) return; - QString name = factory->properties().shortName; - QSettings settings (Qmmp::configFile(), QSettings::IniFormat ); - QStringList disabledList = settings.value("Engine/disabled_plugins").toStringList(); + if(enable == isEnabled(factory)) + return; - if (enable) - disabledList.removeAll(name); + if(enable) + m_disabledFactories->removeAll(factory); else + m_disabledFactories->append(factory); + + QStringList disabledNames; + foreach(EngineFactory *f, *m_disabledFactories) { - if (!disabledList.contains(name)) - disabledList << name; + disabledNames << f->properties().shortName; } - settings.setValue("Engine/disabled_plugins", disabledList); + disabledNames.removeDuplicates(); + QSettings settings (Qmmp::configFile(), QSettings::IniFormat); + settings.setValue("Engine/disabled_plugins", disabledNames); } bool AbstractEngine::isEnabled(EngineFactory* factory) { checkFactories(); - if (!m_factories->contains(factory)) - return false; - QString name = factory->properties().shortName; - QSettings settings ( Qmmp::configFile(), QSettings::IniFormat ); - QStringList disabledList = settings.value("Engine/disabled_plugins").toStringList(); - return !disabledList.contains(name); + return !m_disabledFactories->contains(factory); } QStringList AbstractEngine::files() @@ -143,3 +146,15 @@ QStringList AbstractEngine::files() return m_files; } +QStringList AbstractEngine::protocols() +{ + QStringList protocolsList; + foreach(EngineFactory *f, *m_factories) + { + if(isEnabled(f)) + protocolsList << f->properties().protocols; + } + protocolsList.removeDuplicates(); + return protocolsList; +} + diff --git a/src/qmmp/abstractengine.h b/src/qmmp/abstractengine.h index 92c1d8d83..5792bb775 100644 --- a/src/qmmp/abstractengine.h +++ b/src/qmmp/abstractengine.h @@ -80,16 +80,6 @@ public: */ QWaitCondition *cond(); /*! - * Sets equalizer settings. Each item of \p bands[] and \p reamp should be \b -20.0..20.0 - * Subclass should reimplement this function. - */ - //virtual void setEQ(double bands[10], double preamp) = 0; - /*! - * Enables equalizer if \p on is \b true or disables it if \p on is \b false - * Subclass should reimplement this function. - */ - //virtual void setEQEnabled(bool on) = 0; - /*! * Returns a list of decoder factories. */ static QList<EngineFactory*> *factories(); @@ -112,6 +102,11 @@ public: * Returns a list of engine plugin files. */ static QStringList files(); + /*! + * Returns a list of supported protocols (including meta-protocols). + * This fuction ignores disabled engines. + */ + static QStringList protocols(); signals: /*! @@ -125,6 +120,7 @@ private: static void checkFactories(); static QList<EngineFactory*> *m_factories; + static QList<EngineFactory*> *m_disabledFactories; static QStringList m_files; }; diff --git a/src/qmmp/decoder.cpp b/src/qmmp/decoder.cpp index 6a0debc5b..81960a0e7 100644 --- a/src/qmmp/decoder.cpp +++ b/src/qmmp/decoder.cpp @@ -67,6 +67,7 @@ QIODevice *Decoder::input() // static methods QList<DecoderFactory*> *Decoder::m_factories = 0; +QList<DecoderFactory*> *Decoder::m_disabledFactories = 0; DecoderFactory *Decoder::m_lastFactory = 0; QStringList Decoder::m_files; @@ -75,8 +76,11 @@ void Decoder::checkFactories() if (!m_factories) { QSettings settings (Qmmp::configFile(), QSettings::IniFormat); + QStringList disabledNames = settings.value("Decoder/disabled_plugins").toStringList (); + m_files.clear(); m_factories = new QList<DecoderFactory *>; + m_disabledFactories = new QList<DecoderFactory *>; QDir pluginsDir (Qmmp::pluginsPath()); pluginsDir.cd("Input"); @@ -97,6 +101,8 @@ void Decoder::checkFactories() m_factories->append(factory); m_files << pluginsDir.absoluteFilePath(fileName); qApp->installTranslator(factory->createTranslator(qApp)); + if(disabledNames.contains(factory->properties().shortName)) + m_disabledFactories->append(factory); } } //remove physically deleted plugins from disabled list @@ -105,13 +111,12 @@ void Decoder::checkFactories() { names.append(factory->properties().shortName); } - QStringList disabledList = settings.value("Decoder/disabled_plugins").toStringList (); - foreach (QString name, disabledList) + foreach (QString name, disabledNames) { if (!names.contains(name)) - disabledList.removeAll(name); + disabledNames.removeAll(name); } - settings.setValue("Decoder/disabled_plugins",disabledList); + settings.setValue("Decoder/disabled_plugins",disabledNames); } } @@ -121,6 +126,18 @@ QStringList Decoder::files() return m_files; } +QStringList Decoder::protocols() +{ + QStringList protocolsList; + foreach(DecoderFactory *f, *m_factories) + { + if(isEnabled(f)) + protocolsList << f->properties().protocols; + } + protocolsList.removeDuplicates(); + return protocolsList; +} + DecoderFactory *Decoder::findByPath(const QString& source) { checkFactories(); @@ -146,15 +163,8 @@ DecoderFactory *Decoder::findByMime(const QString& type) DecoderFactory *fact; foreach(fact, *m_factories) { - if (isEnabled(fact)) - { - QStringList types = fact->properties().contentType.split(";"); - for (int j=0; j<types.size(); ++j) - { - if (type == types[j] && !types[j].isEmpty()) - return fact; - } - } + if (isEnabled(fact) && fact->properties().contentTypes.contains(type)) + return fact; } return 0; } @@ -164,7 +174,7 @@ DecoderFactory *Decoder::findByContent(QIODevice *input) checkFactories(); foreach(DecoderFactory *fact, *m_factories) { - if (fact->canDecode(input) && isEnabled(fact)) + if (isEnabled(fact) && fact->canDecode(input)) { return fact; } @@ -177,7 +187,7 @@ DecoderFactory *Decoder::findByProtocol(const QString &p) checkFactories(); foreach(DecoderFactory *fact, *m_factories) { - if (isEnabled(fact) && fact->properties().protocols.split(" ").contains(p)) + if (isEnabled(fact) && fact->properties().protocols.contains(p)) return fact; } return 0; @@ -189,29 +199,28 @@ void Decoder::setEnabled(DecoderFactory* factory, bool enable) if (!m_factories->contains(factory)) return; - QString name = factory->properties().shortName; - QSettings settings ( Qmmp::configFile(), QSettings::IniFormat ); - QStringList disabledList = settings.value("Decoder/disabled_plugins").toStringList(); + if(enable == isEnabled(factory)) + return; - if (enable) - disabledList.removeAll(name); + if(enable) + m_disabledFactories->removeAll(factory); else + m_disabledFactories->append(factory); + + QStringList disabledNames; + foreach(DecoderFactory *f, *m_disabledFactories) { - if (!disabledList.contains(name)) - disabledList << name; + disabledNames << f->properties().shortName; } - settings.setValue("Decoder/disabled_plugins", disabledList); + disabledNames.removeDuplicates(); + QSettings settings (Qmmp::configFile(), QSettings::IniFormat); + settings.setValue("Decoder/disabled_plugins", disabledNames); } bool Decoder::isEnabled(DecoderFactory* factory) { checkFactories(); - if (!m_factories->contains(factory)) - return false; - QString name = factory->properties().shortName; - QSettings settings ( Qmmp::configFile(), QSettings::IniFormat ); - QStringList disabledList = settings.value("Decoder/disabled_plugins").toStringList(); - return !disabledList.contains(name); + return !m_disabledFactories->contains(factory); } QList<DecoderFactory*> *Decoder::factories() diff --git a/src/qmmp/decoder.h b/src/qmmp/decoder.h index fad61295b..13f78913c 100644 --- a/src/qmmp/decoder.h +++ b/src/qmmp/decoder.h @@ -117,6 +117,11 @@ public: */ static QStringList files(); /*! + * Returns a list of supported protocols (including meta-protocols). + * This fuction ignores disabled decoders. + */ + static QStringList protocols(); + /*! * Sets whether the input plugin is enabled. * @param factory Decoder plugin factory. * @param enable Plugin enable state (\b true - enable, \b false - disable) @@ -140,6 +145,7 @@ protected: private: static void checkFactories(); static QList<DecoderFactory*> *m_factories; + static QList<DecoderFactory*> *m_disabledFactories; static DecoderFactory *m_lastFactory; static QStringList m_files; AudioParameters m_parameters; diff --git a/src/qmmp/decoderfactory.h b/src/qmmp/decoderfactory.h index c72fa68c8..adeb0da4c 100644 --- a/src/qmmp/decoderfactory.h +++ b/src/qmmp/decoderfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2009 by Ilya Kotov * + * Copyright (C) 2006-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -26,6 +26,7 @@ class QString; class QIODevice; class QWidget; class QTranslator; +class QStringList; class Decoder; class Output; @@ -47,18 +48,18 @@ public: hasSettings = false; noInput = false; noOutput = false; - } - QString name; /*!< Input plugin full name */ - QString shortName; /*!< Input plugin short name for internal usage */ - QString filter; /*!< File filter (example: "*.mp3 *.ogg") */ - QString description; /*!< File filter description */ - QString contentType; /*!< Supported content types */ - QString protocols; /*!< Supported protocols. Should be empty if plugin uses stream input. */ - bool hasAbout; /*!< Should be \b true if plugin has about dialog, otherwise \b false */ - bool hasSettings; /*!< Should be \b true if plugin has settings dialog, otherwise \b false */ - bool noInput; /*!< Should be \b true if plugin has own input, otherwise \b false */ - bool noOutput; /*!< Should be \b true if plugin has own output, otherwise \b false */ + QString name; /*!< Input plugin full name */ + QString shortName; /*!< Input plugin short name for internal usage */ + QStringList filters; /*!< File filters (example: "*.mp3") */ + QString description; /*!< File filters description */ + QStringList contentTypes; /*!< Supported content types */ + QStringList protocols; /*!< A list of supported protocols. + * Should be empty if plugin uses stream input. */ + bool hasAbout; /*!< Should be \b true if plugin has about dialog, otherwise \b false */ + bool hasSettings; /*!< Should be \b true if plugin has settings dialog, otherwise \b false */ + bool noInput; /*!< Should be \b true if plugin has own input, otherwise \b false */ + bool noOutput; /*!< Should be \b true if plugin has own output, otherwise \b false */ }; /*! @brief Input plugin interface (decoder factory). * @author Ilya Kotov <forkotov02@hotmail.ru> diff --git a/src/qmmp/enginefactory.h b/src/qmmp/enginefactory.h index 6f081b841..6bc09af66 100644 --- a/src/qmmp/enginefactory.h +++ b/src/qmmp/enginefactory.h @@ -26,6 +26,7 @@ class QString; class QIODevice; class QWidget; class QTranslator; +class QStringList; class MetaDataModel; class FileInfo; class AbstractEngine; @@ -44,14 +45,14 @@ public: hasAbout = false; hasSettings = false; } - QString name; /*!< Input plugin full name */ - QString shortName; /*!< Input plugin short name for internal usage */ - QString filter; /*!< File filter (example: "*.mp3 *.ogg") */ - QString description; /*!< File filter description */ - QString contentType; /*!< Supported content types */ - QString protocols; /*!< Supported protocols. Should be empty if plugin uses stream input. */ - bool hasAbout; /*!< Should be \b true if plugin has about dialog, otherwise returns \b false */ - bool hasSettings; /*!< Should be \b true if plugin has settings dialog, otherwise returns \b false */ + QString name; /*!< Input plugin full name */ + QString shortName; /*!< Input plugin short name for internal usage */ + QStringList filters; /*!< File filters (example: "*.mp3,*.ogg") */ + QString description; /*!< File filter description */ + QStringList contentTypes; /*!< Supported content types */ + QStringList protocols; /*!< Supported protocols. Should be empty if plugin uses stream input. */ + bool hasAbout; /*!< Should be \b true if plugin has about dialog, otherwise returns \b false */ + bool hasSettings; /*!< Should be \b true if plugin has settings dialog, otherwise returns \b false */ }; /*! @brief Engine plugin interface. * @author Ilya Kotov <forkotov02@hotmail.ru> diff --git a/src/qmmp/inputsource.cpp b/src/qmmp/inputsource.cpp index 912e3df87..43451f356 100644 --- a/src/qmmp/inputsource.cpp +++ b/src/qmmp/inputsource.cpp @@ -19,7 +19,6 @@ ***************************************************************************/ #include <QFile> -#include <QSettings> #include <QDir> #include <QApplication> #include <QPluginLoader> @@ -68,8 +67,7 @@ InputSource *InputSource::create(const QString &url, QObject *parent) } foreach(InputSourceFactory *f, *m_factories) { - QStringList protocols = f->properties().protocols.split(" "); - if(protocols.contains(url.section("://", 0, 0))) + if(f->properties().protocols.contains(url.section("://", 0, 0))) { factory = f; break; @@ -99,10 +97,20 @@ QStringList InputSource::files() return m_files; } -void InputSource::checkFactories() +QStringList InputSource::protocols() { - QSettings settings (Qmmp::configFile(), QSettings::IniFormat); + checkFactories(); + QStringList protocolsList; + foreach(InputSourceFactory *f, *m_factories) + { + protocolsList << f->properties().protocols; + } + protocolsList.removeDuplicates(); + return protocolsList; +} +void InputSource::checkFactories() +{ if (!m_factories) { m_files.clear(); diff --git a/src/qmmp/inputsource.h b/src/qmmp/inputsource.h index d6c98c5f4..49384e61c 100644 --- a/src/qmmp/inputsource.h +++ b/src/qmmp/inputsource.h @@ -85,6 +85,10 @@ public: * Returns a list of transport plugin file names. */ static QStringList files(); + /*! + * Returns a list of supported protocols. + */ + static QStringList protocols(); signals: /*! diff --git a/src/qmmp/inputsourcefactory.h b/src/qmmp/inputsourcefactory.h index 00159c9b9..3764cef56 100644 --- a/src/qmmp/inputsourcefactory.h +++ b/src/qmmp/inputsourcefactory.h @@ -24,6 +24,7 @@ #include <QObject> class QTranslator; +class QStringList; class InputSource; /*! @brief Helper class to store transport plugin properies. @@ -41,11 +42,11 @@ public: hasAbout = false; } - QString name; /*!< Transport plugin full name */ - QString shortName; /*!< Transport plugin name for internal usage */ - QString protocols; /*!< Supported protocols. */ - bool hasAbout; /*!< Should be \b true if plugin has about dialog, otherwise \b false */ - bool hasSettings; /*!< Should be \b true if plugin has settings dialog, otherwise \b false */ + QString name; /*!< Transport plugin full name */ + QString shortName; /*!< Transport plugin name for internal usage */ + QStringList protocols; /*!< A list of supported protocols. */ + bool hasAbout; /*!< Should be \b true if plugin has about dialog, otherwise \b false */ + bool hasSettings; /*!< Should be \b true if plugin has settings dialog, otherwise \b false */ }; diff --git a/src/qmmp/metadatamanager.cpp b/src/qmmp/metadatamanager.cpp index 5a7a835a6..b1d2c255c 100644 --- a/src/qmmp/metadatamanager.cpp +++ b/src/qmmp/metadatamanager.cpp @@ -37,7 +37,6 @@ MetaDataManager::MetaDataManager() : m_mutex(QMutex::Recursive) m_instance = this; m_decoderFactories = Decoder::factories(); m_engineFactories = AbstractEngine::factories(); - m_inputSourceFactories = InputSource::factories(); m_settings = QmmpSettings::instance(); } @@ -66,20 +65,14 @@ QList <FileInfo *> MetaDataManager::createPlayList(const QString &fileName, bool else { QString scheme = fileName.section("://",0,0); - QStringList p; - foreach(InputSourceFactory *f, *m_inputSourceFactories) - { - p << f->properties().protocols.split(" ", QString::SkipEmptyParts); - } - if(p.contains(scheme)) + if(InputSource::protocols().contains(scheme)) { list << new FileInfo(fileName); return list; } foreach(fact, *m_decoderFactories) { - p = fact->properties().protocols.split(" ", QString::SkipEmptyParts); - if(p.contains(scheme) && Decoder::isEnabled(fact)) + if(fact->properties().protocols.contains(scheme) && Decoder::isEnabled(fact)) return fact->createPlayList(fileName, useMetaData); } } @@ -104,16 +97,13 @@ MetaDataModel* MetaDataManager::createMetaDataModel(const QString &path, QObject { QString scheme = path.section("://",0,0); MetaDataModel *model = 0; - foreach(fact, *Decoder::factories()) + if((fact = Decoder::findByProtocol(scheme))) { - if(fact->properties().protocols.split(" ").contains(scheme)) - model = fact->createMetaDataModel(path, parent); - if(model) - return model; + return fact->createMetaDataModel(path, parent); } foreach(efact, *AbstractEngine::factories()) { - if(efact->properties().protocols.split(" ").contains(scheme)) + if(efact->properties().protocols.contains(scheme) && AbstractEngine::isEnabled(efact)) model = efact->createMetaDataModel(path, parent); if(model) return model; @@ -127,13 +117,13 @@ QStringList MetaDataManager::filters() const QStringList filters; foreach(DecoderFactory *fact, *m_decoderFactories) { - if (Decoder::isEnabled(fact) && !fact->properties().filter.isEmpty()) - filters << fact->properties().description + " (" + fact->properties().filter + ")"; + if (Decoder::isEnabled(fact) && !fact->properties().filters.isEmpty()) + filters << fact->properties().description + " (" + fact->properties().filters.join(" ") + ")"; } foreach(EngineFactory *fact, *m_engineFactories) { - if (AbstractEngine::isEnabled(fact) && !fact->properties().filter.isEmpty()) - filters << fact->properties().description + " (" + fact->properties().filter + ")"; + if (AbstractEngine::isEnabled(fact) && !fact->properties().filters.isEmpty()) + filters << fact->properties().description + " (" + fact->properties().filters.join(" ") + ")"; } return filters; } @@ -144,12 +134,12 @@ QStringList MetaDataManager::nameFilters() const foreach(DecoderFactory *fact, *m_decoderFactories) { if (Decoder::isEnabled(fact)) - filters << fact->properties().filter.split(" ", QString::SkipEmptyParts); + filters << fact->properties().filters; } foreach(EngineFactory *fact, *m_engineFactories) { if (AbstractEngine::isEnabled(fact)) - filters << fact->properties().filter.split(" ", QString::SkipEmptyParts); + filters << fact->properties().filters; } return filters; } @@ -157,15 +147,10 @@ QStringList MetaDataManager::nameFilters() const QStringList MetaDataManager::protocols() const { QStringList p; - foreach(InputSourceFactory *f, *m_inputSourceFactories) - { - p << f->properties().protocols.split(" ", QString::SkipEmptyParts); - } - foreach(DecoderFactory *f, *m_decoderFactories) - { - if (Decoder::isEnabled(f)) - p << f->properties().protocols.split(" ", QString::SkipEmptyParts); - } + p << InputSource::protocols(); + p << Decoder::protocols(); + p << AbstractEngine::protocols(); + p.removeDuplicates(); return p; } diff --git a/src/qmmp/metadatamanager.h b/src/qmmp/metadatamanager.h index 09417903e..2d0ccdb72 100644 --- a/src/qmmp/metadatamanager.h +++ b/src/qmmp/metadatamanager.h @@ -107,7 +107,6 @@ private: QFileInfoList findCoverFiles(QDir dir, int depth) const; QList <DecoderFactory *> *m_decoderFactories; QList <EngineFactory *> *m_engineFactories; - QList <InputSourceFactory *> *m_inputSourceFactories; QMap <QString, QString> m_cover_cache; QmmpSettings *m_settings; mutable QMutex m_mutex; diff --git a/src/qmmpui/fileloader.cpp b/src/qmmpui/fileloader.cpp index 6c53c62a8..d5d4c01af 100644 --- a/src/qmmpui/fileloader.cpp +++ b/src/qmmpui/fileloader.cpp @@ -31,9 +31,7 @@ FileLoader::FileLoader(QObject *parent) : QThread(parent) FileLoader::~FileLoader() -{ - qWarning("FileLoader::~FileLoader()"); -} +{} void FileLoader::addFile(const QString &path) |
