summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/viewplugins/screenshot/main.cpp
blob: 0a004a87027d557db47691702fed63a861bc7645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <kapplication.h>
#include "ksnapshot.h"
#include <kimageio.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <kiconloader.h>

static const char description[] =
    I18N_NOOP("TDE Screenshot Utility");

int main(int argc, char **argv)
{
  KAboutData aboutData( "ksnapshot", I18N_NOOP("KSnapshot"),
    KSNAPVERSION, description, KAboutData::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, "[email protected]");
  aboutData.addAuthor("Matthias Ettrich",0, "[email protected]");
  aboutData.addAuthor("Aaron J. Seigo", 0, "[email protected]");
  aboutData.addCredit( "Nadeem Hasan", "Region Grabbing\nReworked GUI",
      "[email protected]" );
  KCmdLineArgs::init( argc, argv, &aboutData );

  KApplication 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();
}