9 #ifndef UI_MANUALCONNECTIONDIALOG_H 10 #define UI_MANUALCONNECTIONDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QLineEdit> 23 #include <QtWidgets/QSpinBox> 24 #include <QtWidgets/QVBoxLayout> 41 void setupUi(QDialog *manualConnectionDialog)
43 if (manualConnectionDialog->objectName().isEmpty())
44 manualConnectionDialog->setObjectName(QStringLiteral(
"manualConnectionDialog"));
45 manualConnectionDialog->resize(507, 164);
46 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::MinimumExpanding);
47 sizePolicy.setHorizontalStretch(0);
48 sizePolicy.setVerticalStretch(0);
49 sizePolicy.setHeightForWidth(manualConnectionDialog->sizePolicy().hasHeightForWidth());
50 manualConnectionDialog->setSizePolicy(sizePolicy);
51 manualConnectionDialog->setMinimumSize(QSize(0, 0));
52 manualConnectionDialog->setSizeGripEnabled(
true);
53 gridLayout =
new QGridLayout(manualConnectionDialog);
54 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
55 verticalLayout =
new QVBoxLayout();
56 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
57 verticalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
58 verticalLayout->setContentsMargins(-1, -1, -1, 0);
59 portLayout =
new QHBoxLayout();
60 portLayout->setObjectName(QStringLiteral(
"portLayout"));
61 portLayout->setContentsMargins(-1, 0, -1, -1);
62 portLabel =
new QLabel(manualConnectionDialog);
63 portLabel->setObjectName(QStringLiteral(
"portLabel"));
65 portLayout->addWidget(portLabel);
67 portEdit =
new QSpinBox(manualConnectionDialog);
68 portEdit->setObjectName(QStringLiteral(
"portEdit"));
69 portEdit->setMaximumSize(QSize(100, 16777215));
70 portEdit->setMinimum(1);
71 portEdit->setMaximum(65535);
73 portLayout->addWidget(portEdit);
76 verticalLayout->addLayout(portLayout);
78 addrLayout =
new QHBoxLayout();
79 addrLayout->setObjectName(QStringLiteral(
"addrLayout"));
80 addrLayout->setContentsMargins(-1, 0, -1, -1);
81 addressLabel =
new QLabel(manualConnectionDialog);
82 addressLabel->setObjectName(QStringLiteral(
"addressLabel"));
84 addrLayout->addWidget(addressLabel);
86 addressEdit =
new QLineEdit(manualConnectionDialog);
87 addressEdit->setObjectName(QStringLiteral(
"addressEdit"));
88 addressEdit->setMinimumSize(QSize(250, 0));
90 addrLayout->addWidget(addressEdit);
93 verticalLayout->addLayout(addrLayout);
96 gridLayout->addLayout(verticalLayout, 0, 0, 1, 1);
98 connectionDlgButtonBox =
new QDialogButtonBox(manualConnectionDialog);
99 connectionDlgButtonBox->setObjectName(QStringLiteral(
"connectionDlgButtonBox"));
100 connectionDlgButtonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
102 gridLayout->addWidget(connectionDlgButtonBox, 1, 0, 1, 1);
104 QWidget::setTabOrder(portEdit, addressEdit);
105 QWidget::setTabOrder(addressEdit, connectionDlgButtonBox);
108 QObject::connect(connectionDlgButtonBox, SIGNAL(rejected()), manualConnectionDialog, SLOT(reject()));
110 QMetaObject::connectSlotsByName(manualConnectionDialog);
115 manualConnectionDialog->setWindowTitle(QApplication::translate(
"manualConnectionDialog",
"Manually add node to connection queue", Q_NULLPTR));
116 portLabel->setText(QApplication::translate(
"manualConnectionDialog",
"Remote node listen port", Q_NULLPTR));
117 addressLabel->setText(QApplication::translate(
"manualConnectionDialog",
"Remote node network address", Q_NULLPTR));
118 #ifndef QT_NO_TOOLTIP 119 addressEdit->setToolTip(QApplication::translate(
"manualConnectionDialog",
"IPv4, IPv6 or DNS name", Q_NULLPTR));
120 #endif // QT_NO_TOOLTIP 131 #endif // UI_MANUALCONNECTIONDIALOG_H QLabel * portLabel
Definition: ui_manualConnectionDialog.h:34
Definition: ui_aboutDialog.h:161
QHBoxLayout * addrLayout
Definition: ui_manualConnectionDialog.h:36
Definition: ui_manualConnectionDialog.h:126
QHBoxLayout * portLayout
Definition: ui_manualConnectionDialog.h:33
void setupUi(QDialog *manualConnectionDialog)
Definition: ui_manualConnectionDialog.h:41
QDialogButtonBox * connectionDlgButtonBox
Definition: ui_manualConnectionDialog.h:39
QLabel * addressLabel
Definition: ui_manualConnectionDialog.h:37
QLineEdit * addressEdit
Definition: ui_manualConnectionDialog.h:38
QVBoxLayout * verticalLayout
Definition: ui_manualConnectionDialog.h:32
QSpinBox * portEdit
Definition: ui_manualConnectionDialog.h:35
void retranslateUi(QDialog *manualConnectionDialog)
Definition: ui_manualConnectionDialog.h:113
QGridLayout * gridLayout
Definition: ui_manualConnectionDialog.h:31
Definition: ui_manualConnectionDialog.h:28