9 #ifndef UI_CREATECONTRACT_H 10 #define UI_CREATECONTRACT_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/QVBoxLayout> 28 #include <QtWidgets/QWidget> 80 if (CreateContract->objectName().isEmpty())
81 CreateContract->setObjectName(QStringLiteral(
"CreateContract"));
82 CreateContract->resize(706, 587);
83 verticalLayout_7 =
new QVBoxLayout(CreateContract);
84 verticalLayout_7->setObjectName(QStringLiteral(
"verticalLayout_7"));
85 stackedWidget =
new QStackedWidget(CreateContract);
86 stackedWidget->setObjectName(QStringLiteral(
"stackedWidget"));
87 createContractPage =
new QWidget();
88 createContractPage->setObjectName(QStringLiteral(
"createContractPage"));
89 verticalLayout_8 =
new QVBoxLayout(createContractPage);
90 verticalLayout_8->setObjectName(QStringLiteral(
"verticalLayout_8"));
91 verticalLayout_8->setContentsMargins(0, 0, 0, 0);
92 horizontalLayout =
new QHBoxLayout();
93 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
94 labelTitle =
new QLabel(createContractPage);
95 labelTitle->setObjectName(QStringLiteral(
"labelTitle"));
99 labelTitle->setFont(font);
101 horizontalLayout->addWidget(labelTitle);
103 horizontalSpacer_4 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
105 horizontalLayout->addItem(horizontalSpacer_4);
107 labelSolidity =
new QLabel(createContractPage);
108 labelSolidity->setObjectName(QStringLiteral(
"labelSolidity"));
109 labelSolidity->setMinimumSize(QSize(80, 0));
111 horizontalLayout->addWidget(labelSolidity);
113 labelToken =
new QLabel(createContractPage);
114 labelToken->setObjectName(QStringLiteral(
"labelToken"));
116 horizontalLayout->addWidget(labelToken);
119 verticalLayout_8->addLayout(horizontalLayout);
121 frameContract =
new QFrame(createContractPage);
122 frameContract->setObjectName(QStringLiteral(
"frameContract"));
123 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
124 sizePolicy.setHorizontalStretch(0);
125 sizePolicy.setVerticalStretch(0);
126 sizePolicy.setHeightForWidth(frameContract->sizePolicy().hasHeightForWidth());
127 frameContract->setSizePolicy(sizePolicy);
128 frameContract->setFrameShape(QFrame::StyledPanel);
129 frameContract->setFrameShadow(QFrame::Raised);
130 verticalLayout_10 =
new QVBoxLayout(frameContract);
131 verticalLayout_10->setObjectName(QStringLiteral(
"verticalLayout_10"));
132 verticalLayout_10->setContentsMargins(0, -1, 0, -1);
133 gridLayout =
new QGridLayout();
134 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
135 gridLayout->setHorizontalSpacing(15);
136 gridLayout->setVerticalSpacing(12);
137 gridLayout->setContentsMargins(12, -1, -1, -1);
139 textEditBytecode->setObjectName(QStringLiteral(
"textEditBytecode"));
140 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
141 sizePolicy1.setHorizontalStretch(0);
142 sizePolicy1.setVerticalStretch(0);
143 sizePolicy1.setHeightForWidth(textEditBytecode->sizePolicy().hasHeightForWidth());
144 textEditBytecode->setSizePolicy(sizePolicy1);
145 textEditBytecode->setMaximumSize(QSize(16777215, 65));
146 textEditBytecode->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
148 gridLayout->addWidget(textEditBytecode, 0, 1, 1, 1);
150 verticalLayout =
new QVBoxLayout();
151 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
152 labelBytecode =
new QLabel(frameContract);
153 labelBytecode->setObjectName(QStringLiteral(
"labelBytecode"));
154 QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
155 sizePolicy2.setHorizontalStretch(0);
156 sizePolicy2.setVerticalStretch(0);
157 sizePolicy2.setHeightForWidth(labelBytecode->sizePolicy().hasHeightForWidth());
158 labelBytecode->setSizePolicy(sizePolicy2);
159 labelBytecode->setMinimumSize(QSize(100, 0));
161 verticalLayout->addWidget(labelBytecode);
163 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
165 verticalLayout->addItem(verticalSpacer_2);
168 gridLayout->addLayout(verticalLayout, 0, 0, 1, 1);
171 textEditInterface->setObjectName(QStringLiteral(
"textEditInterface"));
172 sizePolicy1.setHeightForWidth(textEditInterface->sizePolicy().hasHeightForWidth());
173 textEditInterface->setSizePolicy(sizePolicy1);
174 textEditInterface->setMaximumSize(QSize(16777215, 65));
175 textEditInterface->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
177 gridLayout->addWidget(textEditInterface, 1, 1, 1, 1);
179 verticalLayout_3 =
new QVBoxLayout();
180 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
181 labelInterface =
new QLabel(frameContract);
182 labelInterface->setObjectName(QStringLiteral(
"labelInterface"));
183 sizePolicy2.setHeightForWidth(labelInterface->sizePolicy().hasHeightForWidth());
184 labelInterface->setSizePolicy(sizePolicy2);
185 labelInterface->setMinimumSize(QSize(100, 0));
187 verticalLayout_3->addWidget(labelInterface);
189 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
191 verticalLayout_3->addItem(verticalSpacer);
194 gridLayout->addLayout(verticalLayout_3, 1, 0, 1, 1);
197 verticalLayout_10->addLayout(gridLayout);
200 verticalLayout_8->addWidget(frameContract);
202 groupBoxConstructor =
new QGroupBox(createContractPage);
203 groupBoxConstructor->setObjectName(QStringLiteral(
"groupBoxConstructor"));
204 verticalLayout_2 =
new QVBoxLayout(groupBoxConstructor);
205 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
206 verticalLayout_2->setContentsMargins(15, 15, -1, -1);
207 scrollAreaConstructor =
new QScrollArea(groupBoxConstructor);
208 scrollAreaConstructor->setObjectName(QStringLiteral(
"scrollAreaConstructor"));
209 scrollAreaConstructor->setWidgetResizable(
true);
210 scrollAreaWidgetContents =
new QWidget();
211 scrollAreaWidgetContents->setObjectName(QStringLiteral(
"scrollAreaWidgetContents"));
212 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 656, 172));
213 verticalLayout_5 =
new QVBoxLayout(scrollAreaWidgetContents);
214 verticalLayout_5->setObjectName(QStringLiteral(
"verticalLayout_5"));
215 scrollAreaConstructor->setWidget(scrollAreaWidgetContents);
217 verticalLayout_2->addWidget(scrollAreaConstructor);
220 verticalLayout_8->addWidget(groupBoxConstructor);
222 groupBoxOptional =
new QGroupBox(createContractPage);
223 groupBoxOptional->setObjectName(QStringLiteral(
"groupBoxOptional"));
224 gridLayout_2 =
new QGridLayout(groupBoxOptional);
225 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
226 gridLayout_2->setHorizontalSpacing(10);
227 gridLayout_2->setVerticalSpacing(6);
228 gridLayout_2->setContentsMargins(15, 15, -1, -1);
229 lineEditSenderAddress =
new AddressField(groupBoxOptional);
230 lineEditSenderAddress->setObjectName(QStringLiteral(
"lineEditSenderAddress"));
231 lineEditSenderAddress->setMinimumSize(QSize(370, 0));
233 gridLayout_2->addWidget(lineEditSenderAddress, 2, 1, 1, 4);
235 labelSenderAddress =
new QLabel(groupBoxOptional);
236 labelSenderAddress->setObjectName(QStringLiteral(
"labelSenderAddress"));
237 sizePolicy2.setHeightForWidth(labelSenderAddress->sizePolicy().hasHeightForWidth());
238 labelSenderAddress->setSizePolicy(sizePolicy2);
239 labelSenderAddress->setMinimumSize(QSize(130, 0));
241 gridLayout_2->addWidget(labelSenderAddress, 2, 0, 1, 1);
243 labelGasPrice =
new QLabel(groupBoxOptional);
244 labelGasPrice->setObjectName(QStringLiteral(
"labelGasPrice"));
245 QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::Preferred);
246 sizePolicy3.setHorizontalStretch(0);
247 sizePolicy3.setVerticalStretch(0);
248 sizePolicy3.setHeightForWidth(labelGasPrice->sizePolicy().hasHeightForWidth());
249 labelGasPrice->setSizePolicy(sizePolicy3);
250 labelGasPrice->setMinimumSize(QSize(90, 0));
252 gridLayout_2->addWidget(labelGasPrice, 0, 3, 1, 1);
254 labelGasLimit =
new QLabel(groupBoxOptional);
255 labelGasLimit->setObjectName(QStringLiteral(
"labelGasLimit"));
256 sizePolicy2.setHeightForWidth(labelGasLimit->sizePolicy().hasHeightForWidth());
257 labelGasLimit->setSizePolicy(sizePolicy2);
258 labelGasLimit->setMinimumSize(QSize(130, 0));
260 gridLayout_2->addWidget(labelGasLimit, 0, 0, 1, 1);
262 lineEditGasLimit =
new QSpinBox(groupBoxOptional);
263 lineEditGasLimit->setObjectName(QStringLiteral(
"lineEditGasLimit"));
264 sizePolicy1.setHeightForWidth(lineEditGasLimit->sizePolicy().hasHeightForWidth());
265 lineEditGasLimit->setSizePolicy(sizePolicy1);
266 lineEditGasLimit->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
268 gridLayout_2->addWidget(lineEditGasLimit, 0, 1, 1, 1);
271 lineEditGasPrice->setObjectName(QStringLiteral(
"lineEditGasPrice"));
273 gridLayout_2->addWidget(lineEditGasPrice, 0, 4, 1, 1);
275 horizontalSpacer_5 =
new QSpacerItem(60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
277 gridLayout_2->addItem(horizontalSpacer_5, 0, 2, 1, 1);
280 verticalLayout_8->addWidget(groupBoxOptional);
282 stackedWidget->addWidget(createContractPage);
284 verticalLayout_7->addWidget(stackedWidget);
286 horizontalLayout_3 =
new QHBoxLayout();
287 horizontalLayout_3->setObjectName(QStringLiteral(
"horizontalLayout_3"));
288 horizontalLayout_3->setContentsMargins(9, 9, 9, 9);
289 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
291 horizontalLayout_3->addItem(horizontalSpacer);
293 pushButtonClearAll =
new QPushButton(CreateContract);
294 pushButtonClearAll->setObjectName(QStringLiteral(
"pushButtonClearAll"));
296 horizontalLayout_3->addWidget(pushButtonClearAll);
298 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
300 horizontalLayout_3->addItem(horizontalSpacer_3);
302 pushButtonCreateContract =
new QPushButton(CreateContract);
303 pushButtonCreateContract->setObjectName(QStringLiteral(
"pushButtonCreateContract"));
305 horizontalLayout_3->addWidget(pushButtonCreateContract);
308 verticalLayout_7->addLayout(horizontalLayout_3);
313 stackedWidget->setCurrentIndex(0);
316 QMetaObject::connectSlotsByName(CreateContract);
321 CreateContract->setWindowTitle(QApplication::translate(
"CreateContract",
"Form", 0));
322 labelTitle->setText(QApplication::translate(
"CreateContract",
"Create Smart Contract", 0));
323 labelSolidity->setText(QApplication::translate(
"CreateContract",
"Solidity", 0));
324 labelToken->setText(QApplication::translate(
"CreateContract",
"Token", 0));
325 labelBytecode->setText(QApplication::translate(
"CreateContract",
"Bytecode", 0));
326 labelInterface->setText(QApplication::translate(
"CreateContract",
"Interface (ABI)", 0));
327 groupBoxConstructor->setTitle(QApplication::translate(
"CreateContract",
"Constructor", 0));
328 groupBoxOptional->setTitle(QApplication::translate(
"CreateContract",
"Optional", 0));
329 labelSenderAddress->setText(QApplication::translate(
"CreateContract",
"Sender Address", 0));
330 labelGasPrice->setText(QApplication::translate(
"CreateContract",
"Gas Price", 0));
331 labelGasLimit->setText(QApplication::translate(
"CreateContract",
"Gas Limit", 0));
332 pushButtonClearAll->setText(QApplication::translate(
"CreateContract",
"Clear All", 0));
333 pushButtonCreateContract->setText(QApplication::translate(
"CreateContract",
"Create Contract", 0));
344 #endif // UI_CREATECONTRACT_H Widget for entering fabcoin amounts.
QSpacerItem * horizontalSpacer_5
QVBoxLayout * verticalLayout
QHBoxLayout * horizontalLayout
QSpacerItem * horizontalSpacer_4
QPushButton * pushButtonCreateContract
void retranslateUi(QWidget *CreateContract)
Drop down list of addresses.
QHBoxLayout * horizontalLayout_3
QSpacerItem * verticalSpacer
QGroupBox * groupBoxConstructor
void setupUi(QWidget *CreateContract)
QVBoxLayout * verticalLayout_2
QGridLayout * gridLayout_2
QWidget * scrollAreaWidgetContents
QGroupBox * groupBoxOptional
QStackedWidget * stackedWidget
QScrollArea * scrollAreaConstructor
QLabel * labelSenderAddress
QValidatedTextEdit * textEditInterface
QPushButton * pushButtonClearAll
QSpacerItem * horizontalSpacer_3
QSpacerItem * horizontalSpacer
QSpinBox * lineEditGasLimit
QVBoxLayout * verticalLayout_8
QValidatedTextEdit * textEditBytecode
QVBoxLayout * verticalLayout_7
QVBoxLayout * verticalLayout_3
QWidget * createContractPage
QSpacerItem * verticalSpacer_2
QVBoxLayout * verticalLayout_5
QVBoxLayout * verticalLayout_10
AddressField * lineEditSenderAddress
FabcoinAmountField * lineEditGasPrice