-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialog.h
62 lines (48 loc) · 973 Bytes
/
dialog.h
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
#ifndef DIALOG_H
#define DIALOG_H
#include <board.h>
#include <worker.h>
#include <QDialog>
#include <QObject>
#include <QThread>
#include <QtWidgets>
#include <iostream>
class QAction;
class QDialogButtonBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QMenu;
class QMenuBar;
class QPushButton;
class QTextEdit;
class Dialog : public QDialog {
Q_OBJECT
public:
Dialog();
~Dialog();
QLabel* getLabels();
void setLabels(QLabel* pLabels);
private:
void createHorizontalGroupBox();
void createVillageArea();
void handleStartButton();
void handleStopButton();
Board* board;
QGroupBox* horizontalGroupBox;
QGroupBox* villageGroupBox;
QLabel* labels;
QPushButton* buttons[2];
QLineEdit* lineEdits[2];
QAction* exitAction;
QThread* thread;
Worker* worker;
protected:
void paintEvent(QPaintEvent*);
public slots:
void finished();
void repaint();
signals:
void setBoard(Board* pBoard);
};
#endif // DIALOG_H