Commit f033d78e authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Restore defaults button in settings dialog.

parent 0463cfb4
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2015-05-13 21:43+0200\n"
"Last-Translator: Pavel Fric <pavelfric@seznam.cz>\n"
"Language-Team: Czech <kde-i18n-doc@kde.org>\n"
......@@ -515,6 +515,9 @@ msgstr "Vz&hled"
msgid "&Help"
msgstr "Nápo&věda"
msgid "Restore Defaults"
msgstr "Obnovit výchozí"
msgid "&OK"
msgstr "&OK"
......
......@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-04-26 23:41+0200\n"
"Last-Translator: Frank Steinmetzger <Warp_7@gmx.de>\n"
"Language-Team: German <kde-i18n-doc@kde.org>\n"
......@@ -516,6 +516,9 @@ msgstr "&Erscheinungsbild"
msgid "&Help"
msgstr "&Hilfe"
msgid "Restore Defaults"
msgstr "Standardwerte wiederherstellen"
msgid "&OK"
msgstr "&OK"
......
......@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-01-15 17:29+0100\n"
"Last-Translator: \n"
"Language-Team: Spanish <kde-i18n-doc@kde.org>\n"
......@@ -516,6 +516,9 @@ msgstr "&Aspecto"
msgid "&Help"
msgstr "A&yuda"
msgid "Restore Defaults"
msgstr "Restaurar Opciones Por Defecto"
msgid "&OK"
msgstr "Acep&tar"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2014-01-23 22:00+0200\n"
"Last-Translator: Mihkel Tõnnov <mihhkel@gmail.com>\n"
"Language-Team: Estonian <kde-i18n-doc@kde.org>\n"
......@@ -515,6 +515,9 @@ msgstr "Väl&imus"
msgid "&Help"
msgstr "&Abi"
msgid "Restore Defaults"
msgstr "Vaikeväärtused"
msgid "&OK"
msgstr "&OK"
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2014-01-25 00:31+0200\n"
"Last-Translator: Tommi Nieminen <translator@legisign.org>\n"
"Language-Team: Finnish <kde-i18n-doc@kde.org>\n"
......@@ -515,6 +515,9 @@ msgstr "&Ulkonäkö"
msgid "&Help"
msgstr "O&hje"
msgid "Restore Defaults"
msgstr "Palauta oletukset"
msgid "&OK"
msgstr "&OK"
......
......@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-01-15 17:32+0100\n"
"Last-Translator: \n"
"Language-Team: French <kde-i18n-doc@kde.org>\n"
......@@ -516,6 +516,9 @@ msgstr "&Apparence"
msgid "&Help"
msgstr "&Aide"
msgid "Restore Defaults"
msgstr "Réinitialiser les valeurs par défaut"
msgid "&OK"
msgstr "&OK"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-01-15 17:33+0100\n"
"Last-Translator: \n"
"Language-Team: Italian <kde-i18n-doc@kde.org>\n"
......@@ -514,6 +514,9 @@ msgstr "&Aspetto"
msgid "&Help"
msgstr "Ai&uto"
msgid "Restore Defaults"
msgstr "Ripristina valori predefiniti"
msgid "&OK"
msgstr "&OK"
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -511,6 +511,9 @@ msgstr ""
msgid "&Help"
msgstr ""
msgid "Restore Defaults"
msgstr ""
msgid "&OK"
msgstr ""
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2012-12-07 15:47+0100\n"
"Last-Translator: toon <toon@vgerwen.nl>\n"
"Language-Team: Dutch <kde-i18n-doc@kde.org>\n"
......@@ -515,6 +515,9 @@ msgstr "&Uiterlijk"
msgid "&Help"
msgstr "&Help"
msgid "Restore Defaults"
msgstr "Standaardinstellingen herstellen"
msgid "&OK"
msgstr "&OK"
......
......@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-01-15 17:37+0100\n"
"Last-Translator: \n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
......@@ -516,6 +516,9 @@ msgstr "&Wygląd"
msgid "&Help"
msgstr "Pomo&c"
msgid "Restore Defaults"
msgstr "Przywróć domyślne"
msgid "&OK"
msgstr "&OK"
......
......@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-01-15 17:41+0100\n"
"Last-Translator: \n"
"Language-Team: Russian <kde-i18n-doc@kde.org>\n"
......@@ -516,6 +516,9 @@ msgstr "&Внешний вид"
msgid "&Help"
msgstr "Помо&щь"
msgid "Restore Defaults"
msgstr "Сбросить настройки"
msgid "&OK"
msgstr "&ОК"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-04-26 23:41+0200\n"
"Last-Translator: Mladen Pejaković <pejakm@gmail.com>\n"
"Language-Team: Serbian <kde-i18n-sr@lists.kde.org>\n"
......@@ -514,6 +514,9 @@ msgstr "&Изглед"
msgid "&Help"
msgstr "По&моћ"
msgid "Restore Defaults"
msgstr "Врати подразумевано"
msgid "&OK"
msgstr "&У реду"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-04-26 23:41+0200\n"
"Last-Translator: Mladen Pejaković <pejakm@gmail.com>\n"
"Language-Team: Serbian <kde-i18n-sr@lists.kde.org>\n"
......@@ -514,6 +514,9 @@ msgstr "&Изглед"
msgid "&Help"
msgstr "По&моћ"
msgid "Restore Defaults"
msgstr "Врати подразумијевано"
msgid "&OK"
msgstr "&У реду"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-04-26 23:41+0200\n"
"Last-Translator: Mladen Pejaković <pejakm@gmail.com>\n"
"Language-Team: Serbian <kde-i18n-sr@lists.kde.org>\n"
......@@ -514,6 +514,9 @@ msgstr "&Izgled"
msgid "&Help"
msgstr "Po&moć"
msgid "Restore Defaults"
msgstr "Vrati podrazumijevano"
msgid "&OK"
msgstr "&U redu"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-04-26 23:41+0200\n"
"Last-Translator: Mladen Pejaković <pejakm@gmail.com>\n"
"Language-Team: Serbian <kde-i18n-sr@lists.kde.org>\n"
......@@ -514,6 +514,9 @@ msgstr "&Izgled"
msgid "&Help"
msgstr "Po&moć"
msgid "Restore Defaults"
msgstr "Vrati podrazumevano"
msgid "&OK"
msgstr "&U redu"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-01-15 17:42+0100\n"
"Last-Translator: \n"
"Language-Team: Turkish <kde-i18n-doc@kde.org>\n"
......@@ -514,6 +514,9 @@ msgstr "&Görünüm"
msgid "&Help"
msgstr "&Yardım"
msgid "Restore Defaults"
msgstr "Öntanımlılara Dön"
msgid "&OK"
msgstr "&Tamam"
......
......@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2014-08-24 15:11+0800\n"
"Last-Translator: shlinux <lishaohui.qd@163.com>\n"
"Language-Team: Chinese Simplified <kde-china@kde.org>\n"
......@@ -513,6 +513,9 @@ msgstr "外观配置(&A)"
msgid "&Help"
msgstr "帮助(&H)"
msgid "Restore Defaults"
msgstr "恢复默认值"
msgid "&OK"
msgstr "确定(&O)"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Kid3 3.2.1\n"
"Report-Msgid-Bugs-To: http://sourceforge.net/p/kid3/bugs/\n"
"POT-Creation-Date: 2015-08-13 18:29+0200\n"
"POT-Creation-Date: 2015-08-15 15:15+0200\n"
"PO-Revision-Date: 2011-01-15 17:43+0100\n"
"Last-Translator: \n"
"Language-Team: Chinese (traditional) <kde-i18n-doc@kde.org>\n"
......@@ -517,6 +517,9 @@ msgstr "外觀設定(&A)"
msgid "&Help"
msgstr "求助(&H)"
msgid "Restore Defaults"
msgstr "回復預設值"
msgid "&OK"
msgstr "確定(&O)"
......
......@@ -54,15 +54,23 @@ KdeConfigDialog::KdeConfigDialog(QWidget* parent, QString& caption,
addPage(m_pages->createPluginsPage(), tr("Plugins"), QLatin1String("preferences-plugin"));
#if QT_VERSION >= 0x050000
setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel |
setStandardButtons(QDialogButtonBox::RestoreDefaults |
QDialogButtonBox::Ok | QDialogButtonBox::Cancel |
QDialogButtonBox::Help);
if (const QDialogButtonBox* buttons = buttonBox()) {
if (QPushButton* helpButton = buttons->button(QDialogButtonBox::Help)) {
connect(helpButton, SIGNAL(clicked()), this, SLOT(slotHelp()));
}
if (QPushButton* defaultsButton =
buttons->button(QDialogButtonBox::RestoreDefaults)) {
connect(defaultsButton, SIGNAL(clicked()),
m_pages, SLOT(setDefaultConfig()));
}
}
#else
setButtons(Ok | Cancel | Help);
setButtons(Default | Ok | Cancel | Help);
enableButton(Default, true);
connect(this, SIGNAL(defaultClicked()), m_pages, SLOT(setDefaultConfig()));
setHelp(QLatin1String("configure-kid3"));
#endif
}
......@@ -96,3 +104,14 @@ void KdeConfigDialog::slotHelp()
{
ContextHelp::displayHelp(QLatin1String("configure-kid3"));
}
/**
* Returns whether the current state of the dialog is
* the same as the default configuration.
* @return false
*/
bool KdeConfigDialog::isDefault()
{
// The "Defaults" button shall be always enabled.
return false;
}
......@@ -77,6 +77,14 @@ protected slots:
*/
void slotHelp();
protected:
/**
* Returns whether the current state of the dialog is
* the same as the default configuration.
* @return false
*/
virtual bool isDefault();
private:
ConfigDialogPages* m_pages;
};
......
......@@ -138,14 +138,18 @@ ConfigDialog::ConfigDialog(QWidget* parent, QString& caption,
QSpacerItem* hspacer = new QSpacerItem(16, 0, QSizePolicy::Expanding,
QSizePolicy::Minimum);
QPushButton* helpButton = new QPushButton(tr("&Help"), this);
QPushButton* defaultsButton = new QPushButton(tr("Restore Defaults"), this);
QPushButton* okButton = new QPushButton(tr("&OK"), this);
QPushButton* cancelButton = new QPushButton(tr("&Cancel"), this);
hlayout->addWidget(helpButton);
hlayout->addWidget(defaultsButton);
hlayout->addItem(hspacer);
hlayout->addWidget(okButton);
hlayout->addWidget(cancelButton);
okButton->setDefault(true);
connect(helpButton, SIGNAL(clicked()), this, SLOT(slotHelp()));
connect(defaultsButton, SIGNAL(clicked()),
m_pages, SLOT(setDefaultConfig()));
connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(slotRevertFontAndStyle()));
......
......@@ -85,16 +85,23 @@ void NetworkConfig::readFromConfig(ISettings* config)
m_useProxyAuthentication = config->value(QLatin1String("UseProxyAuthentication"), m_useProxyAuthentication).toBool();
m_proxyUserName = config->value(QLatin1String("ProxyUserName"), m_proxyUserName).toString();
m_proxyPassword = config->value(QLatin1String("ProxyPassword"), m_proxyPassword).toString();
#ifdef Q_OS_WIN32
m_browser = config->value(QLatin1String("Browser"), QString()).toString();
if (m_browser.isEmpty()) {
setDefaultBrowser();
}
config->endGroup();
}
void NetworkConfig::setDefaultBrowser()
{
#ifdef Q_OS_WIN32
if (m_browser.isEmpty()) {
m_browser = QString::fromLocal8Bit(qgetenv("ProgramFiles"));
m_browser += QLatin1String("\\Internet Explorer\\IEXPLORE.EXE");
}
#else
m_browser = config->value(QLatin1String("Browser"), QString::fromLatin1(defaultBrowser)).toString();
m_browser = QString::fromLatin1(defaultBrowser);
#endif
config->endGroup();
}
void NetworkConfig::setProxy(const QString& proxy)
......
......@@ -109,6 +109,11 @@ public:
/** Set if proxy authentication is used. */
void setUseProxyAuthentication(bool useProxyAuthentication);
/**
* Set default web browser.
*/
void setDefaultBrowser();
signals:
/** Emitted when @a proxy changed. */
void proxyChanged(const QString& proxy);
......
......@@ -34,15 +34,6 @@ namespace {
/** Default value for comment name */
const char* const defaultCommentName = "COMMENT";
/** Default to filename format list */
const char* defaultPluginOrder[] = {
"Id3libMetadata",
"OggFlacMetadata",
"Mp4v2Metadata",
"TaglibMetadata",
0
};
/** Index of latin-1 entry in getTextEncodingV1Names(). */
enum { TextEncodingV1Latin1Index = 13 };
......@@ -161,9 +152,27 @@ void TagConfig::readFromConfig(ISettings* config)
config->endGroup();
if (m_pluginOrder.isEmpty()) {
for (const char** pn = defaultPluginOrder; *pn != 0; ++pn) {
m_pluginOrder += QString::fromLatin1(*pn);
}
setDefaultPluginOrder();
}
}
/**
* Set default plugin order.
*/
void TagConfig::setDefaultPluginOrder()
{
/** Default to filename format list */
static const char* const defaultPluginOrder[] = {
"Id3libMetadata",
"OggFlacMetadata",
"Mp4v2Metadata",
"TaglibMetadata",
0
};
m_pluginOrder.clear();
for (const char* const* pn = defaultPluginOrder; *pn != 0; ++pn) {
m_pluginOrder += QString::fromLatin1(*pn);
}
}
......
......@@ -293,6 +293,11 @@ public:
*/
Q_INVOKABLE static QStringList getPictureNames();
/**
* Set default plugin order.
*/
void setDefaultPluginOrder();
signals:
/** Emitted when @a taggedFileFeatures changed. */
void taggedFileFeaturesChanged(int taggedFileFeatures);
......
......@@ -98,65 +98,74 @@ void UserActionsConfig::readFromConfig(ISettings* config)
config->endGroup();
if (cmdNr == 1) {
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QString(), QLatin1String("@separator")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Album Art"), QLatin1String("@beginmenu")));
setDefaultUserActions();
}
}
/**
* Set default user actions.
*/
void UserActionsConfig::setDefaultUserActions()
{
m_contextMenuCommands.clear();
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QString(), QLatin1String("@separator")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Album Art"), QLatin1String("@beginmenu")));
#ifdef HAVE_QML
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Resize Album Art"), QLatin1String("@qml %{qmlpath}/script/ResizeAlbumArt.qml"), false, true));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Extract Album Art"), QLatin1String("@qml %{qmlpath}/script/ExtractAlbumArt.qml"), false, true));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Embed Album Art"), QLatin1String("@qml %{qmlpath}/script/EmbedAlbumArt.qml"), false, true));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Resize Album Art"), QLatin1String("@qml %{qmlpath}/script/ResizeAlbumArt.qml"), false, true));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Extract Album Art"), QLatin1String("@qml %{qmlpath}/script/ExtractAlbumArt.qml"), false, true));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Embed Album Art"), QLatin1String("@qml %{qmlpath}/script/EmbedAlbumArt.qml"), false, true));
#endif
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Google Images"), QLatin1String("%{browser} http://www.google.com/search?tbm=isch&q=%u{artist}%20%u{album}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Amazon"), QLatin1String("%{browser} http://www.amazon.com/s?search-alias=aps&field-keywords=%u{artist}+%u{album}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QString(), QLatin1String("@endmenu")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Lyrics"), QLatin1String("@beginmenu")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("LyricWiki"), QLatin1String("%{browser} http://lyricwiki.org/%u{artist}:%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Google Images"), QLatin1String("%{browser} http://www.google.com/search?tbm=isch&q=%u{artist}%20%u{album}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Amazon"), QLatin1String("%{browser} http://www.amazon.com/s?search-alias=aps&field-keywords=%u{artist}+%u{album}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QString(), QLatin1String("@endmenu")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Lyrics"), QLatin1String("@beginmenu")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("LyricWiki"), QLatin1String("%{browser} http://lyricwiki.org/%u{artist}:%u{title}")));
#ifdef HAVE_QML
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Embed Lyrics"), QLatin1String("@qml %{qmlpath}/script/EmbedLyrics.qml"), false, true));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Embed Lyrics"), QLatin1String("@qml %{qmlpath}/script/EmbedLyrics.qml"), false, true));
#endif
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Lyrics.com"), QLatin1String("%{browser} http://www.lyrics.com/search.php?what=all&keyword=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("AZLyrics"), QLatin1String("%{browser} http://search.azlyrics.com/search.php?q=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Dark Lyrics"), QLatin1String("%{browser} http://www.darklyrics.com/search?q=%u{album}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Metro Lyrics"), QLatin1String("%{browser} http://www.metrolyrics.com/search.php?category=artisttitle&search=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("SongLyrics"), QLatin1String("%{browser} http://www.songlyrics.com/index.php?section=search&searchW=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("LyricsMode"), QLatin1String("%{browser} http://www.lyricsmode.com/search.php?search=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Lyrster"), QLatin1String("%{browser} http://www.lyrster.com/songs-lyrics/%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("MP3 Lyrics"), QLatin1String("%{browser} http://mp3lyrics.com/Search/Advanced/?Track=%u{title}&Artist=%u{artist}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("LRC123"), QLatin1String("%{browser} http://www.lrc123.com/?keyword=%u{artist}+%u{title}&field=all")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("LyrDB LRC"), QLatin1String("%{browser} http://lyrdb.com/karaoke/index.htm?q=%u{artist}+%u{title}&action=search")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QString(), QLatin1String("@endmenu")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Lyrics.com"), QLatin1String("%{browser} http://www.lyrics.com/search.php?what=all&keyword=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("AZLyrics"), QLatin1String("%{browser} http://search.azlyrics.com/search.php?q=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Dark Lyrics"), QLatin1String("%{browser} http://www.darklyrics.com/search?q=%u{album}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Metro Lyrics"), QLatin1String("%{browser} http://www.metrolyrics.com/search.php?category=artisttitle&search=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("SongLyrics"), QLatin1String("%{browser} http://www.songlyrics.com/index.php?section=search&searchW=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("LyricsMode"), QLatin1String("%{browser} http://www.lyricsmode.com/search.php?search=%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("Lyrster"), QLatin1String("%{browser} http://www.lyrster.com/songs-lyrics/%u{artist}+%u{title}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("MP3 Lyrics"), QLatin1String("%{browser} http://mp3lyrics.com/Search/Advanced/?Track=%u{title}&Artist=%u{artist}")));
m_contextMenuCommands.push_back(
UserActionsConfig::MenuCommand(QLatin1String("LRC123"), QLatin1String("%{browser} http://www.lrc123.com/?keyword=%u{artist}+%u{title}&field=all")));