Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 406:d70890996156 kiosk
Modifications for the Kiosk edition
author | mathieub <mathieu.barthet@eecs.qmul.ac.uk> |
---|---|
date | Tue, 22 Mar 2011 14:29:38 +0000 |
parents | 3d1c69b2215e |
children | b3b9cc8f5466 |
comparison
equal
deleted
inserted
replaced
388:5c4943eae166 | 406:d70890996156 |
---|---|
232 bool audioOutput = true; | 232 bool audioOutput = true; |
233 bool oscSupport = true; | 233 bool oscSupport = true; |
234 | 234 |
235 if (args.contains("--help") || args.contains("-h") || args.contains("-?")) { | 235 if (args.contains("--help") || args.contains("-h") || args.contains("-?")) { |
236 std::cerr << QApplication::tr( | 236 std::cerr << QApplication::tr( |
237 "\nSonic Visualiser is a program for viewing and exploring audio data\nfor semantic music analysis and annotation.\n\nUsage:\n\n %1 [--no-audio] [--no-osc] [<file> ...]\n\n --no-audio: Do not attempt to open an audio output device\n --no-osc: Do not provide an Open Sound Control port for remote control\n <file>: One or more Sonic Visualiser (.sv) and audio files may be provided.\n").arg(argv[0]).toStdString() << std::endl; | 237 "\nSonic Visualiser is a program for viewing and exploring audio data\nfor semantic music analysis and annotation. The Kiosk edition provides all of the features of the full Sonic Visualiser, except that audio files cannot be saved from it.\n\nUsage:\n\n %1 [--no-audio] [--no-osc] [<file> ...]\n\n --no-audio: Do not attempt to open an audio output device\n --no-osc: Do not provide an Open Sound Control port for remote control\n <file>: One or more Sonic Visualiser (.sv) and audio files may be provided.\n").arg(argv[0]).toStdString() << std::endl; |
238 exit(2); | 238 exit(2); |
239 } | 239 } |
240 | 240 |
241 if (args.contains("--no-audio")) audioOutput = false; | 241 if (args.contains("--no-audio")) audioOutput = false; |
242 if (args.contains("--no-osc")) oscSupport = false; | 242 if (args.contains("--no-osc")) oscSupport = false; |
243 | 243 |
244 QApplication::setOrganizationName("sonic-visualiser"); | 244 QApplication::setOrganizationName("sonic-visualiser"); |
245 QApplication::setOrganizationDomain("sonicvisualiser.org"); | 245 QApplication::setOrganizationDomain("sonicvisualiser.org"); |
246 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser")); | 246 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser (Kiosk edition)")); |
247 | 247 |
248 QSplashScreen *splash = 0; | 248 QSplashScreen *splash = 0; |
249 | 249 |
250 QSettings settings; | 250 QSettings settings; |
251 | 251 |