Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 2241:c517286ee999 single-point
Doc update
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2019 13:42:03 +0000 |
parents | ca0ee1fe88c7 |
children | a54082a29106 eb7f4579e5cc |
comparison
equal
deleted
inserted
replaced
2240:ca0ee1fe88c7 | 2241:c517286ee999 |
---|---|
255 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser")); | 255 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser")); |
256 QApplication::setApplicationVersion(SV_VERSION); | 256 QApplication::setApplicationVersion(SV_VERSION); |
257 | 257 |
258 //!!! todo hand-update translations | 258 //!!! todo hand-update translations |
259 QCommandLineParser parser; | 259 QCommandLineParser parser; |
260 parser.setApplicationDescription(QApplication::tr("Sonic Visualiser is a program for viewing and exploring audio data\nfor semantic music analysis and annotation.")); | 260 parser.setApplicationDescription(QApplication::tr("\nSonic Visualiser is a program for viewing and exploring audio data\nfor semantic music analysis and annotation.")); |
261 parser.addHelpOption(); | 261 parser.addHelpOption(); |
262 parser.addVersionOption(); | 262 parser.addVersionOption(); |
263 | 263 |
264 parser.addOptions({ | 264 parser.addOptions({ |
265 { "no-audio", QApplication::tr | 265 { "no-audio", QApplication::tr |
267 { "no-osc", QApplication::tr | 267 { "no-osc", QApplication::tr |
268 ("Do not provide an Open Sound Control port for remote control.") }, | 268 ("Do not provide an Open Sound Control port for remote control.") }, |
269 { "no-splash", QApplication::tr | 269 { "no-splash", QApplication::tr |
270 ("Do not show a splash screen.") }, | 270 ("Do not show a splash screen.") }, |
271 { "osc-script", QApplication::tr | 271 { "osc-script", QApplication::tr |
272 ("Batch run the OSC script found in the given file. Scripts consist of /command arg1 arg2 ... OSC control lines, optionally interleaved with numbers to specify pauses in seconds."), | 272 ("Batch run the Open Sound Control script found in the given file. Supply \"-\" as file to read from stdin. Scripts consist of /command arg1 arg2 ... OSC control lines, optionally interleaved with numbers to specify pauses in seconds."), |
273 "osc.txt" } | 273 "osc.txt" } |
274 }); | 274 }); |
275 | 275 |
276 parser.addPositionalArgument | 276 parser.addPositionalArgument |
277 ("[<file> ...]", QApplication::tr("One or more Sonic Visualiser (.sv) and audio files may be provided.")); | 277 ("[<file> ...]", QApplication::tr("One or more Sonic Visualiser (.sv) and audio files may be provided.")); |