• Skip to content
  • Skip to link menu
KDE 4.2 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\n"
00036               "18 languages are available: Arabian, Brazilian Portuguese, British, Czech, Danish, Dutch, English, French, German, Hebrew, Italian, Kannada, Low Saxon, Luganda, Romanized Hindi, Spanish, Slovak and Telugu.");
00037 
00038 static const char version[] = "2.1";
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-2008 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("Marc Cheng"),
00046                     ki18n("Kids and grown-up oxygen icons"), "bdgraue AT web DOT de");
00047     about.addCredit(ki18n("Ludovic Grossard"),
00048                     ki18n("French sounds"), "grossard AT kde DOT org");
00049     about.addCredit(ki18n("Geert Stams"),
00050                     ki18n("Dutch sounds"), "geert AT pa3csg DOT myweb DOT nl");
00051     about.addCredit(ki18n("Erik Kjaer Pedersen"),
00052                     ki18n("Danish sounds"), "erik AT binghamton DOT edu");
00053     about.addCredit(ki18n("Eva Mikulčíková"),
00054                     ki18n("Czech sounds"), "evmi AT seznam DOT cz");
00055     about.addCredit(ki18n("Silvia Motyčková & Jozef Říha"),
00056                     ki18n("Slovak sounds"), "silviamotycka AT seznam DOT cz");
00057     about.addCredit(ki18n("Robert Wadley"),
00058                     ki18n("English sounds"), "robntina AT juno DOT com");               
00059     about.addCredit(ki18n("Pietro Pasotti"),
00060                     ki18n("Italian sounds"), "pietro AT itopen DOT it");
00061     about.addCredit(ki18n("Ana Belén Caballero and Juan Pedro Paredes"),
00062                     ki18n("Spanish sounds"), "neneta  AT iquis DOT com");
00063     about.addCredit(ki18n("Vikas Kharat"),
00064                     ki18n("Romanized Hindi sounds"), "kharat AT sancharnet DOT in");
00065     about.addCredit(ki18n("John Magoye and Cormac Lynch"),
00066                      ki18n("Luganda sounds"), "cormaclynch AT eircom DOT net");
00067     about.addCredit(ki18n("Helmut Kriege"),
00068                      ki18n("German sounds"), "h.kriege AT freenet DOT de");
00069     about.addCredit(ki18n("Assaf Gorgon and Diego Iastrubni"),
00070                      ki18n("Hebrew sounds"), "elcuco AT kde DOT org");
00071     about.addCredit(ki18n("Lisa Kriege"),
00072                      ki18n("British English sounds"), "h.kriege AT freenet DOT de");
00073     about.addCredit(ki18n("Vikram Vincent"),
00074                      ki18n("Kannada sounds"), "vincentvikram AT gmail DOT com");
00075     about.addCredit(ki18n("Danny Allen"),
00076                     ki18n("SVG background pictures"), "dannya40uk AT yahoo DOT co DOT uk");
00077     about.addCredit(ki18n("Robert Gogolok"),
00078                     ki18n("Support and coding guidance"), "mail AT robert-gogolok DOT de");
00079     about.addCredit(ki18n("Peter Hedlund"),
00080                     ki18n("Code for generating special characters' icons"), "peter DOT hedlund AT kdemail DOT net");
00081     about.addCredit(ki18n("Waldo Bastian"),
00082                     ki18n("Port to KConfig XT, coding help"), "bastian AT kde DOT org");
00083     about.addCredit(ki18n("Pino Toscano"),
00084                     ki18n("Code cleaning, Theme class"), "toscano DOT pino AT tiscali DOT it");
00085     about.addCredit(ki18n("Michael Goettsche"),
00086                     ki18n("Timer setting widgets"), "michael.goettsche AT kdemail DOT net");
00087     KCmdLineArgs::init(argc, argv, &about);
00088 
00089     KCmdLineOptions options;
00090     KCmdLineArgs::addCmdLineOptions(options);
00091     KApplication app;
00092 
00093     // see if we are starting with session management
00094     if (app.isSessionRestored())
00095         RESTORE(KLettres)
00096         else
00097         {
00098             // no session.. just start up normally
00099             KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
00100             if (args->count() == 0)
00101             {
00102                 KLettres *widget = new KLettres;
00103                 widget->show();
00104             }
00105             else
00106             {
00107                 int i = 0;
00108                 for (; i < args->count(); i++)
00109                 {
00110                     KLettres *widget = new KLettres;
00111                     widget->show();
00112                 }
00113             }
00114             args->clear();
00115         }
00116 
00117     return app.exec();
00118 }
00119 

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
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
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