9 #ifndef UI_CALLCONTRACT_H 10 #define UI_CALLCONTRACT_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QFrame> 17 #include <QtWidgets/QGridLayout> 18 #include <QtWidgets/QGroupBox> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QPushButton> 23 #include <QtWidgets/QScrollArea> 24 #include <QtWidgets/QSpacerItem> 25 #include <QtWidgets/QStackedWidget> 26 #include <QtWidgets/QToolButton> 27 #include <QtWidgets/QVBoxLayout> 28 #include <QtWidgets/QWidget> 72 if (CallContract->objectName().isEmpty())
73 CallContract->setObjectName(QStringLiteral(
"CallContract"));
74 CallContract->resize(690, 499);
75 verticalLayout =
new QVBoxLayout(CallContract);
76 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
77 stackedWidget =
new QStackedWidget(CallContract);
78 stackedWidget->setObjectName(QStringLiteral(
"stackedWidget"));
79 callContractPage =
new QWidget();
80 callContractPage->setObjectName(QStringLiteral(
"callContractPage"));
81 verticalLayout_4 =
new QVBoxLayout(callContractPage);
82 verticalLayout_4->setObjectName(QStringLiteral(
"verticalLayout_4"));
83 verticalLayout_4->setContentsMargins(0, 0, 0, 0);
84 labelTitle =
new QLabel(callContractPage);
85 labelTitle->setObjectName(QStringLiteral(
"labelTitle"));
89 labelTitle->setFont(font);
91 verticalLayout_4->addWidget(labelTitle);
93 frameContract =
new QFrame(callContractPage);
94 frameContract->setObjectName(QStringLiteral(
"frameContract"));
95 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
96 sizePolicy.setHorizontalStretch(0);
97 sizePolicy.setVerticalStretch(0);
98 sizePolicy.setHeightForWidth(frameContract->sizePolicy().hasHeightForWidth());
99 frameContract->setSizePolicy(sizePolicy);
100 frameContract->setFrameShape(QFrame::StyledPanel);
101 frameContract->setFrameShadow(QFrame::Raised);
102 verticalLayout_2 =
new QVBoxLayout(frameContract);
103 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
104 verticalLayout_2->setContentsMargins(0, -1, 0, -1);
105 gridLayout =
new QGridLayout();
106 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
107 gridLayout->setHorizontalSpacing(15);
108 gridLayout->setVerticalSpacing(12);
109 gridLayout->setContentsMargins(12, -1, -1, -1);
110 labelContractAddress =
new QLabel(frameContract);
111 labelContractAddress->setObjectName(QStringLiteral(
"labelContractAddress"));
113 gridLayout->addWidget(labelContractAddress, 0, 0, 1, 1);
116 textEditInterface->setObjectName(QStringLiteral(
"textEditInterface"));
117 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
118 sizePolicy1.setHorizontalStretch(0);
119 sizePolicy1.setVerticalStretch(0);
120 sizePolicy1.setHeightForWidth(textEditInterface->sizePolicy().hasHeightForWidth());
121 textEditInterface->setSizePolicy(sizePolicy1);
122 textEditInterface->setMaximumSize(QSize(16777215, 65));
123 textEditInterface->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
125 gridLayout->addWidget(textEditInterface, 1, 2, 1, 1);
127 horizontalLayout_2 =
new QHBoxLayout();
128 horizontalLayout_2->setSpacing(5);
129 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
131 lineEditContractAddress->setObjectName(QStringLiteral(
"lineEditContractAddress"));
133 horizontalLayout_2->addWidget(lineEditContractAddress);
135 loadInfoButton =
new QToolButton(frameContract);
136 loadInfoButton->setObjectName(QStringLiteral(
"loadInfoButton"));
137 loadInfoButton->setIconSize(QSize(22, 22));
139 horizontalLayout_2->addWidget(loadInfoButton);
141 vLine =
new QFrame(frameContract);
142 vLine->setObjectName(QStringLiteral(
"vLine"));
143 vLine->setMaximumSize(QSize(1, 22));
144 vLine->setFrameShape(QFrame::VLine);
145 vLine->setFrameShadow(QFrame::Sunken);
147 horizontalLayout_2->addWidget(vLine);
149 pasteAddressButton =
new QToolButton(frameContract);
150 pasteAddressButton->setObjectName(QStringLiteral(
"pasteAddressButton"));
151 pasteAddressButton->setIconSize(QSize(22, 22));
153 horizontalLayout_2->addWidget(pasteAddressButton);
155 vLine2 =
new QFrame(frameContract);
156 vLine2->setObjectName(QStringLiteral(
"vLine2"));
157 vLine2->setMaximumSize(QSize(1, 22));
158 vLine2->setFrameShape(QFrame::VLine);
159 vLine2->setFrameShadow(QFrame::Sunken);
161 horizontalLayout_2->addWidget(vLine2);
163 saveInfoButton =
new QToolButton(frameContract);
164 saveInfoButton->setObjectName(QStringLiteral(
"saveInfoButton"));
165 saveInfoButton->setIconSize(QSize(22, 22));
167 horizontalLayout_2->addWidget(saveInfoButton);
170 gridLayout->addLayout(horizontalLayout_2, 0, 2, 1, 1);
172 labelInterface =
new QLabel(frameContract);
173 labelInterface->setObjectName(QStringLiteral(
"labelInterface"));
175 gridLayout->addWidget(labelInterface, 1, 0, 1, 1, Qt::AlignTop);
178 verticalLayout_2->addLayout(gridLayout);
181 verticalLayout_4->addWidget(frameContract);
183 groupBoxFunction =
new QGroupBox(callContractPage);
184 groupBoxFunction->setObjectName(QStringLiteral(
"groupBoxFunction"));
185 verticalLayout_3 =
new QVBoxLayout(groupBoxFunction);
186 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
187 verticalLayout_3->setContentsMargins(15, 15, -1, -1);
188 scrollAreaFunction =
new QScrollArea(groupBoxFunction);
189 scrollAreaFunction->setObjectName(QStringLiteral(
"scrollAreaFunction"));
190 scrollAreaFunction->setWidgetResizable(
true);
191 scrollAreaWidgetContents =
new QWidget();
192 scrollAreaWidgetContents->setObjectName(QStringLiteral(
"scrollAreaWidgetContents"));
193 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 640, 155));
194 scrollAreaFunction->setWidget(scrollAreaWidgetContents);
196 verticalLayout_3->addWidget(scrollAreaFunction);
199 verticalLayout_4->addWidget(groupBoxFunction);
201 groupBoxOptional =
new QGroupBox(callContractPage);
202 groupBoxOptional->setObjectName(QStringLiteral(
"groupBoxOptional"));
203 gridLayout_3 =
new QGridLayout(groupBoxOptional);
204 gridLayout_3->setObjectName(QStringLiteral(
"gridLayout_3"));
205 gridLayout_3->setHorizontalSpacing(10);
206 gridLayout_3->setVerticalSpacing(6);
207 gridLayout_3->setContentsMargins(15, 15, -1, -1);
208 lineEditSenderAddress =
new AddressField(groupBoxOptional);
209 lineEditSenderAddress->setObjectName(QStringLiteral(
"lineEditSenderAddress"));
210 lineEditSenderAddress->setMinimumSize(QSize(370, 0));
212 gridLayout_3->addWidget(lineEditSenderAddress, 0, 1, 1, 1);
214 labelSenderAddress =
new QLabel(groupBoxOptional);
215 labelSenderAddress->setObjectName(QStringLiteral(
"labelSenderAddress"));
216 QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
217 sizePolicy2.setHorizontalStretch(0);
218 sizePolicy2.setVerticalStretch(0);
219 sizePolicy2.setHeightForWidth(labelSenderAddress->sizePolicy().hasHeightForWidth());
220 labelSenderAddress->setSizePolicy(sizePolicy2);
221 labelSenderAddress->setMinimumSize(QSize(160, 0));
223 gridLayout_3->addWidget(labelSenderAddress, 0, 0, 1, 1);
226 verticalLayout_4->addWidget(groupBoxOptional);
228 stackedWidget->addWidget(callContractPage);
230 verticalLayout->addWidget(stackedWidget);
232 horizontalLayout =
new QHBoxLayout();
233 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
234 horizontalLayout->setContentsMargins(9, 9, 9, 9);
235 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
237 horizontalLayout->addItem(horizontalSpacer);
239 pushButtonClearAll =
new QPushButton(CallContract);
240 pushButtonClearAll->setObjectName(QStringLiteral(
"pushButtonClearAll"));
242 horizontalLayout->addWidget(pushButtonClearAll);
244 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
246 horizontalLayout->addItem(horizontalSpacer_3);
248 pushButtonCallContract =
new QPushButton(CallContract);
249 pushButtonCallContract->setObjectName(QStringLiteral(
"pushButtonCallContract"));
251 horizontalLayout->addWidget(pushButtonCallContract);
254 verticalLayout->addLayout(horizontalLayout);
259 stackedWidget->setCurrentIndex(0);
262 QMetaObject::connectSlotsByName(CallContract);
267 CallContract->setWindowTitle(QApplication::translate(
"CallContract",
"Form", 0));
268 labelTitle->setText(QApplication::translate(
"CallContract",
"Call Smart Contract", 0));
269 labelContractAddress->setText(QApplication::translate(
"CallContract",
"Contract Address", 0));
270 #ifndef QT_NO_TOOLTIP 271 loadInfoButton->setToolTip(QApplication::translate(
"CallContract",
"Choose from contract book page", 0));
272 #endif // QT_NO_TOOLTIP 273 loadInfoButton->setText(QString());
274 #ifndef QT_NO_TOOLTIP 275 pasteAddressButton->setToolTip(QApplication::translate(
"CallContract",
"Paste contract address from clipboard", 0));
276 #endif // QT_NO_TOOLTIP 277 pasteAddressButton->setText(QString());
278 #ifndef QT_NO_TOOLTIP 279 saveInfoButton->setToolTip(QApplication::translate(
"CallContract",
"Save contract info", 0));
280 #endif // QT_NO_TOOLTIP 281 saveInfoButton->setText(QString());
282 labelInterface->setText(QApplication::translate(
"CallContract",
"Interface (ABI)", 0));
283 groupBoxFunction->setTitle(QApplication::translate(
"CallContract",
"Function", 0));
284 groupBoxOptional->setTitle(QApplication::translate(
"CallContract",
"Optional", 0));
285 labelSenderAddress->setText(QApplication::translate(
"CallContract",
"Sender Address", 0));
286 pushButtonClearAll->setText(QApplication::translate(
"CallContract",
"Clear All", 0));
287 pushButtonCallContract->setText(QApplication::translate(
"CallContract",
"Call Contract", 0));
298 #endif // UI_CALLCONTRACT_H QGroupBox * groupBoxFunction
QLabel * labelContractAddress
QToolButton * pasteAddressButton
void setupUi(QWidget *CallContract)
QToolButton * loadInfoButton
QVBoxLayout * verticalLayout_4
QHBoxLayout * horizontalLayout
Drop down list of addresses.
QValidatedLineEdit * lineEditContractAddress
QWidget * callContractPage
QVBoxLayout * verticalLayout
QLabel * labelSenderAddress
Line edit that can be marked as "invalid" to show input validation feedback.
QPushButton * pushButtonClearAll
QScrollArea * scrollAreaFunction
void retranslateUi(QWidget *CallContract)
QSpacerItem * horizontalSpacer
QHBoxLayout * horizontalLayout_2
QStackedWidget * stackedWidget
AddressField * lineEditSenderAddress
QVBoxLayout * verticalLayout_2
QVBoxLayout * verticalLayout_3
QToolButton * saveInfoButton
QGroupBox * groupBoxOptional
QPushButton * pushButtonCallContract
QWidget * scrollAreaWidgetContents
QValidatedTextEdit * textEditInterface
QSpacerItem * horizontalSpacer_3
QGridLayout * gridLayout_3