diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | c90c389a8a8d9d8661e9772ec4144c5cf2039f23 (patch) | |
tree | 6d8391395bce9eaea4ad78958617edb20c6a7573 /klines/main.cpp | |
download | tdegames-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 'klines/main.cpp')
-rw-r--r-- | klines/main.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/klines/main.cpp b/klines/main.cpp new file mode 100644 index 00000000..66f5959c --- /dev/null +++ b/klines/main.cpp @@ -0,0 +1,56 @@ +/*************************************************************************** + begin : Fri May 19 2000 + copyright : (C) 2000 by Roman Merzlyakov + email : [email protected] + copyright : (C) 2000 by Roman Razilov + email : [email protected] + ***************************************************************************/ + +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ + /* + * Roman Razilov 2000-05-19 debug dummmy + * Roman Razilov 2000-05-21 qimgio +*/ + + +#include <kapplication.h> +#include <klocale.h> +#include <kaboutdata.h> +#include <kcmdlineargs.h> + +#include "klines.h" + +static const char description[] = I18N_NOOP("Kolor Lines - a little game about balls and how to get rid of them"); + +// A hack to circumvent tricky i18n issue, not used later on in the code. +// Both context and contents must be exactly the same as for the entry in +// kdelibs/kdeui/ui_standards.rc +static const char dummy[] = I18N_NOOP2("Menu title", "&Move"); + +int main( int argc, char **argv ) +{ + KAboutData aboutData("klines", I18N_NOOP("Kolor Lines"), LINESVERSION, + description, KAboutData::License_GPL); + aboutData.addAuthor("Roman Merzlyakov", I18N_NOOP("Original author"), "[email protected]"); + aboutData.addAuthor("Roman Razilov", I18N_NOOP("Rewrite and Extension"), "[email protected]"); + KCmdLineArgs::init(argc, argv, &aboutData); + + KApplication a; + KGlobal::locale()->insertCatalogue("libkdegames"); + + if (a.isRestored()) + RESTORE(KLines) + else { + KLines *w = new KLines; + a.setMainWidget(w); + w->show(); + } + return a.exec(); +} |