1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
/***************************************************************************
main.cpp - description
-------------------
begin : Mon Feb 12 23:45:41 EST 2001
copyright : (C) 2001-2003 by Sarang Lakare
email : sarang#users.sf.net
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
// Qt
#include <QApplication>
#include <QCommandLineParser>
// KF5
#include <KAboutData>
#include <KLocalizedString>
#include "kmag.h"
#include "kmag_version.h"
KmagApp *kmagapp;
// Not needed, not used.
//static const char description[] =
// I18N_NOOP("Kmag");
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
KLocalizedString::setApplicationDomain("kmag");
// about the application
KAboutData aboutData(QStringLiteral("kmag"), i18n("KMagnifier"), QStringLiteral(KMAG_VERSION_STRING),
i18n("Screen magnifier created by KDE"),
KAboutLicense::GPL,
i18n("Copyright 2001-2003 Sarang Lakare\nCopyright 2003-2004 Olaf Schmidt\nCopyright 2008 Matthew Woehlke"), QString(),
QStringLiteral("https://accessibility.kde.org/"));
// about the authors
aboutData.addAuthor(i18n("Sarang Lakare"),
i18n("Rewrite"),QStringLiteral("sarang@users.sf.net"));
aboutData.addAuthor(i18n("Michael Forster"),
i18n("Original idea and author (KDE1)"), QStringLiteral("forster@fmi.uni-passau.de"));
aboutData.addAuthor(i18n("Olaf Schmidt"), i18n("Rework of the user interface, improved selection window, speed optimization, rotation, bug fixes"), QStringLiteral("ojschmidt@kde.org"));
aboutData.addCredit(i18n("Matthew Woehlke"), i18n("Color-blindness simulation"), QStringLiteral("mw_triad@users.sourceforge.net"));
aboutData.addCredit(i18n("Sebastian Sauer"), i18n("Focus tracking"), QStringLiteral("sebsauer@kdab.com"));
aboutData.addCredit(i18n("Claudiu Costin"), i18n("Some tips"), QStringLiteral("claudiuc@work.ro"), QStringLiteral("https://ro.kde.org"));
KAboutData::setApplicationData(aboutData);
if (app.isSessionRestored())
{
kRestoreMainWindows<KmagApp>();
}
else
{
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
parser.process(app);
kmagapp = new KmagApp();
kmagapp->show();
}
return app.exec();
}
|