summaryrefslogtreecommitdiffstats
path: root/kblackbox/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 /kblackbox/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 'kblackbox/main.cpp')
-rw-r--r--kblackbox/main.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/kblackbox/main.cpp b/kblackbox/main.cpp
new file mode 100644
index 00000000..ba0db293
--- /dev/null
+++ b/kblackbox/main.cpp
@@ -0,0 +1,46 @@
+//
+// KBlackbox
+//
+// A simple game inspired by an emacs module
+//
+// File: main.cpp
+//
+// The main() function
+//
+
+
+#include <kapplication.h>
+#include <klocale.h>
+#include <kcmdlineargs.h>
+#include <kaboutdata.h>
+
+#include "kbbgame.h"
+#include "version.h"
+
+
+static const char description[] = I18N_NOOP("KDE Blackbox Game");
+
+/*
+ The program starts here.
+*/
+
+int main( int argc, char **argv )
+{
+ KAboutData aboutData( "kblackbox", I18N_NOOP("KBlackBox"),
+ KBVERSION, description, KAboutData::License_GPL,
+ "(c) 1999-2000, Robert Cimrman");
+ aboutData.addAuthor("Robert Cimrman",0, "cimrman3@students.zcu.cz");
+ KCmdLineArgs::init( argc, argv, &aboutData );
+
+ KApplication a;
+ KGlobal::locale()->insertCatalogue("libkdegames");
+
+ if (a.isRestored())
+ RESTORE(KBBGame)
+ else {
+ KBBGame *w = new KBBGame;
+ a.setMainWidget(w);
+ w->show();
+ }
+ return a.exec();
+}