- Timestamp:
- 10/12/11 21:20:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
r12173 r12175 2443 2443 2444 2444 2445 void PrintUsage() 2446 { 2447 cout << "\n" 2448 "The FACT++ raw data viewer.\n" 2449 "\n" 2450 "Usage: viewer [OPTIONS] [datafile.fits[.gz] [calibration.drs.fits[.gz]]]\n" 2451 " or: viewer [OPTIONS]\n"; 2452 cout << endl; 2453 2454 } 2455 2445 2456 void PrintHelp() 2446 2457 { … … 2471 2482 * MAIN PROGRAM FUNCTION. 2472 2483 ************************************************************/ 2473 int main(int argc, char *argv[]) 2474 { 2475 QApplication app(argc, argv); 2484 int main(int argc, const char *argv[]) 2485 { 2486 Configuration conf(argv[0]); 2487 conf.SetPrintUsage(PrintUsage); 2488 SetupConfiguration(conf); 2489 if (!conf.DoParse(argc, argv, PrintHelp)) 2490 return -1; 2491 2492 QApplication app(argc, const_cast<char**>(argv)); 2476 2493 2477 2494 if (!QGLFormat::hasOpenGL()) { … … 2488 2505 2489 2506 RawDataViewer *canvas = myUi.GLWindow; 2490 2491 Configuration conf(argv[0]);2492 conf.SetPrintUsage(PrintHelp);2493 SetupConfiguration(conf);2494 if (!conf.DoParse(argc, const_cast<const char**>(argv), PrintHelp))2495 return -1;2496 2507 2497 2508 if (conf.Has("color.range"))
Note:
See TracChangeset
for help on using the changeset viewer.