summaryrefslogtreecommitdiffstats
path: root/kspaceduel/main.cpp
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 /kspaceduel/main.cpp
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 'kspaceduel/main.cpp')
-rw-r--r--kspaceduel/main.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/kspaceduel/main.cpp b/kspaceduel/main.cpp
new file mode 100644
index 00000000..ab1952b1
--- /dev/null
+++ b/kspaceduel/main.cpp
@@ -0,0 +1,29 @@
+#include <kapplication.h>
+#include <kcmdlineargs.h>
+#include <kaboutdata.h>
+
+#include "version.h"
+#include "topwidget.h"
+
+static const char description[] = I18N_NOOP("KDE Space Game");
+
+int main(int argc,char **argv)
+{
+ KAboutData aboutData( "kspaceduel", I18N_NOOP("KSpaceDuel"),
+ KSPACEDUEL_VERSION, description, KAboutData::License_GPL,
+ "(c) 1998-2000, Andreas Zehender");
+ aboutData.addAuthor("Andreas Zehender",0, "az@azweb.de");
+ KCmdLineArgs::init( argc, argv, &aboutData );
+
+ KApplication myapplication;
+ MyTopLevelWidget* top = new MyTopLevelWidget( );
+ myapplication.setMainWidget(top);
+ top->show();
+ top->start();
+ return myapplication.exec();
+}
+
+#ifdef kspaceduel_only_for_xgettext
+i18n( "Default" ), i18n( "Bullet" ), i18n( "Chaos" ), i18n( "Lack of energy" )
+#endif
+