-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
65 lines (55 loc) · 1.65 KB
/
Copy pathmainwindow.h
File metadata and controls
65 lines (55 loc) · 1.65 KB
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
56
57
58
59
60
61
62
63
64
65
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <language.h>
#include <cell.h>
#include <board.h>
#include <QList>
#include <dialog.h>
//drawing libraries
#include <QImage>
#include <QtGui>
#include <QtCore>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow, public Language
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
Ui::MainWindow * ui;
Dialog * ui_mazeSettings;//menu Maze setings
QImage * image;
QPainter * paintOnImage;
Language * language;
void refreshLanguage();
byte globalX; //number of cells Y
byte globalY; //number of cells Y
byte globalWidth; //ceil width
byte setglobalX; //set in Maze setings menu
byte setglobalY; //set in Maze setings menu
byte setglobalWidth; //set in Maze setings menu
void getGlobalSettings();
void refreshWindowsSize();
void drawBoard();
void drawCell(uint8_t y, uint8_t x);
Board * board; //myMainBoard
protected:
void paintEvent(QPaintEvent *);
private slots:
void clickMenuPolish();
void clickMenuEnglish();
void clickMenuQuit();
void clickMenuMazeSetings();
void clickMenuGenerateNormalMaze();
void clickMenuGenerateHorizontalMaze();
void clickMenuGenerateVerticalMaze();
void clickMenuGenerateSpiralMaze();
void clickMenuGenerateStraightLineDivisionInHalf();
void clickMenuGenerateStraightLineRandomSplit();
void clickMenuGenerateZigzags();
};
#endif // MAINWINDOW_H