9 #ifndef UI_EDITCONTRACTINFODIALOG_H 10 #define UI_EDITCONTRACTINFODIALOG_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/QSpacerItem> 24 #include <QtWidgets/QVBoxLayout> 25 #include <QtWidgets/QWidget> 50 if (EditContractInfoDialog->objectName().isEmpty())
51 EditContractInfoDialog->setObjectName(QStringLiteral(
"EditContractInfoDialog"));
52 EditContractInfoDialog->resize(590, 350);
53 verticalLayout =
new QVBoxLayout(EditContractInfoDialog);
54 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
55 verticalLayout->setContentsMargins(0, 15, 0, 0);
56 gridLayout =
new QGridLayout();
57 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
58 gridLayout->setVerticalSpacing(15);
59 gridLayout->setContentsMargins(30, -1, 30, -1);
60 labelName =
new QLabel(EditContractInfoDialog);
61 labelName->setObjectName(QStringLiteral(
"labelName"));
63 gridLayout->addWidget(labelName, 0, 0, 1, 1);
65 labelEdit =
new QLineEdit(EditContractInfoDialog);
66 labelEdit->setObjectName(QStringLiteral(
"labelEdit"));
68 gridLayout->addWidget(labelEdit, 0, 1, 1, 1);
70 labelAddress =
new QLabel(EditContractInfoDialog);
71 labelAddress->setObjectName(QStringLiteral(
"labelAddress"));
73 gridLayout->addWidget(labelAddress, 1, 0, 1, 1);
76 addressEdit->setObjectName(QStringLiteral(
"addressEdit"));
78 gridLayout->addWidget(addressEdit, 1, 1, 1, 1);
81 ABIEdit->setObjectName(QStringLiteral(
"ABIEdit"));
83 gridLayout->addWidget(ABIEdit, 2, 1, 1, 1);
85 verticalLayout_3 =
new QVBoxLayout();
86 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
87 labelABI =
new QLabel(EditContractInfoDialog);
88 labelABI->setObjectName(QStringLiteral(
"labelABI"));
90 verticalLayout_3->addWidget(labelABI);
92 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
94 verticalLayout_3->addItem(verticalSpacer);
97 gridLayout->addLayout(verticalLayout_3, 2, 0, 1, 1);
100 verticalLayout->addLayout(gridLayout);
102 buttonsContainerWhite =
new QWidget(EditContractInfoDialog);
103 buttonsContainerWhite->setObjectName(QStringLiteral(
"buttonsContainerWhite"));
104 horizontalLayout =
new QHBoxLayout(buttonsContainerWhite);
105 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
106 horizontalLayout->setContentsMargins(30, 15, 30, 15);
107 buttonBox =
new QDialogButtonBox(buttonsContainerWhite);
108 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
109 buttonBox->setOrientation(Qt::Horizontal);
110 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
111 buttonBox->setCenterButtons(
true);
113 horizontalLayout->addWidget(buttonBox);
116 verticalLayout->addWidget(buttonsContainerWhite);
120 QObject::connect(buttonBox, SIGNAL(accepted()), EditContractInfoDialog, SLOT(accept()));
121 QObject::connect(buttonBox, SIGNAL(rejected()), EditContractInfoDialog, SLOT(reject()));
123 QMetaObject::connectSlotsByName(EditContractInfoDialog);
128 EditContractInfoDialog->setWindowTitle(QApplication::translate(
"EditContractInfoDialog",
"Dialog", 0));
129 labelName->setText(QApplication::translate(
"EditContractInfoDialog",
"Label", 0));
130 labelAddress->setText(QApplication::translate(
"EditContractInfoDialog",
"Contract Address", 0));
131 labelABI->setText(QApplication::translate(
"EditContractInfoDialog",
"Interface (ABI)", 0));
142 #endif // UI_EDITCONTRACTINFODIALOG_H Dialog for editing a contract information.
QValidatedTextEdit * ABIEdit
QHBoxLayout * horizontalLayout
void setupUi(QDialog *EditContractInfoDialog)
Line edit that can be marked as "invalid" to show input validation feedback.
QWidget * buttonsContainerWhite
QVBoxLayout * verticalLayout_3
QDialogButtonBox * buttonBox
QSpacerItem * verticalSpacer
void retranslateUi(QDialog *EditContractInfoDialog)
QVBoxLayout * verticalLayout
QValidatedLineEdit * addressEdit