comparison main/main.cpp @ 465:b3b9cc8f5466 integration_library

Merge with the Kiosk branch
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 19:38:50 +0100
parents 4bccf2014f80 d70890996156
children 33d0632255b5
comparison
equal deleted inserted replaced
463:0ef4943f55ae 465:b3b9cc8f5466
243 bool audioOutput = true; 243 bool audioOutput = true;
244 bool oscSupport = true; 244 bool oscSupport = true;
245 245
246 if (args.contains("--help") || args.contains("-h") || args.contains("-?")) { 246 if (args.contains("--help") || args.contains("-h") || args.contains("-?")) {
247 std::cerr << QApplication::tr( 247 std::cerr << QApplication::tr(
248 "\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]) << std::endl; 248 "\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;
249 exit(2); 249 exit(2);
250 } 250 }
251 251
252 if (args.contains("--no-audio")) audioOutput = false; 252 if (args.contains("--no-audio")) audioOutput = false;
253 if (args.contains("--no-osc")) oscSupport = false; 253 if (args.contains("--no-osc")) oscSupport = false;
254 254
255 QApplication::setOrganizationName("sonic-visualiser"); 255 QApplication::setOrganizationName("sonic-visualiser");
256 QApplication::setOrganizationDomain("sonicvisualiser.org"); 256 QApplication::setOrganizationDomain("sonicvisualiser.org");
257 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser")); 257 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser (Kiosk edition)"));
258 258
259 QSplashScreen *splash = 0; 259 QSplashScreen *splash = 0;
260 260
261 QSettings settings; 261 QSettings settings;
262 262