Filelight – graphical disk usage analyzer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
1.7 KiB

  1. //Author: Max Howell <max.howell@methylblue.com>, (C) 2003-4
  2. //Copyright: See COPYING file that comes with this distribution
  3. #include "define.h"
  4. #include <tdeaboutdata.h>
  5. #include <tdeapplication.h>
  6. #include <tdecmdlineargs.h>
  7. #include <tdelocale.h>
  8. #include <kurl.h>
  9. #include "mainWindow.h"
  10. static const TDECmdLineOptions options[] =
  11. {
  12. { "+[path]", I18N_NOOP( "Scan 'path'" ), 0 },
  13. { 0, 0, 0 }
  14. };
  15. static TDEAboutData about(
  16. APP_NAME, I18N_NOOP( APP_PRETTYNAME ), APP_VERSION,
  17. I18N_NOOP("Graphical disk-usage information"), TDEAboutData::License_GPL_V2,
  18. I18N_NOOP("(C )2006 Max Howell"), 0,
  19. "http://www.methylblue.com/filelight/", "filelight@methylblue.com" );
  20. int main( int argc, char *argv[] )
  21. {
  22. using Filelight::MainWindow;
  23. about.addAuthor( "Max Howell", I18N_NOOP("Author, maintainer"), "max.howell@methylblue.com", "http://www.methylblue.com/" );
  24. about.addAuthor( "Mike Diehl", I18N_NOOP("Documentation"), 0, 0 );
  25. about.addCredit( "Steffen Gerlach", I18N_NOOP("Inspiration"), 0, "http://www.steffengerlach.de/" );
  26. about.addCredit( "André Somers", I18N_NOOP("Internationalization") );
  27. about.addCredit( "Stephanie James", I18N_NOOP("Testing") );
  28. about.addCredit( "Marcus Camen", I18N_NOOP("Bravery in the face of unreadable code") );
  29. TDECmdLineArgs::init( argc, argv, &about );
  30. TDECmdLineArgs::addCmdLineOptions( options );
  31. TDEApplication app;
  32. if (!app.isRestored()) {
  33. MainWindow *mw = new MainWindow();
  34. app.setMainWidget( mw );
  35. TDECmdLineArgs* const args = TDECmdLineArgs::parsedArgs();
  36. if (args->count() > 0 ) mw->scan( args->url( 0 ));
  37. args->clear();
  38. mw->show();
  39. }
  40. else RESTORE( MainWindow );
  41. return app.exec();
  42. }