summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.h
blob: 170dec30ccdd057d807ce18a38469bebdac47dca (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
// Author: Denis Kozadaev - (c) 2025


#ifndef	__MAIN_WINDOW_H__
#define	__MAIN_WINDOW_H__

#include <tdemainwindow.h>
#include <tdepopupmenu.h>
#include <tqsettings.h>

#include "gameboard.h"


class MainWindow:public TDEMainWindow
{
	TQ_OBJECT

public:
	MainWindow(TQWidget* parent = nullptr, const char* name = nullptr);
	~MainWindow();

private:
	int		defSize;
	int		idTip, idKnight, idCell;
	TDEPopupMenu	*mMenu;
	TDEPopupMenu	*mGame;
	GameBoard	*mBoard;
	TQSettings	*settings;

	void	loadSettings();
	void	saveSettings();

private slots:
	void	newGame();
	void	toggleTips();
	void	toggleKnight();
	void	randomCell();
};

#endif	/* __MAIN_WINDOW_H__ */