summaryrefslogtreecommitdiffstats
path: root/blinken/src/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
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /blinken/src/main.cpp
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.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/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'blinken/src/main.cpp')
-rw-r--r--blinken/src/main.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/blinken/src/main.cpp b/blinken/src/main.cpp
new file mode 100644
index 00000000..4ad79157
--- /dev/null
+++ b/blinken/src/main.cpp
@@ -0,0 +1,41 @@
+/***************************************************************************
+ * Copyright (C) 2005 by Albert Astals Cid <tsdgeos@terra.es> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+
+#include <kaboutdata.h>
+#include <kapplication.h>
+#include <kcmdlineargs.h>
+#include <kprocess.h>
+#include <kstandarddirs.h>
+
+#include "fontchecker.h"
+#include "blinken.h"
+
+int main(int argc, char *argv[])
+{
+ KAboutData about("blinken", I18N_NOOP("blinKen"), "0.1.1", I18N_NOOP("A memory enhancement game"), KAboutData::License_GPL, "© 2005 Albert Astals Cid\n© 2005 Danny Allen");
+ about.addAuthor("Albert Astals Cid", I18N_NOOP("Coding"), "tsdgeos@terra.es");
+ about.addAuthor("Danny Allen", I18N_NOOP("Design, Graphics and Sounds"), "danny@dannyallen.co.uk");
+ about.addCredit("Steve Jordi", I18N_NOOP("GPL'ed his 'Steve' font so that we could use it"), "steve@sjordi.com");
+ KCmdLineArgs::init(argc, argv, &about);
+ KApplication app;
+ app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
+
+ QFont f("Steve", 12, QFont::Normal, true);
+ if (!fontChecker::checkInstalled(f, locate("appdata", "fonts/steve.ttf")))
+ {
+ KProcess *proc = new KProcess;
+ for (int i = 0; i < argc; i++) *proc << argv[i];
+ proc->start();
+ }
+ else
+ {
+ app.setTopWidget(new blinken());
+ return app.exec();
+ }
+}