9 #ifndef UI_SENDTOCONTRACT_H 10 #define UI_SENDTOCONTRACT_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/QSpinBox> 26 #include <QtWidgets/QStackedWidget> 27 #include <QtWidgets/QToolButton> 28 #include <QtWidgets/QVBoxLayout> 29 #include <QtWidgets/QWidget> 81 if (SendToContract->objectName().isEmpty())
82 SendToContract->setObjectName(QStringLiteral(
"SendToContract"));
83 SendToContract->resize(689, 583);
84 verticalLayout =
new QVBoxLayout(SendToContract);
85 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
86 stackedWidget =
new QStackedWidget(SendToContract);
87 stackedWidget->setObjectName(QStringLiteral(
"stackedWidget"));
88 sendContractPage =
new QWidget();
89 sendContractPage->setObjectName(QStringLiteral(
"sendContractPage"));
90 verticalLayout_4 =
new QVBoxLayout(sendContractPage);
91 verticalLayout_4->setObjectName(QStringLiteral(
"verticalLayout_4"));
92 verticalLayout_4->setContentsMargins(0, 0, 0, 0);
93 labelTitle =
new QLabel(sendContractPage);
94 labelTitle->setObjectName(QStringLiteral(
"labelTitle"));
98 labelTitle->setFont(font);
100 verticalLayout_4->addWidget(labelTitle);
102 frameContract =
new QFrame(sendContractPage);
103 frameContract->setObjectName(QStringLiteral(
"frameContract"));
104 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
105 sizePolicy.setHorizontalStretch(0);
106 sizePolicy.setVerticalStretch(0);
107 sizePolicy.setHeightForWidth(frameContract->sizePolicy().hasHeightForWidth());
108 frameContract->setSizePolicy(sizePolicy);
109 frameContract->setFrameShape(QFrame::StyledPanel);
110 frameContract->setFrameShadow(QFrame::Raised);
111 verticalLayout_2 =
new QVBoxLayout(frameContract);
112 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
113 verticalLayout_2->setContentsMargins(0, -1, 0, -1);
114 gridLayout =
new QGridLayout();
115 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
116 gridLayout->setHorizontalSpacing(15);
117 gridLayout->setVerticalSpacing(12);
118 gridLayout->setContentsMargins(12, -1, -1, -1);
119 horizontalLayout_2 =
new QHBoxLayout();
120 horizontalLayout_2->setSpacing(5);
121 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
123 lineEditContractAddress->setObjectName(QStringLiteral(
"lineEditContractAddress"));
125 horizontalLayout_2->addWidget(lineEditContractAddress);
127 loadInfoButton =
new QToolButton(frameContract);
128 loadInfoButton->setObjectName(QStringLiteral(
"loadInfoButton"));
129 loadInfoButton->setIconSize(QSize(22, 22));
131 horizontalLayout_2->addWidget(loadInfoButton);
133 vLine =
new QFrame(frameContract);
134 vLine->setObjectName(QStringLiteral(
"vLine"));
135 vLine->setMaximumSize(QSize(1, 22));
136 vLine->setFrameShape(QFrame::VLine);
137 vLine->setFrameShadow(QFrame::Sunken);
139 horizontalLayout_2->addWidget(vLine);
141 pasteAddressButton =
new QToolButton(frameContract);
142 pasteAddressButton->setObjectName(QStringLiteral(
"pasteAddressButton"));
143 pasteAddressButton->setIconSize(QSize(22, 22));
145 horizontalLayout_2->addWidget(pasteAddressButton);
147 vLine2 =
new QFrame(frameContract);
148 vLine2->setObjectName(QStringLiteral(
"vLine2"));
149 vLine2->setMaximumSize(QSize(1, 22));
150 vLine2->setFrameShape(QFrame::VLine);
151 vLine2->setFrameShadow(QFrame::Sunken);
153 horizontalLayout_2->addWidget(vLine2);
155 saveInfoButton =
new QToolButton(frameContract);
156 saveInfoButton->setObjectName(QStringLiteral(
"saveInfoButton"));
157 saveInfoButton->setIconSize(QSize(22, 22));
159 horizontalLayout_2->addWidget(saveInfoButton);
162 gridLayout->addLayout(horizontalLayout_2, 0, 2, 1, 1);
164 labelContractAddress =
new QLabel(frameContract);
165 labelContractAddress->setObjectName(QStringLiteral(
"labelContractAddress"));
167 gridLayout->addWidget(labelContractAddress, 0, 0, 1, 1);
170 textEditInterface->setObjectName(QStringLiteral(
"textEditInterface"));
171 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
172 sizePolicy1.setHorizontalStretch(0);
173 sizePolicy1.setVerticalStretch(0);
174 sizePolicy1.setHeightForWidth(textEditInterface->sizePolicy().hasHeightForWidth());
175 textEditInterface->setSizePolicy(sizePolicy1);
176 textEditInterface->setMaximumSize(QSize(16777215, 65));
177 textEditInterface->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
179 gridLayout->addWidget(textEditInterface, 1, 2, 1, 1);
181 labelInterface =
new QLabel(frameContract);
182 labelInterface->setObjectName(QStringLiteral(
"labelInterface"));
184 gridLayout->addWidget(labelInterface, 1, 0, 1, 1, Qt::AlignTop);
187 verticalLayout_2->addLayout(gridLayout);
190 verticalLayout_4->addWidget(frameContract);
192 groupBoxFunction =
new QGroupBox(sendContractPage);
193 groupBoxFunction->setObjectName(QStringLiteral(
"groupBoxFunction"));
194 verticalLayout_3 =
new QVBoxLayout(groupBoxFunction);
195 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
196 verticalLayout_3->setContentsMargins(15, 15, -1, 9);
197 scrollAreaFunction =
new QScrollArea(groupBoxFunction);
198 scrollAreaFunction->setObjectName(QStringLiteral(
"scrollAreaFunction"));
199 scrollAreaFunction->setWidgetResizable(
true);
200 scrollAreaWidgetContents =
new QWidget();
201 scrollAreaWidgetContents->setObjectName(QStringLiteral(
"scrollAreaWidgetContents"));
202 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 639, 182));
203 scrollAreaFunction->setWidget(scrollAreaWidgetContents);
205 verticalLayout_3->addWidget(scrollAreaFunction);
208 verticalLayout_4->addWidget(groupBoxFunction);
210 groupBoxOptional =
new QGroupBox(sendContractPage);
211 groupBoxOptional->setObjectName(QStringLiteral(
"groupBoxOptional"));
212 gridLayout_2 =
new QGridLayout(groupBoxOptional);
213 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
214 gridLayout_2->setHorizontalSpacing(10);
215 gridLayout_2->setVerticalSpacing(6);
216 gridLayout_2->setContentsMargins(15, 15, -1, -1);
218 lineEditAmount->setObjectName(QStringLiteral(
"lineEditAmount"));
220 gridLayout_2->addWidget(lineEditAmount, 0, 1, 1, 4);
222 labelGasLimit =
new QLabel(groupBoxOptional);
223 labelGasLimit->setObjectName(QStringLiteral(
"labelGasLimit"));
224 QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
225 sizePolicy2.setHorizontalStretch(0);
226 sizePolicy2.setVerticalStretch(0);
227 sizePolicy2.setHeightForWidth(labelGasLimit->sizePolicy().hasHeightForWidth());
228 labelGasLimit->setSizePolicy(sizePolicy2);
229 labelGasLimit->setMinimumSize(QSize(130, 0));
231 gridLayout_2->addWidget(labelGasLimit, 1, 0, 1, 1);
233 labelGasPrice =
new QLabel(groupBoxOptional);
234 labelGasPrice->setObjectName(QStringLiteral(
"labelGasPrice"));
235 sizePolicy2.setHeightForWidth(labelGasPrice->sizePolicy().hasHeightForWidth());
236 labelGasPrice->setSizePolicy(sizePolicy2);
237 labelGasPrice->setMinimumSize(QSize(90, 0));
239 gridLayout_2->addWidget(labelGasPrice, 1, 3, 1, 1);
241 lineEditSenderAddress =
new AddressField(groupBoxOptional);
242 lineEditSenderAddress->setObjectName(QStringLiteral(
"lineEditSenderAddress"));
243 lineEditSenderAddress->setMinimumSize(QSize(370, 0));
245 gridLayout_2->addWidget(lineEditSenderAddress, 3, 1, 1, 4);
247 labelAmount =
new QLabel(groupBoxOptional);
248 labelAmount->setObjectName(QStringLiteral(
"labelAmount"));
249 sizePolicy2.setHeightForWidth(labelAmount->sizePolicy().hasHeightForWidth());
250 labelAmount->setSizePolicy(sizePolicy2);
251 labelAmount->setMinimumSize(QSize(130, 0));
253 gridLayout_2->addWidget(labelAmount, 0, 0, 1, 1);
256 lineEditGasPrice->setObjectName(QStringLiteral(
"lineEditGasPrice"));
258 gridLayout_2->addWidget(lineEditGasPrice, 1, 4, 1, 1);
260 labelSenderAddress =
new QLabel(groupBoxOptional);
261 labelSenderAddress->setObjectName(QStringLiteral(
"labelSenderAddress"));
262 sizePolicy2.setHeightForWidth(labelSenderAddress->sizePolicy().hasHeightForWidth());
263 labelSenderAddress->setSizePolicy(sizePolicy2);
264 labelSenderAddress->setMinimumSize(QSize(130, 0));
266 gridLayout_2->addWidget(labelSenderAddress, 3, 0, 1, 1);
268 lineEditGasLimit =
new QSpinBox(groupBoxOptional);
269 lineEditGasLimit->setObjectName(QStringLiteral(
"lineEditGasLimit"));
270 sizePolicy1.setHeightForWidth(lineEditGasLimit->sizePolicy().hasHeightForWidth());
271 lineEditGasLimit->setSizePolicy(sizePolicy1);
272 lineEditGasLimit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
274 gridLayout_2->addWidget(lineEditGasLimit, 1, 1, 1, 1);
276 horizontalSpacer_2 =
new QSpacerItem(60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
278 gridLayout_2->addItem(horizontalSpacer_2, 1, 2, 1, 1);
281 verticalLayout_4->addWidget(groupBoxOptional);
283 stackedWidget->addWidget(sendContractPage);
285 verticalLayout->addWidget(stackedWidget);
287 horizontalLayout =
new QHBoxLayout();
288 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
289 horizontalLayout->setContentsMargins(9, 9, 9, 9);
290 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
292 horizontalLayout->addItem(horizontalSpacer);
294 pushButtonClearAll =
new QPushButton(SendToContract);
295 pushButtonClearAll->setObjectName(QStringLiteral(
"pushButtonClearAll"));
297 horizontalLayout->addWidget(pushButtonClearAll);
299 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
301 horizontalLayout->addItem(horizontalSpacer_3);
303 pushButtonSendToContract =
new QPushButton(SendToContract);
304 pushButtonSendToContract->setObjectName(QStringLiteral(
"pushButtonSendToContract"));
306 horizontalLayout->addWidget(pushButtonSendToContract);
309 verticalLayout->addLayout(horizontalLayout);
314 stackedWidget->setCurrentIndex(0);
317 QMetaObject::connectSlotsByName(SendToContract);
322 SendToContract->setWindowTitle(QApplication::translate(
"SendToContract",
"Form", 0));
323 labelTitle->setText(QApplication::translate(
"SendToContract",
"Send to Smart Contract", 0));
324 #ifndef QT_NO_TOOLTIP 325 loadInfoButton->setToolTip(QApplication::translate(
"SendToContract",
"Choose from contract book page", 0));
326 #endif // QT_NO_TOOLTIP 327 loadInfoButton->setText(QString());
328 #ifndef QT_NO_TOOLTIP 329 pasteAddressButton->setToolTip(QApplication::translate(
"SendToContract",
"Paste contract address from clipboard", 0));
330 #endif // QT_NO_TOOLTIP 331 pasteAddressButton->setText(QString());
332 #ifndef QT_NO_TOOLTIP 333 saveInfoButton->setToolTip(QApplication::translate(
"SendToContract",
"Save contract info", 0));
334 #endif // QT_NO_TOOLTIP 335 saveInfoButton->setText(QString());
336 labelContractAddress->setText(QApplication::translate(
"SendToContract",
"Contract Address", 0));
337 labelInterface->setText(QApplication::translate(
"SendToContract",
"Interface (ABI)", 0));
338 groupBoxFunction->setTitle(QApplication::translate(
"SendToContract",
"Function", 0));
339 groupBoxOptional->setTitle(QApplication::translate(
"SendToContract",
"Optional", 0));
340 labelGasLimit->setText(QApplication::translate(
"SendToContract",
"Gas Limit", 0));
341 labelGasPrice->setText(QApplication::translate(
"SendToContract",
"Gas Price", 0));
342 labelAmount->setText(QApplication::translate(
"SendToContract",
"Amount", 0));
343 labelSenderAddress->setText(QApplication::translate(
"SendToContract",
"Sender Address", 0));
344 pushButtonClearAll->setText(QApplication::translate(
"SendToContract",
"Clear All", 0));
345 pushButtonSendToContract->setText(QApplication::translate(
"SendToContract",
"Send To Contract", 0));
356 #endif // UI_SENDTOCONTRACT_H Widget for entering fabcoin amounts.
QPushButton * pushButtonSendToContract
QLabel * labelContractAddress
QGridLayout * gridLayout_2
QGroupBox * groupBoxOptional
QVBoxLayout * verticalLayout_2
void setupUi(QWidget *SendToContract)
Drop down list of addresses.
QLabel * labelSenderAddress
Line edit that can be marked as "invalid" to show input validation feedback.
QHBoxLayout * horizontalLayout
QVBoxLayout * verticalLayout
QToolButton * pasteAddressButton
QSpacerItem * horizontalSpacer_2
QVBoxLayout * verticalLayout_3
FabcoinAmountField * lineEditAmount
QSpacerItem * horizontalSpacer_3
AddressField * lineEditSenderAddress
QHBoxLayout * horizontalLayout_2
FabcoinAmountField * lineEditGasPrice
QVBoxLayout * verticalLayout_4
QPushButton * pushButtonClearAll
void retranslateUi(QWidget *SendToContract)
QValidatedLineEdit * lineEditContractAddress
QStackedWidget * stackedWidget
QGroupBox * groupBoxFunction
QToolButton * loadInfoButton
QWidget * scrollAreaWidgetContents
QWidget * sendContractPage
QSpinBox * lineEditGasLimit
QSpacerItem * horizontalSpacer
QToolButton * saveInfoButton
QValidatedTextEdit * textEditInterface
QScrollArea * scrollAreaFunction