parley
Go to the documentation of this file.
24 #include <kcmdlineargs.h>
25 #include <kaboutdata.h>
27 #include <kapplication.h>
34 int main(
int argc,
char* argv[])
36 static const char description[] = I18N_NOOP(
"Vocabulary Trainer");
39 KAboutData aboutData(
"parley", 0,
43 KAboutData::License_GPL,
44 ki18n(
"© 1999-2002\tEwald Arnold\n"
45 "© 2001-2002\tThe KDE team\n"
46 "© 2004-2007\tPeter Hedlund\n"
47 "© 2007-2010\tFrederik Gladhorn\n"),
48 ki18n(
"Helps you train your vocabulary"),
49 "http://edu.kde.org/parley",
50 "submit@bugs.kde.org");
52 aboutData.addAuthor(ki18n(
"Frederik Gladhorn"),
53 ki18n(
"Developer and maintainer"),
56 aboutData.addAuthor(ki18n(
"Daniel Laidig"),
60 aboutData.addAuthor(ki18n(
"David Capel"),
61 ki18n(
"Practice Dialogs"),
62 "wot.narg@gmail.com");
64 aboutData.addAuthor(ki18n(
"Avgoustinos Kadis"),
66 "avgoustinos.kadis@kdemail.net");
68 aboutData.addAuthor(ki18n(
"Peter Hedlund"),
69 ki18n(
"Countless fixes, former maintainer, port to KDE4"),
70 "peter.hedlund@kdemail.net");
72 aboutData.addAuthor(ki18n(
"Ewald Arnold"), ki18n(
"Original Author"),
73 "kvoctrain@ewald-arnold.de",
74 "http://www.ewald-arnold.de");
76 aboutData.addCredit(ki18n(
"Lee Olson"),
77 ki18n(
"Artwork and Oxygen Icons"));
79 aboutData.addCredit(ki18n(
"Anne-Marie Mahfouf"),
80 ki18n(
"Port to KConfig XT"));
82 aboutData.addCredit(ki18n(
"Jeremy Whiting"),
83 ki18n(
"Rewriting the kvtml library for KDE4"));
85 aboutData.addCredit(ki18n(
"Markus Büchele"),
86 ki18n(
"Bug reports and testing on the way to KDE4"));
88 aboutData.addCredit(ki18n(
"Ramona Knapp"),
89 ki18n(
"Conceived the name Parley"));
91 KCmdLineArgs::init(argc, argv, &aboutData);
93 KCmdLineOptions options;
95 options.add(
"p").add(
"practice", ki18n(
"Start practice instead of editor"));
96 options.add(I18N_NOOP(
"+[file]"), ki18n(
"Document file to open"));
98 KCmdLineArgs::addCmdLineOptions(options);
101 app.setQuitOnLastWindowClosed(
false);
104 KGlobal::locale()->insertCatalog(
"libkdeedu");
106 if (app.isSessionRestored()) {
108 while (KMainWindow::canBeRestored(n)){
114 KMainWindow *parleyApp;
116 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
118 bool practiceMode =
false;
121 practiceMode = args->isSet(
"p");
124 if (args && args->count() > 0) {
#define PARLEY_VERSION_STRING
int main(int argc, char *argv[])
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.