Now kde doesn't use .la file
[kdeaccessibility.git] / kmag / main.cpp
blob8977cbc5fc5c536bb8490f53544e7713cef382e9
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>
22 #include <ktoggleaction.h>
23 #include <kselectaction.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 static KCmdLineOptions options[] =
38 { "+[File]", I18N_NOOP("File to open"), 0 },
39 KCmdLineLastOption
40 // INSERT YOUR COMMANDLINE OPTIONS HERE
43 int main(int argc, char *argv[])
45 // about the application
46 KAboutData *aboutData = new KAboutData("kmag", I18N_NOOP("KMagnifier"), KMAG_VERSION,
47 I18N_NOOP("Screen magnifier for the K Desktop Environment (KDE)"),
48 KAboutData::License_GPL,
49 "(C) 2001-2003, Sarang Lakare","",
50 "http://kmag.sourceforge.net");
52 // about the authors
53 aboutData->addAuthor("Sarang Lakare",
54 I18N_NOOP("Rewrite and current maintainer"),"sarang@users.sf.net",
55 "http://www.cs.sunysb.edu/~lsarang/linux");
56 aboutData->addAuthor("Michael Forster",
57 I18N_NOOP("Original idea and author (KDE1)"), "forster@fmi.uni-passau.de");
59 aboutData->addCredit("Olaf Schmidt", I18N_NOOP("Rework of the user interface, improved selection window, speed optimization, rotation, bug fixes"), "ojschmidt@kde.org");
60 aboutData->addCredit("Claudiu Costin", I18N_NOOP("Some tips"), "claudiuc@work.ro",
61 "http://www.ro.kde.org");
63 KCmdLineArgs::init( argc, argv, aboutData );
64 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
66 KApplication app;
68 if (app.isSessionRestored())
70 RESTORE(KmagApp);
72 else
74 kmagapp = new KmagApp();
75 kmagapp->show();
77 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
79 args->clear();
82 return app.exec();