moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kbruch / src / kbruch.cpp
blob23bd9af9c428153086814f145c61fb72f9e98840
1 /***************************************************************************
2 kbruch.cpp - Main File of KBruch
3 -------------------
4 begin : Tue Nov 27 16:40:42 CET 2001
5 copyright : (C) 2001 by Sebastian Stein
6 email : seb.kde@hpfsc.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #include "kbruch.h"
20 #include "version.h"
22 /* standard C++ library includes */
23 #include <time.h>
25 /* these includes are needed for Qt support */
26 #include <kapplication.h>
27 #include <kcmdlineargs.h>
28 #include <kaboutdata.h>
30 /* the main program */
31 int main(int argc, char * argv[])
33 // init random generator
34 srand(time(NULL));
36 /* fill the about data; the common KDE about dialog will show it to the
37 * user */
38 KAboutData aboutData( "kbruch",
39 description,
40 KBRUCH_VERSION,
41 I18N_NOOP("Learn calculating with fractions"),
42 KAboutData::License_GPL,
43 "(c) 2002-2004, Sebastian Stein", 0, "http://edu.kde.org/kbruch/",
44 "seb.kde@hpfsc.de");
45 aboutData.addAuthor("Sebastian Stein",0, "seb.kde@hpfsc.de");
46 KCmdLineArgs::init( argc, argv, &aboutData );
48 KApplication kbruch;
50 MainQtWidget * kbruchApp = new MainQtWidget();
51 kbruch.setMainWidget(kbruchApp);
52 kbruchApp->show();
54 /* lets execute the Qt GUI; it will handle all cmd options which are left */
55 return kbruch.exec();