Fabcoin Core  0.16.2
P2P Digital Currency
ui_sendtocontract.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'sendtocontract.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.5.1
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_SENDTOCONTRACT_H
10 #define UI_SENDTOCONTRACT_H
11 
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>
30 #include "addressfield.h"
31 #include "fabcoinamountfield.h"
32 #include "qvalidatedlineedit.h"
33 #include "qvalidatedtextedit.h"
34 
35 QT_BEGIN_NAMESPACE
36 
38 {
39 public:
40  QVBoxLayout *verticalLayout;
41  QStackedWidget *stackedWidget;
42  QWidget *sendContractPage;
43  QVBoxLayout *verticalLayout_4;
44  QLabel *labelTitle;
45  QFrame *frameContract;
46  QVBoxLayout *verticalLayout_2;
47  QGridLayout *gridLayout;
48  QHBoxLayout *horizontalLayout_2;
50  QToolButton *loadInfoButton;
51  QFrame *vLine;
52  QToolButton *pasteAddressButton;
53  QFrame *vLine2;
54  QToolButton *saveInfoButton;
57  QLabel *labelInterface;
58  QGroupBox *groupBoxFunction;
59  QVBoxLayout *verticalLayout_3;
60  QScrollArea *scrollAreaFunction;
62  QGroupBox *groupBoxOptional;
63  QGridLayout *gridLayout_2;
65  QLabel *labelGasLimit;
66  QLabel *labelGasPrice;
68  QLabel *labelAmount;
71  QSpinBox *lineEditGasLimit;
72  QSpacerItem *horizontalSpacer_2;
73  QHBoxLayout *horizontalLayout;
74  QSpacerItem *horizontalSpacer;
75  QPushButton *pushButtonClearAll;
76  QSpacerItem *horizontalSpacer_3;
78 
79  void setupUi(QWidget *SendToContract)
80  {
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"));
95  QFont font;
96  font.setBold(true);
97  font.setWeight(75);
98  labelTitle->setFont(font);
99 
100  verticalLayout_4->addWidget(labelTitle);
101 
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"));
122  lineEditContractAddress = new QValidatedLineEdit(frameContract);
123  lineEditContractAddress->setObjectName(QStringLiteral("lineEditContractAddress"));
124 
125  horizontalLayout_2->addWidget(lineEditContractAddress);
126 
127  loadInfoButton = new QToolButton(frameContract);
128  loadInfoButton->setObjectName(QStringLiteral("loadInfoButton"));
129  loadInfoButton->setIconSize(QSize(22, 22));
130 
131  horizontalLayout_2->addWidget(loadInfoButton);
132 
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);
138 
139  horizontalLayout_2->addWidget(vLine);
140 
141  pasteAddressButton = new QToolButton(frameContract);
142  pasteAddressButton->setObjectName(QStringLiteral("pasteAddressButton"));
143  pasteAddressButton->setIconSize(QSize(22, 22));
144 
145  horizontalLayout_2->addWidget(pasteAddressButton);
146 
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);
152 
153  horizontalLayout_2->addWidget(vLine2);
154 
155  saveInfoButton = new QToolButton(frameContract);
156  saveInfoButton->setObjectName(QStringLiteral("saveInfoButton"));
157  saveInfoButton->setIconSize(QSize(22, 22));
158 
159  horizontalLayout_2->addWidget(saveInfoButton);
160 
161 
162  gridLayout->addLayout(horizontalLayout_2, 0, 2, 1, 1);
163 
164  labelContractAddress = new QLabel(frameContract);
165  labelContractAddress->setObjectName(QStringLiteral("labelContractAddress"));
166 
167  gridLayout->addWidget(labelContractAddress, 0, 0, 1, 1);
168 
169  textEditInterface = new QValidatedTextEdit(frameContract);
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);
178 
179  gridLayout->addWidget(textEditInterface, 1, 2, 1, 1);
180 
181  labelInterface = new QLabel(frameContract);
182  labelInterface->setObjectName(QStringLiteral("labelInterface"));
183 
184  gridLayout->addWidget(labelInterface, 1, 0, 1, 1, Qt::AlignTop);
185 
186 
187  verticalLayout_2->addLayout(gridLayout);
188 
189 
190  verticalLayout_4->addWidget(frameContract);
191 
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);
204 
205  verticalLayout_3->addWidget(scrollAreaFunction);
206 
207 
208  verticalLayout_4->addWidget(groupBoxFunction);
209 
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);
217  lineEditAmount = new FabcoinAmountField(groupBoxOptional);
218  lineEditAmount->setObjectName(QStringLiteral("lineEditAmount"));
219 
220  gridLayout_2->addWidget(lineEditAmount, 0, 1, 1, 4);
221 
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));
230 
231  gridLayout_2->addWidget(labelGasLimit, 1, 0, 1, 1);
232 
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));
238 
239  gridLayout_2->addWidget(labelGasPrice, 1, 3, 1, 1);
240 
241  lineEditSenderAddress = new AddressField(groupBoxOptional);
242  lineEditSenderAddress->setObjectName(QStringLiteral("lineEditSenderAddress"));
243  lineEditSenderAddress->setMinimumSize(QSize(370, 0));
244 
245  gridLayout_2->addWidget(lineEditSenderAddress, 3, 1, 1, 4);
246 
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));
252 
253  gridLayout_2->addWidget(labelAmount, 0, 0, 1, 1);
254 
255  lineEditGasPrice = new FabcoinAmountField(groupBoxOptional);
256  lineEditGasPrice->setObjectName(QStringLiteral("lineEditGasPrice"));
257 
258  gridLayout_2->addWidget(lineEditGasPrice, 1, 4, 1, 1);
259 
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));
265 
266  gridLayout_2->addWidget(labelSenderAddress, 3, 0, 1, 1);
267 
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);
273 
274  gridLayout_2->addWidget(lineEditGasLimit, 1, 1, 1, 1);
275 
276  horizontalSpacer_2 = new QSpacerItem(60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
277 
278  gridLayout_2->addItem(horizontalSpacer_2, 1, 2, 1, 1);
279 
280 
281  verticalLayout_4->addWidget(groupBoxOptional);
282 
283  stackedWidget->addWidget(sendContractPage);
284 
285  verticalLayout->addWidget(stackedWidget);
286 
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);
291 
292  horizontalLayout->addItem(horizontalSpacer);
293 
294  pushButtonClearAll = new QPushButton(SendToContract);
295  pushButtonClearAll->setObjectName(QStringLiteral("pushButtonClearAll"));
296 
297  horizontalLayout->addWidget(pushButtonClearAll);
298 
299  horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
300 
301  horizontalLayout->addItem(horizontalSpacer_3);
302 
303  pushButtonSendToContract = new QPushButton(SendToContract);
304  pushButtonSendToContract->setObjectName(QStringLiteral("pushButtonSendToContract"));
305 
306  horizontalLayout->addWidget(pushButtonSendToContract);
307 
308 
309  verticalLayout->addLayout(horizontalLayout);
310 
311 
312  retranslateUi(SendToContract);
313 
314  stackedWidget->setCurrentIndex(0);
315 
316 
317  QMetaObject::connectSlotsByName(SendToContract);
318  } // setupUi
319 
321  {
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));
346  } // retranslateUi
347 
348 };
349 
350 namespace Ui {
352 } // namespace Ui
353 
354 QT_END_NAMESPACE
355 
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.
Definition: addressfield.h:15
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
QGridLayout * gridLayout