From 899a15f90c2845cd44e0e6aa1dc4eae5dcc68f2b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 4 Oct 2011 18:19:15 +0000 Subject: converter: added preset editor git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2378 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/converter/converter.pro | 4 +- src/plugins/General/converter/converterdialog.cpp | 93 ++++++++++++++++++++-- src/plugins/General/converter/converterdialog.h | 5 +- src/plugins/General/converter/converterdialog.ui | 2 +- src/plugins/General/converter/preset.h | 38 --------- src/plugins/General/converter/preseteditor.cpp | 30 +++++-- src/plugins/General/converter/preseteditor.h | 10 ++- src/plugins/General/converter/preseteditor.ui | 28 ++++--- .../converter/translations/converter_plugin_cs.ts | 66 +++++++-------- .../converter/translations/converter_plugin_de.ts | 66 +++++++-------- .../converter/translations/converter_plugin_es.ts | 66 +++++++-------- .../converter/translations/converter_plugin_it.ts | 64 +++++++-------- .../converter/translations/converter_plugin_ja.ts | 66 +++++++-------- .../converter/translations/converter_plugin_lt.ts | 66 +++++++-------- .../converter/translations/converter_plugin_nl.ts | 66 +++++++-------- .../converter/translations/converter_plugin_pl.ts | 66 +++++++-------- .../converter/translations/converter_plugin_ru.ts | 66 +++++++-------- .../converter/translations/converter_plugin_tr.ts | 64 +++++++-------- .../translations/converter_plugin_uk_UA.ts | 66 +++++++-------- .../translations/converter_plugin_zh_CN.ts | 66 +++++++-------- .../translations/converter_plugin_zh_TW.ts | 66 +++++++-------- src/plugins/Ui/skinned/eqwidget.cpp | 2 +- 22 files changed, 502 insertions(+), 564 deletions(-) delete mode 100644 src/plugins/General/converter/preset.h (limited to 'src') diff --git a/src/plugins/General/converter/converter.pro b/src/plugins/General/converter/converter.pro index a57af2e27..e9b2f8db3 100644 --- a/src/plugins/General/converter/converter.pro +++ b/src/plugins/General/converter/converter.pro @@ -41,8 +41,7 @@ HEADERS += converterfactory.h \ converterhelper.h \ converterdialog.h \ converter.h \ - preseteditor.h \ - preset.h + preseteditor.h win32:HEADERS += ../../../../src/qmmpui/general.h SOURCES += converterfactory.cpp \ converterhelper.cpp \ @@ -56,3 +55,4 @@ FORMS += converterdialog.ui \ + diff --git a/src/plugins/General/converter/converterdialog.cpp b/src/plugins/General/converter/converterdialog.cpp index df3db7aa5..125d7e035 100644 --- a/src/plugins/General/converter/converterdialog.cpp +++ b/src/plugins/General/converter/converterdialog.cpp @@ -24,6 +24,7 @@ #include #include #include +#include "preseteditor.h" #include "converterdialog.h" ConverterDialog::ConverterDialog(QList items, QWidget *parent) : QDialog(parent) @@ -47,6 +48,8 @@ ConverterDialog::ConverterDialog(QList items, QWidget *parent) ui.outFileEdit->setText(settings.value("file_name","%p - %t").toString()); settings.endGroup(); createMenus(); + readPresets(":/default_converter_preset"); + readPresets(QDir::homePath() + "/.qmmp/converterrc"); } QStringList ConverterDialog::selectedUrls() const @@ -75,6 +78,22 @@ void ConverterDialog::accept() settings.setValue("out_dir", ui.outDirEdit->text()); settings.value("file_name", ui.outFileEdit->text()); settings.endGroup(); + + QSettings preset_settings(QDir::homePath() + "/.qmmp/converterrc", QSettings::IniFormat); + preset_settings.clear(); + for(int i = 0; i < ui.presetComboBox->count(); ++i) + { + QString name = ui.presetComboBox->itemText(i); + QVariantMap data = ui.presetComboBox->itemData(i).toMap(); + if(data["read_only"].toBool()) + continue; + preset_settings.beginGroup(name); + preset_settings.setValue("ext", data["ext"].toString()); + preset_settings.setValue("command", data["command"].toString()); + preset_settings.setValue("use_16bit", data["use_16bit"].toBool()); + preset_settings.setValue("tags", data["tags"].toBool()); + preset_settings.endGroup(); + } QDialog::accept(); } @@ -92,7 +111,6 @@ void ConverterDialog::createMenus() fileNameMenu->addAction(tr("Duration"))->setData("%l"); fileNameMenu->addAction(tr("Disc number"))->setData("%D"); fileNameMenu->addAction(tr("File name"))->setData("%f"); - fileNameMenu->addAction(tr("File path"))->setData("%F"); fileNameMenu->addAction(tr("Year"))->setData("%y"); fileNameMenu->addAction(tr("Condition"))->setData("%if(%p&%t,%p - %t,%f)"); ui.fileNameButton->setMenu(fileNameMenu); @@ -100,9 +118,9 @@ void ConverterDialog::createMenus() connect(fileNameMenu, SIGNAL(triggered(QAction *)), SLOT(addTitleString(QAction *))); QMenu *presetMenu = new QMenu(this); - presetMenu->addAction(tr("Create"), this, SLOT(copyPreset())); + presetMenu->addAction(tr("Create"), this, SLOT(createPreset())); presetMenu->addAction(tr("Edit"), this, SLOT(editPreset())); - presetMenu->addAction(tr("Copy"), this, SLOT(copyPreset())); + presetMenu->addAction(tr("Create a copy"), this, SLOT(copyPreset())); presetMenu->addAction(tr("Delete"), this, SLOT(deletePreset())); ui.presetButton->setMenu(presetMenu); ui.presetButton->setPopupMode(QToolButton::InstantPopup); @@ -118,25 +136,84 @@ void ConverterDialog::addTitleString(QAction *a) void ConverterDialog::createPreset() { - + PresetEditor *editor = new PresetEditor(QString(), QVariantMap(), this); + if(editor->exec() == QDialog::Accepted) + { + QString name = uniqueName(editor->name()); + QVariantMap data = editor->data(); + if(!name.isEmpty() && data["ext"].isValid() && data["command"].isValid()) + ui.presetComboBox->addItem (name, data); + } + editor->deleteLater(); } void ConverterDialog::editPreset() { - + if(ui.presetComboBox->currentIndex() == -1) + return; + int index = ui.presetComboBox->currentIndex(); + if(ui.presetComboBox->itemData(index).toMap()["read_only"].toBool()) + return; + PresetEditor *editor = new PresetEditor(ui.presetComboBox->currentText(), + ui.presetComboBox->itemData(index).toMap(), this); + if(editor->exec() == QDialog::Accepted) + { + QString name = uniqueName(editor->name()); + QVariantMap data = editor->data(); + if(!name.isEmpty() && data["ext"].isValid() && data["command"].isValid()) + { + ui.presetComboBox->setItemText(index, name); + ui.presetComboBox->setItemData(index, data); + } + } + editor->deleteLater(); } void ConverterDialog::copyPreset() { - + if(ui.presetComboBox->currentIndex() == -1) + return; + int index = ui.presetComboBox->currentIndex(); + QString name = ui.presetComboBox->currentText(); + QVariant data = ui.presetComboBox->itemData(index); + ui.presetComboBox->addItem (uniqueName(name), data); } void ConverterDialog::deletePreset() { - + if(ui.presetComboBox->currentIndex() == -1) + return; + if(ui.presetComboBox->itemData(ui.presetComboBox->currentIndex()).toMap()["read_only"].toBool()) + return; + ui.presetComboBox->removeItem(ui.presetComboBox->currentIndex()); } -void ConverterDialog::readSettings() +void ConverterDialog::readPresets(const QString &path) { + QSettings settings(path, QSettings::IniFormat); + foreach(QString group_name, settings.childGroups()) + { + settings.beginGroup(group_name); + QVariantMap data; + data.insert("ext", settings.value("ext").toString()); + data.insert("command", settings.value("command").toString()); + data.insert("use_16bit", settings.value("use_16bit").toBool()); + data.insert("tags", settings.value("tags").toBool()); + data.insert("read_only", path.startsWith(":/")); + ui.presetComboBox->addItem (group_name, data); + settings.endGroup(); + } +} +QString ConverterDialog::uniqueName(const QString &name) +{ + QString unique_name = name; + int i = 0; + forever + { + if(ui.presetComboBox->findText(unique_name) == -1) + break; + unique_name = name + QString("_%1").arg(++i); + } + return unique_name; } diff --git a/src/plugins/General/converter/converterdialog.h b/src/plugins/General/converter/converterdialog.h index 28d0a6844..b3349618d 100644 --- a/src/plugins/General/converter/converterdialog.h +++ b/src/plugins/General/converter/converterdialog.h @@ -27,6 +27,7 @@ class QAction; class PlayListItem; +class ConverterPreset; /** @author Ilya Kotov @@ -51,9 +52,11 @@ private slots: private: void createMenus(); - void readSettings(); + void readPresets(const QString &path); + QString uniqueName(const QString &name); Ui::ConverterDialog ui; + QList m_presets; }; diff --git a/src/plugins/General/converter/converterdialog.ui b/src/plugins/General/converter/converterdialog.ui index e026b5083..83fca3478 100644 --- a/src/plugins/General/converter/converterdialog.ui +++ b/src/plugins/General/converter/converterdialog.ui @@ -65,7 +65,7 @@ - + diff --git a/src/plugins/General/converter/preset.h b/src/plugins/General/converter/preset.h deleted file mode 100644 index 8958bbd65..000000000 --- a/src/plugins/General/converter/preset.h +++ /dev/null @@ -1,38 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2011 by Ilya Kotov * - * forkotov02@hotmail.ru * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#ifndef PRESET_H -#define PRESET_H - -#include - -/** - @author Ilya Kotov -*/ -struct ConverterPreset -{ - QString name; - QString extension; - QString command; - bool use16bit; - bool tags; -}; - -#endif // PRESET_H diff --git a/src/plugins/General/converter/preseteditor.cpp b/src/plugins/General/converter/preseteditor.cpp index 36228f37f..4a1865d92 100644 --- a/src/plugins/General/converter/preseteditor.cpp +++ b/src/plugins/General/converter/preseteditor.cpp @@ -21,14 +21,34 @@ #include "preseteditor.h" #include "ui_preseteditor.h" -PresetEditor::PresetEditor(QWidget *parent) : - QDialog(parent), - ui(new Ui::PresetEditor) +PresetEditor::PresetEditor(const QString &name, const QVariantMap &data, QWidget *parent) : + QDialog(parent), m_ui(new Ui::PresetEditor) { - ui->setupUi(this); + m_ui->setupUi(this); + m_ui->nameLineEdit->setText(name); + m_ui->extensionLineEdit->setText(data.value("ext").toString()); + m_ui->commandLineEdit->setText(data.value("command").toString()); + m_ui->us16bitCheckBox->setChecked(data.value("use_16bit").toBool()); + m_ui->tagsCheckBox->setChecked(data.value("tags").toBool()); } PresetEditor::~PresetEditor() { - delete ui; + delete m_ui; +} + +const QString PresetEditor::name() const +{ + return m_ui->nameLineEdit->text(); +} + +const QVariantMap PresetEditor::data() const +{ + QVariantMap data; + data.insert("ext", m_ui->extensionLineEdit->text()); + data.insert("command", m_ui->commandLineEdit->text()); + data.insert("use_16bit", m_ui->us16bitCheckBox->isChecked()); + data.insert("tags", m_ui->tagsCheckBox->isChecked()); + data.insert("read_only", false); + return data; } diff --git a/src/plugins/General/converter/preseteditor.h b/src/plugins/General/converter/preseteditor.h index 8378009af..07bf2087f 100644 --- a/src/plugins/General/converter/preseteditor.h +++ b/src/plugins/General/converter/preseteditor.h @@ -22,6 +22,7 @@ #define PRESETEDITOR_H #include +#include namespace Ui { class PresetEditor; @@ -35,11 +36,14 @@ class PresetEditor : public QDialog Q_OBJECT public: - explicit PresetEditor(QWidget *parent = 0); - ~PresetEditor(); + explicit PresetEditor(const QString &name, const QVariantMap &data, QWidget *parent = 0); + virtual ~PresetEditor(); + + const QString name() const; + const QVariantMap data() const; private: - Ui::PresetEditor *ui; + Ui::PresetEditor *m_ui; }; #endif // PRESETEDITOR_H diff --git a/src/plugins/General/converter/preseteditor.ui b/src/plugins/General/converter/preseteditor.ui index d9976a5af..51bad75b5 100644 --- a/src/plugins/General/converter/preseteditor.ui +++ b/src/plugins/General/converter/preseteditor.ui @@ -7,13 +7,22 @@ 0 0 400 - 293 + 269 Preset Editor + + 6 + + + 6 + + + 6 + @@ -28,7 +37,7 @@ - + @@ -38,7 +47,7 @@ - + @@ -50,7 +59,7 @@ - + @@ -69,26 +78,19 @@ - + Write tags - + Convert to 16 bit - - - - CheckBox - - - diff --git a/src/plugins/General/converter/translations/converter_plugin_cs.ts b/src/plugins/General/converter/translations/converter_plugin_cs.ts index 03406b938..fb56778ba 100644 --- a/src/plugins/General/converter/translations/converter_plugin_cs.ts +++ b/src/plugins/General/converter/translations/converter_plugin_cs.ts @@ -41,97 +41,92 @@ - + Choose a directory Vyberte adresář - + Artist Umělec - + Album Album - + Title Název - + Track number Číslo stopy - + Two-digit track number Dvoumístné číslo stopy - + Genre Žánr - + Comment Poznámka - + Composer Skladatel - + Duration Délka - + Disc number Číslo disku - + File name Název souboru - - File path - Cesta k souboru + + Create a copy + - + Year Rok - + Condition Stav - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_de.ts b/src/plugins/General/converter/translations/converter_plugin_de.ts index a7d4af64b..87c1313ac 100644 --- a/src/plugins/General/converter/translations/converter_plugin_de.ts +++ b/src/plugins/General/converter/translations/converter_plugin_de.ts @@ -41,97 +41,92 @@ - + Choose a directory Ein Verzeichnis wählen - + Artist Interpret - + Album Album - + Title Titel - + Track number Stücknummer - + Two-digit track number Zweistellige Stücknummer - + Genre Genre - + Comment Kommentar - + Composer Komponist - + Duration Abspieldauer - + Disc number CD-Nummer - + File name Dateiname - - File path - Dateipfad + + Create a copy + - + Year Jahr - + Condition Zustand - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_es.ts b/src/plugins/General/converter/translations/converter_plugin_es.ts index 234014ca1..61e8e8d47 100644 --- a/src/plugins/General/converter/translations/converter_plugin_es.ts +++ b/src/plugins/General/converter/translations/converter_plugin_es.ts @@ -41,97 +41,92 @@ ... - + Choose a directory Elija un directorio - + Artist Intérprete - + Album Album - + Title Título - + Track number Número de pista - + Two-digit track number Número de pista con dos cifras - + Genre Género - + Comment Comentario - + Composer Compositor - + Duration Duración - + Disc number Número de disco - + File name Nombre del archivo - - File path - Ruta del archivo + + Create a copy + - + Year Año - + Condition Condición - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_it.ts b/src/plugins/General/converter/translations/converter_plugin_it.ts index 03b99c845..63a268d92 100644 --- a/src/plugins/General/converter/translations/converter_plugin_it.ts +++ b/src/plugins/General/converter/translations/converter_plugin_it.ts @@ -41,97 +41,92 @@ ... - + Choose a directory Scegli una cartella - + Artist Interprete - + Album Album - + Title Titolo - + Track number Numero traccia - + Two-digit track number Numero traccia su due cifre - + Genre Genere - + Comment Commento - + Composer Compositore - + Duration Durata - + Disc number Disco num. - + File name Nome documento - - File path + + Create a copy - + Year Anno - + Condition PErcorso documento - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_ja.ts b/src/plugins/General/converter/translations/converter_plugin_ja.ts index 0897de333..4f2dea30d 100644 --- a/src/plugins/General/converter/translations/converter_plugin_ja.ts +++ b/src/plugins/General/converter/translations/converter_plugin_ja.ts @@ -41,97 +41,92 @@ ... - + Choose a directory ディレクトリを選択 - + Artist アーティスト - + Album アルバム - + Title タイトル - + Track number トラック番号 - + Two-digit track number トラック番号 数字2桁 - + Genre ジャンル - + Comment コメント - + Composer 作曲者 - + Duration 演奏時間 - + Disc number ディスク番号 - + File name ファイル名 - - File path - ファイルパス + + Create a copy + - + Year - + Condition 定番 - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_lt.ts b/src/plugins/General/converter/translations/converter_plugin_lt.ts index aee9bd477..d86b5a50d 100644 --- a/src/plugins/General/converter/translations/converter_plugin_lt.ts +++ b/src/plugins/General/converter/translations/converter_plugin_lt.ts @@ -41,97 +41,92 @@ ... - + Choose a directory Pasirinkite aplanką - + Artist Atlikėjas - + Album Albumas - + Title Pavadinimas - + Track number Takelio numeris - + Two-digit track number Dviejų skaitmenų takelio numeris - + Genre Žanras - + Comment Komentaras - + Composer Autorius - + Duration Trukmė - + Disc number Disko numeris - + File name Bylos pavadinimas - - File path - Bylos kelias + + Create a copy + - + Year Metai - + Condition Būklė - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_nl.ts b/src/plugins/General/converter/translations/converter_plugin_nl.ts index 7c88b79ac..d552167b0 100644 --- a/src/plugins/General/converter/translations/converter_plugin_nl.ts +++ b/src/plugins/General/converter/translations/converter_plugin_nl.ts @@ -41,97 +41,92 @@ - + Choose a directory Kies een map - + Artist Artiest - + Album Album - + Title Naam - + Track number Liednummer - + Two-digit track number Twee-getal liednummer - + Genre Genre - + Comment Commentaar - + Composer Componist - + Duration Duur - + Disc number CD nummer - + File name Bestandsnaam - - File path - Pad + + Create a copy + - + Year Jaar - + Condition Staat - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_pl.ts b/src/plugins/General/converter/translations/converter_plugin_pl.ts index e08c37fe0..e640ac5be 100644 --- a/src/plugins/General/converter/translations/converter_plugin_pl.ts +++ b/src/plugins/General/converter/translations/converter_plugin_pl.ts @@ -41,97 +41,92 @@ - + Choose a directory Wybierz katalog - + Artist Artysta - + Album Album - + Title Tytuł - + Track number Numer utworu - + Two-digit track number Dwucyfrowy numer utworu - + Genre Gatunek - + Comment Komentarz - + Composer Kompozytor - + Duration Długość - + Disc number Numer płyty - + File name Nazwa pliku - - File path - Ścieżka pliku + + Create a copy + - + Year Rok - + Condition Warunek - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_ru.ts b/src/plugins/General/converter/translations/converter_plugin_ru.ts index cd5a46056..0e020838f 100644 --- a/src/plugins/General/converter/translations/converter_plugin_ru.ts +++ b/src/plugins/General/converter/translations/converter_plugin_ru.ts @@ -41,97 +41,92 @@ ... - + Choose a directory Выберите директорию - + Artist Исполнитель - + Album Альбом - + Title Название - + Track number Номер трека - + Two-digit track number 2-х разрядный номер трека - + Genre Жанр - + Comment Комментарий - + Composer Композитор - + Duration Длительность - + Disc number Номер диска - + File name Имя файла - - File path - Путь к файлу + + Create a copy + - + Year Год - + Condition Условие - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_tr.ts b/src/plugins/General/converter/translations/converter_plugin_tr.ts index 83e3f1a17..da59e23a5 100644 --- a/src/plugins/General/converter/translations/converter_plugin_tr.ts +++ b/src/plugins/General/converter/translations/converter_plugin_tr.ts @@ -41,97 +41,92 @@ ... - + Choose a directory Dizin seç - + Artist - + Album - + Title - + Track number - + Two-digit track number - + Genre - + Comment Yorum - + Composer - + Duration - + Disc number - + File name - - File path + + Create a copy - + Year Yıl - + Condition - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts b/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts index 85b5fa0ba..174c2f748 100644 --- a/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts +++ b/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts @@ -41,97 +41,92 @@ - + Choose a directory Виберіть теку - + Artist Виконавець - + Album Альбом - + Title Назва - + Track number Номер трека - + Two-digit track number 2-розрядний номер трека - + Genre Жанр - + Comment Коментар - + Composer Композитор - + Duration Тривалість - + Disc number Номер диска - + File name Ім'я файла - - File path - Шлях до файла + + Create a copy + - + Year Рік - + Condition Умова - + Create Створити - + Edit Редагувати - - Copy - Копіювати - - - + Delete Видалити @@ -190,49 +185,44 @@ Редактор предвстановлень - + General Головне - + Name: Ім'я: - + Extension: Розширення: - + Command Команда - + ... - + Options Опції - + Write tags Записати теги - + Convert to 16 bit Конвертувати в 16 біт - - - CheckBox - Прапорець - diff --git a/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts b/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts index 698535300..505d6eac7 100644 --- a/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts +++ b/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts @@ -41,97 +41,92 @@ ... - + Choose a directory 选择一个目录 - + Artist 艺术家 - + Album 专辑 - + Title 标题 - + Track number 音轨编号 - + Two-digit track number 两位数音轨编号 - + Genre 流派 - + Comment 备注 - + Composer 作曲 - + Duration 持续时间 - + Disc number 光盘编号 - + File name 文件名 - - File path - 文件路径 + + Create a copy + - + Year 年代 - + Condition 条件 - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts b/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts index b2527eb07..db26b8472 100644 --- a/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts +++ b/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts @@ -41,97 +41,92 @@ ... - + Choose a directory 選取一個目錄 - + Artist 藝術家 - + Album 專輯 - + Title 標題 - + Track number 音軌編號 - + Two-digit track number 兩位數音軌編號 - + Genre 流派 - + Comment 備註 - + Composer 作曲 - + Duration 持續時間 - + Disc number 光槃編號 - + File name 文件名 - - File path - 文件路徑 + + Create a copy + - + Year 年代 - + Condition 條件 - + Create - + Edit - - Copy - - - - + Delete @@ -190,49 +185,44 @@ - + General - + Name: - + Extension: - + Command - + ... ... - + Options - + Write tags - + Convert to 16 bit - - - CheckBox - - diff --git a/src/plugins/Ui/skinned/eqwidget.cpp b/src/plugins/Ui/skinned/eqwidget.cpp index ac86bc340..c2e6e84bb 100644 --- a/src/plugins/Ui/skinned/eqwidget.cpp +++ b/src/plugins/Ui/skinned/eqwidget.cpp @@ -393,7 +393,7 @@ void EqWidget::importWinampEQF() char name[257]; char bands[11]; QString path = FileDialog::getOpenFileName(this, tr("Import Preset"), - "/home", + QDir::homePath(), QString("Winamp EQF (*.q1)")); QFile file(path); -- cgit v1.2.3-13-gbd6f