9 #ifndef UI_COINCONTROLDIALOG_H 10 #define UI_COINCONTROLDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QFormLayout> 19 #include <QtWidgets/QFrame> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QHeaderView> 22 #include <QtWidgets/QLabel> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QRadioButton> 25 #include <QtWidgets/QSpacerItem> 26 #include <QtWidgets/QVBoxLayout> 67 if (CoinControlDialog->objectName().isEmpty())
68 CoinControlDialog->setObjectName(QStringLiteral(
"CoinControlDialog"));
69 CoinControlDialog->resize(1000, 500);
70 verticalLayout =
new QVBoxLayout(CoinControlDialog);
71 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
72 horizontalLayoutTop =
new QHBoxLayout();
73 horizontalLayoutTop->setObjectName(QStringLiteral(
"horizontalLayoutTop"));
74 horizontalLayoutTop->setContentsMargins(-1, 0, -1, 10);
75 formLayoutCoinControl1 =
new QFormLayout();
76 formLayoutCoinControl1->setObjectName(QStringLiteral(
"formLayoutCoinControl1"));
77 formLayoutCoinControl1->setHorizontalSpacing(10);
78 formLayoutCoinControl1->setVerticalSpacing(10);
79 formLayoutCoinControl1->setContentsMargins(6, -1, 6, -1);
80 labelCoinControlQuantityText =
new QLabel(CoinControlDialog);
81 labelCoinControlQuantityText->setObjectName(QStringLiteral(
"labelCoinControlQuantityText"));
85 labelCoinControlQuantityText->setFont(font);
87 formLayoutCoinControl1->setWidget(0, QFormLayout::LabelRole, labelCoinControlQuantityText);
89 labelCoinControlQuantity =
new QLabel(CoinControlDialog);
90 labelCoinControlQuantity->setObjectName(QStringLiteral(
"labelCoinControlQuantity"));
91 labelCoinControlQuantity->setCursor(QCursor(Qt::IBeamCursor));
92 labelCoinControlQuantity->setContextMenuPolicy(Qt::ActionsContextMenu);
93 labelCoinControlQuantity->setText(QStringLiteral(
"0"));
94 labelCoinControlQuantity->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
96 formLayoutCoinControl1->setWidget(0, QFormLayout::FieldRole, labelCoinControlQuantity);
98 labelCoinControlBytesText =
new QLabel(CoinControlDialog);
99 labelCoinControlBytesText->setObjectName(QStringLiteral(
"labelCoinControlBytesText"));
100 labelCoinControlBytesText->setFont(font);
102 formLayoutCoinControl1->setWidget(1, QFormLayout::LabelRole, labelCoinControlBytesText);
104 labelCoinControlBytes =
new QLabel(CoinControlDialog);
105 labelCoinControlBytes->setObjectName(QStringLiteral(
"labelCoinControlBytes"));
106 labelCoinControlBytes->setCursor(QCursor(Qt::IBeamCursor));
107 labelCoinControlBytes->setContextMenuPolicy(Qt::ActionsContextMenu);
108 labelCoinControlBytes->setText(QStringLiteral(
"0"));
109 labelCoinControlBytes->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
111 formLayoutCoinControl1->setWidget(1, QFormLayout::FieldRole, labelCoinControlBytes);
114 horizontalLayoutTop->addLayout(formLayoutCoinControl1);
116 formLayoutCoinControl2 =
new QFormLayout();
117 formLayoutCoinControl2->setObjectName(QStringLiteral(
"formLayoutCoinControl2"));
118 formLayoutCoinControl2->setHorizontalSpacing(10);
119 formLayoutCoinControl2->setVerticalSpacing(10);
120 formLayoutCoinControl2->setContentsMargins(6, -1, 6, -1);
121 labelCoinControlAmountText =
new QLabel(CoinControlDialog);
122 labelCoinControlAmountText->setObjectName(QStringLiteral(
"labelCoinControlAmountText"));
123 labelCoinControlAmountText->setFont(font);
125 formLayoutCoinControl2->setWidget(0, QFormLayout::LabelRole, labelCoinControlAmountText);
127 labelCoinControlAmount =
new QLabel(CoinControlDialog);
128 labelCoinControlAmount->setObjectName(QStringLiteral(
"labelCoinControlAmount"));
129 labelCoinControlAmount->setCursor(QCursor(Qt::IBeamCursor));
130 labelCoinControlAmount->setContextMenuPolicy(Qt::ActionsContextMenu);
131 labelCoinControlAmount->setText(QStringLiteral(
"0.00 FAB"));
132 labelCoinControlAmount->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
134 formLayoutCoinControl2->setWidget(0, QFormLayout::FieldRole, labelCoinControlAmount);
136 labelCoinControlLowOutputText =
new QLabel(CoinControlDialog);
137 labelCoinControlLowOutputText->setObjectName(QStringLiteral(
"labelCoinControlLowOutputText"));
138 labelCoinControlLowOutputText->setEnabled(
false);
139 labelCoinControlLowOutputText->setFont(font);
141 formLayoutCoinControl2->setWidget(1, QFormLayout::LabelRole, labelCoinControlLowOutputText);
143 labelCoinControlLowOutput =
new QLabel(CoinControlDialog);
144 labelCoinControlLowOutput->setObjectName(QStringLiteral(
"labelCoinControlLowOutput"));
145 labelCoinControlLowOutput->setEnabled(
false);
146 labelCoinControlLowOutput->setCursor(QCursor(Qt::IBeamCursor));
147 labelCoinControlLowOutput->setContextMenuPolicy(Qt::ActionsContextMenu);
148 labelCoinControlLowOutput->setText(QStringLiteral(
"no"));
149 labelCoinControlLowOutput->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
151 formLayoutCoinControl2->setWidget(1, QFormLayout::FieldRole, labelCoinControlLowOutput);
154 horizontalLayoutTop->addLayout(formLayoutCoinControl2);
156 formLayoutCoinControl3 =
new QFormLayout();
157 formLayoutCoinControl3->setObjectName(QStringLiteral(
"formLayoutCoinControl3"));
158 formLayoutCoinControl3->setHorizontalSpacing(10);
159 formLayoutCoinControl3->setVerticalSpacing(10);
160 formLayoutCoinControl3->setContentsMargins(6, -1, 6, -1);
161 labelCoinControlFeeText =
new QLabel(CoinControlDialog);
162 labelCoinControlFeeText->setObjectName(QStringLiteral(
"labelCoinControlFeeText"));
163 labelCoinControlFeeText->setFont(font);
165 formLayoutCoinControl3->setWidget(0, QFormLayout::LabelRole, labelCoinControlFeeText);
167 labelCoinControlFee =
new QLabel(CoinControlDialog);
168 labelCoinControlFee->setObjectName(QStringLiteral(
"labelCoinControlFee"));
169 labelCoinControlFee->setCursor(QCursor(Qt::IBeamCursor));
170 labelCoinControlFee->setContextMenuPolicy(Qt::ActionsContextMenu);
171 labelCoinControlFee->setText(QStringLiteral(
"0.00 FAB"));
172 labelCoinControlFee->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
174 formLayoutCoinControl3->setWidget(0, QFormLayout::FieldRole, labelCoinControlFee);
177 horizontalLayoutTop->addLayout(formLayoutCoinControl3);
179 formLayoutCoinControl4 =
new QFormLayout();
180 formLayoutCoinControl4->setObjectName(QStringLiteral(
"formLayoutCoinControl4"));
181 formLayoutCoinControl4->setHorizontalSpacing(10);
182 formLayoutCoinControl4->setVerticalSpacing(10);
183 formLayoutCoinControl4->setContentsMargins(6, -1, 6, -1);
184 labelCoinControlAfterFeeText =
new QLabel(CoinControlDialog);
185 labelCoinControlAfterFeeText->setObjectName(QStringLiteral(
"labelCoinControlAfterFeeText"));
186 labelCoinControlAfterFeeText->setFont(font);
188 formLayoutCoinControl4->setWidget(0, QFormLayout::LabelRole, labelCoinControlAfterFeeText);
190 labelCoinControlAfterFee =
new QLabel(CoinControlDialog);
191 labelCoinControlAfterFee->setObjectName(QStringLiteral(
"labelCoinControlAfterFee"));
192 labelCoinControlAfterFee->setCursor(QCursor(Qt::IBeamCursor));
193 labelCoinControlAfterFee->setContextMenuPolicy(Qt::ActionsContextMenu);
194 labelCoinControlAfterFee->setText(QStringLiteral(
"0.00 FAB"));
195 labelCoinControlAfterFee->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
197 formLayoutCoinControl4->setWidget(0, QFormLayout::FieldRole, labelCoinControlAfterFee);
199 labelCoinControlChangeText =
new QLabel(CoinControlDialog);
200 labelCoinControlChangeText->setObjectName(QStringLiteral(
"labelCoinControlChangeText"));
201 labelCoinControlChangeText->setEnabled(
false);
202 labelCoinControlChangeText->setFont(font);
204 formLayoutCoinControl4->setWidget(1, QFormLayout::LabelRole, labelCoinControlChangeText);
206 labelCoinControlChange =
new QLabel(CoinControlDialog);
207 labelCoinControlChange->setObjectName(QStringLiteral(
"labelCoinControlChange"));
208 labelCoinControlChange->setEnabled(
false);
209 labelCoinControlChange->setCursor(QCursor(Qt::IBeamCursor));
210 labelCoinControlChange->setContextMenuPolicy(Qt::ActionsContextMenu);
211 labelCoinControlChange->setText(QStringLiteral(
"0.00 FAB"));
212 labelCoinControlChange->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
214 formLayoutCoinControl4->setWidget(1, QFormLayout::FieldRole, labelCoinControlChange);
217 horizontalLayoutTop->addLayout(formLayoutCoinControl4);
220 verticalLayout->addLayout(horizontalLayoutTop);
222 frame =
new QFrame(CoinControlDialog);
223 frame->setObjectName(QStringLiteral(
"frame"));
224 frame->setMinimumSize(QSize(0, 40));
225 frame->setFrameShape(QFrame::StyledPanel);
226 frame->setFrameShadow(QFrame::Sunken);
227 horizontalLayout =
new QHBoxLayout(frame);
228 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
229 horizontalLayoutPanel =
new QHBoxLayout();
230 horizontalLayoutPanel->setSpacing(14);
231 horizontalLayoutPanel->setObjectName(QStringLiteral(
"horizontalLayoutPanel"));
232 pushButtonSelectAll =
new QPushButton(frame);
233 pushButtonSelectAll->setObjectName(QStringLiteral(
"pushButtonSelectAll"));
234 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
235 sizePolicy.setHorizontalStretch(0);
236 sizePolicy.setVerticalStretch(0);
237 sizePolicy.setHeightForWidth(pushButtonSelectAll->sizePolicy().hasHeightForWidth());
238 pushButtonSelectAll->setSizePolicy(sizePolicy);
239 pushButtonSelectAll->setAutoDefault(
false);
241 horizontalLayoutPanel->addWidget(pushButtonSelectAll);
243 radioTreeMode =
new QRadioButton(frame);
244 radioTreeMode->setObjectName(QStringLiteral(
"radioTreeMode"));
245 sizePolicy.setHeightForWidth(radioTreeMode->sizePolicy().hasHeightForWidth());
246 radioTreeMode->setSizePolicy(sizePolicy);
248 horizontalLayoutPanel->addWidget(radioTreeMode);
250 radioListMode =
new QRadioButton(frame);
251 radioListMode->setObjectName(QStringLiteral(
"radioListMode"));
252 sizePolicy.setHeightForWidth(radioListMode->sizePolicy().hasHeightForWidth());
253 radioListMode->setSizePolicy(sizePolicy);
254 radioListMode->setChecked(
true);
256 horizontalLayoutPanel->addWidget(radioListMode);
258 labelLocked =
new QLabel(frame);
259 labelLocked->setObjectName(QStringLiteral(
"labelLocked"));
260 labelLocked->setText(QStringLiteral(
"(1 locked)"));
262 horizontalLayoutPanel->addWidget(labelLocked);
264 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
266 horizontalLayoutPanel->addItem(horizontalSpacer);
269 horizontalLayout->addLayout(horizontalLayoutPanel);
272 verticalLayout->addWidget(frame);
275 treeWidget->headerItem()->setText(0, QString());
276 treeWidget->headerItem()->setText(6, QString());
277 treeWidget->headerItem()->setText(7, QString());
278 treeWidget->headerItem()->setText(8, QString());
279 treeWidget->headerItem()->setText(9, QString());
280 treeWidget->setObjectName(QStringLiteral(
"treeWidget"));
281 treeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
282 treeWidget->setSortingEnabled(
false);
283 treeWidget->setColumnCount(10);
284 treeWidget->header()->setProperty(
"showSortIndicator", QVariant(
true));
285 treeWidget->header()->setStretchLastSection(
false);
287 verticalLayout->addWidget(treeWidget);
289 buttonBox =
new QDialogButtonBox(CoinControlDialog);
290 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
291 sizePolicy.setHeightForWidth(buttonBox->sizePolicy().hasHeightForWidth());
292 buttonBox->setSizePolicy(sizePolicy);
293 buttonBox->setOrientation(Qt::Horizontal);
294 buttonBox->setStandardButtons(QDialogButtonBox::Ok);
296 verticalLayout->addWidget(buttonBox);
301 QMetaObject::connectSlotsByName(CoinControlDialog);
306 CoinControlDialog->setWindowTitle(QApplication::translate(
"CoinControlDialog",
"Coin Selection", 0));
307 labelCoinControlQuantityText->setText(QApplication::translate(
"CoinControlDialog",
"Quantity:", 0));
308 labelCoinControlBytesText->setText(QApplication::translate(
"CoinControlDialog",
"Bytes:", 0));
309 labelCoinControlAmountText->setText(QApplication::translate(
"CoinControlDialog",
"Amount:", 0));
310 labelCoinControlLowOutputText->setText(QApplication::translate(
"CoinControlDialog",
"Dust:", 0));
311 labelCoinControlFeeText->setText(QApplication::translate(
"CoinControlDialog",
"Fee:", 0));
312 labelCoinControlAfterFeeText->setText(QApplication::translate(
"CoinControlDialog",
"After Fee:", 0));
313 labelCoinControlChangeText->setText(QApplication::translate(
"CoinControlDialog",
"Change:", 0));
314 pushButtonSelectAll->setText(QApplication::translate(
"CoinControlDialog",
"(un)select all", 0));
315 radioTreeMode->setText(QApplication::translate(
"CoinControlDialog",
"Tree mode", 0));
316 radioListMode->setText(QApplication::translate(
"CoinControlDialog",
"List mode", 0));
317 QTreeWidgetItem *___qtreewidgetitem = treeWidget->headerItem();
318 ___qtreewidgetitem->setText(5, QApplication::translate(
"CoinControlDialog",
"Confirmations", 0));
319 ___qtreewidgetitem->setText(4, QApplication::translate(
"CoinControlDialog",
"Date", 0));
320 ___qtreewidgetitem->setText(3, QApplication::translate(
"CoinControlDialog",
"Received with address", 0));
321 ___qtreewidgetitem->setText(2, QApplication::translate(
"CoinControlDialog",
"Received with label", 0));
322 ___qtreewidgetitem->setText(1, QApplication::translate(
"CoinControlDialog",
"Amount", 0));
323 #ifndef QT_NO_TOOLTIP 324 ___qtreewidgetitem->setToolTip(5, QApplication::translate(
"CoinControlDialog",
"Confirmed", 0));
325 #endif // QT_NO_TOOLTIP 336 #endif // UI_COINCONTROLDIALOG_H QHBoxLayout * horizontalLayoutPanel
QFormLayout * formLayoutCoinControl1
QLabel * labelCoinControlFeeText
QRadioButton * radioTreeMode
QLabel * labelCoinControlBytesText
void setupUi(QDialog *CoinControlDialog)
QLabel * labelCoinControlQuantityText
QLabel * labelCoinControlAmountText
QLabel * labelCoinControlChange
QPushButton * pushButtonSelectAll
CoinControlTreeWidget * treeWidget
QFormLayout * formLayoutCoinControl4
QLabel * labelCoinControlQuantity
QLabel * labelCoinControlAfterFeeText
QHBoxLayout * horizontalLayout
QLabel * labelCoinControlLowOutput
QLabel * labelCoinControlAmount
QFormLayout * formLayoutCoinControl3
QVBoxLayout * verticalLayout
QSpacerItem * horizontalSpacer
void retranslateUi(QDialog *CoinControlDialog)
QRadioButton * radioListMode
QDialogButtonBox * buttonBox
QHBoxLayout * horizontalLayoutTop
QLabel * labelCoinControlFee
QLabel * labelCoinControlAfterFee
QLabel * labelCoinControlChangeText
QLabel * labelCoinControlBytes
QLabel * labelCoinControlLowOutputText
QFormLayout * formLayoutCoinControl2