From 471b1754f75e462cb6e5dc52d66bdec5745c92e0 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 29 Aug 2012 20:39:30 +0000 Subject: changed configuration dialog git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2908 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/configdialog.cpp | 100 +++++---------------- src/qmmpui/configdialog.h | 11 +-- src/qmmpui/filedialog.h | 2 +- src/qmmpui/filedialogfactory.h | 6 +- src/qmmpui/forms/configdialog.ui | 122 +++++++------------------ src/qmmpui/pluginitem.cpp | 70 ++++++++++++++- src/qmmpui/pluginitem_p.h | 11 ++- src/qmmpui/qmmpui.pro | 8 +- src/qmmpui/radioitemdelegate.cpp | 112 +++++++++++++++++++++++ src/qmmpui/radioitemdelegate_p.h | 45 ++++++++++ src/qmmpui/translations/libqmmpui_cs.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_de.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_es.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_fr.ts | 126 +++++++++++++------------- src/qmmpui/translations/libqmmpui_hu.ts | 126 +++++++++++++------------- src/qmmpui/translations/libqmmpui_it.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_ja.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_kk.ts | 126 +++++++++++++------------- src/qmmpui/translations/libqmmpui_lt.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_nl.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_pl_PL.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_pt_BR.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_ru.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_sk.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_tr.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_uk_UA.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_zh_CN.ts | 138 +++++++++++++++-------------- src/qmmpui/translations/libqmmpui_zh_TW.ts | 138 +++++++++++++++-------------- 28 files changed, 1575 insertions(+), 1360 deletions(-) create mode 100644 src/qmmpui/radioitemdelegate.cpp create mode 100644 src/qmmpui/radioitemdelegate_p.h (limited to 'src/qmmpui') diff --git a/src/qmmpui/configdialog.cpp b/src/qmmpui/configdialog.cpp index 948055901..78b62e2cc 100644 --- a/src/qmmpui/configdialog.cpp +++ b/src/qmmpui/configdialog.cpp @@ -42,6 +42,7 @@ #include #include "ui_configdialog.h" #include "pluginitem_p.h" +#include "radioitemdelegate_p.h" #include "generalfactory.h" #include "general.h" #include "uihelper.h" @@ -61,8 +62,8 @@ ConfigDialog::ConfigDialog (QWidget *parent) : QDialog (parent) setAttribute(Qt::WA_DeleteOnClose, false); m_ui->preferencesButton->setEnabled(false); m_ui->informationButton->setEnabled(false); + m_ui->treeWidget->setItemDelegate(new RadioItemDelegate(this)); connect (this, SIGNAL(rejected()),SLOT(saveSettings())); - connect (m_ui->fileDialogComboBox, SIGNAL (currentIndexChanged (int)), SLOT(updateDialogButton(int))); m_ui->replayGainModeComboBox->addItem (tr("Track"), QmmpSettings::REPLAYGAIN_TRACK); m_ui->replayGainModeComboBox->addItem (tr("Album"), QmmpSettings::REPLAYGAIN_ALBUM); m_ui->replayGainModeComboBox->addItem (tr("Disabled"), QmmpSettings::REPLAYGAIN_DISABLED); @@ -72,10 +73,6 @@ ConfigDialog::ConfigDialog (QWidget *parent) : QDialog (parent) //setup icons m_ui->preferencesButton->setIcon(QIcon::fromTheme("configure")); m_ui->informationButton->setIcon(QIcon::fromTheme("dialog-information")); - m_ui->fdInformationButton->setIcon(QIcon::fromTheme("dialog-information")); - m_ui->outputInformationButton->setIcon(QIcon::fromTheme("dialog-information")); - m_ui->uiInformationButton->setIcon(QIcon::fromTheme("dialog-information")); - m_ui->outputPreferencesButton->setIcon(QIcon::fromTheme("configure")); } ConfigDialog::~ConfigDialog() @@ -226,47 +223,40 @@ void ConfigDialog::loadPluginsInfo() } m_ui->treeWidget->addTopLevelItem(item); item->setExpanded(true); - - m_ui->treeWidget->blockSignals(false); - m_ui->treeWidget->resizeColumnToContents(0); - m_ui->treeWidget->resizeColumnToContents(1); /* load output plugins information */ - m_ui->outputInformationButton->setEnabled(false); - m_ui->outputPreferencesButton->setEnabled(false); - QList *outputs = Output::factories(); - for (int i = 0; i < outputs->count (); ++i) + item = new QTreeWidgetItem (m_ui->treeWidget, QStringList() << tr("Output")); + foreach(OutputFactory *factory, *Output::factories()) { - m_ui->outputComboBox->addItem(outputs->at(i)->properties().name); - if(Output::currentFactory() == outputs->at(i)) - { - m_ui->outputComboBox->setCurrentIndex(i); - on_outputComboBox_activated (i); - } + new PluginItem (item, factory, Output::file(factory)); } + m_ui->treeWidget->addTopLevelItem(item); + item->setExpanded(true); /* - load file dialog information + load file dialogs information */ + item = new QTreeWidgetItem (m_ui->treeWidget, QStringList() << tr("File Dialogs")); foreach(FileDialogFactory *factory, FileDialog::registeredFactories()) { - m_ui->fileDialogComboBox->addItem(factory->properties().name); - if (FileDialog::isEnabled(factory)) - m_ui->fileDialogComboBox->setCurrentIndex(m_ui->fileDialogComboBox->count()-1); + new PluginItem (item, factory, "Unknown"); } + m_ui->treeWidget->addTopLevelItem(item); + item->setExpanded(true); /* - load ui information + load user interfaces information */ - m_ui->uiInformationButton->setEnabled(false); + item = new QTreeWidgetItem (m_ui->treeWidget, QStringList() << tr("User Interfaces")); foreach(UiFactory *factory, *UiLoader::factories()) { - m_ui->uiComboBox->addItem(factory->properties().name); - if (UiLoader::selected() == factory) - { - m_ui->uiComboBox->setCurrentIndex(m_ui->uiComboBox->count()-1); - on_uiComboBox_activated(m_ui->uiComboBox->count()-1); - } + new PluginItem (item, factory, UiLoader::file(factory)); } + m_ui->treeWidget->addTopLevelItem(item); + item->setExpanded(true); + + m_ui->treeWidget->blockSignals(false); + m_ui->treeWidget->resizeColumnToContents(0); + m_ui->treeWidget->resizeColumnToContents(1); } void ConfigDialog::on_preferencesButton_clicked() @@ -331,7 +321,6 @@ void ConfigDialog::saveSettings() guis->sync(); } - FileDialog::setEnabled(FileDialog::registeredFactories().at(m_ui->fileDialogComboBox->currentIndex())); QmmpSettings *gs = QmmpSettings::instance(); //proxy QUrl proxyUrl; @@ -357,10 +346,6 @@ void ConfigDialog::saveSettings() gs->setBufferSize(m_ui->bufferSizeSpinBox->value()); gs->setDetermineFileTypeByContent(m_ui->byContentCheckBox->isChecked()); gs->sync(); - QList *outputs = Output::factories(); - if(m_ui->outputComboBox->currentIndex() >= 0 && outputs->count()) - Output::setCurrentFactory(outputs->at(m_ui->outputComboBox->currentIndex())); - QList var_sizes; var_sizes << m_ui->splitter->sizes().first() << m_ui->splitter->sizes().last(); QSettings settings (Qmmp::configFile(), QSettings::IniFormat); @@ -368,17 +353,6 @@ void ConfigDialog::saveSettings() settings.setValue("ConfigDialog/window_size", size()); } -void ConfigDialog::updateDialogButton(int index) -{ - m_ui->fdInformationButton->setEnabled(FileDialog::registeredFactories()[index]->properties().hasAbout); -} - -void ConfigDialog::on_fdInformationButton_clicked() -{ - int index = m_ui->fileDialogComboBox->currentIndex (); - FileDialog::registeredFactories()[index]->showAbout(this); -} - void ConfigDialog::on_treeWidget_itemChanged (QTreeWidgetItem *item, int column) { if(column == 0 && item->type() >= PluginItem::TRANSPORT) @@ -398,35 +372,3 @@ void ConfigDialog::on_treeWidget_currentItemChanged (QTreeWidgetItem *current, Q m_ui->informationButton->setEnabled(false); } } - -void ConfigDialog::on_outputComboBox_activated (int index) -{ - OutputFactory *factory = Output::factories()->at(index); - m_ui->outputInformationButton->setEnabled(factory->properties().hasAbout); - m_ui->outputPreferencesButton->setEnabled(factory->properties().hasSettings); -} - -void ConfigDialog::on_outputPreferencesButton_clicked() -{ - int index = m_ui->outputComboBox->currentIndex(); - Output::factories()->at(index)->showSettings(this); -} - -void ConfigDialog::on_uiComboBox_activated (int index) -{ - UiFactory *factory = UiLoader::factories()->at(index); - m_ui->uiInformationButton->setEnabled(factory->properties().hasAbout); - UiLoader::select(factory); -} - -void ConfigDialog::on_outputInformationButton_clicked() -{ - int index = m_ui->outputComboBox->currentIndex(); - Output::factories()->at(index)->showAbout(this); -} - -void ConfigDialog::on_uiInformationButton_clicked() -{ - int index = m_ui->uiComboBox->currentIndex(); - UiLoader::factories()->at(index)->showAbout(this); -} diff --git a/src/qmmpui/configdialog.h b/src/qmmpui/configdialog.h index f9174252c..163df66ad 100644 --- a/src/qmmpui/configdialog.h +++ b/src/qmmpui/configdialog.h @@ -22,6 +22,9 @@ #include #include +#include +#include +#include namespace Ui { @@ -31,7 +34,6 @@ namespace Ui { class QListWidgetItem; class QTreeWidgetItem; - /*! @brief Configuration dialog class. @author Ilya Kotov */ @@ -62,15 +64,8 @@ private slots: void on_informationButton_clicked(); void addTitleString(QAction *); void saveSettings(); - void updateDialogButton(int); - void on_fdInformationButton_clicked(); void on_treeWidget_itemChanged (QTreeWidgetItem *item, int column); void on_treeWidget_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *); - void on_outputComboBox_activated (int index); - void on_outputPreferencesButton_clicked(); - void on_outputInformationButton_clicked(); - void on_uiComboBox_activated (int index); - void on_uiInformationButton_clicked(); private: void readSettings(); diff --git a/src/qmmpui/filedialog.h b/src/qmmpui/filedialog.h index 83eb95e53..766feb4cc 100644 --- a/src/qmmpui/filedialog.h +++ b/src/qmmpui/filedialog.h @@ -220,7 +220,7 @@ protected: virtual bool modal()const { return true; - }; + } /*! * Object destructor */ diff --git a/src/qmmpui/filedialogfactory.h b/src/qmmpui/filedialogfactory.h index b2dec6ae0..deb51ac74 100644 --- a/src/qmmpui/filedialogfactory.h +++ b/src/qmmpui/filedialogfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2012 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -52,7 +52,7 @@ public: /*! * Object destructor. */ - virtual ~FileDialogFactory() {}; + virtual ~FileDialogFactory() {} /*! * Creates file dialog object. */ @@ -73,6 +73,6 @@ public: virtual QTranslator *createTranslator(QObject *parent) = 0; }; -Q_DECLARE_INTERFACE(FileDialogFactory, "FileDialogFactory/1.0"); +Q_DECLARE_INTERFACE(FileDialogFactory, "FileDialogFactory/1.0") #endif diff --git a/src/qmmpui/forms/configdialog.ui b/src/qmmpui/forms/configdialog.ui index 318a2644a..95183279a 100644 --- a/src/qmmpui/forms/configdialog.ui +++ b/src/qmmpui/forms/configdialog.ui @@ -342,6 +342,12 @@ + + + 0 + 0 + + true @@ -376,59 +382,37 @@ - User Interface + Look and Feel - - - - + - Information + Language: - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - File Dialog - - - - - - - - - Information + + + + 0 + 0 + - + Qt::Horizontal + + QSizePolicy::Expanding + - 40 + 0 20 @@ -740,74 +724,28 @@ Audio - + - + - Output: + Buffer size: - - - - - - - 0 - 0 - - - - Preferences - - - - - + 0 0 - - Information - - - - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - + - 20 - 20 + 80 + 0 - - - - - - Buffer size: - - - - - - - - 0 - 0 - - ms @@ -822,7 +760,7 @@ - + Qt::Horizontal @@ -835,14 +773,14 @@ - + Use software volume control - + 16-bit output diff --git a/src/qmmpui/pluginitem.cpp b/src/qmmpui/pluginitem.cpp index 330b1a9d6..fb97a2df7 100644 --- a/src/qmmpui/pluginitem.cpp +++ b/src/qmmpui/pluginitem.cpp @@ -32,6 +32,10 @@ #include #include #include +#include +#include +#include +#include "radioitemdelegate_p.h" #include "pluginitem_p.h" PluginItem::PluginItem(QTreeWidgetItem *parent, InputSourceFactory *factory, const QString &path) @@ -88,11 +92,39 @@ PluginItem::PluginItem(QTreeWidgetItem *parent, GeneralFactory *factory, const Q m_factory = factory; } -PluginItem::~PluginItem() +PluginItem::PluginItem(QTreeWidgetItem *parent, OutputFactory *factory, const QString &path) + : QTreeWidgetItem(parent, QStringList() << factory->properties().name << path.section('/',-1), OUTPUT) +{ + setCheckState(0, (Output::currentFactory() == factory) ? Qt::Checked : Qt::Unchecked); + m_has_about = factory->properties().hasAbout; + m_has_config = factory->properties().hasSettings; + m_factory = factory; + setData(0, RadioButtonRole, true); +} + +PluginItem::PluginItem(QTreeWidgetItem *parent, FileDialogFactory *factory, const QString &path) + : QTreeWidgetItem(parent, QStringList() << factory->properties().name << path, FILE_DIALOG) { + setCheckState(0, FileDialog::isEnabled(factory) ? Qt::Checked : Qt::Unchecked); + m_has_about = factory->properties().hasAbout; + m_has_config = false; + m_factory = factory; + setData(0, RadioButtonRole, true); +} +PluginItem::PluginItem(QTreeWidgetItem *parent, UiFactory *factory, const QString &path) + : QTreeWidgetItem(parent, QStringList() << factory->properties().name << path.section('/',-1), USER_INTERFACE) +{ + setCheckState(0, (UiLoader::selected() == factory) ? Qt::Checked : Qt::Unchecked); + m_has_about = factory->properties().hasAbout; + m_has_config = false; + m_factory = factory; + setData(0, RadioButtonRole, true); } +PluginItem::~PluginItem() +{} + bool PluginItem::hasAbout() const { return m_has_about; @@ -124,6 +156,15 @@ void PluginItem::showAbout(QWidget *parent) case PluginItem::GENERAL: static_cast(m_factory)->showAbout(parent); break; + case PluginItem::OUTPUT: + static_cast(m_factory)->showAbout(parent); + break; + case PluginItem::FILE_DIALOG: + static_cast(m_factory)->showAbout(parent); + break; + case PluginItem::USER_INTERFACE: + static_cast(m_factory)->showAbout(parent); + break; default: ; } @@ -137,13 +178,13 @@ void PluginItem::showSettings(QWidget *parent) static_cast(m_factory)->showSettings(parent); break; case PluginItem::DECODER: - static_cast(m_factory)->showSettings (parent); + static_cast(m_factory)->showSettings(parent); break; case PluginItem::ENGINE: - static_cast(m_factory)->showSettings (parent); + static_cast(m_factory)->showSettings(parent); break; case PluginItem::EFFECT: - static_cast(m_factory)->showSettings (parent); + static_cast(m_factory)->showSettings(parent); break; case PluginItem::VISUAL: Visual::showSettings(static_cast(m_factory), parent); @@ -151,6 +192,9 @@ void PluginItem::showSettings(QWidget *parent) case PluginItem::GENERAL: General::showSettings(static_cast(m_factory), parent); break; + case PluginItem::OUTPUT: + static_cast(m_factory)->showSettings(parent); + break; default: ; } @@ -178,6 +222,24 @@ void PluginItem::setEnabled(bool enabled) case PluginItem::GENERAL: General::setEnabled(static_cast(m_factory), enabled); break; + case PluginItem::OUTPUT: + if(enabled) + { + Output::setCurrentFactory(static_cast(m_factory)); + } + break; + case PluginItem::FILE_DIALOG: + if(enabled) + { + FileDialog::setEnabled(static_cast(m_factory)); + } + break; + case PluginItem::USER_INTERFACE: + if(enabled) + { + UiLoader::select(static_cast(m_factory)); + } + break; default: ; } diff --git a/src/qmmpui/pluginitem_p.h b/src/qmmpui/pluginitem_p.h index 241fbb390..8c2d6306c 100644 --- a/src/qmmpui/pluginitem_p.h +++ b/src/qmmpui/pluginitem_p.h @@ -34,6 +34,9 @@ class OutputFactory; class VisualFactory; class EffectFactory; class GeneralFactory; +class OutputFactory; +class FileDialogFactory; +class UiFactory; class PluginItem : public QTreeWidgetItem { @@ -45,6 +48,9 @@ public: PluginItem(QTreeWidgetItem *parent, EffectFactory *factory, const QString &path); PluginItem(QTreeWidgetItem *parent, VisualFactory *factory, const QString &path); PluginItem(QTreeWidgetItem *parent, GeneralFactory *factory, const QString &path); + PluginItem(QTreeWidgetItem *parent, OutputFactory *factory, const QString &path); + PluginItem(QTreeWidgetItem *parent, FileDialogFactory *factory, const QString &path); + PluginItem(QTreeWidgetItem *parent, UiFactory *factory, const QString &path); ~PluginItem(); enum PluginType @@ -54,7 +60,10 @@ public: ENGINE, EFFECT, VISUAL, - GENERAL + GENERAL, + OUTPUT, + FILE_DIALOG, + USER_INTERFACE }; bool hasAbout() const; diff --git a/src/qmmpui/qmmpui.pro b/src/qmmpui/qmmpui.pro index c902f44bd..29f538b83 100644 --- a/src/qmmpui/qmmpui.pro +++ b/src/qmmpui/qmmpui.pro @@ -44,7 +44,8 @@ HEADERS += general.h \ configdialog.h \ pluginitem_p.h \ aboutdialog_p.h \ - qmmpuisettings.h + qmmpuisettings.h \ + radioitemdelegate_p.h SOURCES += general.cpp \ playlistparser.cpp \ commandlinemanager.cpp \ @@ -66,7 +67,8 @@ SOURCES += general.cpp \ configdialog.cpp \ pluginitem.cpp \ aboutdialog.cpp \ - qmmpuisettings.cpp + qmmpuisettings.cpp \ + radioitemdelegate.cpp FORMS += forms/detailsdialog.ui \ forms/tageditor.ui \ forms/templateeditor.ui \ @@ -120,3 +122,5 @@ unix { + + diff --git a/src/qmmpui/radioitemdelegate.cpp b/src/qmmpui/radioitemdelegate.cpp new file mode 100644 index 000000000..1c1af928b --- /dev/null +++ b/src/qmmpui/radioitemdelegate.cpp @@ -0,0 +1,112 @@ +/*************************************************************************** + * Copyright (C) 2012 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 "radioitemdelegate_p.h" + +RadioItemDelegate::RadioItemDelegate(QObject *parent) : QStyledItemDelegate(parent) +{ +} + +void RadioItemDelegate::paint(QPainter *painter, + const QStyleOptionViewItem &option, + const QModelIndex &index) const +{ + if (hasRadioButton(index)) + { + QStyleOptionViewItemV4 opt = option; + + initStyleOption(&opt, index); + + QStyleOptionButton buttonOption; + buttonOption.rect = option.rect; + buttonOption.text = index.data(Qt::DisplayRole).toString(); + buttonOption.state |= QStyle::State_Enabled; + + if (index.data(Qt::CheckStateRole) == Qt::Checked) + { + buttonOption.state |= QStyle::State_On; + buttonOption.state &=~ QStyle::State_Off; + } + else + { + buttonOption.state |= QStyle::State_Off; + buttonOption.state &=~ QStyle::State_On; + } + + buttonOption.palette = opt.palette; + + if(opt.state.testFlag(QStyle::State_Selected)) + { + buttonOption.palette.setBrush(QPalette::ButtonText, + opt.palette.brush(QPalette::HighlightedText)); + qApp->style()->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, painter); + } + qApp->style()->drawControl(QStyle::CE_RadioButton, &buttonOption, painter); + } + else + { + QStyledItemDelegate::paint(painter, option, index); + } +} + +QSize RadioItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const +{ + QSize size = QStyledItemDelegate::sizeHint(option, index); + if (hasRadioButton(index)) + { + int buttonHeight = qApp->style()->pixelMetric(QStyle::PM_ExclusiveIndicatorHeight, &option); + size.setHeight(qMax(size.height(), buttonHeight)); + } + return size; +} + +bool RadioItemDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, + const QStyleOptionViewItem &option, const QModelIndex &index) +{ + if (event->type() == QEvent::MouseButtonRelease) + { + if (hasRadioButton(index)) + { + QRect checkRect = qApp->style()->subElementRect(QStyle::SE_RadioButtonIndicator, &option); + + QMouseEvent *mouseEvent = dynamic_cast(event); + if (checkRect.contains(mouseEvent->pos()) && !index.data(Qt::CheckStateRole).toBool()) + { + model->setData(index, Qt::Checked, Qt::CheckStateRole); + QModelIndex parentItem = index.parent(); + for (int i = 0; i < model->rowCount(parentItem); ++i) + { + QModelIndex childIndex = parentItem.child(i,0); + if (childIndex != index) + model->setData(childIndex, Qt::Unchecked, Qt::CheckStateRole); + } + return true; + } + } + } + return QStyledItemDelegate::editorEvent(event,model,option,index); +} + +bool RadioItemDelegate::hasRadioButton(const QModelIndex &index) const +{ + return index.flags().testFlag(Qt::ItemIsUserCheckable) && index.data(RadioButtonRole).toBool(); +} diff --git a/src/qmmpui/radioitemdelegate_p.h b/src/qmmpui/radioitemdelegate_p.h new file mode 100644 index 000000000..b429401ab --- /dev/null +++ b/src/qmmpui/radioitemdelegate_p.h @@ -0,0 +1,45 @@ +/*************************************************************************** + * Copyright (C) 2012 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 RADIOITEMDELEGATE_P_H +#define RADIOITEMDELEGATE_P_H + +#include +#include + +#define RadioButtonRole (Qt::UserRole + 1) + +/*! @internal + * @author Ilya Kotov + */ +class RadioItemDelegate : public QStyledItemDelegate +{ + Q_OBJECT +public: + explicit RadioItemDelegate(QObject *parent = 0); + + void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; + QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; + bool editorEvent(QEvent *event, QAbstractItemModel *model, + const QStyleOptionViewItem &option, const QModelIndex &index); + bool hasRadioButton(const QModelIndex &index) const; +}; + +#endif // RADIOITEMDELEGATE_P_H diff --git a/src/qmmpui/translations/libqmmpui_cs.ts b/src/qmmpui/translations/libqmmpui_cs.ts index 7e01641a9..0261346e0 100644 --- a/src/qmmpui/translations/libqmmpui_cs.ts +++ b/src/qmmpui/translations/libqmmpui_cs.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Popis - + Filename Soubor - + Artist Umělec - - + + Album Album - + Track Stopa - + Disabled Vypnuto - + Transports Protokoly - + Decoders Dekodéry - + Engines Přehrávače - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Název - + Track number Číslo stopy - + Two-digit track number Dvoumístné číslo stopy - + Disc number Číslo disku - + Condition Stav - + Composer Skladatel - + File name Název souboru - + File path Cesta k souboru - + Genre Žánr - + Year Rok - + Comment Poznámka @@ -203,7 +218,7 @@ Pokročilé - + Replay Gain Zisk při přehrávání @@ -229,15 +244,11 @@ - Preferences Nastavení - - - Information Informace @@ -268,25 +279,20 @@ Hloubka rekurzivního hledání: - + Playback Přehrávání - + Continue playback on startup Po startu pokračovat v přehrávání - + Determine file type by content - - - User Interface - - Directory Scanning Options @@ -298,53 +304,58 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: - + Replay Gain mode: Režim úpravy zisku při přehrávání: - + Preamp: Předzesílení: - - + + dB dB - + Default gain: Výchozí zisk: - + Use peak info to prevent clipping Použít informaci o vrcholu k zabránění ořezu - - Output: - Výstup: - - - + Buffer size: - + ms ms - + 16-bit output 16bitový výstup @@ -354,68 +365,63 @@ Síť - - File Dialog - Souborový dialog - - - + Proxy Proxy - + Enable proxy usage Povolit používání proxy - + Proxy host name: Adresa proxy: - + Proxy port: Port proxy: - + Use authentication with proxy Použít autorizaci pro proxy - + Proxy user name: Uživatelské jméno: - + Proxy password: Heslo: - + Visualization Vizualizace - + Effects Efekty - + General Obecné - + Audio Zvuk - + Use software volume control Používat softwarové ovládání hlasitosti diff --git a/src/qmmpui/translations/libqmmpui_de.ts b/src/qmmpui/translations/libqmmpui_de.ts index 81fa7090d..450e29b86 100644 --- a/src/qmmpui/translations/libqmmpui_de.ts +++ b/src/qmmpui/translations/libqmmpui_de.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Beschreibung - + Filename Dateiname - + Artist Interpret - - + + Album Album - + Track Stück - + Disabled Deaktiviert - + Transports Transporte - + Decoders Dekoder - + Engines - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Titel - + Track number Stücknummer - + Two-digit track number Zweistellige Stücknummer - + Disc number CD-Nummer - + Condition Zustand - + Genre Genre - + Composer Komponist - + File name Dateiname - + File path Dateipfad - + Year Jahr - + Comment Kommentar @@ -203,7 +218,7 @@ Erweitert - + Replay Gain Replay Gain @@ -229,15 +244,11 @@ - Preferences Konfiguration - - - Information Information @@ -268,25 +279,20 @@ Rekursive Suchtiefe: - + Playback Wiedergabe - + Continue playback on startup Wiedergabe beim Start fortsetzen - + Determine file type by content Dateityp anhand des Inhalts bestimmen - - - User Interface - Benutzeroberfläche - Directory Scanning Options @@ -298,53 +304,58 @@ Dateien beschränken auf: - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: Von der Befehlszeile hinzugefügte Dateien zu dieser Wiedergabeliste hinzufügen: - + Replay Gain mode: Replay-Gain-Modus: - + Preamp: Vorverstärkung: - - + + dB dB - + Default gain: - + Use peak info to prevent clipping Peak-Informationen verwenden, um Clipping zu verhindern - - Output: - Ausgabe: - - - + Buffer size: Puffergröße: - + ms ms - + 16-bit output 16-Bit-Ausgabe @@ -354,68 +365,63 @@ Verbindung - - File Dialog - Datei-Dialog - - - + Proxy Proxyserver - + Enable proxy usage Proxyserver verwenden - + Proxy host name: Name des Proxyservers: - + Proxy port: Port: - + Use authentication with proxy Authentisierung verwenden - + Proxy user name: Benutzername: - + Proxy password: Passwort: - + Visualization Visualisierung - + Effects Effekte - + General Sonstige - + Audio Audio - + Use software volume control Softwaregesteuerte Lautstärkeregelung diff --git a/src/qmmpui/translations/libqmmpui_es.ts b/src/qmmpui/translations/libqmmpui_es.ts index 8563b8de9..6d295c5cd 100644 --- a/src/qmmpui/translations/libqmmpui_es.ts +++ b/src/qmmpui/translations/libqmmpui_es.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Descripción - + Filename Nombre del archivo - + Artist Intérprete - - + + Album Album - + Track Pista - + Disabled Deshabilitado - + Transports Transportes - + Decoders Decodificadores - + Engines Motores - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Título - + Track number Número de pista - + Two-digit track number Número de pista con dos cifras - + Disc number Número de disco - + Condition Condición - + Genre Género - + Composer Compositor - + File name Nombre del archivo - + File path Ruta del archivo - + Year Año - + Comment Comentario @@ -209,15 +224,11 @@ - Preferences Preferencias - - - Information Información @@ -237,7 +248,7 @@ Avanzado - + 16-bit output Salida de 16 bits @@ -247,28 +258,23 @@ Conectividad - + Visualization Visualización - + Effects Efectos - + General General - - - File Dialog - Diálogo de archivos - - + Audio Sonido @@ -283,58 +289,63 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: - + Replay Gain Normalización - + Replay Gain mode: Método de normalización: - + Preamp: Preamp: - - + + dB dB - + Default gain: Normalización predeterminada: - + Use peak info to prevent clipping Procesar picos para evitar cortes - - Output: - Salida: - - - + Buffer size: Tamaño del buffer: - + ms ms - + Use software volume control Usar control de volumen por software @@ -365,57 +376,52 @@ Profundidad de la búsqueda recursiva: - + Playback Reproducción - + Continue playback on startup Continuar la reproducción al iniciar - + Determine file type by content - - User Interface - - - - + Proxy Proxy - + Enable proxy usage Habilitar el uso de proxy - + Proxy host name: Nombre del servidor proxy: - + Proxy port: Puerto del proxy: - + Use authentication with proxy Usar autentificación con el proxy - + Proxy user name: Usuario del proxy: - + Proxy password: Contraseña del proxy: diff --git a/src/qmmpui/translations/libqmmpui_fr.ts b/src/qmmpui/translations/libqmmpui_fr.ts index fbb813084..5bd72b7d6 100644 --- a/src/qmmpui/translations/libqmmpui_fr.ts +++ b/src/qmmpui/translations/libqmmpui_fr.ts @@ -108,7 +108,7 @@ - + Audio @@ -180,252 +180,258 @@ - Preferences - - - Information - + Description - + Filename - - User Interface + + Look and Feel - - File Dialog + + Language: - + Playback - + Continue playback on startup - + Determine file type by content - + Add files from command line to this playlist: - + Proxy - + Enable proxy usage - + Proxy host name: - + Proxy port: - + Use authentication with proxy - + Proxy user name: - + Proxy password: - + Replay Gain - + Replay Gain mode: - + Preamp: - - + + dB - + Default gain: - + Use peak info to prevent clipping - - Output: - - - - + Buffer size: - + ms - + Use software volume control - + 16-bit output - + Track - - + + Album - + Disabled - + Transports - + Decoders - + Engines - + Effects - + Visualization - + General - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Artist - + Title - + Track number - + Two-digit track number - + Genre - + Comment - + Composer - + Disc number - + File name - + File path - + Year - + Condition diff --git a/src/qmmpui/translations/libqmmpui_hu.ts b/src/qmmpui/translations/libqmmpui_hu.ts index 6d69822a7..a3e67fdcb 100644 --- a/src/qmmpui/translations/libqmmpui_hu.ts +++ b/src/qmmpui/translations/libqmmpui_hu.ts @@ -108,7 +108,7 @@ - + Audio @@ -180,252 +180,258 @@ - Preferences - - - Information - + Description - + Filename - - User Interface + + Look and Feel - - File Dialog + + Language: - + Playback - + Continue playback on startup - + Determine file type by content - + Add files from command line to this playlist: - + Proxy - + Enable proxy usage - + Proxy host name: - + Proxy port: - + Use authentication with proxy - + Proxy user name: - + Proxy password: - + Replay Gain - + Replay Gain mode: - + Preamp: - - + + dB - + Default gain: - + Use peak info to prevent clipping - - Output: - - - - + Buffer size: - + ms - + Use software volume control - + 16-bit output - + Track - - + + Album - + Disabled - + Transports - + Decoders - + Engines - + Effects - + Visualization - + General - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Artist - + Title - + Track number - + Two-digit track number - + Genre - + Comment - + Composer - + Disc number - + File name - + File path - + Year - + Condition diff --git a/src/qmmpui/translations/libqmmpui_it.ts b/src/qmmpui/translations/libqmmpui_it.ts index 2bc7935ef..4444b4b03 100644 --- a/src/qmmpui/translations/libqmmpui_it.ts +++ b/src/qmmpui/translations/libqmmpui_it.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Descrizione - + Filename File - + Artist Interprete - - + + Album Album - + Track Traccia - + Disabled Disabilitato - + Transports Protocolli di trasporto - + Decoders Decodificatori - + Engines Meccanismi - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Titolo - + Track number Traccia n° - + Two-digit track number Traccia n° a due cifre - + Disc number Disco n° - + Condition Condizione - + Genre Genere - + Composer Compositore - + File name Nome file - + File path Percorso file - + Year Anno - + Comment Commento @@ -209,15 +224,11 @@ - Preferences Impostazioni preferite - - - Information Informazioni @@ -237,7 +248,7 @@ Avanzato - + 16-bit output uscita a 16 bit @@ -247,28 +258,23 @@ Connettività - + Visualization Visualizzazione - + Effects Effetti - + General Generale - - - File Dialog - Menu brani - - + Audio Audio @@ -283,58 +289,63 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: - + Replay Gain Normalizzazione - + Replay Gain mode: Metodo di normalizzazione - + Preamp: Preamp: - - + + dB dB - + Default gain: Normalizzazione predefinita - + Use peak info to prevent clipping Utilizza informazioni di picco per evitare tagli - - Output: - Uscita: - - - + Buffer size: - + ms ms - + Use software volume control Utilizza il controllo volume del programma @@ -365,57 +376,52 @@ Profondità ricerca ricorsiva: - + Playback Riproduzione - + Continue playback on startup Continua la riproduzione all'avvio - + Determine file type by content - - User Interface - - - - + Proxy Proxy - + Enable proxy usage Attiva il proxy - + Proxy host name: Nome del server : - + Proxy port: Porta del server : - + Use authentication with proxy Usa autenticazione con il proxy - + Proxy user name: Utente: - + Proxy password: Password : diff --git a/src/qmmpui/translations/libqmmpui_ja.ts b/src/qmmpui/translations/libqmmpui_ja.ts index 8c32afe9e..0133ca1f7 100644 --- a/src/qmmpui/translations/libqmmpui_ja.ts +++ b/src/qmmpui/translations/libqmmpui_ja.ts @@ -108,7 +108,7 @@ - + Audio 音響 @@ -144,33 +144,24 @@ - Preferences プラグイン調整 - - - Information 情報 - + Description プラグイン分類 - + Filename ファイル名 - - - File Dialog - ファイルダイアログ - Cover Image Retrieve @@ -198,25 +189,20 @@ 再帰検索の深度: - + Playback 再生 - + Continue playback on startup 前回終了時の曲から継続して再生 - + Determine file type by content ファイル内容をみて形式を判断 - - - User Interface - ユーザーインターフェイス - Directory Scanning Options @@ -228,204 +214,224 @@ ファイルを限定(拡張子による): - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: コマンド行からファイルを追加できるプレイリスト: - + Proxy 代理 - + Enable proxy usage 代理を利用する - + Proxy host name: 代理ホスト名: - + Proxy port: 代理ポート: - + Use authentication with proxy 代理経由の認証を利用 - + Proxy user name: 代理者ユーザー名: - + Proxy password: 代理者パスワード: - + Replay Gain リプレイゲイン - + Replay Gain mode: リプレイゲインモード: - + Preamp: プリアンプ: - - + + dB dB - + Default gain: デフォルトゲイン: - + Use peak info to prevent clipping クリッピング現象を抑えるためピーク情報を使う - - Output: - 出力: - - - + Buffer size: バッファーサイズ: - + ms ミリ秒 - + Use software volume control ソフトウェアによる音量制御を利用 - + 16-bit output 16ビット出力 - + Track トラック - - + + Album アルバム - + Disabled 無効 - + Transports 転送 - + Decoders デコーダー - + Engines エンジン - + Effects 音響効果 - + Visualization 視覚効果 - + General 一般 - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Artist アーティスト - + Title タイトル - + Track number トラック番号 - + Two-digit track number トラック番号 数字2桁 - + Genre ジャンル - + Comment コメント - + Composer 作曲者 - + Disc number ディスク番号 - + File name ファイル名 - + File path ファイルパス - + Year - + Condition 定番 diff --git a/src/qmmpui/translations/libqmmpui_kk.ts b/src/qmmpui/translations/libqmmpui_kk.ts index c179bf202..eb15f111a 100644 --- a/src/qmmpui/translations/libqmmpui_kk.ts +++ b/src/qmmpui/translations/libqmmpui_kk.ts @@ -108,7 +108,7 @@ - + Audio @@ -180,252 +180,258 @@ - Preferences - - - Information - + Description - + Filename - - User Interface + + Look and Feel - - File Dialog + + Language: - + Playback - + Continue playback on startup - + Determine file type by content - + Add files from command line to this playlist: - + Proxy - + Enable proxy usage - + Proxy host name: - + Proxy port: - + Use authentication with proxy - + Proxy user name: - + Proxy password: - + Replay Gain - + Replay Gain mode: - + Preamp: - - + + dB - + Default gain: - + Use peak info to prevent clipping - - Output: - - - - + Buffer size: - + ms - + Use software volume control - + 16-bit output - + Track - - + + Album - + Disabled - + Transports - + Decoders - + Engines - + Effects - + Visualization - + General - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Artist - + Title - + Track number - + Two-digit track number - + Genre - + Comment - + Composer - + Disc number - + File name - + File path - + Year - + Condition diff --git a/src/qmmpui/translations/libqmmpui_lt.ts b/src/qmmpui/translations/libqmmpui_lt.ts index 6429464e0..5adb80734 100644 --- a/src/qmmpui/translations/libqmmpui_lt.ts +++ b/src/qmmpui/translations/libqmmpui_lt.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Aprašymas - + Filename Bylos pavadinimas - + Artist Atlikėjas - - + + Album Albumas - + Track Takelis - + Disabled Išjungta - + Transports Transportas - + Decoders Dekoderiai - + Engines Varikliai - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Pavadinimas - + Track number Takelio numeris - + Two-digit track number Dviejų skaičių takelio numeris - + Disc number Disko numeris - + Condition Būklė - + Composer Autorius - + File name Bylos pavadinimas - + File path Bylos kelias - + Genre Žanras - + Year Metai - + Comment Komentaras @@ -209,15 +224,11 @@ - Preferences Nustatymai - - - Information Informacija @@ -237,7 +248,7 @@ Papildomi - + 16-bit output 16 bitų išvestis @@ -247,28 +258,23 @@ Tinklas - + Visualization Vizualizacija - + Effects Efektai - + General Bendri - - - File Dialog - Pasirinkimo langas - - + Audio Audio @@ -283,59 +289,64 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: Į šį grojaraštį įkelti bylas iš komandinės eilutės: - + Replay Gain Neįsivaizduoju kaip verst Replay Gain - + Replay Gain mode: Replay Gain metodas: - + Preamp: Išankstinis stiprinimas: - - + + dB dB - + Default gain: Stiprinimas pagal nutylėjima: - + Use peak info to prevent clipping Naudoti pikų informaciją trūkinėjimo išvengimui - - Output: - Išvestis - - - + Buffer size: Buferio dydis: - + ms ms - + Use software volume control Naudoti programinį garso valdymą @@ -366,57 +377,52 @@ Rekursinės paieškos gylis - + Playback Grojimas - + Continue playback on startup Tęsti grojimą įjungus - + Determine file type by content Nustatyti bylos tipą pagal turinį - - User Interface - Vartotojo sąsaja - - - + Proxy Proxy - + Enable proxy usage Įjungti proxy palaikymą - + Proxy host name: Proxy serveris: - + Proxy port: Proxy portas: - + Use authentication with proxy Naudoti proxy autentifikavimą - + Proxy user name: Proxy vartotojo vardas: - + Proxy password: Proxy slaptažodis: diff --git a/src/qmmpui/translations/libqmmpui_nl.ts b/src/qmmpui/translations/libqmmpui_nl.ts index c923a7832..92d8ad915 100644 --- a/src/qmmpui/translations/libqmmpui_nl.ts +++ b/src/qmmpui/translations/libqmmpui_nl.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Beschrijving - + Filename Bestandsnaam - + Artist Artiest - - + + Album Album - + Track Nummer - + Disabled Uitgeschakeld - + Transports Protocols - + Decoders Decoders - + Engines - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Naam - + Track number Liednummer - + Two-digit track number Liednummer (twee cijfer formaat) - + Disc number CD nummer - + Condition Staat - + Composer Componist - + File name Bestandsnaam - + File path Bestandspad - + Genre - + Year Jaar - + Comment Commentaar @@ -203,7 +218,7 @@ Geavanceerd - + Replay Gain @@ -229,15 +244,11 @@ - Preferences Voorkeuren - - - Information Informatie @@ -268,25 +279,20 @@ Recursieve zoekdiepte: - + Playback Afspelen - + Continue playback on startup Verdergaan met afspelen bij opstarten - + Determine file type by content Bepaal bestandstype op basis van inhoud - - - User Interface - Gebruikers interface - Directory Scanning Options @@ -298,53 +304,58 @@ Gebruikte bestandsformaten: - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: Voeg bestanden van het commando prompt toe aan de afspeellijst: - + Replay Gain mode: Replay Gain modus: - + Preamp: Voorversterking: - - + + dB - + Default gain: Standaard verhoging: - + Use peak info to prevent clipping Gebruik piek info om stotteren te voorkomen - - Output: - Uitvoer: - - - + Buffer size: Buffer-grootte: - + ms - + 16-bit output 16bit uitvoer @@ -354,68 +365,63 @@ Connectiviteit - - File Dialog - Bestandsdialoog - - - + Proxy - + Enable proxy usage Gebruik proxy - + Proxy host name: Proxy host naam: - + Proxy port: Proxy poort: - + Use authentication with proxy Gebruik authenticatie bij proxy - + Proxy user name: Proxy gebruikersnaam: - + Proxy password: Proxy wachtwoord: - + Visualization Visualisatie - + Effects Effecten - + General Algemeen - + Audio - + Use software volume control Gebruik software volume diff --git a/src/qmmpui/translations/libqmmpui_pl_PL.ts b/src/qmmpui/translations/libqmmpui_pl_PL.ts index af00bdb61..5fa365def 100644 --- a/src/qmmpui/translations/libqmmpui_pl_PL.ts +++ b/src/qmmpui/translations/libqmmpui_pl_PL.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Opis - + Filename Nazwa pliku - + Artist Artysta - - + + Album Album - + Track Utwór - + Disabled Wyłączone - + Transports Transporty - + Decoders Dekodery - + Engines Silniki - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Tytuł - + Track number Numer utworu - + Two-digit track number Dwuznakowy numer utworu - + Disc number Numer albumu - + Condition Warunek - + Genre Gatunek - + Composer Kompozytor - + File name Nazwa pliku - + File path Lokalizacja - + Year Rok - + Comment Komentarz @@ -209,15 +224,11 @@ - Preferences Ustawienia - - - Information Informacje @@ -237,7 +248,7 @@ Zaawansowane - + 16-bit output 16-bitowe odtwarzanie @@ -247,28 +258,23 @@ Sieć - + Visualization Wizualizacje - + Effects Efekty - + General Ogólne - - - File Dialog - Okno dialogowe - - + Audio Dźwięk @@ -283,58 +289,63 @@ Ogranicz pliki do: - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: Dodaj pliki z linii poleceń do listy odtwarzania: - + Replay Gain - + Replay Gain mode: Tryb Replay Gain: - + Preamp: - - + + dB - + Default gain: Domyślne wzmocnienie: - + Use peak info to prevent clipping Użyj informacji peak by zapobiec "klipnięciom" - - Output: - Wyjście: - - - + Buffer size: Rozmiar bufora: - + ms ms - + Use software volume control Użyj programowej regulacji głośności @@ -365,57 +376,52 @@ Głębokość rekursywnego przeszukiwania: - + Playback Odtwarzanie - + Continue playback on startup Wznów odtwarzanie po uruchomieniu programu - + Determine file type by content Określ typ pliku po zawartości - - User Interface - Interfejs użytkownika - - - + Proxy Proxy - + Enable proxy usage Włącz proxy - + Proxy host name: Nazwa hosta proxy: - + Proxy port: Port proxy: - + Use authentication with proxy Użyj autoryzacji z proxy - + Proxy user name: Nazwa użytkownika: - + Proxy password: Hasło: diff --git a/src/qmmpui/translations/libqmmpui_pt_BR.ts b/src/qmmpui/translations/libqmmpui_pt_BR.ts index f9be550cf..c8e06f01c 100644 --- a/src/qmmpui/translations/libqmmpui_pt_BR.ts +++ b/src/qmmpui/translations/libqmmpui_pt_BR.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Descrição - + Filename Nome do Arquivo - + Artist Artista - - + + Album Álbum - + Track - + Disabled - + Transports - + Decoders - + Engines - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Título - + Track number - + Two-digit track number - + Disc number - + Condition - + Genre Gênero - + Composer - + File name - + File path - + Year Ano - + Comment Comentário @@ -209,15 +224,11 @@ - Preferences Preferências - - - Information Informações @@ -237,7 +248,7 @@ Avançado - + 16-bit output @@ -247,28 +258,23 @@ - + Visualization - + Effects - + General - - - File Dialog - - - + Audio @@ -283,58 +289,63 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: - + Replay Gain - + Replay Gain mode: - + Preamp: - - + + dB - + Default gain: - + Use peak info to prevent clipping - - Output: - - - - + Buffer size: - + ms - + Use software volume control @@ -365,57 +376,52 @@ - + Playback - + Continue playback on startup - + Determine file type by content - - User Interface - - - - + Proxy - + Enable proxy usage - + Proxy host name: - + Proxy port: - + Use authentication with proxy - + Proxy user name: - + Proxy password: diff --git a/src/qmmpui/translations/libqmmpui_ru.ts b/src/qmmpui/translations/libqmmpui_ru.ts index 60bdc8f36..cf15dfb63 100644 --- a/src/qmmpui/translations/libqmmpui_ru.ts +++ b/src/qmmpui/translations/libqmmpui_ru.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Описание - + Filename Имя файла - + Artist Исполнитель - - + + Album Альбом - + Track Дорожка - + Disabled Отключено - + Transports Транспорты - + Decoders Декодеры - + Engines Внешние проигрыватели - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Название - + Track number Номер трека - + Two-digit track number 2-x разрядный номер трека - + Disc number Номер диска - + Condition Условие - + Genre Жанр - + Composer Композитор - + File name Имя файла - + File path Путь к файлу - + Year Год - + Comment Комментарий @@ -209,15 +224,11 @@ - Preferences Настройки - - - Information Информация @@ -237,7 +248,7 @@ Дополнительно - + 16-bit output 16-битный вывод @@ -247,28 +258,23 @@ Сеть - + Visualization Визуализация - + Effects Эффекты - + General Общие - - - File Dialog - Файловый диалог - - + Audio Аудио @@ -283,58 +289,63 @@ Ограничить выбор файлов до: - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: Добавлять файлы из командной строки в этот список: - + Replay Gain Выравнивание громкости (Replay Gain) - + Replay Gain mode: Режим Replay Gain: - + Preamp: Предусиление: - - + + dB дБ - + Default gain: Усиление по умолчанию: - + Use peak info to prevent clipping Использовать пиковое значение для предотвращения срезания - - Output: - Вывод: - - - + Buffer size: Размер буфера: - + ms мс - + Use software volume control Использовать программную регулировку громкости @@ -365,57 +376,52 @@ Глубина рекурсивного поиска: - + Playback Воспроизведение - + Continue playback on startup Продолжить воспроизведение после запуска - + Determine file type by content Определять тип файла по содержимому - - User Interface - Интерфейс пользователя - - - + Proxy Прокси - + Enable proxy usage Использовать прокси - + Proxy host name: Прокси сервер: - + Proxy port: Прокси порт: - + Use authentication with proxy Использовать авторизацию на прокси - + Proxy user name: Имя пользователя прокси: - + Proxy password: Пароль прокси: diff --git a/src/qmmpui/translations/libqmmpui_sk.ts b/src/qmmpui/translations/libqmmpui_sk.ts index 16f1782f5..bdc493323 100644 --- a/src/qmmpui/translations/libqmmpui_sk.ts +++ b/src/qmmpui/translations/libqmmpui_sk.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Popis - + Filename Názov súboru - + Artist Interprét - - + + Album Album - + Track Skladba - + Disabled Zakázané - + Transports Protokoly - + Decoders Dekodéry - + Engines Prehrávače - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Názov - + Track number Číslo skladby - + Two-digit track number Dvojmiestne číslo skladby - + Disc number Číslo disku - + Condition Stav - + Composer Skladateľ - + File name Názov súboru - + File path Cesta k súboru - + Genre Žáner - + Year Rok - + Comment Poznámka @@ -203,7 +218,7 @@ Pokročilé - + Replay Gain Zisk pri prehrávaní @@ -229,15 +244,11 @@ - Preferences Nastavenia - - - Information Informácie @@ -268,25 +279,20 @@ Hĺbka rekurzívneho hľadania: - + Playback Prehrávanie - + Continue playback on startup Pri štarte pokračovať v prehrávaní - + Determine file type by content - - - User Interface - - Directory Scanning Options @@ -298,53 +304,58 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: - + Replay Gain mode: Režim úpravy zisku pri prehrávaní: - + Preamp: Predzosilnenie: - - + + dB dB - + Default gain: Východzý zisk: - + Use peak info to prevent clipping Použiť informáciu o vrchole k zabráneniu orezu - - Output: - Výstup: - - - + Buffer size: Veľkosť bufferu: - + ms ms - + 16-bit output 16bitový výstup @@ -354,68 +365,63 @@ Pripojenie k sieti - - File Dialog - Súborový dialóg - - - + Proxy Proxy - + Enable proxy usage Povoliť používanie proxy - + Proxy host name: Adresa proxy: - + Proxy port: Port proxy: - + Use authentication with proxy Použiť autentifikáciu s proxy - + Proxy user name: Proxy použivateľské meno: - + Proxy password: Proxy heslo: - + Visualization Vizualizácie - + Effects Efekty - + General Všeobecné - + Audio Zvuk - + Use software volume control Používať softwarové ovládanie hlasitosti diff --git a/src/qmmpui/translations/libqmmpui_tr.ts b/src/qmmpui/translations/libqmmpui_tr.ts index f1703d9e9..7c55e4728 100644 --- a/src/qmmpui/translations/libqmmpui_tr.ts +++ b/src/qmmpui/translations/libqmmpui_tr.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Açıklama - + Filename Dosya adı - + Artist Sanatçı - - + + Album Albüm - + Track - + Disabled - + Transports - + Decoders - + Engines - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Başlık - + Track number - + Two-digit track number - + Disc number - + Condition - + Genre Tarz - + Composer - + File name - + File path - + Year Yıl - + Comment Yorum @@ -209,15 +224,11 @@ - Preferences Tercihler - - - Information Bilgi @@ -237,7 +248,7 @@ Gelişmiş - + 16-bit output @@ -247,28 +258,23 @@ Bağlanırlık - + Visualization Görsellik - + Effects Efektler - + General Genel - - - File Dialog - Dosya Diyaloğu - - + Audio Ses @@ -283,58 +289,63 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: - + Replay Gain - + Replay Gain mode: - + Preamp: - - + + dB - + Default gain: - + Use peak info to prevent clipping - - Output: - - - - + Buffer size: - + ms - + Use software volume control Yazılımsal ses kontrolünü kullan @@ -365,57 +376,52 @@ - + Playback - + Continue playback on startup - + Determine file type by content - - User Interface - - - - + Proxy Vekil sunucu - + Enable proxy usage Vekil sunucu kullanımını etkinleştir - + Proxy host name: Vekil sunucu adı: - + Proxy port: Vekil sunucu portu: - + Use authentication with proxy Vekil sunucu yetkilendirmesi kullan - + Proxy user name: Vekil sunucu kullanıcı adı: - + Proxy password: Vekil sunucu parolası: diff --git a/src/qmmpui/translations/libqmmpui_uk_UA.ts b/src/qmmpui/translations/libqmmpui_uk_UA.ts index f6474f175..a57f4c812 100644 --- a/src/qmmpui/translations/libqmmpui_uk_UA.ts +++ b/src/qmmpui/translations/libqmmpui_uk_UA.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description Пояснення - + Filename Ім'я файлу - + Artist Виконавець - - + + Album Альбом - + Track Трек - + Disabled Вимкнено - + Transports Транспорти - + Decoders Декодери - + Engines Зовнішні програвачі - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title Назва - + Track number Номер треку - + Two-digit track number 2- розрядний номер трека - + Disc number Номер диску - + Condition Умова - + Genre Жанр - + Composer Композитор - + File name Ім'я файлу - + File path Шлях файлу - + Year Рік - + Comment Коментар @@ -209,15 +224,11 @@ - Preferences Налаштування - - - Information Інформація @@ -237,7 +248,7 @@ Додатково - + 16-bit output 16-бітний вивід @@ -247,28 +258,23 @@ Мережа - + Visualization Візуалізація - + Effects Ефекти - + General Загальне - - - File Dialog - Файловий діалог - - + Audio Звук @@ -283,58 +289,63 @@ Обмежити вибір файлів до: - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: Додавати файли з командного рядка в цей список: - + Replay Gain Нормалізація гучності - + Replay Gain mode: Режим нормалізації гучності: - + Preamp: Преамплітуда: - - + + dB - + Default gain: Нормалізація за умовчанням: - + Use peak info to prevent clipping Використовувати інформацію піків для запобігання відсікання - - Output: - Виведення: - - - + Buffer size: Розмір буферу: - + ms мс - + Use software volume control Використовувати програмний контроль гучності @@ -365,57 +376,52 @@ Глибина рекурсивного пошуку: - + Playback Відтворення - + Continue playback on startup Продовжити відтворення при запуску - + Determine file type by content Визначати тип файлу за вмістом - - User Interface - Інтерфейс користувача - - - + Proxy Проксі - + Enable proxy usage Використосувати проксі - + Proxy host name: Сервер проксі: - + Proxy port: Порт проксі: - + Use authentication with proxy Використовувати авторизацію на проксі - + Proxy user name: Ім'я користвача проксі: - + Proxy password: Пароль проксі: diff --git a/src/qmmpui/translations/libqmmpui_zh_CN.ts b/src/qmmpui/translations/libqmmpui_zh_CN.ts index 6dd444aee..344386913 100644 --- a/src/qmmpui/translations/libqmmpui_zh_CN.ts +++ b/src/qmmpui/translations/libqmmpui_zh_CN.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description 描述 - + Filename 文件名 - + Artist 艺术家 - - + + Album 专辑 - + Track 音轨 - + Disabled - + Transports - + Decoders - + Engines - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title 标题 - + Track number 音轨编号 - + Two-digit track number 两位数音轨编号 - + Disc number 光盘编号 - + Condition 条件 - + Genre 流派 - + Composer 作曲 - + File name 文件名 - + File path 文件路径 - + Year 年代 - + Comment 备注 @@ -209,15 +224,11 @@ - Preferences 参数设置 - - - Information 信息 @@ -237,7 +248,7 @@ 高级 - + 16-bit output @@ -247,28 +258,23 @@ 连接 - + Visualization 可视化 - + Effects 特效 - + General 常规 - - - File Dialog - 文件对话 - - + Audio 音频 @@ -283,58 +289,63 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: - + Replay Gain - + Replay Gain mode: - + Preamp: - - + + dB - + Default gain: - + Use peak info to prevent clipping - - Output: - - - - + Buffer size: - + ms - + Use software volume control 使用软设备音量控制 @@ -365,57 +376,52 @@ - + Playback - + Continue playback on startup - + Determine file type by content - - User Interface - - - - + Proxy 代理 - + Enable proxy usage 启用代理 - + Proxy host name: 主机名: - + Proxy port: 端口: - + Use authentication with proxy 需要身份验证 - + Proxy user name: 用户名: - + Proxy password: 密码: diff --git a/src/qmmpui/translations/libqmmpui_zh_TW.ts b/src/qmmpui/translations/libqmmpui_zh_TW.ts index 7bf5901b5..1defe8a52 100644 --- a/src/qmmpui/translations/libqmmpui_zh_TW.ts +++ b/src/qmmpui/translations/libqmmpui_zh_TW.ts @@ -82,103 +82,118 @@ ConfigDialog - + Description 說明 - + Filename 檔名 - + Artist 藝術家 - - + + Album 專輯 - + Track 音軌 - + Disabled - + Transports - + Decoders - + Engines - + + Output + + + + + File Dialogs + + + + + User Interfaces + + + + Title 標題 - + Track number 音軌編號 - + Two-digit track number 兩位數音軌編號 - + Disc number 光槃編號 - + Condition 條件 - + Genre 流派 - + Composer 作曲 - + File name 文件名 - + File path 文件路徑 - + Year 年代 - + Comment 備註 @@ -209,15 +224,11 @@ - Preferences 引數設定 - - - Information 資訊 @@ -237,7 +248,7 @@ 進階 - + 16-bit output @@ -247,28 +258,23 @@ 連線 - + Visualization 可視化 - + Effects 特效 - + General 常規 - - - File Dialog - 檔案對話 - - + Audio 聲訊 @@ -283,58 +289,63 @@ - + + Look and Feel + + + + + Language: + + + + Add files from command line to this playlist: - + Replay Gain - + Replay Gain mode: - + Preamp: - - + + dB - + Default gain: - + Use peak info to prevent clipping - - Output: - - - - + Buffer size: - + ms - + Use software volume control 使用軟裝置音量控制 @@ -365,57 +376,52 @@ - + Playback - + Continue playback on startup - + Determine file type by content - - User Interface - - - - + Proxy 代理 - + Enable proxy usage 啟用代理 - + Proxy host name: 主機名: - + Proxy port: 通訊埠: - + Use authentication with proxy 需要身份驗證 - + Proxy user name: 用戶名: - + Proxy password: 密碼: -- cgit v1.2.3-13-gbd6f