9 #ifndef UI_SENDCOINSDIALOG_H 10 #define UI_SENDCOINSDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QComboBox> 18 #include <QtWidgets/QDialog> 19 #include <QtWidgets/QFormLayout> 20 #include <QtWidgets/QFrame> 21 #include <QtWidgets/QGridLayout> 22 #include <QtWidgets/QHBoxLayout> 23 #include <QtWidgets/QLabel> 24 #include <QtWidgets/QPushButton> 25 #include <QtWidgets/QRadioButton> 26 #include <QtWidgets/QScrollArea> 27 #include <QtWidgets/QSpacerItem> 28 #include <QtWidgets/QVBoxLayout> 29 #include <QtWidgets/QWidget> 141 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
145 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
146 sizePolicy.setHorizontalStretch(0);
147 sizePolicy.setVerticalStretch(0);
148 sizePolicy.setHeightForWidth(
frameCoinControl->sizePolicy().hasHeightForWidth());
166 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Maximum);
167 sizePolicy1.setHorizontalStretch(0);
168 sizePolicy1.setVerticalStretch(0);
216 QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Preferred);
217 sizePolicy2.setHorizontalStretch(0);
218 sizePolicy2.setVerticalStretch(0);
219 sizePolicy2.setHeightForWidth(
widgetCoinControl->sizePolicy().hasHeightForWidth());
249 labelCoinControlQuantity->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
264 labelCoinControlBytes->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
288 labelCoinControlAmount->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
312 labelCoinControlFee->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
337 labelCoinControlAfterFee->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
352 labelCoinControlChange->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
379 QSizePolicy sizePolicy3(QSizePolicy::Expanding, QSizePolicy::Fixed);
380 sizePolicy3.setHorizontalStretch(0);
381 sizePolicy3.setVerticalStretch(0);
389 QSizePolicy sizePolicy4(QSizePolicy::Preferred, QSizePolicy::Expanding);
390 sizePolicy4.setHorizontalStretch(0);
391 sizePolicy4.setVerticalStretch(0);
414 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
424 entries->setObjectName(QString::fromUtf8(
"entries"));
428 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
438 frameFee->setObjectName(QString::fromUtf8(
"frameFee"));
439 sizePolicy.setHeightForWidth(
frameFee->sizePolicy().hasHeightForWidth());
440 frameFee->setSizePolicy(sizePolicy);
441 frameFee->setMaximumSize(QSize(16777215, 16777215));
442 frameFee->setFrameShape(QFrame::StyledPanel);
443 frameFee->setFrameShadow(QFrame::Sunken);
467 sizePolicy1.setHeightForWidth(
labelFeeHeadline->sizePolicy().hasHeightForWidth());
487 verticalSpacer_5 =
new QSpacerItem(1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding);
501 horizontalSpacer_4 =
new QSpacerItem(40, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
520 gridLayoutFee->setObjectName(QString::fromUtf8(
"gridLayoutFee"));
535 customFee->setObjectName(QString::fromUtf8(
"customFee"));
539 horizontalSpacer_6 =
new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum);
554 horizontalSpacer_2 =
new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum);
568 groupFee->setObjectName(QString::fromUtf8(
"groupFee"));
570 radioSmartFee->setObjectName(QString::fromUtf8(
"radioSmartFee"));
575 verticalSpacer_2 =
new QSpacerItem(1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding);
587 radioCustomFee->setObjectName(QString::fromUtf8(
"radioCustomFee"));
591 verticalSpacer_6 =
new QSpacerItem(1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding);
606 labelSmartFee->setObjectName(QString::fromUtf8(
"labelSmartFee"));
616 labelSmartFee2->setObjectName(QString::fromUtf8(
"labelSmartFee2"));
620 horizontalSpacer_5 =
new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum);
632 labelSmartFee3->setObjectName(QString::fromUtf8(
"labelSmartFee3"));
663 verticalSpacer_4 =
new QSpacerItem(1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding);
675 optInRBF->setObjectName(QString::fromUtf8(
"optInRBF"));
682 verticalSpacerFee =
new QSpacerItem(40, 5, QSizePolicy::Minimum, QSizePolicy::Expanding);
695 sendButton->setObjectName(QString::fromUtf8(
"sendButton"));
698 icon.addFile(QString::fromUtf8(
":/icons/send"), QSize(), QIcon::Normal, QIcon::Off);
705 clearButton->setObjectName(QString::fromUtf8(
"clearButton"));
706 QSizePolicy sizePolicy5(QSizePolicy::Minimum, QSizePolicy::Fixed);
707 sizePolicy5.setHorizontalStretch(0);
708 sizePolicy5.setVerticalStretch(0);
709 sizePolicy5.setHeightForWidth(
clearButton->sizePolicy().hasHeightForWidth());
712 icon1.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
719 addButton->setObjectName(QString::fromUtf8(
"addButton"));
721 icon2.addFile(QString::fromUtf8(
":/icons/add"), QSize(), QIcon::Normal, QIcon::Off);
727 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
736 QSizePolicy sizePolicy6(QSizePolicy::Preferred, QSizePolicy::Fixed);
737 sizePolicy6.setHorizontalStretch(0);
738 sizePolicy6.setVerticalStretch(0);
739 sizePolicy6.setHeightForWidth(
labelBalanceName->sizePolicy().hasHeightForWidth());
745 labelBalance->setObjectName(QString::fromUtf8(
"labelBalance"));
746 sizePolicy6.setHeightForWidth(
labelBalance->sizePolicy().hasHeightForWidth());
749 labelBalance->setText(QString::fromUtf8(
"123.456 BTC"));
750 labelBalance->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
772 SendCoinsDialog->setWindowTitle(QCoreApplication::translate(
"SendCoinsDialog",
"Send Coins",
nullptr));
773 labelCoinControlFeatures->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Coin Control Features",
nullptr));
774 pushButtonCoinControl->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Inputs\342\200\246",
nullptr));
783 #if QT_CONFIG(tooltip) 784 checkBoxCoinControlChange->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.",
nullptr));
785 #endif // QT_CONFIG(tooltip) 788 labelFeeHeadline->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Transaction Fee:",
nullptr));
790 buttonChooseFee->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Choose\342\200\246",
nullptr));
791 #if QT_CONFIG(tooltip) 792 fallbackFeeWarningLabel->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"Using the fallbackfee can result in sending a transaction that will take several hours or days (or never) to confirm. Consider choosing your fee manually or wait until you have validated the complete chain.",
nullptr));
793 #endif // QT_CONFIG(tooltip) 794 fallbackFeeWarningLabel->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Warning: Fee estimation is currently not possible.",
nullptr));
795 #if QT_CONFIG(tooltip) 796 buttonMinimizeFee->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"Hide transaction fee settings",
nullptr));
797 #endif // QT_CONFIG(tooltip) 798 buttonMinimizeFee->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Hide",
nullptr));
799 #if QT_CONFIG(tooltip) 800 labelCustomPerKilobyte->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"Specify a custom fee per kB (1,000 bytes) of the transaction's virtual size.\n" 802 "Note: Since the fee is calculated on a per-byte basis, a fee rate of \"100 satoshis per kvB\" for a transaction size of 500 virtual bytes (half of 1 kvB) would ultimately yield a fee of only 50 satoshis.",
nullptr));
803 #endif // QT_CONFIG(tooltip) 805 #if QT_CONFIG(tooltip) 806 labelCustomFeeWarning->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"When there is less transaction volume than space in the blocks, miners as well as relaying nodes may enforce a minimum fee. Paying only this minimum fee is just fine, but be aware that this can result in a never confirming transaction once there is more demand for bitcoin transactions than the network can process.",
nullptr));
807 #endif // QT_CONFIG(tooltip) 808 labelCustomFeeWarning->setText(QCoreApplication::translate(
"SendCoinsDialog",
"A too low fee might result in a never confirming transaction (read the tooltip)",
nullptr));
809 radioSmartFee->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Recommended:",
nullptr));
810 radioCustomFee->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Custom:",
nullptr));
813 labelSmartFee2->setText(QCoreApplication::translate(
"SendCoinsDialog",
"(Smart fee not initialized yet. This usually takes a few blocks\342\200\246)",
nullptr));
814 labelSmartFee3->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Confirmation time target:",
nullptr));
815 optInRBF->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Enable Replace-By-Fee",
nullptr));
816 #if QT_CONFIG(tooltip) 817 optInRBF->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"With Replace-By-Fee (BIP-125) you can increase a transaction's fee after it is sent. Without this, a higher fee may be recommended to compensate for increased transaction delay risk.",
nullptr));
818 #endif // QT_CONFIG(tooltip) 819 #if QT_CONFIG(tooltip) 820 sendButton->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"Confirm the send action",
nullptr));
821 #endif // QT_CONFIG(tooltip) 822 sendButton->setText(QCoreApplication::translate(
"SendCoinsDialog",
"S&end",
nullptr));
823 #if QT_CONFIG(tooltip) 824 clearButton->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"Clear all fields of the form.",
nullptr));
825 #endif // QT_CONFIG(tooltip) 826 clearButton->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Clear &All",
nullptr));
827 #if QT_CONFIG(tooltip) 828 addButton->setToolTip(QCoreApplication::translate(
"SendCoinsDialog",
"Send to multiple recipients at once",
nullptr));
829 #endif // QT_CONFIG(tooltip) 830 addButton->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Add &Recipient",
nullptr));
831 labelBalanceName->setText(QCoreApplication::translate(
"SendCoinsDialog",
"Balance:",
nullptr));
842 #endif // UI_SENDCOINSDIALOG_H QSpacerItem * verticalSpacer
Widget for entering bitcoin amounts.
QSpacerItem * verticalSpacerSmartFee
QLabel * labelCoinControlChange
QLabel * labelCoinControlAmount
QSpacerItem * horizontalSpacerCoinControl
QVBoxLayout * verticalLayout
QLabel * labelFeeEstimation
QLabel * labelCustomFeeWarning
QSpacerItem * verticalSpacerFee
QHBoxLayout * horizontalLayout
QHBoxLayout * horizontalLayoutSmartFee
QHBoxLayout * horizontalLayoutFee12
QWidget * widgetCoinControl
QVBoxLayout * verticalLayoutFee2
QPushButton * clearButton
QVBoxLayout * verticalLayoutFee9
QLabel * labelCoinControlQuantityText
QFrame * frameFeeSelection
QLabel * labelFeeHeadline
QLabel * labelCoinControlFee
QLabel * labelCoinControlFeeText
QSpacerItem * horizontalSpacer_2
QLabel * labelCoinControlChangeText
QValidatedLineEdit * lineEditCoinControlChange
QFormLayout * formLayoutCoinControl3
QVBoxLayout * verticalLayoutFee1
QHBoxLayout * horizontalLayoutCoinControl1
QRadioButton * radioCustomFee
QSpacerItem * verticalSpacer_2
QHBoxLayout * horizontalLayoutFee13
Line edit that can be marked as "invalid" to show input validation feedback.
QLabel * labelCoinControlAfterFee
QSpacerItem * horizontalSpacer_4
QLabel * labelCoinControlQuantity
QSpacerItem * verticalSpacerCoinControl
QPushButton * pushButtonCoinControl
QLabel * labelCoinControlAutomaticallySelected
QHBoxLayout * horizontalLayoutConfTarget
QHBoxLayout * horizontalLayoutFee1
QSpacerItem * horizontalSpacer_5
QLabel * labelBalanceName
QLabel * labelCoinControlAfterFeeText
QVBoxLayout * verticalLayoutFee6
QHBoxLayout * horizontalLayoutCoinControl5
QHBoxLayout * horizontalLayoutCoinControl3
QSpacerItem * verticalSpacer_4
QVBoxLayout * verticalLayoutCoinControl
QVBoxLayout * verticalLayoutFee8
QVBoxLayout * verticalLayoutFee3
void retranslateUi(QDialog *SendCoinsDialog)
QHBoxLayout * horizontalLayout_2
QVBoxLayout * verticalLayoutFee12
QVBoxLayout * verticalLayoutFee5
QPushButton * buttonChooseFee
QLabel * labelCoinControlAmountText
Dialog for sending bitcoins.
QLabel * labelFeeMinimized
QCheckBox * checkBoxCoinControlChange
QVBoxLayout * verticalLayoutFee7
void setupUi(QDialog *SendCoinsDialog)
QRadioButton * radioSmartFee
QHBoxLayout * horizontalLayoutFee8
QFormLayout * formLayoutCoinControl1
QLabel * labelCoinControlChangeLabel
QWidget * scrollAreaWidgetContents
QHBoxLayout * horizontalLayoutCoinControl4
QVBoxLayout * verticalLayoutFee4
QFormLayout * formLayoutCoinControl4
QSpacerItem * horizontalSpacer_6
QHBoxLayout * horizontalLayoutFee9
QSpacerItem * verticalSpacer_5
QVBoxLayout * verticalLayout_2
QLabel * labelCoinControlBytes
QComboBox * confTargetSelector
void setEnabled(bool enabled)
QSpacerItem * horizontalSpacerConfTarget
QFrame * frameCoinControl
QLabel * labelCoinControlFeatures
QLabel * fallbackFeeWarningLabel
QFormLayout * formLayoutCoinControl2
QSpacerItem * horizontalSpacer
BitcoinAmountField * customFee
QLabel * labelCustomPerKilobyte
QLabel * labelCoinControlBytesText
QGridLayout * gridLayoutFee
QSpacerItem * verticalSpacer_6
QPushButton * buttonMinimizeFee
QHBoxLayout * horizontalLayoutCoinControl2
QVBoxLayout * verticalLayoutCoinControl2
QLabel * labelCoinControlInsuffFunds