main.cpp 3.03 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* Yo Emacs, this is -*- C++ -*-
 *******************************************************************
 *******************************************************************
 *
 *
 * KSHISEN
 *
 *
 *******************************************************************
 *
 * A japanese game similar to mahjongg
 *
 *******************************************************************
 *
15 16
 * Copyright (C) 1997 Mario Weilguni <mweilguni@sime.com>
 * Copyright (C) 2002-2004 Dave Corrie  <kde@davecorrie.com>
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
 *
 *******************************************************************
 *
 * This file is part of the KDE project "KSHISEN"
 *
 * KSHISEN 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, or (at your option)
 * any later version.
 *
 * KSHISEN 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 KSHISEN; see the file COPYING.  If not, write to
Dirk Mueller's avatar
Dirk Mueller committed
34
 * the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Dirk Mueller's avatar
Dirk Mueller committed
35
 * Boston, MA 02110-1301, USA.
36 37 38 39
 *
 *******************************************************************
 */

Dirk Mueller's avatar
Dirk Mueller committed
40
#include <kapplication.h>
David Faure's avatar
David Faure committed
41
#include <kaboutdata.h>
Waldo Bastian's avatar
Waldo Bastian committed
42
#include <kcmdlineargs.h>
Benjamin Meyer's avatar
Benjamin Meyer committed
43
#include <kconfig.h>
Stephan Kulow's avatar
Stephan Kulow committed
44 45
#include <klocale.h>
#include <kglobal.h>
Waldo Bastian's avatar
Waldo Bastian committed
46 47 48 49

#include "version.h"
#include "app.h"

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

52 53 54 55 56
// A hack to circumvent tricky i18n issue, not used later on in the code.
// Both context and contents must be exactly the same as for the entry in
// kdelibs/kdeui/ui_standards.rc
static const char dummy[] = I18N_NOOP2("Menu title", "&Move");

57 58
int main(int argc, char **argv)
{
59 60 61
    KAboutData aboutData("kshisen", 0, ki18n("Shisen-Sho"),
                         KSHISEN_VERSION, ki18n(description), KAboutData::License_GPL,
                         ki18n("(c) 1997, Mario Weilguni"), KLocalizedString(), "http://games.kde.org/kshisen");
Frederik Schwarzer's avatar
Frederik Schwarzer committed
62 63 64 65 66
    aboutData.addAuthor(ki18n("Dave Corrie"), ki18n("Current Maintainer"), "kde@davecorrie.com");
    aboutData.addAuthor(ki18n("Mario Weilguni"), ki18n("Original Author"), "mweilguni@sime.com");
    aboutData.addCredit(ki18n("Mauricio Piacentini"), ki18n("KMahjonggLib integration for KDE4"), "mauricio@tabuleiro.com");
    aboutData.addCredit(ki18n("Jason Lane"), ki18n("Added 'tiles removed' counter\nTile smooth-scaling and window resizing"), "jglane@btopenworld.com");
    aboutData.addCredit(ki18n("Thanks also to everyone who should be listed here but is not!"));
67
    KCmdLineArgs::init(argc, argv, &aboutData);
Waldo Bastian's avatar
Waldo Bastian committed
68

Frederik Schwarzer's avatar
Frederik Schwarzer committed
69 70 71
    KApplication a;
    KGlobal::locale()->insertCatalog("libkdegames");
    KGlobal::locale()->insertCatalog("libkmahjongg");
72

Frederik Schwarzer's avatar
Frederik Schwarzer committed
73 74 75
    App *app = new App();
    app->show();
    return a.exec();
76
}
Benjamin Meyer's avatar
Benjamin Meyer committed
77

78 79
// vim: expandtab:tabstop=4:shiftwidth=4
// kate: space-indent on; indent-width 4