1 /***************************************************************************
2 * Copyright (C) 2001-2005 by Anne-Marie Mahfouf *
3 * annemarie.mahfouf@free.fr *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 /*****************************************************/
22 /* Please save with utf8 encoding, thanks */
23 /*****************************************************/
25 #include <kaboutdata.h>
26 #include <kcmdlineargs.h>
27 #include <kapplication.h>
32 static const char description
[] =
33 I18N_NOOP("KLettres helps a very young child or an adult learning \n"
34 "a new language by associating sounds and \n"
35 "letters in this language.\n"
36 "10 languages are available: Czech, Danish, Dutch, English, French,\nItalian, Luganda, Romanized Hindi, Spanish and Slovak.");
38 static const char version
[] = "1.4";
40 static KCmdLineOptions options
[] =
42 // { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
46 int main(int argc
, char **argv
)
48 KAboutData
about("klettres", I18N_NOOP("KLettres"), KLETTRES_VERSION
, description
,
49 KAboutData::License_GPL
, "(C) 2001-2005 Anne-Marie Mahfouf",0, "http://edu.kde.org/klettres", "submit@bugs.kde.org");
50 about
.addAuthor( "Anne-Marie Mahfouf", 0, "annma@kde.org");
51 about
.addCredit("Ludovic Grossard",
52 I18N_NOOP("French sounds"), "grossard@kde.org");
53 about
.addCredit("Geert Stams",
54 I18N_NOOP("Dutch sounds"), "geert@pa3csg.myweb.nl");
55 about
.addCredit("Erik Kjaer Pedersen",
56 I18N_NOOP("Danish sounds"), "erik@binghamton.edu");
57 about
.addCredit("Eva Mikulčíková",
58 I18N_NOOP("Czech sounds"), "evmi@seznam.cz");
59 about
.addCredit("Silvia Motyčková & Jozef Říha",
60 I18N_NOOP("Slovak sounds"), "silviamotycka@seznam.cz");
61 about
.addCredit("Robert Wadley",
62 I18N_NOOP("English sounds"), "robntina AT juno DOT com");
63 about
.addCredit("Pietro Pasotti",
64 I18N_NOOP("Italian sounds"), "pietro@itopen.it");
65 about
.addCredit("Ana Belén Caballero and Juan Pedro Paredes",
66 I18N_NOOP("Spanish sounds"), "neneta @iquis.com");
67 about
.addCredit("Vikas Kharat",
68 I18N_NOOP("Romanized Hindi sounds"), "kharat@sancharnet.in");
69 about
.addCredit("John Magoye and Cormac Lynch",
70 I18N_NOOP("Luganda sounds"), "cormaclynch@eircom.net");
71 about
.addCredit("Primoz Anzur",
72 I18N_NOOP("Icons"), "zerokode@yahoo.com");
73 about
.addCredit("Renaud Blanchard",
74 I18N_NOOP("Background picture"), "kisukuma@chez.com");
75 about
.addCredit("Robert Gogolok",
76 I18N_NOOP("Support and coding guidance"), "mail@robert-gogolok.de");
77 about
.addCredit("Chris Luetchford",
78 I18N_NOOP("SVG icon"), "chris@os11.com");
79 about
.addCredit("Peter Hedlund",
80 I18N_NOOP("Code for generating special characters' icons"), "peter@peterandlinda.com");
81 about
.addCredit("Waldo Bastian",
82 I18N_NOOP("Port to KConfig XT, coding help"), "bastian@kde.org");
83 about
.addCredit("Danny Allen",
84 I18N_NOOP("Kids and grown-up SVG icons"), "danny@dannyallen.co.uk");
85 KCmdLineArgs::init(argc
, argv
, &about
);
86 KCmdLineArgs::addCmdLineOptions(options
);
89 // see if we are starting with session management
94 // no session.. just start up normally
95 KCmdLineArgs
*args
= KCmdLineArgs::parsedArgs();
96 if (args
->count() == 0)
98 KLettres
*widget
= new KLettres
;
104 for (; i
< args
->count(); i
++)
106 KLettres
*widget
= new KLettres
;