-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAddNodeDialog.h
47 lines (33 loc) · 891 Bytes
/
AddNodeDialog.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 ADDNODEDIALOG_H
#define ADDNODEDIALOG_H
#include <QDialog>
#include "LsbObject.h"
namespace Ui {
class AddNodeDialog;
}
class AddNodeDialog : public QDialog
{
Q_OBJECT
LsbObject *parentObject;
LsbObject *newObject = 0;
std::vector<TAG_LSB *> *tagList = 0;
std::string tagName;
bool isDirectory;
std::string nodeType;
std::string nodeValue;
public:
explicit AddNodeDialog(LsbObject *parentObject, std::vector<TAG_LSB *> *tagList, QWidget *parent = 0);
~AddNodeDialog();
LsbObject *getNewLsbObject();
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void on_nameEdit_textChanged(const QString &text);
void on_typeEdit_textChanged(const QString &text);
void on_valueEdit_textChanged(const QString &text);
void on_yesDir_clicked();
void on_noDir_clicked();
private:
Ui::AddNodeDialog *ui;
};
#endif // ADDNODEDIALOG_H