1 /***************************************************************************
2 kbruch.cpp - Main File of KBruch
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 /***************************************************************************
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. *
16 ***************************************************************************/
22 /* standard C++ library includes */
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
36 /* fill the about data; the common KDE about dialog will show it to the
38 KAboutData
aboutData( "kbruch",
41 I18N_NOOP("Learn calculating with fractions"),
42 KAboutData::License_GPL
,
43 "(c) 2002-2004, Sebastian Stein", 0, "http://edu.kde.org/kbruch/",
45 aboutData
.addAuthor("Sebastian Stein",0, "seb.kde@hpfsc.de");
46 KCmdLineArgs::init( argc
, argv
, &aboutData
);
50 MainQtWidget
* kbruchApp
= new MainQtWidget();
51 kbruch
.setMainWidget(kbruchApp
);
54 /* lets execute the Qt GUI; it will handle all cmd options which are left */