1/* Copyright (C) 1997 Mathias Mueller <in5y158@public.uni-hamburg.de>
2 *
3 * Kmahjongg is free software; you can redistribute it and/or modify it under the terms of the GNU
4 * General Public License as published by the Free Software Foundation; either version 2 of the
5 * License, or (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
8 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9 * General Public License for more details.
10 *
11 * You should have received a copy of the GNU General Public License along with this program; if
12 * not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
13 * 02110-1301, USA. */
14
15#include "kmahjongg.h"
16#include "version.h"
17
18#include <kapplication.h>
19#include <kcmdlineargs.h>
20#include <kaboutdata.h>
21#include <kimageio.h>
22#include <klocale.h>
23#include <kglobal.h>
24
25
26static const char description[] = I18N_NOOP("Mahjongg Solitaire for KDE");
27
28int main(int argc, char** argv)
29{
30 KAboutData aboutData("kmahjongg", 0, ki18n("KMahjongg"), KMAHJONGG_VERSION, ki18n(description),
31 KAboutData::License_GPL, ki18n("(c) 1997, Mathias Mueller\n(c) 2006, Mauricio Piacentini\n("
32 "c) 2011, Christian Krippendorf"), KLocalizedString(), "http://games.kde.org/kmahjongg");
33 aboutData.addAuthor(ki18n("Mathias Mueller"), ki18n("Original Author"), "in5y158@public.uni-ham"
34 "burg.de");
35 aboutData.addAuthor(ki18n("Christian Krippendorf"), ki18n("Current maintainer"), "Coding@Christ"
36 "ian-Krippendorf.de");
37 aboutData.addAuthor(ki18n("Albert Astals Cid"), ki18n("Bug fixes"), "aacid@kde.org");
38 aboutData.addAuthor(ki18n("David Black"), ki18n("KDE 3 rewrite and Extension"), "david.black@lu"
39 "tris.com");
40 aboutData.addAuthor(ki18n("Michael Haertjens"), ki18n("Solvable game generation\nbased on algor"
41 "ithm by Michael Meeks in GNOME mahjongg"), "mhaertjens@modusoperandi.com");
42 aboutData.addCredit(ki18n("Raquel Ravanini"), ki18n("SVG Tileset for KDE4"), "raquel@tabuleiro."
43 "com");
44 aboutData.addCredit(ki18n("Richard Lohman"), ki18n("Tile set contributor and current web page m"
45 "aintainer"),"richardjlohman@yahoo.com");
46 aboutData.addCredit(ki18n("Osvaldo Stark"), ki18n("Tile set contributor and original web page m"
47 "aintainer"), "starko@dnet.it");
48 aboutData.addCredit(ki18n("Benjamin Meyer"), ki18n("Code cleanup"), "ben+kmahjongg@meyerhome.ne"
49 "t");
50
51 KCmdLineArgs::init(argc, argv, &aboutData);
52
53 KApplication application;
54 KGlobal::locale()->insertCatalog(QLatin1String("libkdegames"));
55 KGlobal::locale()->insertCatalog(QLatin1String("libkmahjongg"));
56
57 if (application.isSessionRestored()) {
58 RESTORE(KMahjongg)
59 } else {
60 KMahjongg *window = new KMahjongg();
61 window->show();
62 }
63
64 return application.exec();
65}
66