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

klettres

  • sources
  • kde-4.14
  • kdeedu
  • klettres
  • src
main.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2001-2011 by Anne-Marie Mahfouf *
3  * annma@kde.org *
4  * *
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. *
9  * *
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. *
14  * *
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  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 /*****************************************************/
22 /* Please save with utf8 encoding, thanks */
23 /*****************************************************/
24 
25 #include <kaboutdata.h>
26 #include <kcmdlineargs.h>
27 #include <klocale.h>
28 #include <kapplication.h>
29 #include "klettres.h"
30 #include "version.h"
31 
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\n"
36  "25 languages are available.");
37 
38 static const char version[] = "2.1";
39 
40 int main(int argc, char **argv)
41 {
42  KAboutData about("klettres", 0, ki18n("KLettres"), KLETTRES_VERSION, ki18n(description),
43  KAboutData::License_GPL, ki18n("(C) 2001-2011 Anne-Marie Mahfouf"),KLocalizedString(), "http://edu.kde.org/klettres", "submit@bugs.kde.org");
44  about.addAuthor( ki18n("Anne-Marie Mahfouf"), KLocalizedString(), "annma AT kde DOT org", "http://annma.blogspot.com", "annma");
45  about.addCredit(ki18n("Marc Cheng"),
46  ki18n("Kids and grown-up oxygen icons"), "bdgraue AT web DOT de");
47  about.addCredit(ki18n("Danny Allen"),
48  ki18n("SVG background pictures"), "dannya40uk AT yahoo DOT co DOT uk");
49  about.addCredit(ki18n("Robert Gogolok"),
50  ki18n("Support and coding guidance"), "mail AT robert-gogolok DOT de");
51  about.addCredit(ki18n("Peter Hedlund"),
52  ki18n("Code for generating special characters' icons"), "peter DOT hedlund AT kdemail DOT net");
53  about.addCredit(ki18n("Waldo Bastian"),
54  ki18n("Port to KConfig XT, coding help"), "bastian AT kde DOT org");
55  about.addCredit(ki18n("Pino Toscano"),
56  ki18n("Code cleaning, Theme class"), "toscano DOT pino AT tiscali DOT it");
57  about.addCredit(ki18n("Michael Goettsche"),
58  ki18n("Timer setting widgets"), "michael.goettsche AT kdemail DOT net");
59  KCmdLineArgs::init(argc, argv, &about);
60 
61  KCmdLineOptions options;
62  KCmdLineArgs::addCmdLineOptions(options);
63  KApplication app;
64 
65  // see if we are starting with session management
66  if (app.isSessionRestored()) {
67  RESTORE(KLettres)
68  } else {
69  // no session.. just start up normally
70  KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
71  if (args->count() == 0) {
72  KLettres *widget = new KLettres;
73  widget->show();
74  } else {
75  int i = 0;
76  for (; i < args->count(); i++) {
77  KLettres *widget = new KLettres;
78  widget->show();
79  }
80  }
81  args->clear();
82  }
83 
84  return app.exec();
85 }
86 
main
int main(int argc, char **argv)
Definition: main.cpp:40
klettres.h
KLettres
Application Main Window.
Definition: klettres.h:41
KLETTRES_VERSION
#define KLETTRES_VERSION
This file serves holds the version number of KLettres.
Definition: version.h:27
version.h
description
static const char description[]
Definition: main.cpp:32
version
static const char version[]
Definition: main.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

klettres

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal