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 | ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch) | |
tree | d3bb9f5d25a2dc09ca81adecf39621d871534297 /kbruch/src/kbruch.cpp | |
download | tdeedu-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 'kbruch/src/kbruch.cpp')
-rw-r--r-- | kbruch/src/kbruch.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/kbruch/src/kbruch.cpp b/kbruch/src/kbruch.cpp new file mode 100644 index 00000000..df74101e --- /dev/null +++ b/kbruch/src/kbruch.cpp @@ -0,0 +1,57 @@ +/*************************************************************************** + kbruch.cpp - Main File of KBruch + ------------------- + begin : Tue Nov 27 16:40:42 CET 2001 + copyright : (C) 2001 by Sebastian Stein + email : seb.kde@hpfsc.de + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 "kbruch.h" + +#include "version.h" + +/* standard C++ library includes */ +#include <time.h> +#include <stdlib.h> + +/* these includes are needed for Qt support */ +#include <kapplication.h> +#include <kcmdlineargs.h> +#include <kaboutdata.h> + +/* the main program */ +int main(int argc, char * argv[]) +{ + // init random generator + srand(time(NULL)); + + /* fill the about data; the common KDE about dialog will show it to the + * user */ + KAboutData aboutData( "kbruch", + description, + KBRUCH_VERSION, + I18N_NOOP("Learn calculating with fractions"), + KAboutData::License_GPL, + "(c) 2002-2005, Sebastian Stein", 0, "http://edu.kde.org/kbruch/", + "seb.kde@hpfsc.de"); + aboutData.addAuthor("Sebastian Stein",0, "seb.kde@hpfsc.de"); + KCmdLineArgs::init( argc, argv, &aboutData ); + + KApplication kbruch; + + MainQtWidget * kbruchApp = new MainQtWidget(); + kbruch.setMainWidget(kbruchApp); + kbruchApp->show(); + + /* lets execute the Qt GUI; it will handle all cmd options which are left */ + return kbruch.exec(); +} |