9 #ifndef UI_OPTIONSDIALOG_H 10 #define UI_OPTIONSDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QComboBox> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QFrame> 18 #include <QtWidgets/QGroupBox> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QLineEdit> 22 #include <QtWidgets/QPushButton> 23 #include <QtWidgets/QSpacerItem> 24 #include <QtWidgets/QSpinBox> 25 #include <QtWidgets/QTabWidget> 26 #include <QtWidgets/QVBoxLayout> 27 #include <QtWidgets/QWidget> 146 OptionsDialog->setObjectName(QString::fromUtf8(
"OptionsDialog"));
150 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
152 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
154 tabMain->setObjectName(QString::fromUtf8(
"tabMain"));
169 prune->setObjectName(QString::fromUtf8(
"prune"));
174 pruneSize->setObjectName(QString::fromUtf8(
"pruneSize"));
192 pruneWarning->setObjectName(QString::fromUtf8(
"pruneWarning"));
206 databaseCache->setObjectName(QString::fromUtf8(
"databaseCache"));
244 enableServer->setObjectName(QString::fromUtf8(
"enableServer"));
248 verticalSpacer_Main =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
254 tabWallet->setObjectName(QString::fromUtf8(
"tabWallet"));
263 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
285 groupBoxHww->setObjectName(QString::fromUtf8(
"groupBoxHww"));
312 tabNetwork->setObjectName(QString::fromUtf8(
"tabNetwork"));
316 mapPortUpnp->setObjectName(QString::fromUtf8(
"mapPortUpnp"));
321 mapPortNatpmp->setObjectName(QString::fromUtf8(
"mapPortNatpmp"));
326 allowIncoming->setObjectName(QString::fromUtf8(
"allowIncoming"));
331 connectSocks->setObjectName(QString::fromUtf8(
"connectSocks"));
338 proxyIpLabel->setObjectName(QString::fromUtf8(
"proxyIpLabel"));
344 proxyIp->setObjectName(QString::fromUtf8(
"proxyIp"));
345 proxyIp->setMinimumSize(QSize(140, 0));
346 proxyIp->setMaximumSize(QSize(140, 16777215));
351 proxyPortLabel->setObjectName(QString::fromUtf8(
"proxyPortLabel"));
357 proxyPort->setObjectName(QString::fromUtf8(
"proxyPort"));
359 proxyPort->setMaximumSize(QSize(55, 16777215));
379 proxyReachIPv4->setObjectName(QString::fromUtf8(
"proxyReachIPv4"));
391 proxyReachIPv6->setObjectName(QString::fromUtf8(
"proxyReachIPv6"));
403 proxyReachTor->setObjectName(QString::fromUtf8(
"proxyReachTor"));
435 proxyIpTor->setObjectName(QString::fromUtf8(
"proxyIpTor"));
437 proxyIpTor->setMaximumSize(QSize(140, 16777215));
448 proxyPortTor->setObjectName(QString::fromUtf8(
"proxyPortTor"));
467 tabWindow->setObjectName(QString::fromUtf8(
"tabWindow"));
471 showTrayIcon->setObjectName(QString::fromUtf8(
"showTrayIcon"));
477 minimizeToTray->setObjectName(QString::fromUtf8(
"minimizeToTray"));
492 tabDisplay->setObjectName(QString::fromUtf8(
"tabDisplay"));
498 langLabel->setObjectName(QString::fromUtf8(
"langLabel"));
504 lang->setObjectName(QString::fromUtf8(
"lang"));
514 unitLabel->setObjectName(QString::fromUtf8(
"unitLabel"));
520 unit->setObjectName(QString::fromUtf8(
"unit"));
536 thirdPartyTxUrls->setPlaceholderText(QString::fromUtf8(
"https://example.com/tx/%s"));
546 moneyFontLabel->setObjectName(QString::fromUtf8(
"moneyFontLabel"));
551 moneyFont->setObjectName(QString::fromUtf8(
"moneyFont"));
558 "909.09090909 BTC"));
574 frame->setObjectName(QString::fromUtf8(
"frame"));
613 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
621 horizontalSpacer_1 =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
626 statusLabel->setObjectName(QString::fromUtf8(
"statusLabel"));
637 horizontalSpacer_2 =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
643 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
650 okButton->setObjectName(QString::fromUtf8(
"okButton"));
656 cancelButton->setObjectName(QString::fromUtf8(
"cancelButton"));
670 #if QT_CONFIG(shortcut) 682 #endif // QT_CONFIG(shortcut) 695 OptionsDialog->setWindowTitle(QCoreApplication::translate(
"OptionsDialog",
"Options",
nullptr));
696 #if QT_CONFIG(tooltip) 697 bitcoinAtStartup->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Automatically start %1 after logging in to the system.",
nullptr));
698 #endif // QT_CONFIG(tooltip) 699 bitcoinAtStartup->setText(QCoreApplication::translate(
"OptionsDialog",
"&Start %1 on system login",
nullptr));
700 #if QT_CONFIG(tooltip) 701 prune->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Enabling pruning significantly reduces the disk space required to store transactions. All blocks are still fully validated. Reverting this setting requires re-downloading the entire blockchain.",
nullptr));
702 #endif // QT_CONFIG(tooltip) 703 prune->setText(QCoreApplication::translate(
"OptionsDialog",
"Prune &block storage to",
nullptr));
704 pruneSizeUnitLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"GB",
nullptr));
705 pruneWarning->setText(QCoreApplication::translate(
"OptionsDialog",
"Reverting this setting requires re-downloading the entire blockchain.",
nullptr));
706 #if QT_CONFIG(tooltip) 707 databaseCacheLabel->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Maximum database cache size. A larger cache can contribute to faster sync, after which the benefit is less pronounced for most use cases. Lowering the cache size will reduce memory usage. Unused mempool memory is shared for this cache.",
nullptr));
708 #endif // QT_CONFIG(tooltip) 709 databaseCacheLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Size of &database cache",
nullptr));
711 #if QT_CONFIG(tooltip) 712 threadsScriptVerifLabel->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Set the number of script verification threads. Negative values correspond to the number of cores you want to leave free to the system.",
nullptr));
713 #endif // QT_CONFIG(tooltip) 714 threadsScriptVerifLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Number of script &verification threads",
nullptr));
715 #if QT_CONFIG(tooltip) 716 threadsScriptVerif->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"(0 = auto, <0 = leave that many cores free)",
nullptr));
717 #endif // QT_CONFIG(tooltip) 718 #if QT_CONFIG(tooltip) 719 enableServer->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"This allows you or a third party tool to communicate with the node through command-line and JSON-RPC commands.",
nullptr));
720 #endif // QT_CONFIG(tooltip) 721 enableServer->setText(QCoreApplication::translate(
"OptionsDialog",
"Enable R&PC server",
nullptr));
723 #if QT_CONFIG(tooltip) 724 subFeeFromAmount->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Whether to set subtract fee from amount as default or not.",
nullptr));
725 #endif // QT_CONFIG(tooltip) 726 subFeeFromAmount->setText(QCoreApplication::translate(
"OptionsDialog",
"Subtract &fee from amount by default",
nullptr));
727 groupBox->setTitle(QCoreApplication::translate(
"OptionsDialog",
"Expert",
nullptr));
728 #if QT_CONFIG(tooltip) 729 coinControlFeatures->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Whether to show coin control features or not.",
nullptr));
730 #endif // QT_CONFIG(tooltip) 731 coinControlFeatures->setText(QCoreApplication::translate(
"OptionsDialog",
"Enable coin &control features",
nullptr));
732 #if QT_CONFIG(tooltip) 733 spendZeroConfChange->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"If you disable the spending of unconfirmed change, the change from a transaction cannot be used until that transaction has at least one confirmation. This also affects how your balance is computed.",
nullptr));
734 #endif // QT_CONFIG(tooltip) 735 spendZeroConfChange->setText(QCoreApplication::translate(
"OptionsDialog",
"&Spend unconfirmed change",
nullptr));
736 m_enable_psbt_controls->setText(QCoreApplication::translate(
"OptionsDialog",
"Enable &PSBT controls",
nullptr));
737 #if QT_CONFIG(tooltip) 738 m_enable_psbt_controls->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Whether to show PSBT controls.",
nullptr));
739 #endif // QT_CONFIG(tooltip) 740 groupBoxHww->setTitle(QCoreApplication::translate(
"OptionsDialog",
"External Signer (e.g. hardware wallet)",
nullptr));
741 externalSignerPathLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&External signer script path",
nullptr));
742 #if QT_CONFIG(tooltip) 743 externalSignerPath->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Full path to a %1 compatible script (e.g. C:\\Downloads\\hwi.exe or /Users/you/Downloads/hwi.py). Beware: malware can steal your coins!",
nullptr));
744 #endif // QT_CONFIG(tooltip) 746 #if QT_CONFIG(tooltip) 747 mapPortUpnp->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.",
nullptr));
748 #endif // QT_CONFIG(tooltip) 749 mapPortUpnp->setText(QCoreApplication::translate(
"OptionsDialog",
"Map port using &UPnP",
nullptr));
750 #if QT_CONFIG(tooltip) 751 mapPortNatpmp->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Automatically open the Bitcoin client port on the router. This only works when your router supports NAT-PMP and it is enabled. The external port could be random.",
nullptr));
752 #endif // QT_CONFIG(tooltip) 753 mapPortNatpmp->setText(QCoreApplication::translate(
"OptionsDialog",
"Map port using NA&T-PMP",
nullptr));
754 #if QT_CONFIG(tooltip) 755 allowIncoming->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Accept connections from outside.",
nullptr));
756 #endif // QT_CONFIG(tooltip) 757 allowIncoming->setText(QCoreApplication::translate(
"OptionsDialog",
"Allow incomin&g connections",
nullptr));
758 #if QT_CONFIG(tooltip) 759 connectSocks->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a SOCKS5 proxy.",
nullptr));
760 #endif // QT_CONFIG(tooltip) 761 connectSocks->setText(QCoreApplication::translate(
"OptionsDialog",
"&Connect through SOCKS5 proxy (default proxy):",
nullptr));
762 proxyIpLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Proxy &IP:",
nullptr));
763 #if QT_CONFIG(tooltip) 764 proxyIp->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)",
nullptr));
765 #endif // QT_CONFIG(tooltip) 766 proxyPortLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Port:",
nullptr));
767 #if QT_CONFIG(tooltip) 768 proxyPort->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)",
nullptr));
769 #endif // QT_CONFIG(tooltip) 770 proxyActiveNets->setText(QCoreApplication::translate(
"OptionsDialog",
"Used for reaching peers via:",
nullptr));
771 #if QT_CONFIG(tooltip) 772 proxyReachIPv4->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
773 #endif // QT_CONFIG(tooltip) 775 proxyReachIPv4Label->setText(QCoreApplication::translate(
"OptionsDialog",
"IPv4",
nullptr));
776 #if QT_CONFIG(tooltip) 777 proxyReachIPv6->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
778 #endif // QT_CONFIG(tooltip) 780 proxyReachIPv6Label->setText(QCoreApplication::translate(
"OptionsDialog",
"IPv6",
nullptr));
781 #if QT_CONFIG(tooltip) 782 proxyReachTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
783 #endif // QT_CONFIG(tooltip) 785 proxyReachTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Tor",
nullptr));
786 #if QT_CONFIG(tooltip) 787 connectSocksTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a separate SOCKS5 proxy for Tor onion services.",
nullptr));
788 #endif // QT_CONFIG(tooltip) 789 connectSocksTor->setText(QCoreApplication::translate(
"OptionsDialog",
"Use separate SOCKS&5 proxy to reach peers via Tor onion services:",
nullptr));
790 proxyIpTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Proxy &IP:",
nullptr));
791 #if QT_CONFIG(tooltip) 792 proxyIpTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)",
nullptr));
793 #endif // QT_CONFIG(tooltip) 794 proxyPortTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Port:",
nullptr));
795 #if QT_CONFIG(tooltip) 796 proxyPortTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)",
nullptr));
797 #endif // QT_CONFIG(tooltip) 799 #if QT_CONFIG(tooltip) 800 showTrayIcon->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Show the icon in the system tray.",
nullptr));
801 #endif // QT_CONFIG(tooltip) 802 showTrayIcon->setText(QCoreApplication::translate(
"OptionsDialog",
"&Show tray icon",
nullptr));
803 #if QT_CONFIG(tooltip) 804 minimizeToTray->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Show only a tray icon after minimizing the window.",
nullptr));
805 #endif // QT_CONFIG(tooltip) 806 minimizeToTray->setText(QCoreApplication::translate(
"OptionsDialog",
"&Minimize to the tray instead of the taskbar",
nullptr));
807 #if QT_CONFIG(tooltip) 808 minimizeOnClose->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Exit in the menu.",
nullptr));
809 #endif // QT_CONFIG(tooltip) 810 minimizeOnClose->setText(QCoreApplication::translate(
"OptionsDialog",
"M&inimize on close",
nullptr));
812 langLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"User Interface &language:",
nullptr));
813 #if QT_CONFIG(tooltip) 814 lang->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"The user interface language can be set here. This setting will take effect after restarting %1.",
nullptr));
815 #endif // QT_CONFIG(tooltip) 816 unitLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Unit to show amounts in:",
nullptr));
817 #if QT_CONFIG(tooltip) 818 unit->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Choose the default subdivision unit to show in the interface and when sending coins.",
nullptr));
819 #endif // QT_CONFIG(tooltip) 820 #if QT_CONFIG(tooltip) 821 thirdPartyTxUrlsLabel->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Third-party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |.",
nullptr));
822 #endif // QT_CONFIG(tooltip) 823 thirdPartyTxUrlsLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Third-party transaction URLs",
nullptr));
824 #if QT_CONFIG(tooltip) 825 thirdPartyTxUrls->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Third-party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |.",
nullptr));
826 #endif // QT_CONFIG(tooltip) 827 moneyFontLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Font in the Overview tab: ",
nullptr));
829 overriddenByCommandLineInfoLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Options set in this dialog are overridden by the command line:",
nullptr));
831 #if QT_CONFIG(tooltip) 832 openBitcoinConfButton->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Open the %1 configuration file from the working directory.",
nullptr));
833 #endif // QT_CONFIG(tooltip) 834 openBitcoinConfButton->setText(QCoreApplication::translate(
"OptionsDialog",
"Open Configuration File",
nullptr));
835 #if QT_CONFIG(tooltip) 836 resetButton->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Reset all client options to default.",
nullptr));
837 #endif // QT_CONFIG(tooltip) 838 resetButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&Reset Options",
nullptr));
840 okButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&OK",
nullptr));
841 cancelButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&Cancel",
nullptr));
852 #endif // UI_OPTIONSDIALOG_H QCheckBox * spendZeroConfChange
QHBoxLayout * horizontalLayout_3_Display
QCheckBox * proxyReachIPv6
QVBoxLayout * verticalLayout
QSpacerItem * horizontalSpacer_1
QSpinBox * threadsScriptVerif
QPushButton * openBitcoinConfButton
void setupUi(QDialog *OptionsDialog)
QHBoxLayout * horizontalLayout
QHBoxLayout * horizontalLayout_4_Display
QPushButton * cancelButton
QVBoxLayout * verticalLayout_Wallet
QCheckBox * m_enable_psbt_controls
QSpacerItem * horizontalSpacer_1_Network
QVBoxLayout * verticalLayout_Display
QSpacerItem * horizontalSpacer_2_Network
QVBoxLayout * verticalLayout_2
QCheckBox * minimizeToTray
QHBoxLayout * horizontalLayout_2_Main
QLabel * databaseCacheUnitLabel
QLabel * threadsScriptVerifLabel
Line edit that can be marked as "invalid" to show input validation feedback.
QSpacerItem * verticalSpacer_Network
QHBoxLayout * horizontalLayout_1_Network
QHBoxLayout * horizontalLayout_Bottom
QSpacerItem * horizontalSpacer_2
QVBoxLayout * verticalLayout_Window
QHBoxLayout * horizontalLayout_Main_VerifyLabel
QLabel * proxyReachIPv4Label
QLabel * overriddenByCommandLineInfoLabel
QSpacerItem * horizontalSpacer_Main_Prune
QLabel * proxyPortTorLabel
QSpacerItem * horizontalSpacer_Main_Threads
QSpacerItem * verticalSpacer_Window
QLabel * proxyReachTorLabel
QHBoxLayout * horizontalLayout_Buttons
QHBoxLayout * horizontalLayout_2_Network
QLabel * pruneSizeUnitLabel
QHBoxLayout * horizontalLayout_Main_Prune
QCheckBox * allowIncoming
QVBoxLayout * verticalLayout_Network
QVBoxLayout * verticalLayout_4
QCheckBox * proxyReachIPv4
QSpacerItem * horizontalSpacer_2_Main
QLabel * moneyFont_preview
QSpacerItem * verticalSpacer
QCheckBox * connectSocksTor
QVBoxLayout * verticalLayout_Buttons
QSpacerItem * verticalSpacer_Wallet
QLabel * overriddenByCommandLineLabel
QLabel * databaseCacheLabel
QCheckBox * subFeeFromAmount
QHBoxLayout * horizontalLayout_1_Display
QValidatedLineEdit * proxyIpTor
QCheckBox * minimizeOnClose
QLineEdit * thirdPartyTxUrls
QSpacerItem * verticalSpacer_Display
QSpacerItem * horizontalSpacer_0_Main
QLabel * thirdPartyTxUrlsLabel
QCheckBox * bitcoinAtStartup
QCheckBox * proxyReachTor
QVBoxLayout * verticalLayout_Main
QVBoxLayout * verticalLayout_Bottom
QLabel * proxyReachIPv6Label
QSpacerItem * horizontalSpacer_4_Network
QValidatedLineEdit * proxyIp
QCheckBox * mapPortNatpmp
QSpacerItem * verticalSpacer_Main
QVBoxLayout * verticalLayoutHww
QCheckBox * coinControlFeatures
QLineEdit * externalSignerPath
QHBoxLayout * horizontalLayoutHww
QPushButton * resetButton
QHBoxLayout * horizontalLayout_2_Display
void retranslateUi(QDialog *OptionsDialog)
QLabel * externalSignerPathLabel
QHBoxLayout * horizontalLayout_3_Network
QSpacerItem * horizontalSpacer_Bottom