factorize
[kdegraphics.git] / kruler / main.cpp
blob55de6c16f2541e312da3b8d4b442afd88954df20
1 /***************************************************************************
2 main.cpp - description
3 -------------------
4 copyright : (C) 2000 by Till Krech
5 email : till@snafu.de
6 ***************************************************************************/
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 ***************************************************************************/
17 #include <kapplication.h>
18 #include <kdeversion.h>
19 #include <kcmdlineargs.h>
20 #include <kaboutdata.h>
21 #include <klocale.h>
23 #include "klineal.h"
25 int main(int argc, char *argv[])
27 KAboutData aboutData( "kruler", 0, ki18n("KDE Screen Ruler"),
28 KDE_VERSION_STRING,
29 ki18n("A screen ruler for the K Desktop Environment"),
30 KAboutData::License_GPL,
31 ki18n("(c) 2000, Till Krech"));
32 aboutData.addAuthor(ki18n("Till Krech"),ki18n("Programming"), "till@snafu.de");
33 aboutData.addCredit(ki18n("Gunnstein Lye"),ki18n("Initial port to KDE 2"), "gl@ez.no");
34 KCmdLineArgs::init( argc, argv, &aboutData );
36 KCmdLineOptions options;
37 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
39 KApplication a;
41 KLineal *ruler = new KLineal();
42 ruler->show();
44 return a.exec();