summaryrefslogtreecommitdiffstats
path: root/konquest/Konquest.cc
blob: e06125d1d0e6a57a6984d4a85970f0d47f640158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <kapplication.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>

#include "version.h"
#include "mainwin.h"
#include "map_widget.h"

static const char description[] = I18N_NOOP("Galactic Strategy TDE Game");

int
main(int argc, char **argv)
{
    TDEAboutData aboutData( "konquest", I18N_NOOP("Konquest"),
        KONQUEST_VERSION, description, TDEAboutData::License_GPL,
        I18N_NOOP("Copyright (c) 1999-2001, Developers"));
    aboutData.addAuthor("Russ Steffen",0, "rsteffen@bayarea.net");
    TDECmdLineArgs::init( argc, argv, &aboutData );

    TDEApplication a;
    TQApplication::setGlobalMouseTracking( true );
    KGlobal::locale()->insertCatalogue("libtdegames");

    if (a.isRestored())
        RESTORE(MainWindow)
    else {
        MainWindow *w = new MainWindow;
        a.setMainWidget(w);
        w->show();
    }
    return a.exec();
}