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 /kmahjongg/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 'kmahjongg/main.cpp')
-rw-r--r-- | kmahjongg/main.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/kmahjongg/main.cpp b/kmahjongg/main.cpp new file mode 100644 index 00000000..6564a842 --- /dev/null +++ b/kmahjongg/main.cpp @@ -0,0 +1,38 @@ +#include "kmahjongg.h" +#include "version.h" + +#include <kapplication.h> +#include <kcmdlineargs.h> +#include <kaboutdata.h> +#include <kimageio.h> + +static const char description[] = I18N_NOOP("Mahjongg for KDE"); + +int main( int argc, char** argv ) +{ + KAboutData aboutData( "kmahjongg", I18N_NOOP("KMahjongg"), + KMAHJONGG_VERSION, description, KAboutData::License_GPL, + "(c) 1997, Mathias Mueller"); + aboutData.addAuthor("Mathias Mueller", I18N_NOOP("Original Author"), "[email protected]"); + aboutData.addAuthor("Albert Astals Cid", I18N_NOOP("Current maintainer"), "[email protected]"); + aboutData.addAuthor("David Black", I18N_NOOP("Rewrite and Extension"), "[email protected]"); + aboutData.addAuthor("Michael Haertjens", I18N_NOOP("Solvable game generation\nbased on algorithm by Michael Meeks in GNOME mahjongg"), "[email protected]"); + aboutData.addAuthor("Osvaldo Stark", I18N_NOOP("Tile set contributor and web page maintainer"), "[email protected]"); + aboutData.addCredit("Benjamin Meyer", I18N_NOOP("Code cleanup"), "[email protected]"); + + KCmdLineArgs::init( argc, argv, &aboutData ); + + KApplication a; + KGlobal::locale()->insertCatalogue("libkdegames"); + KImageIO::registerFormats(); + + if (a.isRestored()) + RESTORE(KMahjongg) + else { + KMahjongg *app = new KMahjongg; + a.setMainWidget(app); + app->show(); + } + return a.exec(); +} + |