-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog.h
43 lines (37 loc) · 781 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
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include <QMouseEvent>
#include <QComboBox>
#include "drawboard.h"
#include "Game.h"
#include "GameQt.h"
namespace Ui {
class Dialog;
}
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(GameQt *game, QWidget *parent = nullptr);
GameQt *game;
QVBoxLayout *layout;
DrawBoard *db;
QComboBox* place_combo_box;
QPushButton *ok_btn;
int index;
QPushButton *cancel_btn;
bool ok;
virtual void mousePressEvent(QMouseEvent *event);
~Dialog();
private slots:
void combo_index_changed(int);
void cancel_btn_clicked(bool);
void ok_btn_clicked(bool);
private:
Ui::Dialog *ui;
};
#endif // DIALOG_H