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 ***************************************************************************/
8
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 ***************************************************************************/
17
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"
25
26#include "version.h"
27
28KmagApp *kmagapp;
29
30// Not needed, not used.
31//static const char description[] =
32// I18N_NOOP("Kmag");
33// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
34
35
36int main(int argc, char *argv[])
37{
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/");
44
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");
51 aboutData->addAuthor(ki18n("Olaf Schmidt"), ki18n("Rework of the user interface, improved selection window, speed optimization, rotation, bug fixes"), "ojschmidt@kde.org");
52 aboutData->addCredit(ki18n("Matthew Woehlke"), ki18n("Color-blindness simulation"), "mw_triad@users.sourceforge.net");
53 aboutData->addCredit(ki18n("Sebastian Sauer"), ki18n("Focus tracking"), "sebsauer@kdab.com");
54 aboutData->addCredit(ki18n("Claudiu Costin"), ki18n("Some tips"), "claudiuc@work.ro", "http://www.ro.kde.org");
55
56 KCmdLineArgs::init( argc, argv, aboutData );
57
58 KCmdLineOptions options;
59 options.add("+[File]", ki18n("File to open"));
60 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
61
62 KApplication app;
63
64 if (app.isSessionRestored())
65 {
66 RESTORE(KmagApp);
67 }
68 else
69 {
70 kmagapp = new KmagApp();
71 kmagapp->show();
72
73 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
74
75 args->clear();
76 }
77
78 return app.exec();
79}
80