1/*
2 * Copyright (c) 1996-2004 Nicolas HADACEK <hadacek@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#include <kapplication.h>
20#include <klocale.h>
21#include <kcmdlineargs.h>
22#include <kaboutdata.h>
23
24#include "version.h"
25#include "mainwindow.h"
26
27
28static const char *DESCRIPTION
29 = I18N_NOOP("KMines is a classic minesweeper game");
30
31int main(int argc, char **argv)
32{
33 KAboutData aboutData("kmines", 0, ki18n("KMines"), LONG_VERSION,
34 ki18n(DESCRIPTION), KAboutData::License_GPL,
35 ki18n(COPYLEFT), KLocalizedString(), HOMEPAGE);
36 aboutData.addAuthor(ki18n("Nicolas Hadacek"),
37 ki18n("Original author"), "hadacek@kde.org");
38 aboutData.addAuthor(ki18n("Mauricio Piacentini"),
39 ki18n("Code refactoring and SVG support. Current maintainer"),
40 "mauricio@tabuleiro.com");
41 aboutData.addAuthor(ki18n("Dmitry Suzdalev"),
42 ki18n("Rewrite to use QGraphicsView framework. Current maintainer"),
43 "dimsuz@gmail.com");
44 aboutData.addCredit(ki18n("Andreas Zehender"), ki18n("Smiley pixmaps"));
45 aboutData.addCredit(ki18n("Mikhail Kourinny"), ki18n("Solver/Adviser"));
46 aboutData.addCredit(ki18n("Thomas Capricelli"), ki18n("Magic reveal mode"));
47 aboutData.addCredit(ki18n("Brian Croom"), ki18n("Port to use KGameRenderer"));
48 KCmdLineArgs::init(argc, argv, &aboutData);
49
50 KApplication a;
51 KGlobal::locale()->insertCatalog( QLatin1String( "libkdegames" ));
52
53 if ( a.isSessionRestored() )
54 RESTORE(KMinesMainWindow)
55 else {
56 KMinesMainWindow *mw = new KMinesMainWindow;
57 mw->show();
58 }
59 return a.exec();
60}
61