• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

klettres

main.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2001-2008 by Anne-Marie Mahfouf                              *
00003  *   annemarie.mahfouf@free.fr                                             *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.             *
00019  ***************************************************************************/
00020 
00021 /*****************************************************/
00022 /* Please save with utf8 encoding, thanks  */
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     // see if we are starting with session management
00090     if (app.isSessionRestored())
00091         RESTORE(KLettres)
00092         else
00093         {
00094             // no session.. just start up normally
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 

klettres

Skip menu "klettres"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal