Fix compile/link
[kdeaccessibility.git] / kmag / main.cpp
blob42f46eafb643d5d3122a1717de96b23739bf6b43
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 ***************************************************************************/
19 #include <kcmdlineargs.h>
20 #include <kaboutdata.h>
21 #include <klocale.h>
23 #include "kmag.h"
25 #include "version.h"
27 KmagApp *kmagapp;
29 // Not needed, not used.
30 //static const char description[] =
31 // I18N_NOOP("Kmag");
32 // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
35 static KCmdLineOptions options[] =
37 { "+[File]", I18N_NOOP("File to open"), 0 },
38 KCmdLineLastOption
39 // INSERT YOUR COMMANDLINE OPTIONS HERE
42 int main(int argc, char *argv[])
44 // about the application
45 KAboutData *aboutData = new KAboutData("kmag", I18N_NOOP("KMagnifier"), KMAG_VERSION,
46 I18N_NOOP("Screen magnifier for the K Desktop Environment (KDE)"),
47 KAboutData::License_GPL,
48 "(C) 2001-2003, Sarang Lakare","",
49 "http://kmag.sourceforge.net");
51 // about the authors
52 aboutData->addAuthor("Sarang Lakare",
53 I18N_NOOP("Rewrite and current maintainer"),"sarang@users.sf.net",
54 "http://www.cs.sunysb.edu/~lsarang/linux");
55 aboutData->addAuthor("Michael Forster",
56 I18N_NOOP("Original idea and author (KDE1)"), "forster@fmi.uni-passau.de");
58 aboutData->addCredit("Olaf Schmidt", I18N_NOOP("Rework of the user interface, improved selection window, speed optimisation, rotation, bug fixes"), "ojschmidt@kde.org");
59 aboutData->addCredit("Claudiu Costin", I18N_NOOP("Some tips"), "claudiuc@work.ro",
60 "http://www.ro.kde.org");
62 KCmdLineArgs::init( argc, argv, aboutData );
63 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
65 KApplication app;
67 if (app.isRestored())
69 RESTORE(KmagApp);
71 else
73 kmagapp = new KmagApp();
74 kmagapp->show();
76 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
78 args->clear();
81 return app.exec();