summaryrefslogtreecommitdiffstats
path: root/mathemagics/main.cpp
blob: 77f1768dbd75b7ef97aea7fcee399f0481e37cc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
	Jason Katz-Brown
	jason@katzbrown.com

	Reverse Polish Notation calculator for KDE.
*/

/*
	Licensed under the BSD License.
*/

#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>

#include "mathemagics.h"

static const char *description =
	I18N_NOOP("A Reverse Polish Notation scientific calculator");
	
	
static KCmdLineOptions options[] =
{
	{ 0, 0, 0 }
};

int main(int argc, char *argv[])
{
	KAboutData aboutData( "mathemagics", I18N_NOOP("Mathemagics"), "1.1", description, KAboutData::License_BSD, "(c) 2002-2004, Jason Katz-Brown", 0, "http://katzbrown.com/mathemagics/", "jason@katzbrown.com");
	aboutData.addAuthor("Jason Katz-Brown", I18N_NOOP("Main author"), "jason@katzbrown.com");

	KCmdLineArgs::init(argc, argv, &aboutData);
	KCmdLineArgs::addCmdLineOptions(options);

	KApplication a;
	Mathemagics *mathemagics = new Mathemagics(0, "Mathemagics", Qt::WStyle_ContextHelp);
	a.setMainWidget(mathemagics);
	mathemagics->show();
	return a.exec();
}