You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeedu/kbruch/src/kbruch.cpp

58 lines
2.0 KiB

/***************************************************************************
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 TQt support */
#include <tdeapplication.h>
#include <tdecmdlineargs.h>
#include <tdeaboutdata.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 */
TDEAboutData aboutData( "kbruch",
description,
KBRUCH_VERSION,
I18N_NOOP("Learn calculating with fractions"),
TDEAboutData::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");
TDECmdLineArgs::init( argc, argv, &aboutData );
TDEApplication kbruch;
MainQtWidget * kbruchApp = new MainQtWidget();
kbruch.setMainWidget(kbruchApp);
kbruchApp->show();
/* lets execute the TQt GUI; it will handle all cmd options which are left */
return kbruch.exec();
}