summaryrefslogtreecommitdiffstats
path: root/konquest/Konquest.cc
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitc90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch)
tree6d8391395bce9eaea4ad78958617edb20c6a7573 /konquest/Konquest.cc
downloadtdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.tar.gz
tdegames-c90c389a8a8d9d8661e9772ec4144c5cf2039f23.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konquest/Konquest.cc')
-rw-r--r--konquest/Konquest.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/konquest/Konquest.cc b/konquest/Konquest.cc
new file mode 100644
index 00000000..90a6b6c6
--- /dev/null
+++ b/konquest/Konquest.cc
@@ -0,0 +1,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 KDE Game");
+
+int
+main(int argc, char **argv)
+{
+ KAboutData aboutData( "konquest", I18N_NOOP("Konquest"),
+ KONQUEST_VERSION, description, KAboutData::License_GPL,
+ I18N_NOOP("Copyright (c) 1999-2001, Developers"));
+ aboutData.addAuthor("Russ Steffen",0, "rsteffen@bayarea.net");
+ KCmdLineArgs::init( argc, argv, &aboutData );
+
+ KApplication a;
+ QApplication::setGlobalMouseTracking( true );
+ KGlobal::locale()->insertCatalogue("libkdegames");
+
+ if (a.isRestored())
+ RESTORE(MainWindow)
+ else {
+ MainWindow *w = new MainWindow;
+ a.setMainWidget(w);
+ w->show();
+ }
+ return a.exec();
+}
+