summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: 1fc27f4451c2be2df19f1e5f04da5ce5634d4da6 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Author: Denis Kozadaev - (c) 2017-2020


#include "mainwindow.h"

#include <tdeaboutdata.h>
#include <tdeapplication.h>
#include <tdecmdlineargs.h>
#include <tdelocale.h>


const int XSize = 640, YSize = 640;
static const char description[] = I18N_NOOP(
"A knight's tour is a sequence of moves of a knight on a chessboard "
"such that the knight visits every square exactly once.");


int main(int argc, char *argv[])
{
	TDEApplication	*app;
	MainWindow	*mainWin;
	int		retcode;
	TDEAboutData	about(
	"knighttour",			// program name used internally
	I18N_NOOP("Knight's tour"),	// displayable program name
	"14.0.10",			// program version string
	description,			// short description
	TDEAboutData::License_GPL,	// licence type
	I18N_NOOP("(c) 2025 Denis Kozadaev"),	// copyright statement
	nullptr,			// text - any information
	"http://trinitydesktop.org",	// home page address
	nullptr);			// bug email address

	about.addAuthor("Denis Kozadaev", "Author", "denis@tambov.ru");

	TDECmdLineArgs::init(argc, argv, &about);

	app = new TDEApplication();

	mainWin = new MainWindow();

	mainWin->resize(XSize, YSize);
	mainWin->setMinimumSize( mainWin->size() );
	mainWin->setMaximumSize( mainWin->size() );

	app->setMainWidget( mainWin );
	app->miniIcon();
	mainWin->show();

	retcode = app->exec();

	delete app;

	return (retcode);
}