aboutsummaryrefslogtreecommitdiff
path: root/src/app/builtincommandlineoption.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-03-05 17:40:01 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-03-05 17:40:01 +0000
commit2f376a7ebcfc4103b50c523eff7655f619c77353 (patch)
tree219a408556740105141949a920bda942441e7f0d /src/app/builtincommandlineoption.cpp
parentf731ee7de3fe936c65349d70650fe90045e79c8e (diff)
downloadqmmp-2f376a7ebcfc4103b50c523eff7655f619c77353.tar.gz
qmmp-2f376a7ebcfc4103b50c523eff7655f619c77353.tar.bz2
qmmp-2f376a7ebcfc4103b50c523eff7655f619c77353.zip
changed command line api
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7069 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/app/builtincommandlineoption.cpp')
-rw-r--r--src/app/builtincommandlineoption.cpp37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/app/builtincommandlineoption.cpp b/src/app/builtincommandlineoption.cpp
index 4481b369b..e26b685f6 100644
--- a/src/app/builtincommandlineoption.cpp
+++ b/src/app/builtincommandlineoption.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2014 by Ilya Kotov *
+ * Copyright (C) 2008-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -65,25 +65,24 @@ bool BuiltinCommandLineOption::identify(const QString &str) const
return m_options.contains(str);
}
-const QString BuiltinCommandLineOption::helpString() const
+const QStringList BuiltinCommandLineOption::helpString() const
{
- return QString(
- "-e, --enqueue "+tr("Don't clear the playlist") + "\n" +
- "-p, --play "+tr("Start playing current song")+"\n" +
- "-u, --pause "+tr("Pause current song")+ "\n"
- "-t, --play-pause "+tr("Pause if playing, play otherwise")+ "\n"
- "-s, --stop "+tr("Stop current song")+ "\n" +
- "-j, --jump-to-file "+tr("Display Jump to File dialog")+ "\n" +
- "-q, --quit "+tr("Quit application") + "\n" +
- "--volume <0..100> "+tr("Set playback volume (example: qmmp --volume 20)") + "\n"
- "--toggle-mute "+tr("Mute/Restore volume") + "\n"
- "--next "+tr("Skip forward in playlist")+ "\n" +
- "--previous "+tr("Skip backwards in playlist")+"\n" +
- "--toggle-visibility "+tr("Show/hide application")+ "\n" +
- "--show-mw "+tr("Show main window") + "\n" +
- "--add-file "+tr("Display Add File dialog")+ "\n" +
- "--add-dir "+tr("Display Add Directory dialog")
- );
+ return QStringList()
+ << QString("-e, --enqueue") + "||" + tr("Don't clear the playlist")
+ << QString("-p, --play") + "||" + tr("Start playing current song")
+ << QString("-u, --pause") + "||" + tr("Pause current song")
+ << QString("-t, --play-pause") + "||" + tr("Pause if playing, play otherwise")
+ << QString("-s, --stop") + "||" + tr("Stop current song")
+ << QString("-j, --jump-to-file") + "||" + tr("Display Jump to File dialog")
+ << QString("-q, --quit") + "||" + tr("Quit application")
+ << QString("--volume <0..100>") + "||" + tr("Set playback volume (example: qmmp --volume 20)")
+ << QString("--toggle-mute") + "||" + tr("Mute/Restore volume")
+ << QString("--next") + "||" + tr("Skip forward in playlist")
+ << QString("--previous") + "||" + tr("Skip backwards in playlist")
+ << QString("--toggle-visibility") + "||" + tr("Show/hide application")
+ << QString("--show-mw") + "||" + tr("Show main window")
+ << QString("--add-file") + "||" + tr("Display Add File dialog")
+ << QString("--add-dir") + "||" + tr("Display Add Directory dialog");
}
void BuiltinCommandLineOption::executeCommand(const QString &option_string,