KOffice – TDE office suite
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.

39 lines
1.2KB

  1. #include <tdeapplication.h>
  2. #include "ksnapshot.h"
  3. #include <kimageio.h>
  4. #include <tdelocale.h>
  5. #include <tdecmdlineargs.h>
  6. #include <tdeaboutdata.h>
  7. #include <kiconloader.h>
  8. static const char description[] =
  9. I18N_NOOP("TDE Screenshot Utility");
  10. int main(int argc, char **argv)
  11. {
  12. TDEAboutData aboutData( "ksnapshot", I18N_NOOP("KSnapshot"),
  13. KSNAPVERSION, description, TDEAboutData::License_GPL,
  14. "(c) 1997-2003, Richard J. Moore,\n(c) 2000, Matthias Ettrich,\n(c) 2002-2003 Aaron J. Seigo");
  15. aboutData.addAuthor("Richard J. Moore",0, "rich@kde.org");
  16. aboutData.addAuthor("Matthias Ettrich",0, "ettrich@kde.org");
  17. aboutData.addAuthor("Aaron J. Seigo", 0, "aseigo@kde.org");
  18. aboutData.addCredit( "Nadeem Hasan", "Region Grabbing\nReworked GUI",
  19. "nhasan@kde.org" );
  20. TDECmdLineArgs::init( argc, argv, &aboutData );
  21. TDEApplication app;
  22. KImageIO::registerFormats();
  23. // Create top level window
  24. KSnapshot *toplevel= new KSnapshot();
  25. TQ_CHECK_PTR(toplevel);
  26. app.dcopClient()->setDefaultObject( toplevel->objId() );
  27. toplevel->setCaption( app.makeStdCaption("") );
  28. toplevel->setIcon(SmallIcon("tool_screenshot"));
  29. app.setMainWidget(toplevel);
  30. toplevel->show();
  31. return app.exec();
  32. }