00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <kaboutdata.h>
00026 #include <kcmdlineargs.h>
00027 #include <klocale.h>
00028 #include <kapplication.h>
00029 #include "klettres.h"
00030 #include "version.h"
00031
00032 static const char description[] =
00033 I18N_NOOP("KLettres helps a very young child or an adult learning \n"
00034 "a new language by associating sounds and \n"
00035 "letters in this language.\n"
00036 "13 languages are available: British, Czech, Danish, Dutch, English, French,\nGerman, Hebrew, Italian, Luganda, Romanized Hindi, Spanish and Slovak.");
00037
00038 static const char version[] = "2.0";
00039
00040 int main(int argc, char **argv)
00041 {
00042 KAboutData about("klettres", 0, ki18n("KLettres"), KLETTRES_VERSION, ki18n(description),
00043 KAboutData::License_GPL, ki18n("(C) 2001-2007 Anne-Marie Mahfouf"),KLocalizedString(), "http://edu.kde.org/klettres", "submit@bugs.kde.org");
00044 about.addAuthor( ki18n("Anne-Marie Mahfouf"), KLocalizedString(), "annma AT kde DOT org");
00045 about.addCredit(ki18n("Ludovic Grossard"),
00046 ki18n("French sounds"), "grossard AT kde DOT org");
00047 about.addCredit(ki18n("Geert Stams"),
00048 ki18n("Dutch sounds"), "geert AT pa3csg DOT myweb DOT nl");
00049 about.addCredit(ki18n("Erik Kjaer Pedersen"),
00050 ki18n("Danish sounds"), "erik AT binghamton DOT edu");
00051 about.addCredit(ki18n("Eva Mikulčíková"),
00052 ki18n("Czech sounds"), "evmi AT seznam DOT cz");
00053 about.addCredit(ki18n("Silvia Motyčková & Jozef Říha"),
00054 ki18n("Slovak sounds"), "silviamotycka AT seznam DOT cz");
00055 about.addCredit(ki18n("Robert Wadley"),
00056 ki18n("English sounds"), "robntina AT juno DOT com");
00057 about.addCredit(ki18n("Pietro Pasotti"),
00058 ki18n("Italian sounds"), "pietro AT itopen DOT it");
00059 about.addCredit(ki18n("Ana Belén Caballero and Juan Pedro Paredes"),
00060 ki18n("Spanish sounds"), "neneta AT iquis DOT com");
00061 about.addCredit(ki18n("Vikas Kharat"),
00062 ki18n("Romanized Hindi sounds"), "kharat AT sancharnet DOT in");
00063 about.addCredit(ki18n("John Magoye and Cormac Lynch"),
00064 ki18n("Luganda sounds"), "cormaclynch AT eircom DOT net");
00065 about.addCredit(ki18n("Helmut Kriege"),
00066 ki18n("German sounds"), "h.kriege AT freenet DOT de");
00067 about.addCredit(ki18n("Assaf Gorgon and Diego Iastrubni"),
00068 ki18n("Hebrew sounds"), "elcuco AT kde DOT org");
00069 about.addCredit(ki18n("Lisa Kriege"),
00070 ki18n("British English sounds"), "h.kriege AT freenet DOT de");
00071 about.addCredit(ki18n("Danny Allen"),
00072 ki18n("SVG background pictures, kids and grown-up SVG icons"), "dannya40uk AT yahoo DOT co DOT uk");
00073 about.addCredit(ki18n("Robert Gogolok"),
00074 ki18n("Support and coding guidance"), "mail AT robert-gogolok DOT de");
00075 about.addCredit(ki18n("Peter Hedlund"),
00076 ki18n("Code for generating special characters' icons"), "peter DOT hedlund AT kdemail DOT net");
00077 about.addCredit(ki18n("Waldo Bastian"),
00078 ki18n("Port to KConfig XT, coding help"), "bastian AT kde DOT org");
00079 about.addCredit(ki18n("Pino Toscano"),
00080 ki18n("Code cleaning, Theme class"), "toscano DOT pino AT tiscali DOT it");
00081 about.addCredit(ki18n("Michael Goettsche"),
00082 ki18n("Timer setting widgets"), "michael.goettsche AT kdemail DOT net");
00083 KCmdLineArgs::init(argc, argv, &about);
00084
00085 KCmdLineOptions options;
00086 KCmdLineArgs::addCmdLineOptions(options);
00087 KApplication app;
00088
00089
00090 if (app.isSessionRestored())
00091 RESTORE(KLettres)
00092 else
00093 {
00094
00095 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
00096 if (args->count() == 0)
00097 {
00098 KLettres *widget = new KLettres;
00099 widget->show();
00100 }
00101 else
00102 {
00103 int i = 0;
00104 for (; i < args->count(); i++)
00105 {
00106 KLettres *widget = new KLettres;
00107 widget->show();
00108 }
00109 }
00110 args->clear();
00111 }
00112
00113 return app.exec();
00114 }
00115