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/QDialog> 16 #include <QtWidgets/QFrame> 17 #include <QtWidgets/QGroupBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QLineEdit> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QRadioButton> 23 #include <QtWidgets/QSpacerItem> 24 #include <QtWidgets/QSpinBox> 25 #include <QtWidgets/QTabWidget> 26 #include <QtWidgets/QVBoxLayout> 27 #include <QtWidgets/QWidget> 157 OptionsDialog->setObjectName(QString::fromUtf8(
"OptionsDialog"));
161 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
163 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
165 tabMain->setObjectName(QString::fromUtf8(
"tabMain"));
180 prune->setObjectName(QString::fromUtf8(
"prune"));
185 pruneSize->setObjectName(QString::fromUtf8(
"pruneSize"));
203 pruneWarning->setObjectName(QString::fromUtf8(
"pruneWarning"));
217 databaseCache->setObjectName(QString::fromUtf8(
"databaseCache"));
255 enableServer->setObjectName(QString::fromUtf8(
"enableServer"));
259 verticalSpacer_Main =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
265 tabWallet->setObjectName(QString::fromUtf8(
"tabWallet"));
274 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
296 groupBoxHww->setObjectName(QString::fromUtf8(
"groupBoxHww"));
323 tabNetwork->setObjectName(QString::fromUtf8(
"tabNetwork"));
327 mapPortUpnp->setObjectName(QString::fromUtf8(
"mapPortUpnp"));
332 mapPortNatpmp->setObjectName(QString::fromUtf8(
"mapPortNatpmp"));
337 allowIncoming->setObjectName(QString::fromUtf8(
"allowIncoming"));
342 connectSocks->setObjectName(QString::fromUtf8(
"connectSocks"));
349 proxyIpLabel->setObjectName(QString::fromUtf8(
"proxyIpLabel"));
355 proxyIp->setObjectName(QString::fromUtf8(
"proxyIp"));
356 proxyIp->setMinimumSize(QSize(140, 0));
357 proxyIp->setMaximumSize(QSize(140, 16777215));
362 proxyPortLabel->setObjectName(QString::fromUtf8(
"proxyPortLabel"));
368 proxyPort->setObjectName(QString::fromUtf8(
"proxyPort"));
370 proxyPort->setMaximumSize(QSize(55, 16777215));
390 proxyReachIPv4->setObjectName(QString::fromUtf8(
"proxyReachIPv4"));
402 proxyReachIPv6->setObjectName(QString::fromUtf8(
"proxyReachIPv6"));
414 proxyReachTor->setObjectName(QString::fromUtf8(
"proxyReachTor"));
446 proxyIpTor->setObjectName(QString::fromUtf8(
"proxyIpTor"));
448 proxyIpTor->setMaximumSize(QSize(140, 16777215));
459 proxyPortTor->setObjectName(QString::fromUtf8(
"proxyPortTor"));
478 tabWindow->setObjectName(QString::fromUtf8(
"tabWindow"));
482 showTrayIcon->setObjectName(QString::fromUtf8(
"showTrayIcon"));
488 minimizeToTray->setObjectName(QString::fromUtf8(
"minimizeToTray"));
503 tabDisplay->setObjectName(QString::fromUtf8(
"tabDisplay"));
509 langLabel->setObjectName(QString::fromUtf8(
"langLabel"));
515 lang->setObjectName(QString::fromUtf8(
"lang"));
525 unitLabel->setObjectName(QString::fromUtf8(
"unitLabel"));
531 unit->setObjectName(QString::fromUtf8(
"unit"));
547 thirdPartyTxUrls->setPlaceholderText(QString::fromUtf8(
"https://example.com/tx/%s"));
555 font_groupBox->setObjectName(QString::fromUtf8(
"font_groupBox"));
590 font_line->setObjectName(QString::fromUtf8(
"font_line"));
592 font_line->setFrameShadow(QFrame::Sunken);
639 frame->setObjectName(QString::fromUtf8(
"frame"));
678 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
686 horizontalSpacer_1 =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
691 statusLabel->setObjectName(QString::fromUtf8(
"statusLabel"));
702 horizontalSpacer_2 =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
708 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
715 okButton->setObjectName(QString::fromUtf8(
"okButton"));
721 cancelButton->setObjectName(QString::fromUtf8(
"cancelButton"));
735 #if QT_CONFIG(shortcut) 746 #endif // QT_CONFIG(shortcut) 759 OptionsDialog->setWindowTitle(QCoreApplication::translate(
"OptionsDialog",
"Options",
nullptr));
760 #if QT_CONFIG(tooltip) 761 bitcoinAtStartup->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Automatically start %1 after logging in to the system.",
nullptr));
762 #endif // QT_CONFIG(tooltip) 763 bitcoinAtStartup->setText(QCoreApplication::translate(
"OptionsDialog",
"&Start %1 on system login",
nullptr));
764 #if QT_CONFIG(tooltip) 765 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));
766 #endif // QT_CONFIG(tooltip) 767 prune->setText(QCoreApplication::translate(
"OptionsDialog",
"Prune &block storage to",
nullptr));
768 pruneSizeUnitLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"GB",
nullptr));
769 pruneWarning->setText(QCoreApplication::translate(
"OptionsDialog",
"Reverting this setting requires re-downloading the entire blockchain.",
nullptr));
770 #if QT_CONFIG(tooltip) 771 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));
772 #endif // QT_CONFIG(tooltip) 773 databaseCacheLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Size of &database cache",
nullptr));
775 #if QT_CONFIG(tooltip) 776 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));
777 #endif // QT_CONFIG(tooltip) 778 threadsScriptVerifLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Number of script &verification threads",
nullptr));
779 #if QT_CONFIG(tooltip) 780 threadsScriptVerif->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"(0 = auto, <0 = leave that many cores free)",
nullptr));
781 #endif // QT_CONFIG(tooltip) 782 #if QT_CONFIG(tooltip) 783 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));
784 #endif // QT_CONFIG(tooltip) 785 enableServer->setText(QCoreApplication::translate(
"OptionsDialog",
"Enable R&PC server",
nullptr));
787 #if QT_CONFIG(tooltip) 788 subFeeFromAmount->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Whether to set subtract fee from amount as default or not.",
nullptr));
789 #endif // QT_CONFIG(tooltip) 790 subFeeFromAmount->setText(QCoreApplication::translate(
"OptionsDialog",
"Subtract &fee from amount by default",
nullptr));
791 groupBox->setTitle(QCoreApplication::translate(
"OptionsDialog",
"Expert",
nullptr));
792 #if QT_CONFIG(tooltip) 793 coinControlFeatures->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Whether to show coin control features or not.",
nullptr));
794 #endif // QT_CONFIG(tooltip) 795 coinControlFeatures->setText(QCoreApplication::translate(
"OptionsDialog",
"Enable coin &control features",
nullptr));
796 #if QT_CONFIG(tooltip) 797 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));
798 #endif // QT_CONFIG(tooltip) 799 spendZeroConfChange->setText(QCoreApplication::translate(
"OptionsDialog",
"&Spend unconfirmed change",
nullptr));
800 m_enable_psbt_controls->setText(QCoreApplication::translate(
"OptionsDialog",
"Enable &PSBT controls",
nullptr));
801 #if QT_CONFIG(tooltip) 802 m_enable_psbt_controls->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Whether to show PSBT controls.",
nullptr));
803 #endif // QT_CONFIG(tooltip) 804 groupBoxHww->setTitle(QCoreApplication::translate(
"OptionsDialog",
"External Signer (e.g. hardware wallet)",
nullptr));
805 externalSignerPathLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&External signer script path",
nullptr));
806 #if QT_CONFIG(tooltip) 807 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));
808 #endif // QT_CONFIG(tooltip) 810 #if QT_CONFIG(tooltip) 811 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));
812 #endif // QT_CONFIG(tooltip) 813 mapPortUpnp->setText(QCoreApplication::translate(
"OptionsDialog",
"Map port using &UPnP",
nullptr));
814 #if QT_CONFIG(tooltip) 815 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));
816 #endif // QT_CONFIG(tooltip) 817 mapPortNatpmp->setText(QCoreApplication::translate(
"OptionsDialog",
"Map port using NA&T-PMP",
nullptr));
818 #if QT_CONFIG(tooltip) 819 allowIncoming->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Accept connections from outside.",
nullptr));
820 #endif // QT_CONFIG(tooltip) 821 allowIncoming->setText(QCoreApplication::translate(
"OptionsDialog",
"Allow incomin&g connections",
nullptr));
822 #if QT_CONFIG(tooltip) 823 connectSocks->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a SOCKS5 proxy.",
nullptr));
824 #endif // QT_CONFIG(tooltip) 825 connectSocks->setText(QCoreApplication::translate(
"OptionsDialog",
"&Connect through SOCKS5 proxy (default proxy):",
nullptr));
826 proxyIpLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Proxy &IP:",
nullptr));
827 #if QT_CONFIG(tooltip) 828 proxyIp->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)",
nullptr));
829 #endif // QT_CONFIG(tooltip) 830 proxyPortLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Port:",
nullptr));
831 #if QT_CONFIG(tooltip) 832 proxyPort->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)",
nullptr));
833 #endif // QT_CONFIG(tooltip) 834 proxyActiveNets->setText(QCoreApplication::translate(
"OptionsDialog",
"Used for reaching peers via:",
nullptr));
835 #if QT_CONFIG(tooltip) 836 proxyReachIPv4->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
837 #endif // QT_CONFIG(tooltip) 839 proxyReachIPv4Label->setText(QCoreApplication::translate(
"OptionsDialog",
"IPv4",
nullptr));
840 #if QT_CONFIG(tooltip) 841 proxyReachIPv6->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
842 #endif // QT_CONFIG(tooltip) 844 proxyReachIPv6Label->setText(QCoreApplication::translate(
"OptionsDialog",
"IPv6",
nullptr));
845 #if QT_CONFIG(tooltip) 846 proxyReachTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
847 #endif // QT_CONFIG(tooltip) 849 proxyReachTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Tor",
nullptr));
850 #if QT_CONFIG(tooltip) 851 connectSocksTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a separate SOCKS5 proxy for Tor onion services.",
nullptr));
852 #endif // QT_CONFIG(tooltip) 853 connectSocksTor->setText(QCoreApplication::translate(
"OptionsDialog",
"Use separate SOCKS&5 proxy to reach peers via Tor onion services:",
nullptr));
854 proxyIpTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Proxy &IP:",
nullptr));
855 #if QT_CONFIG(tooltip) 856 proxyIpTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)",
nullptr));
857 #endif // QT_CONFIG(tooltip) 858 proxyPortTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Port:",
nullptr));
859 #if QT_CONFIG(tooltip) 860 proxyPortTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)",
nullptr));
861 #endif // QT_CONFIG(tooltip) 863 #if QT_CONFIG(tooltip) 864 showTrayIcon->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Show the icon in the system tray.",
nullptr));
865 #endif // QT_CONFIG(tooltip) 866 showTrayIcon->setText(QCoreApplication::translate(
"OptionsDialog",
"&Show tray icon",
nullptr));
867 #if QT_CONFIG(tooltip) 868 minimizeToTray->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Show only a tray icon after minimizing the window.",
nullptr));
869 #endif // QT_CONFIG(tooltip) 870 minimizeToTray->setText(QCoreApplication::translate(
"OptionsDialog",
"&Minimize to the tray instead of the taskbar",
nullptr));
871 #if QT_CONFIG(tooltip) 872 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));
873 #endif // QT_CONFIG(tooltip) 874 minimizeOnClose->setText(QCoreApplication::translate(
"OptionsDialog",
"M&inimize on close",
nullptr));
876 langLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"User Interface &language:",
nullptr));
877 #if QT_CONFIG(tooltip) 878 lang->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"The user interface language can be set here. This setting will take effect after restarting %1.",
nullptr));
879 #endif // QT_CONFIG(tooltip) 880 unitLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Unit to show amounts in:",
nullptr));
881 #if QT_CONFIG(tooltip) 882 unit->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Choose the default subdivision unit to show in the interface and when sending coins.",
nullptr));
883 #endif // QT_CONFIG(tooltip) 884 #if QT_CONFIG(tooltip) 885 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));
886 #endif // QT_CONFIG(tooltip) 887 thirdPartyTxUrlsLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Third-party transaction URLs",
nullptr));
888 #if QT_CONFIG(tooltip) 889 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));
890 #endif // QT_CONFIG(tooltip) 891 font_groupBox->setTitle(QCoreApplication::translate(
"OptionsDialog",
"Monospaced font in the Overview tab:",
nullptr));
893 systemFont_radioButton->setText(QCoreApplication::translate(
"OptionsDialog",
"closest matching \"%1\"",
nullptr));
895 overriddenByCommandLineInfoLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Options set in this dialog are overridden by the command line:",
nullptr));
897 #if QT_CONFIG(tooltip) 898 openBitcoinConfButton->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Open the %1 configuration file from the working directory.",
nullptr));
899 #endif // QT_CONFIG(tooltip) 900 openBitcoinConfButton->setText(QCoreApplication::translate(
"OptionsDialog",
"Open Configuration File",
nullptr));
901 #if QT_CONFIG(tooltip) 902 resetButton->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Reset all client options to default.",
nullptr));
903 #endif // QT_CONFIG(tooltip) 904 resetButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&Reset Options",
nullptr));
906 okButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&OK",
nullptr));
907 cancelButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&Cancel",
nullptr));
918 #endif // UI_OPTIONSDIALOG_H QLabel * systemFont_label_1
QCheckBox * spendZeroConfChange
QHBoxLayout * horizontalLayout_3_Display
QCheckBox * proxyReachIPv6
QVBoxLayout * verticalLayout
QLabel * embeddedFont_label_9
QSpacerItem * horizontalSpacer_1
QSpinBox * threadsScriptVerif
QPushButton * openBitcoinConfButton
void setupUi(QDialog *OptionsDialog)
QHBoxLayout * horizontalLayout
QPushButton * cancelButton
QHBoxLayout * systemFont_horizontalLayout
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 * embeddedFont_horizontalLayout
QHBoxLayout * horizontalLayout_1_Network
QGroupBox * font_groupBox
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 * embeddedFont_label_1
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
QSpacerItem * verticalSpacer
QCheckBox * connectSocksTor
QVBoxLayout * verticalLayout_Buttons
QVBoxLayout * font_verticalLayout
QSpacerItem * verticalSpacer_Wallet
QRadioButton * embeddedFont_radioButton
QLabel * overriddenByCommandLineLabel
QLabel * systemFont_label_9
QLabel * databaseCacheLabel
QCheckBox * subFeeFromAmount
QHBoxLayout * horizontalLayout_1_Display
QValidatedLineEdit * proxyIpTor
QCheckBox * minimizeOnClose
QLineEdit * thirdPartyTxUrls
QSpacerItem * verticalSpacer_Display
QRadioButton * systemFont_radioButton
QSpacerItem * horizontalSpacer_0_Main
QLabel * thirdPartyTxUrlsLabel
QCheckBox * bitcoinAtStartup
QVBoxLayout * systemFont_verticalLayout
QCheckBox * proxyReachTor
QVBoxLayout * verticalLayout_Main
QVBoxLayout * verticalLayout_Bottom
QLabel * proxyReachIPv6Label
QSpacerItem * horizontalSpacer_4_Network
QValidatedLineEdit * proxyIp
QCheckBox * mapPortNatpmp
QSpacerItem * verticalSpacer_Main
QVBoxLayout * verticalLayoutHww
QVBoxLayout * embeddedFont_verticalLayout
QCheckBox * coinControlFeatures
QLineEdit * externalSignerPath
QHBoxLayout * horizontalLayoutHww
QSpacerItem * systemFont_horizontalSpacer
QSpacerItem * embeddedFont_horizontalSpacer
QPushButton * resetButton
QHBoxLayout * horizontalLayout_2_Display
void retranslateUi(QDialog *OptionsDialog)
QLabel * externalSignerPathLabel
QHBoxLayout * horizontalLayout_3_Network
QSpacerItem * horizontalSpacer_Bottom