main.cpp 3 KB
Newer Older
Frederik Schwarzer's avatar
Frederik Schwarzer committed
1 2
/***************************************************************************
 *   KShisen - A japanese game similar to mahjongg                         *
3 4
 *   Copyright 1997  Mario Weilguni <mweilguni@sime.com>                   *
 *   Copyright 2002-2004  Dave Corrie <kde@davecorrie.com>                 *
Frederik Schwarzer's avatar
Frederik Schwarzer committed
5
 *   Copyright 2009,2010  Frederik Schwarzer <schwarzer@kde.org>           *
Frederik Schwarzer's avatar
Frederik Schwarzer committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
 ***************************************************************************/
20

21
#include "app.h"
22 23
#include "commit.h"
#include "version.h"
24

Dirk Mueller's avatar
Dirk Mueller committed
25
#include <kapplication.h>
David Faure's avatar
David Faure committed
26
#include <kaboutdata.h>
Waldo Bastian's avatar
Waldo Bastian committed
27
#include <kcmdlineargs.h>
Stephan Kulow's avatar
Stephan Kulow committed
28 29
#include <klocale.h>
#include <kglobal.h>
Waldo Bastian's avatar
Waldo Bastian committed
30

Jaison Lee's avatar
Jaison Lee committed
31
static const char description[] = I18N_NOOP("A KDE game similar to Mahjongg");
32

33 34
int main(int argc, char **argv)
{
35
    KAboutData aboutData("kshisen", 0, ki18n("Shisen-Sho"),
Frederik Schwarzer's avatar
Frederik Schwarzer committed
36
                         KSHISEN_VERSION " #" KSHISEN_COMMIT, ki18n(description), KAboutData::License_GPL,
37
                         ki18n("(c) 1997, Mario Weilguni"), KLocalizedString(), "http://games.kde.org/kshisen");
Frederik Schwarzer's avatar
Frederik Schwarzer committed
38
    aboutData.addAuthor(ki18n("Frederik Schwarzer"), ki18n("Current Maintainer"), "schwarzer@kde.org");
Frederik Schwarzer's avatar
Frederik Schwarzer committed
39
    aboutData.addAuthor(ki18n("Dave Corrie"), ki18n("Former Maintainer"), "kde@davecorrie.com");
Frederik Schwarzer's avatar
Frederik Schwarzer committed
40 41
    aboutData.addAuthor(ki18n("Mario Weilguni"), ki18n("Original Author"), "mweilguni@sime.com");
    aboutData.addCredit(ki18n("Mauricio Piacentini"), ki18n("KMahjonggLib integration for KDE4"), "mauricio@tabuleiro.com");
42
    aboutData.addCredit(ki18n("Jason Lane"), ki18n("Added 'tiles removed' counter<br/>Tile smooth-scaling and window resizing"), "jglane@btopenworld.com");
Frederik Schwarzer's avatar
Frederik Schwarzer committed
43
    aboutData.addCredit(ki18n("Thanks also to everyone who should be listed here but is not!"));
44
    KCmdLineArgs::init(argc, argv, &aboutData);
Waldo Bastian's avatar
Waldo Bastian committed
45

Frederik Schwarzer's avatar
Frederik Schwarzer committed
46
    KApplication a;
Frederik Schwarzer's avatar
Frederik Schwarzer committed
47 48
    KGlobal::locale()->insertCatalog(QLatin1String("libkdegames"));
    KGlobal::locale()->insertCatalog(QLatin1String("libkmahjongg"));
49

Frederik Schwarzer's avatar
Frederik Schwarzer committed
50 51 52
    App *app = new App();
    app->show();
    return a.exec();
53
}
Benjamin Meyer's avatar
Benjamin Meyer committed
54

55 56
// vim: expandtab:tabstop=4:shiftwidth=4
// kate: space-indent on; indent-width 4