9 #ifndef UI_ADDTOKENPAGE_H 10 #define UI_ADDTOKENPAGE_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QHeaderView> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QLineEdit> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 58 if (AddTokenPage->objectName().isEmpty())
59 AddTokenPage->setObjectName(QStringLiteral(
"AddTokenPage"));
60 AddTokenPage->resize(531, 311);
61 verticalLayout =
new QVBoxLayout(AddTokenPage);
62 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
63 verticalSpacer_2 =
new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed);
65 verticalLayout->addItem(verticalSpacer_2);
67 gridLayout =
new QGridLayout();
68 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
69 gridLayout->setVerticalSpacing(15);
70 labelTokenSymbol =
new QLabel(AddTokenPage);
71 labelTokenSymbol->setObjectName(QStringLiteral(
"labelTokenSymbol"));
72 labelTokenSymbol->setMinimumSize(QSize(120, 0));
74 gridLayout->addWidget(labelTokenSymbol, 2, 0, 1, 1);
76 lineEditDecimals =
new QLineEdit(AddTokenPage);
77 lineEditDecimals->setObjectName(QStringLiteral(
"lineEditDecimals"));
78 lineEditDecimals->setAlignment(Qt::AlignCenter);
79 lineEditDecimals->setReadOnly(
true);
81 gridLayout->addWidget(lineEditDecimals, 3, 1, 1, 1);
83 labelDecimals =
new QLabel(AddTokenPage);
84 labelDecimals->setObjectName(QStringLiteral(
"labelDecimals"));
85 labelDecimals->setMinimumSize(QSize(120, 0));
87 gridLayout->addWidget(labelDecimals, 3, 0, 1, 1);
89 lineEditTokenName =
new QLineEdit(AddTokenPage);
90 lineEditTokenName->setObjectName(QStringLiteral(
"lineEditTokenName"));
91 lineEditTokenName->setAlignment(Qt::AlignCenter);
92 lineEditTokenName->setReadOnly(
false);
94 gridLayout->addWidget(lineEditTokenName, 1, 1, 1, 1);
96 labelContractAddress =
new QLabel(AddTokenPage);
97 labelContractAddress->setObjectName(QStringLiteral(
"labelContractAddress"));
98 labelContractAddress->setMinimumSize(QSize(120, 0));
100 gridLayout->addWidget(labelContractAddress, 0, 0, 1, 1);
102 lineEditTokenSymbol =
new QLineEdit(AddTokenPage);
103 lineEditTokenSymbol->setObjectName(QStringLiteral(
"lineEditTokenSymbol"));
104 lineEditTokenSymbol->setAlignment(Qt::AlignCenter);
105 lineEditTokenSymbol->setReadOnly(
false);
107 gridLayout->addWidget(lineEditTokenSymbol, 2, 1, 1, 1);
109 labelTokenName =
new QLabel(AddTokenPage);
110 labelTokenName->setObjectName(QStringLiteral(
"labelTokenName"));
111 labelTokenName->setMinimumSize(QSize(120, 0));
113 gridLayout->addWidget(labelTokenName, 1, 0, 1, 1);
115 lineEditContractAddress =
new QLineEdit(AddTokenPage);
116 lineEditContractAddress->setObjectName(QStringLiteral(
"lineEditContractAddress"));
117 lineEditContractAddress->setAlignment(Qt::AlignCenter);
119 gridLayout->addWidget(lineEditContractAddress, 0, 1, 1, 1);
121 verticalLayout_2 =
new QVBoxLayout();
122 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
124 lineEditSenderAddress->setObjectName(QStringLiteral(
"lineEditSenderAddress"));
126 verticalLayout_2->addWidget(lineEditSenderAddress);
128 labelDescription =
new QLabel(AddTokenPage);
129 labelDescription->setObjectName(QStringLiteral(
"labelDescription"));
130 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
131 sizePolicy.setHorizontalStretch(0);
132 sizePolicy.setVerticalStretch(0);
133 sizePolicy.setHeightForWidth(labelDescription->sizePolicy().hasHeightForWidth());
134 labelDescription->setSizePolicy(sizePolicy);
135 labelDescription->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
136 labelDescription->setWordWrap(
true);
138 verticalLayout_2->addWidget(labelDescription);
141 gridLayout->addLayout(verticalLayout_2, 4, 1, 1, 1);
143 verticalLayout_3 =
new QVBoxLayout();
144 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
145 label =
new QLabel(AddTokenPage);
146 label->setObjectName(QStringLiteral(
"label"));
147 label->setMinimumSize(QSize(120, 0));
149 verticalLayout_3->addWidget(label);
151 labelSpacer =
new QLabel(AddTokenPage);
152 labelSpacer->setObjectName(QStringLiteral(
"labelSpacer"));
153 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
154 sizePolicy1.setHorizontalStretch(0);
155 sizePolicy1.setVerticalStretch(0);
156 sizePolicy1.setHeightForWidth(labelSpacer->sizePolicy().hasHeightForWidth());
157 labelSpacer->setSizePolicy(sizePolicy1);
159 verticalLayout_3->addWidget(labelSpacer);
162 gridLayout->addLayout(verticalLayout_3, 4, 0, 1, 1);
165 verticalLayout->addLayout(gridLayout);
167 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
169 verticalLayout->addItem(verticalSpacer);
171 horizontalLayout =
new QHBoxLayout();
172 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
173 horizontalLayout->setContentsMargins(-1, -1, 0, -1);
174 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
176 horizontalLayout->addItem(horizontalSpacer);
178 clearButton =
new QPushButton(AddTokenPage);
179 clearButton->setObjectName(QStringLiteral(
"clearButton"));
181 horizontalLayout->addWidget(clearButton);
183 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
185 horizontalLayout->addItem(horizontalSpacer_3);
187 confirmButton =
new QPushButton(AddTokenPage);
188 confirmButton->setObjectName(QStringLiteral(
"confirmButton"));
189 confirmButton->setEnabled(
false);
191 horizontalLayout->addWidget(confirmButton);
194 verticalLayout->addLayout(horizontalLayout);
199 QMetaObject::connectSlotsByName(AddTokenPage);
204 AddTokenPage->setWindowTitle(QApplication::translate(
"AddTokenPage",
"Form", 0));
205 labelTokenSymbol->setText(QApplication::translate(
"AddTokenPage",
"Token Symbol", 0));
206 labelDecimals->setText(QApplication::translate(
"AddTokenPage",
"Decimals", 0));
207 labelContractAddress->setText(QApplication::translate(
"AddTokenPage",
"Contract Address", 0));
208 labelTokenName->setText(QApplication::translate(
"AddTokenPage",
"Token Name", 0));
209 labelDescription->setText(QString());
210 label->setText(QApplication::translate(
"AddTokenPage",
"Token Address", 0));
211 labelSpacer->setText(QString());
212 clearButton->setText(QApplication::translate(
"AddTokenPage",
"Clear", 0));
213 confirmButton->setText(QApplication::translate(
"AddTokenPage",
"Confirm", 0));
224 #endif // UI_ADDTOKENPAGE_H
QLineEdit * lineEditDecimals
QVBoxLayout * verticalLayout_3
QPushButton * clearButton
Drop down list of addresses.
QSpacerItem * horizontalSpacer_3
QLineEdit * lineEditContractAddress
void setupUi(QWidget *AddTokenPage)
QLabel * labelTokenSymbol
void retranslateUi(QWidget *AddTokenPage)
QPushButton * confirmButton
QHBoxLayout * horizontalLayout
QVBoxLayout * verticalLayout_2
QLabel * labelContractAddress
QSpacerItem * horizontalSpacer
QSpacerItem * verticalSpacer
QVBoxLayout * verticalLayout
QLabel * labelDescription
QLineEdit * lineEditTokenName
QSpacerItem * verticalSpacer_2
QLineEdit * lineEditTokenSymbol
AddressField * lineEditSenderAddress