Remove this line
[kdeaccessibility.git] / kmag / main.cpp
blob27ccd113c095cdf412977e60a1f82b99d7b531a4
1 /***************************************************************************
2 main.cpp - description
3 -------------------
4 begin : Mon Feb 12 23:45:41 EST 2001
5 copyright : (C) 2001-2003 by Sarang Lakare
6 email : sarang#users.sf.net
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #include <kcmdlineargs.h>
19 #include <kaboutdata.h>
20 #include <klocale.h>
21 #include <ktoggleaction.h>
22 #include <kselectaction.h>
23 #include <kapplication.h>
24 #include "kmag.h"
26 #include "version.h"
28 KmagApp *kmagapp;
30 // Not needed, not used.
31 //static const char description[] =
32 // I18N_NOOP("Kmag");
33 // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
36 int main(int argc, char *argv[])
38 // about the application
39 KAboutData *aboutData = new KAboutData("kmag", 0, ki18n("KMagnifier"), KMAG_VERSION,
40 ki18n("Screen magnifier for the K Desktop Environment (KDE)"),
41 KAboutData::License_GPL,
42 ki18n("Copyright 2001-2003 Sarang Lakare\nCopyright 2003-2004 Olaf Schmidt\nCopyright 2008 Matthew Woehlke"), KLocalizedString(),
43 "http://accessibility.kde.org/");
45 // about the authors
46 aboutData->addAuthor(ki18n("Sarang Lakare"),
47 ki18n("Rewrite"),"sarang@users.sf.net",
48 "http://www.cs.sunysb.edu/~lsarang/linux");
49 aboutData->addAuthor(ki18n("Michael Forster"),
50 ki18n("Original idea and author (KDE1)"), "forster@fmi.uni-passau.de");
52 aboutData->addAuthor(ki18n("Olaf Schmidt"), ki18n("Rework of the user interface, improved selection window, speed optimization, rotation, bug fixes"), "ojschmidt@kde.org");
53 aboutData->addCredit(ki18n("Matthew Woehlke"), ki18n("Color-blindness simulation"), "mw_triad@users.sourceforge.net");
54 aboutData->addCredit(ki18n("Claudiu Costin"), ki18n("Some tips"), "claudiuc@work.ro",
55 "http://www.ro.kde.org");
57 KCmdLineArgs::init( argc, argv, aboutData );
59 KCmdLineOptions options;
60 options.add("+[File]", ki18n("File to open"));
61 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
63 KApplication app;
65 if (app.isSessionRestored())
67 RESTORE(KmagApp);
69 else
71 kmagapp = new KmagApp();
72 kmagapp->show();
74 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
76 args->clear();
79 return app.exec();