summaryrefslogtreecommitdiffstats
path: root/mathemagics/main.cpp
blob: 4227b257bb9e59d0dbdeb48f9f70568079da403f (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 <tdecmdlineargs.h>
#include <tdeaboutdata.h>
#include <tdelocale.h>

#include "mathemagics.h"

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

int main(int argc, char *argv[])
{
	TDEAboutData aboutData( "mathemagics", I18N_NOOP("Mathemagics"), "1.1", description, TDEAboutData::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");

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

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