summaryrefslogtreecommitdiffstats
path: root/konquest/Konquest.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-11 16:15:55 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-11 16:15:55 +0900
commit931f81f9fe49f3fe339bb3cb23501393bfbb2d0a (patch)
treea9a654a2acd2bd8ddfc026fee8c1f9ea18ea8deb /konquest/Konquest.cpp
parenteb03b1cb9c58427f256e50b857df40aae0db940e (diff)
downloadtdegames-931f81f9fe49f3fe339bb3cb23501393bfbb2d0a.tar.gz
tdegames-931f81f9fe49f3fe339bb3cb23501393bfbb2d0a.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'konquest/Konquest.cpp')
-rw-r--r--konquest/Konquest.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/konquest/Konquest.cpp b/konquest/Konquest.cpp
new file mode 100644
index 00000000..a0c772a8
--- /dev/null
+++ b/konquest/Konquest.cpp
@@ -0,0 +1,34 @@
+#include <tdeapplication.h>
+#include <tdelocale.h>
+#include <tdecmdlineargs.h>
+#include <tdeaboutdata.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 );
+ TDEGlobal::locale()->insertCatalogue("libtdegames");
+
+ if (a.isRestored())
+ RESTORE(MainWindow)
+ else {
+ MainWindow *w = new MainWindow;
+ a.setMainWidget(w);
+ w->show();
+ }
+ return a.exec();
+}
+