00001
00002
00003
00004
00005
00006
00007
00008 #include <dcopclient.h>
00009 #include <kaboutdata.h>
00010 #include <kcmdlineargs.h>
00011
00012 #include "klettres.h"
00013 #include "version.h"
00014
00015
00016 static const char description[] =
00017 I18N_NOOP("KLettres helps a very young child or an adult learning \n"
00018 "a new language by associating sounds and \n"
00019 "letters in this language.\n"
00020 "5 languages are available: Czech, Danish, Dutch, French and Slovak.");
00021
00022 static KCmdLineOptions options[] =
00023 {
00024 { "+[URL]", I18N_NOOP( "Document to open." ), 0 },
00025 KCmdLineLastOption
00026 };
00027
00028 int main(int argc, char **argv)
00029 {
00030 KAboutData about("klettres", I18N_NOOP("KLettres"), KLETTRES_VERSION, description,
00031 KAboutData::License_GPL, "(C) 2001-2003 Anne-Marie Mahfouf",0, "http://edu.kde.org/klettres", "submit@bugs.kde.org");
00032 about.addAuthor( "Anne-Marie Mahfouf,", 0, "annma@kde.org");
00033 about.addCredit("Ludovic Grossard",
00034 I18N_NOOP("French sounds"), "grossard@kde.org");
00035 about.addCredit("Geert Stams",
00036 I18N_NOOP("Dutch sounds"), "geert@pa3csg.myweb.nl");
00037 about.addCredit("Erik Kjaer Pedersen",
00038 I18N_NOOP("Danish sounds"), "erik@binghamton.edu");
00039 about.addCredit("Eva Mikulčíková",
00040 I18N_NOOP("Czech sounds"), "evmi@seznam.cz");
00041 about.addCredit("Silvia Motyčková & Jozef Říha",
00042 I18N_NOOP("Slovak sounds"), "silviamotycka@seznam.cz");
00043 about.addCredit("Primoz Anzur",
00044 I18N_NOOP("Icons"), "zerokode@yahoo.com");
00045 about.addCredit("Renaud Blanchard",
00046 I18N_NOOP("Background picture"), "kisukuma@chez.com");
00047 about.addCredit("Robert Gogolok",
00048 I18N_NOOP("Support and coding guidance"), "mail@robert-gogolok.de");
00049 KCmdLineArgs::init(argc, argv, &about);
00050 KCmdLineArgs::addCmdLineOptions(options);
00051 KApplication app;
00052
00053
00054 if (app.isRestored())
00055 RESTORE(KLettres)
00056 else
00057 {
00058
00059 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
00060 if (args->count() == 0)
00061 {
00062 KLettres *widget = new KLettres;
00063 widget->show();
00064 }
00065 else
00066 {
00067 int i = 0;
00068 for (; i < args->count(); i++)
00069 {
00070 KLettres *widget = new KLettres;
00071 widget->show();
00072 }
00073 }
00074 args->clear();
00075 }
00076
00077 return app.exec();
00078 }