1/***************************************************************************
2 main.cpp - description
3 -------------------
4 Copyright : (C) 2000 - 2008 by Till Krech <till@snafu.de>
5 (C) 2009 by Mathias Soeken <msoeken@tzi.de>
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#include <kapplication.h>
18#include <kdeversion.h>
19#include <kcmdlineargs.h>
20#include <kaboutdata.h>
21#include <klocale.h>
22
23#include "klineal.h"
24
25int main(int argc, char *argv[])
26{
27 KAboutData aboutData( "kruler", 0, ki18n( "KDE Screen Ruler" ),
28 KDE_VERSION_STRING,
29 ki18n( "A screen ruler for KDE" ),
30 KAboutData::License_GPL,
31 ki18n( "(c) 2000 - 2008, Till Krech\n(c) 2009, Mathias Soeken" ) );
32 aboutData.addAuthor( ki18n( "Mathias Soeken" ), ki18n( "Maintainer" ), "msoeken@tzi.de" );
33 aboutData.addAuthor( ki18n( "Till Krech" ), ki18n( "Former Maintainer and Developer" ), "till@snafu.de" );
34 aboutData.addCredit( ki18n( "Gunnstein Lye" ),ki18n( "Initial port to KDE 2" ), "gl@ez.no" );
35 KCmdLineArgs::init( argc, argv, &aboutData );
36
37 KCmdLineOptions options;
38 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
39
40 KApplication a;
41
42 KLineal *ruler = new KLineal();
43 ruler->show();
44 int ret = a.exec();
45 delete ruler;
46 return ret;
47}
48