-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialog.h
More file actions
58 lines (45 loc) · 1.01 KB
/
dialog.h
File metadata and controls
58 lines (45 loc) · 1.01 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
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QLabel>
#include <QMessageBox>
#include <QListWidgetItem>
#include <set>
using std::multiset;
namespace Ui {
class Dialog;
}
struct PointString {
int row, col;
};
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = nullptr);
~Dialog();
int getRowNum() {return _rowNum;}
int getColNum() {return _colNum;}
int getOutputRow() {return _outputRow;}
int getOutputCol() {return _outputCol;}
public slots:
void setRowNum(int);
void setColNum(int);
void setOutputRow(int);
void setOutputCol(int);
void checkAndConfirm();
void addbtn();
void deletebtn();
signals:
void sizeChanged(int, int);
void inputChanged(QString);
void outputChanged(int, int);
void validInput();
private:
Ui::Dialog *ui;
multiset<QString> content;
int checkInput();
void transferInput();
int _rowNum = 5, _colNum = 5, _outputRow = 1, _outputCol = 1;
};
#endif // DIALOG_H