From db0fae158a55192c9be86b0de826160264049432 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 24 Feb 2013 09:08:46 +0000 Subject: added copy/paste plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3278 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/General.pro | 3 +- src/plugins/General/copypaste/copypaste.cpp | 94 ++++++++++++++++++++++ src/plugins/General/copypaste/copypaste.h | 53 ++++++++++++ src/plugins/General/copypaste/copypaste.pro | 33 ++++++++ src/plugins/General/copypaste/copypastefactory.cpp | 62 ++++++++++++++ src/plugins/General/copypaste/copypastefactory.h | 44 ++++++++++ .../copypaste/translations/copypaste_plugin_cs.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_de.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_es.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_fr.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_he.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_hu.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_it.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_ja.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_kk.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_lt.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_nl.ts | 65 +++++++++++++++ .../translations/copypaste_plugin_pl_PL.ts | 65 +++++++++++++++ .../translations/copypaste_plugin_pt_BR.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_ru.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_sk.ts | 65 +++++++++++++++ .../copypaste/translations/copypaste_plugin_tr.ts | 65 +++++++++++++++ .../translations/copypaste_plugin_uk_UA.ts | 65 +++++++++++++++ .../translations/copypaste_plugin_zh_CN.ts | 65 +++++++++++++++ .../translations/copypaste_plugin_zh_TW.ts | 65 +++++++++++++++ .../copypaste/translations/translations.qrc | 24 ++++++ src/qmmpui/detailsdialog.cpp | 5 ++ src/qmmpui/translations/libqmmpui_cs.ts | 18 ++--- src/qmmpui/translations/libqmmpui_de.ts | 18 ++--- src/qmmpui/translations/libqmmpui_es.ts | 18 ++--- src/qmmpui/translations/libqmmpui_fr.ts | 18 ++--- src/qmmpui/translations/libqmmpui_he.ts | 18 ++--- src/qmmpui/translations/libqmmpui_hu.ts | 18 ++--- src/qmmpui/translations/libqmmpui_it.ts | 18 ++--- src/qmmpui/translations/libqmmpui_ja.ts | 18 ++--- src/qmmpui/translations/libqmmpui_kk.ts | 18 ++--- src/qmmpui/translations/libqmmpui_lt.ts | 18 ++--- src/qmmpui/translations/libqmmpui_nl.ts | 18 ++--- src/qmmpui/translations/libqmmpui_pl_PL.ts | 18 ++--- src/qmmpui/translations/libqmmpui_pt_BR.ts | 18 ++--- src/qmmpui/translations/libqmmpui_ru.ts | 18 ++--- src/qmmpui/translations/libqmmpui_sk.ts | 18 ++--- src/qmmpui/translations/libqmmpui_tr.ts | 18 ++--- src/qmmpui/translations/libqmmpui_uk_UA.ts | 18 ++--- src/qmmpui/translations/libqmmpui_zh_CN.ts | 18 ++--- src/qmmpui/translations/libqmmpui_zh_TW.ts | 18 ++--- 46 files changed, 1723 insertions(+), 172 deletions(-) create mode 100644 src/plugins/General/copypaste/copypaste.cpp create mode 100644 src/plugins/General/copypaste/copypaste.h create mode 100644 src/plugins/General/copypaste/copypaste.pro create mode 100644 src/plugins/General/copypaste/copypastefactory.cpp create mode 100644 src/plugins/General/copypaste/copypastefactory.h create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_cs.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_de.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_es.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_fr.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_he.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_hu.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_it.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_ja.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_kk.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_lt.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_nl.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_pl_PL.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_pt_BR.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_ru.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_sk.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_tr.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_uk_UA.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_zh_CN.ts create mode 100644 src/plugins/General/copypaste/translations/copypaste_plugin_zh_TW.ts create mode 100644 src/plugins/General/copypaste/translations/translations.qrc diff --git a/src/plugins/General/General.pro b/src/plugins/General/General.pro index 8c6185bb8..85a7bca6b 100644 --- a/src/plugins/General/General.pro +++ b/src/plugins/General/General.pro @@ -8,7 +8,8 @@ SUBDIRS += statusicon \ covermanager \ streambrowser \ trackchange \ - hotkey + hotkey \ + copypaste unix:SUBDIRS += mpris \ kdenotify \ converter diff --git a/src/plugins/General/copypaste/copypaste.cpp b/src/plugins/General/copypaste/copypaste.cpp new file mode 100644 index 000000000..87fc8a275 --- /dev/null +++ b/src/plugins/General/copypaste/copypaste.cpp @@ -0,0 +1,94 @@ +/*************************************************************************** + * Copyright (C) 2013 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "copypaste.h" + +CopyPaste::CopyPaste(QObject *parent) : QObject(parent) +{ + m_pl_manager = PlayListManager::instance(); + //actions + QAction *cutAction = new QAction(tr("Cu&t"), this); + cutAction->setShortcut(tr("Ctrl+X")); + QAction *copyAction = new QAction(tr("&Copy"), this); + copyAction->setShortcut(tr("Ctrl+C")); + QAction *pasteAction = new QAction(tr("&Paste"), this); + pasteAction->setShortcut(tr("Ctrl+V")); + //register all actions + connect(cutAction, SIGNAL(triggered()), SLOT(cut())); + connect(copyAction, SIGNAL(triggered()), SLOT(copy())); + connect(pasteAction, SIGNAL(triggered()), SLOT(paste())); + UiHelper::instance()->addAction(cutAction, UiHelper::PLAYLIST_MENU); + UiHelper::instance()->addAction(copyAction, UiHelper::PLAYLIST_MENU); + UiHelper::instance()->addAction(pasteAction, UiHelper::PLAYLIST_MENU); +} + +CopyPaste::~CopyPaste() +{ + qDeleteAll(m_buffer); + m_buffer.clear(); +} + +void CopyPaste::cut() +{ + qDebug("%s", Q_FUNC_INFO); + qDeleteAll(m_buffer); + m_buffer.clear(); + foreach(PlayListItem *item, m_pl_manager->selectedPlayList()->selectedItems()) + { + m_buffer.append(new PlayListItem(*item)); + } + m_pl_manager->selectedPlayList()->removeSelected(); +} + +void CopyPaste::copy() +{ + qDebug("%s", Q_FUNC_INFO); + qDeleteAll(m_buffer); + m_buffer.clear(); + foreach(PlayListItem *item, m_pl_manager->selectedPlayList()->selectedItems()) + { + m_buffer.append(new PlayListItem(*item)); + } +} + +void CopyPaste::paste() +{ + qDebug("%s", Q_FUNC_INFO); + foreach(PlayListItem *item, m_buffer) + { + m_pl_manager->selectedPlayList()->add(new PlayListItem(*item)); + } +} diff --git a/src/plugins/General/copypaste/copypaste.h b/src/plugins/General/copypaste/copypaste.h new file mode 100644 index 000000000..9a444f26c --- /dev/null +++ b/src/plugins/General/copypaste/copypaste.h @@ -0,0 +1,53 @@ +/*************************************************************************** + * Copyright (C) 2013 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef COPYPASTE_H +#define COPYPASTE_H + +#include +#include +#include + +class QAction; +class SoundCore; +class PlayListItem; +class PlayListManager; + +/** + @author Ilya Kotov +*/ +class CopyPaste : public QObject +{ + Q_OBJECT +public: + CopyPaste(QObject *parent = 0); + + ~CopyPaste(); + +private slots: + void cut(); + void copy(); + void paste(); + +private: + PlayListManager *m_pl_manager; + QList m_buffer; +}; + +#endif //COPYPASTE_H diff --git a/src/plugins/General/copypaste/copypaste.pro b/src/plugins/General/copypaste/copypaste.pro new file mode 100644 index 000000000..dfebe7ed5 --- /dev/null +++ b/src/plugins/General/copypaste/copypaste.pro @@ -0,0 +1,33 @@ +include(../../plugins.pri) + +INCLUDEPATH += ../../../../src +CONFIG += release \ +warn_on \ +plugin + +TARGET =$$PLUGINS_PREFIX/General/copypaste +unix : QMAKE_CLEAN = $$PLUGINS_PREFIX/General/libcopypaste.so + + +TEMPLATE = lib +unix : QMAKE_LIBDIR += ../../../../lib +unix : LIBS += -lqmmpui -lqmmp + +win32 : QMAKE_LIBDIR += ../../../../bin +win32 : LIBS += -lqmmpui0 -lqmmp0 + +RESOURCES = translations/translations.qrc +unix { + isEmpty(LIB_DIR){ + LIB_DIR = /lib + } + target.path = $$LIB_DIR/qmmp/General + INSTALLS += target +} +HEADERS += copypastefactory.h \ + copypaste.h + +win32 : HEADERS += ../../../../src/qmmpui/general.h +SOURCES += copypastefactory.cpp \ + copypaste.cpp + diff --git a/src/plugins/General/copypaste/copypastefactory.cpp b/src/plugins/General/copypaste/copypastefactory.cpp new file mode 100644 index 000000000..314484cc0 --- /dev/null +++ b/src/plugins/General/copypaste/copypastefactory.cpp @@ -0,0 +1,62 @@ +/*************************************************************************** + * Copyright (C) 2013 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include +#include "copypaste.h" +#include "copypastefactory.h" + +const GeneralProperties CopyPasteFactory::properties() const +{ + GeneralProperties properties; + properties.name = tr("Copy/Paste Plugin"); + properties.shortName = "copypaste"; + properties.hasAbout = true; + properties.hasSettings = false; + properties.visibilityControl = false; + return properties; +} + +QObject *CopyPasteFactory::create(QObject *parent) +{ + return new CopyPaste(parent); +} + +QDialog *CopyPasteFactory::createConfigDialog(QWidget *) +{ + return 0; +} + +void CopyPasteFactory::showAbout(QWidget *parent) +{ + QMessageBox::about (parent, tr("About Copy/Paste Plugin"), + tr("Qmmp Copy/Paste Plugin")+"\n"+ + tr("This plugin allows to copy selected tracks from one playlist to another")+"\n"+ + tr("Written by: Ilya Kotov ")); +} + +QTranslator *CopyPasteFactory::createTranslator(QObject *parent) +{ + QTranslator *translator = new QTranslator(parent); + QString locale = Qmmp::systemLanguageID(); + translator->load(QString(":/copypaste_plugin_") + locale); + return translator; +} + +Q_EXPORT_PLUGIN2(copypaste, CopyPasteFactory) diff --git a/src/plugins/General/copypaste/copypastefactory.h b/src/plugins/General/copypaste/copypastefactory.h new file mode 100644 index 000000000..613d7e9f5 --- /dev/null +++ b/src/plugins/General/copypaste/copypastefactory.h @@ -0,0 +1,44 @@ +/*************************************************************************** + * Copyright (C) 2013 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef COPYPASTEFACTORY_H +#define COPYPASTEFACTORY_H + +/** + @author Ilya Kotov +*/ +#include +#include +#include +#include +#include + +class CopyPasteFactory : public QObject, public GeneralFactory +{ +Q_OBJECT +Q_INTERFACES(GeneralFactory) +public: + const GeneralProperties properties() const; + QObject *create(QObject *parent); + QDialog *createConfigDialog(QWidget *); + void showAbout(QWidget *parent); + QTranslator *createTranslator(QObject *parent); +}; + +#endif // COPYPASTEFACTORY_H diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_cs.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_cs.ts new file mode 100644 index 000000000..bf5c842b9 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_cs.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_de.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_de.ts new file mode 100644 index 000000000..c64f048e0 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_de.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_es.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_es.ts new file mode 100644 index 000000000..6289ed54c --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_es.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_fr.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_fr.ts new file mode 100644 index 000000000..479763c09 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_fr.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_he.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_he.ts new file mode 100644 index 000000000..b4ec7dcbb --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_he.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_hu.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_hu.ts new file mode 100644 index 000000000..41a6076fd --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_hu.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_it.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_it.ts new file mode 100644 index 000000000..0ce1f9d52 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_it.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_ja.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_ja.ts new file mode 100644 index 000000000..ef60d34eb --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_ja.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_kk.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_kk.ts new file mode 100644 index 000000000..c75a8363c --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_kk.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_lt.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_lt.ts new file mode 100644 index 000000000..c604ee723 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_lt.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_nl.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_nl.ts new file mode 100644 index 000000000..41d8f9d02 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_nl.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_pl_PL.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_pl_PL.ts new file mode 100644 index 000000000..daafeeb93 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_pl_PL.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_pt_BR.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_pt_BR.ts new file mode 100644 index 000000000..e0940ae80 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_pt_BR.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_ru.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_ru.ts new file mode 100644 index 000000000..d6dae4bf0 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_ru.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + Выр&езать + + + + Ctrl+X + + + + + &Copy + &Копировать + + + + Ctrl+C + + + + + &Paste + &Вставить + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + Модуль копир./вставки + + + + About Copy/Paste Plugin + О модуле копирования/вставки + + + + Qmmp Copy/Paste Plugin + Модуль копирования/вставки + + + + This plugin allows to copy selected tracks from one playlist to another + Данный модуль позволяет копировать выбранные треки из одного списка воспроизведения в другой + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Разработчик: Илья Котов <forkotov02@hotmail.ru> + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_sk.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_sk.ts new file mode 100644 index 000000000..82acb8bd9 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_sk.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_tr.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_tr.ts new file mode 100644 index 000000000..f92b5e805 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_tr.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_uk_UA.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_uk_UA.ts new file mode 100644 index 000000000..2fe1b36ea --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_uk_UA.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Розробник: Ілля Котов <forkotov02@hotmail.ru> + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_zh_CN.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_zh_CN.ts new file mode 100644 index 000000000..06f50dc21 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_zh_CN.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/copypaste_plugin_zh_TW.ts b/src/plugins/General/copypaste/translations/copypaste_plugin_zh_TW.ts new file mode 100644 index 000000000..458c653a1 --- /dev/null +++ b/src/plugins/General/copypaste/translations/copypaste_plugin_zh_TW.ts @@ -0,0 +1,65 @@ + + + + + CopyPaste + + + Cu&t + + + + + Ctrl+X + + + + + &Copy + + + + + Ctrl+C + + + + + &Paste + + + + + Ctrl+V + + + + + CopyPasteFactory + + + Copy/Paste Plugin + + + + + About Copy/Paste Plugin + + + + + Qmmp Copy/Paste Plugin + + + + + This plugin allows to copy selected tracks from one playlist to another + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + + + + diff --git a/src/plugins/General/copypaste/translations/translations.qrc b/src/plugins/General/copypaste/translations/translations.qrc new file mode 100644 index 000000000..2d03883fe --- /dev/null +++ b/src/plugins/General/copypaste/translations/translations.qrc @@ -0,0 +1,24 @@ + + + + copypaste_plugin_ru.qm + copypaste_plugin_uk_UA.qm + copypaste_plugin_zh_CN.qm + copypaste_plugin_zh_TW.qm + copypaste_plugin_tr.qm + copypaste_plugin_cs.qm + copypaste_plugin_pt_BR.qm + copypaste_plugin_de.qm + copypaste_plugin_pl_PL.qm + copypaste_plugin_fr.qm + copypaste_plugin_it.qm + copypaste_plugin_kk.qm + copypaste_plugin_lt.qm + copypaste_plugin_hu.qm + copypaste_plugin_nl.qm + copypaste_plugin_ja.qm + copypaste_plugin_sk.qm + copypaste_plugin_es.qm + copypaste_plugin_he.qm + + diff --git a/src/qmmpui/detailsdialog.cpp b/src/qmmpui/detailsdialog.cpp index 5be918ebe..3240d37c6 100644 --- a/src/qmmpui/detailsdialog.cpp +++ b/src/qmmpui/detailsdialog.cpp @@ -62,6 +62,11 @@ DetailsDialog::DetailsDialog(PlayListItem *item, QWidget *parent) } } printInfo(); + + QWidget *w = new QWidget(m_ui->textEdit); + w->resize(120,120); + w->setAutoFillBackground(true); + w->move(m_ui->textEdit->width() - 130, m_ui->textEdit->height() - 130); } DetailsDialog::~DetailsDialog() diff --git a/src/qmmpui/translations/libqmmpui_cs.ts b/src/qmmpui/translations/libqmmpui_cs.ts index 18ed4e2bb..1af40dbdb 100644 --- a/src/qmmpui/translations/libqmmpui_cs.ts +++ b/src/qmmpui/translations/libqmmpui_cs.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Název - + Artist Umělec - + Album Album - + Comment Poznámka - + Genre Žánr - + Composer Skladatel - + Year Rok - + Track Stopa - + Disc number Číslo disku diff --git a/src/qmmpui/translations/libqmmpui_de.ts b/src/qmmpui/translations/libqmmpui_de.ts index ca72665e3..d56929129 100644 --- a/src/qmmpui/translations/libqmmpui_de.ts +++ b/src/qmmpui/translations/libqmmpui_de.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Titel - + Artist Interpret - + Album Album - + Comment Kommentar - + Genre Genre - + Composer Komponent - + Year Jahr - + Track Stück - + Disc number CD-Nummer diff --git a/src/qmmpui/translations/libqmmpui_es.ts b/src/qmmpui/translations/libqmmpui_es.ts index a97b71798..8f1c43a9c 100644 --- a/src/qmmpui/translations/libqmmpui_es.ts +++ b/src/qmmpui/translations/libqmmpui_es.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Título - + Artist Intérprete - + Album Album - + Comment Comentario - + Genre Género - + Composer Compositor - + Year Año - + Track Pista - + Disc number Número de disco diff --git a/src/qmmpui/translations/libqmmpui_fr.ts b/src/qmmpui/translations/libqmmpui_fr.ts index f769e0fc3..c5b72ca8d 100644 --- a/src/qmmpui/translations/libqmmpui_fr.ts +++ b/src/qmmpui/translations/libqmmpui_fr.ts @@ -607,47 +607,47 @@ - + Title - + Artist - + Album - + Comment - + Genre - + Composer - + Year - + Track - + Disc number diff --git a/src/qmmpui/translations/libqmmpui_he.ts b/src/qmmpui/translations/libqmmpui_he.ts index 156f60531..03473a61f 100644 --- a/src/qmmpui/translations/libqmmpui_he.ts +++ b/src/qmmpui/translations/libqmmpui_he.ts @@ -607,47 +607,47 @@ סיכום - + Title כותרת - + Artist אמן - + Album אלבום - + Comment הערה - + Genre ז'אנר - + Composer מלחין - + Year שנה - + Track רצועה - + Disc number מספר תקליטור diff --git a/src/qmmpui/translations/libqmmpui_hu.ts b/src/qmmpui/translations/libqmmpui_hu.ts index d4c4911a4..f914f2991 100644 --- a/src/qmmpui/translations/libqmmpui_hu.ts +++ b/src/qmmpui/translations/libqmmpui_hu.ts @@ -607,47 +607,47 @@ - + Title - + Artist - + Album - + Comment - + Genre - + Composer - + Year - + Track - + Disc number diff --git a/src/qmmpui/translations/libqmmpui_it.ts b/src/qmmpui/translations/libqmmpui_it.ts index defb1a2a0..1426e6706 100644 --- a/src/qmmpui/translations/libqmmpui_it.ts +++ b/src/qmmpui/translations/libqmmpui_it.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Titolo - + Artist Interprete - + Album Album - + Comment Commento - + Genre Genere - + Composer Compositore - + Year Anno - + Track Traccia - + Disc number Disco n° diff --git a/src/qmmpui/translations/libqmmpui_ja.ts b/src/qmmpui/translations/libqmmpui_ja.ts index 2a8a0c420..aab277554 100644 --- a/src/qmmpui/translations/libqmmpui_ja.ts +++ b/src/qmmpui/translations/libqmmpui_ja.ts @@ -607,47 +607,47 @@ あらまし - + Title タイトル - + Artist アーティスト - + Album アルバム - + Comment コメント - + Genre ジャンル - + Composer 作曲者 - + Year - + Track トラック - + Disc number ディスク番号 diff --git a/src/qmmpui/translations/libqmmpui_kk.ts b/src/qmmpui/translations/libqmmpui_kk.ts index a2d7a328d..fb95dd68d 100644 --- a/src/qmmpui/translations/libqmmpui_kk.ts +++ b/src/qmmpui/translations/libqmmpui_kk.ts @@ -607,47 +607,47 @@ - + Title - + Artist - + Album - + Comment - + Genre - + Composer - + Year - + Track - + Disc number diff --git a/src/qmmpui/translations/libqmmpui_lt.ts b/src/qmmpui/translations/libqmmpui_lt.ts index 9247a5921..ff8fcd81a 100644 --- a/src/qmmpui/translations/libqmmpui_lt.ts +++ b/src/qmmpui/translations/libqmmpui_lt.ts @@ -588,47 +588,47 @@ DetailsDialog - + Title Pavadinimas - + Artist Atlikėjas - + Album Albumas - + Comment Komentaras - + Genre Žanras - + Composer Autorius - + Year Metai - + Track Takelis - + Disc number Disko numeris diff --git a/src/qmmpui/translations/libqmmpui_nl.ts b/src/qmmpui/translations/libqmmpui_nl.ts index 14ad30378..8c3b04aec 100644 --- a/src/qmmpui/translations/libqmmpui_nl.ts +++ b/src/qmmpui/translations/libqmmpui_nl.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Naam - + Artist Artiest - + Album Album - + Comment Commentaar - + Genre - + Composer Componist - + Year Jaar - + Track Nummer - + Disc number CD nummer diff --git a/src/qmmpui/translations/libqmmpui_pl_PL.ts b/src/qmmpui/translations/libqmmpui_pl_PL.ts index 8fd2e8a2c..5cede8934 100644 --- a/src/qmmpui/translations/libqmmpui_pl_PL.ts +++ b/src/qmmpui/translations/libqmmpui_pl_PL.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Tytuł - + Artist Artysta - + Album Album - + Comment Komentarz - + Genre Gatunek - + Composer Kompozytor - + Year Rok - + Track Ścieżka - + Disc number Numer płyty diff --git a/src/qmmpui/translations/libqmmpui_pt_BR.ts b/src/qmmpui/translations/libqmmpui_pt_BR.ts index 713fd715b..29727d488 100644 --- a/src/qmmpui/translations/libqmmpui_pt_BR.ts +++ b/src/qmmpui/translations/libqmmpui_pt_BR.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Título - + Artist Artista - + Album Álbum - + Comment Comentário - + Genre Gênero - + Composer - + Year Ano - + Track - + Disc number diff --git a/src/qmmpui/translations/libqmmpui_ru.ts b/src/qmmpui/translations/libqmmpui_ru.ts index 4f35f7c10..bb7c30556 100644 --- a/src/qmmpui/translations/libqmmpui_ru.ts +++ b/src/qmmpui/translations/libqmmpui_ru.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Название - + Artist Исполнитель - + Album Альбом - + Comment Комментарий - + Genre Жанр - + Composer Композитор - + Year Год - + Track Дорожка - + Disc number Номер диска diff --git a/src/qmmpui/translations/libqmmpui_sk.ts b/src/qmmpui/translations/libqmmpui_sk.ts index d8b8c0f09..686a7b708 100644 --- a/src/qmmpui/translations/libqmmpui_sk.ts +++ b/src/qmmpui/translations/libqmmpui_sk.ts @@ -607,47 +607,47 @@ - + Title Názov - + Artist Interprét - + Album Album - + Comment Poznámka - + Genre Žáner - + Composer Skladateľ - + Year Rok - + Track Skladba - + Disc number Číslo disku diff --git a/src/qmmpui/translations/libqmmpui_tr.ts b/src/qmmpui/translations/libqmmpui_tr.ts index 3beaa3838..97978ad8e 100644 --- a/src/qmmpui/translations/libqmmpui_tr.ts +++ b/src/qmmpui/translations/libqmmpui_tr.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Başlık - + Artist Sanatçı - + Album Albüm - + Comment Yorum - + Genre Tarz - + Composer - + Year Yıl - + Track - + Disc number diff --git a/src/qmmpui/translations/libqmmpui_uk_UA.ts b/src/qmmpui/translations/libqmmpui_uk_UA.ts index 46a4b2ed0..760d3a2dd 100644 --- a/src/qmmpui/translations/libqmmpui_uk_UA.ts +++ b/src/qmmpui/translations/libqmmpui_uk_UA.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title Заголовок - + Artist Виконавець - + Album Альбом - + Comment Коментар - + Genre Жанр - + Composer Композитор - + Year Рік - + Track Доріжка - + Disc number Номер диску diff --git a/src/qmmpui/translations/libqmmpui_zh_CN.ts b/src/qmmpui/translations/libqmmpui_zh_CN.ts index cdf98614e..71dceb659 100644 --- a/src/qmmpui/translations/libqmmpui_zh_CN.ts +++ b/src/qmmpui/translations/libqmmpui_zh_CN.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title 标题 - + Artist 艺术家 - + Album 专辑 - + Comment 备注 - + Genre 流派 - + Composer 作曲 - + Year 年代 - + Track 音轨 - + Disc number 光盘编号 diff --git a/src/qmmpui/translations/libqmmpui_zh_TW.ts b/src/qmmpui/translations/libqmmpui_zh_TW.ts index 69221838e..6ff4b8d53 100644 --- a/src/qmmpui/translations/libqmmpui_zh_TW.ts +++ b/src/qmmpui/translations/libqmmpui_zh_TW.ts @@ -587,47 +587,47 @@ DetailsDialog - + Title 標題 - + Artist 藝術家 - + Album 專輯 - + Comment 備註 - + Genre 流派 - + Composer 作曲 - + Year 年代 - + Track 音軌 - + Disc number 光槃編號 -- cgit v1.2.3-13-gbd6f