-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui_Conf.h
87 lines (76 loc) · 2.92 KB
/
ui_Conf.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/********************************************************************************
** Form generated from reading UI file 'Conf.ui'
**
** Created by: Qt User Interface Compiler version 5.7.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_CONF_H
#define UI_CONF_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
QT_BEGIN_NAMESPACE
class Ui_Conf
{
public:
QDialogButtonBox *buttonBox;
QLineEdit *serverIPaddress;
QLabel *labelServerIP;
QLabel *labelServerPort;
QLineEdit *serverPort;
QString IPaddress;
QString IPport;
QString getIP(){
return serverIPaddress->text();
}
QString getPort(){
return serverPort->text();
}
void setupUi(QDialog *Conf)
{
if (Conf->objectName().isEmpty())
Conf->setObjectName(QStringLiteral("Conf"));
Conf->resize(400, 300);
buttonBox = new QDialogButtonBox(Conf);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
buttonBox->setGeometry(QRect(30, 240, 341, 32));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
serverIPaddress = new QLineEdit(Conf);
serverIPaddress->setObjectName(QStringLiteral("serverIPaddress"));
serverIPaddress->setText(IPaddress);
serverIPaddress->setGeometry(QRect(120, 21, 251, 20));
labelServerIP = new QLabel(Conf);
labelServerIP->setObjectName(QStringLiteral("labelServerIP"));
labelServerIP->setGeometry(QRect(10, 24, 111, 16));
labelServerPort = new QLabel(Conf);
labelServerPort->setObjectName(QStringLiteral("labelServerPort"));
labelServerPort->setGeometry(QRect(46, 63, 71, 16));
serverPort = new QLineEdit(Conf);
serverPort->setObjectName(QStringLiteral("serverPort"));
serverPort->setGeometry(QRect(120, 60, 71, 20));
serverPort->setText(IPport);
retranslateUi(Conf);
QObject::connect(buttonBox, SIGNAL(accepted()), Conf, SLOT(accept()));
QObject::connect(buttonBox, SIGNAL(rejected()), Conf, SLOT(reject()));
QMetaObject::connectSlotsByName(Conf);
} // setupUi
void retranslateUi(QDialog *Conf)
{
Conf->setWindowTitle(QApplication::translate("Conf", "Configuration", 0));
labelServerIP->setText(QApplication::translate("Conf", "Server IP address", 0));
labelServerPort->setText(QApplication::translate("Conf", "Server Port", 0));
} // retranslateUi
};
namespace Ui {
class Conf: public Ui_Conf {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_CONF_H