summaryrefslogtreecommitdiffstats
path: root/atlantikdesigner/designer/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
commit84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch)
tree2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /atlantikdesigner/designer/main.cpp
downloadtdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz
tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.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/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'atlantikdesigner/designer/main.cpp')
-rw-r--r--atlantikdesigner/designer/main.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/atlantikdesigner/designer/main.cpp b/atlantikdesigner/designer/main.cpp
new file mode 100644
index 0000000..b7dee10
--- /dev/null
+++ b/atlantikdesigner/designer/main.cpp
@@ -0,0 +1,37 @@
+#include <kaboutdata.h>
+#include <kcmdlineargs.h>
+#include <klocale.h>
+#include <kapplication.h>
+
+#include "designer.h"
+
+int main(int argc, char *argv[])
+{
+ KAboutData aboutData(
+ "atlantikdesigner",
+ I18N_NOOP("Atlantik Designer"), "1.1.0",
+ I18N_NOOP("Atlantik gameboard designer"),
+ KAboutData::License_GPL,
+ I18N_NOOP("(c) 2002 Jason Katz-Brown"),
+ 0,
+ "http://www.unixcode.org/atlantik/"
+ );
+
+ aboutData.addAuthor("Jason Katz-Brown", I18N_NOOP("main author"), "jason@katzbrown.com", "http://katzbrown.com/");
+ aboutData.addAuthor("Rob Kaper", I18N_NOOP("libatlantikui"), "cap@capsi.com", "http://capsi.com/");
+
+ KCmdLineArgs::init(argc, argv, &aboutData);
+
+ KApplication kapplication;
+
+ if (kapplication.isRestored())
+ RESTORE(AtlanticDesigner)
+ else
+ {
+ AtlanticDesigner *designer = new AtlanticDesigner;
+ designer->show();
+ }
+
+ return kapplication.exec();
+}
+