-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdialog.h
47 lines (35 loc) · 831 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
#ifndef DIALOG_H
#define DIALOG_H
#include <QPlainTextEdit>
#include <QAbstractButton>
#include <QDialog>
#include <vector>
#include <iostream>
namespace Ui {
class Dialog;
}
struct DialogParams{
DialogParams(QString h, QString p, QVector<QString> c): head(h), path(p), cmds(c){};
DialogParams(QString h, QString p): head(h), path(p){};
QString head;
QString path;
QVector<QString> cmds;
};
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = nullptr, DialogParams* p=nullptr);
~Dialog();
DialogParams* m_param;
// QString yamInform;
// QPlainTextEdit *plainTextEdit;
signals:
void sendSaveParamsSig();
private slots:
void on_pushButton_clicked();
void on_pushButton_3_clicked();
private:
Ui::Dialog *ui;
};
#endif // DIALOG_H