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.2 KiB
39 lines
1.2 KiB
#include <tdeapplication.h>
|
|
#include "ksnapshot.h"
|
|
#include <kimageio.h>
|
|
#include <tdelocale.h>
|
|
#include <tdecmdlineargs.h>
|
|
#include <tdeaboutdata.h>
|
|
#include <kiconloader.h>
|
|
|
|
static const char description[] =
|
|
I18N_NOOP("TDE Screenshot Utility");
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
TDEAboutData aboutData( "ksnapshot", I18N_NOOP("KSnapshot"),
|
|
KSNAPVERSION, description, TDEAboutData::License_GPL,
|
|
"(c) 1997-2003, Richard J. Moore,\n(c) 2000, Matthias Ettrich,\n(c) 2002-2003 Aaron J. Seigo");
|
|
aboutData.addAuthor("Richard J. Moore",0, "rich@kde.org");
|
|
aboutData.addAuthor("Matthias Ettrich",0, "ettrich@kde.org");
|
|
aboutData.addAuthor("Aaron J. Seigo", 0, "aseigo@kde.org");
|
|
aboutData.addCredit( "Nadeem Hasan", "Region Grabbing\nReworked GUI",
|
|
"nhasan@kde.org" );
|
|
TDECmdLineArgs::init( argc, argv, &aboutData );
|
|
|
|
TDEApplication app;
|
|
|
|
KImageIO::registerFormats();
|
|
|
|
// Create top level window
|
|
KSnapshot *toplevel= new KSnapshot();
|
|
TQ_CHECK_PTR(toplevel);
|
|
app.dcopClient()->setDefaultObject( toplevel->objId() );
|
|
toplevel->setCaption( app.makeStdCaption("") );
|
|
toplevel->setIcon(SmallIcon("tool_screenshot"));
|
|
app.setMainWidget(toplevel);
|
|
toplevel->show();
|
|
return app.exec();
|
|
}
|
|
|