diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-01-01 14:12:32 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-01-01 14:12:32 +0000 |
| commit | 574126895e619f98fabeaad501cef4627b48af19 (patch) | |
| tree | 968b607c390c5f63a65413e0280a14619437959d /src/plugins/Input/mplayer/decodermplayerfactory.cpp | |
| parent | 1cc6e6039d5c0d83450dd9ae5d8d6636c31e1521 (diff) | |
| download | qmmp-574126895e619f98fabeaad501cef4627b48af19.tar.gz qmmp-574126895e619f98fabeaad501cef4627b48af19.tar.bz2 qmmp-574126895e619f98fabeaad501cef4627b48af19.zip | |
mplayer plugin: added details dialog and Russsian translation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@724 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mplayer/decodermplayerfactory.cpp')
| -rw-r--r-- | src/plugins/Input/mplayer/decodermplayerfactory.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/plugins/Input/mplayer/decodermplayerfactory.cpp b/src/plugins/Input/mplayer/decodermplayerfactory.cpp index b274cdb07..acabeda40 100644 --- a/src/plugins/Input/mplayer/decodermplayerfactory.cpp +++ b/src/plugins/Input/mplayer/decodermplayerfactory.cpp @@ -19,6 +19,7 @@ ***************************************************************************/ #include <QtGui> +#include "detailsdialog.h" #include "decoder_mplayer.h" #include "decodermplayerfactory.h" @@ -59,7 +60,7 @@ const DecoderProperties DecoderMplayerFactory::properties() const } Decoder *DecoderMplayerFactory::create(QObject *parent, QIODevice *input, - Output *output, const QString &url) + Output *output, const QString &url) { Q_UNUSED(input); Q_UNUSED(output); @@ -74,21 +75,24 @@ QList<FileInfo *> DecoderMplayerFactory::createPlayList(const QString &fileName, return info; } -QObject* DecoderMplayerFactory::showDetails(QWidget *, const QString &) +QObject* DecoderMplayerFactory::showDetails(QWidget *parent, const QString &path) { - return 0; + DetailsDialog *d = new DetailsDialog(path, parent); + d->show(); + return d; } void DecoderMplayerFactory::showSettings(QWidget *) { - /*SettingsDialog *s = new SettingsDialog(parent); - s->show();*/ + /*SettingsDialog *s = new SettingsDialog(parent); + s->show();*/ } void DecoderMplayerFactory::showAbout(QWidget *parent) { - QMessageBox::about (parent, tr("About Mplayer Audio Plugin"), - tr("Qmmp Mplayer Audio Plugin")+"\n"+ + QMessageBox::about (parent, tr("About MPlayer Plugin"), + tr("Qmmp MPlayer Plugin")+"\n"+ + tr("This plugin uses MPlayer as backend")+"\n"+ tr("Writen by: Ilya Kotov <forkotov02@hotmail.ru>")); } @@ -96,7 +100,7 @@ QTranslator *DecoderMplayerFactory::createTranslator(QObject *parent) { QTranslator *translator = new QTranslator(parent); QString locale = QLocale::system().name(); - translator->load(QString(":/phonon_plugin_") + locale); + translator->load(QString(":/mplayer_plugin_") + locale); return translator; } |
