int main(int argc, char **argv) { KAboutData aboutData( "ksnapshot", I18N_NOOP("KSnapshot"), KSNAPVERSION, description, KAboutData::License_GPL, "(c) 1997-2004, Richard J. Moore,\n(c) 2000, Matthias Ettrich,\n(c) 2002-2003 Aaron J. Seigo"); aboutData.addAuthor("Richard J. Moore",0, "*****@*****.**"); aboutData.addAuthor("Matthias Ettrich",0, "*****@*****.**"); aboutData.addAuthor("Aaron J. Seigo", 0, "*****@*****.**"); aboutData.addCredit( "Nadeem Hasan", I18N_NOOP("Region Grabbing\nReworked GUI"), "*****@*****.**" ); KCmdLineArgs::init( argc, argv, &aboutData ); KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); KApplication app; KImageIO::registerFormats(); // Create top level window KSnapshot *toplevel; if ( args->isSet( "current" ) ) toplevel = new KSnapshot( 0, 0, true ); else toplevel = new KSnapshot(); args->clear(); app.dcopClient()->setDefaultObject( toplevel->objId() ); toplevel->setCaption( app.makeStdCaption("") ); app.setMainWidget(toplevel); toplevel->show(); return app.exec(); }