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 #ifndef QT_NO_SHORTCUT 682 #endif // QT_NO_SHORTCUT 695 OptionsDialog->setWindowTitle(QApplication::translate(
"OptionsDialog",
"Options",
nullptr));
696 #ifndef QT_NO_TOOLTIP 697 bitcoinAtStartup->setToolTip(QApplication::translate(
"OptionsDialog",
"Automatically start %1 after logging in to the system.",
nullptr));
698 #endif // QT_NO_TOOLTIP 699 bitcoinAtStartup->setText(QApplication::translate(
"OptionsDialog",
"&Start %1 on system login",
nullptr));
700 #ifndef QT_NO_TOOLTIP 701 prune->setToolTip(QApplication::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_NO_TOOLTIP 703 prune->setText(QApplication::translate(
"OptionsDialog",
"Prune &block storage to",
nullptr));
705 pruneWarning->setText(QApplication::translate(
"OptionsDialog",
"Reverting this setting requires re-downloading the entire blockchain.",
nullptr));
706 #ifndef QT_NO_TOOLTIP 707 databaseCacheLabel->setToolTip(QApplication::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_NO_TOOLTIP 709 databaseCacheLabel->setText(QApplication::translate(
"OptionsDialog",
"Size of &database cache",
nullptr));
711 #ifndef QT_NO_TOOLTIP 712 threadsScriptVerifLabel->setToolTip(QApplication::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_NO_TOOLTIP 714 threadsScriptVerifLabel->setText(QApplication::translate(
"OptionsDialog",
"Number of script &verification threads",
nullptr));
715 #ifndef QT_NO_TOOLTIP 716 threadsScriptVerif->setToolTip(QApplication::translate(
"OptionsDialog",
"(0 = auto, <0 = leave that many cores free)",
nullptr));
717 #endif // QT_NO_TOOLTIP 718 #ifndef QT_NO_TOOLTIP 719 enableServer->setToolTip(QApplication::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_NO_TOOLTIP 721 enableServer->setText(QApplication::translate(
"OptionsDialog",
"Enable R&PC server",
nullptr));
723 #ifndef QT_NO_TOOLTIP 724 subFeeFromAmount->setToolTip(QApplication::translate(
"OptionsDialog",
"Whether to set subtract fee from amount as default or not.",
nullptr));
725 #endif // QT_NO_TOOLTIP 726 subFeeFromAmount->setText(QApplication::translate(
"OptionsDialog",
"Subtract &fee from amount by default",
nullptr));
727 groupBox->setTitle(QApplication::translate(
"OptionsDialog",
"Expert",
nullptr));
728 #ifndef QT_NO_TOOLTIP 729 coinControlFeatures->setToolTip(QApplication::translate(
"OptionsDialog",
"Whether to show coin control features or not.",
nullptr));
730 #endif // QT_NO_TOOLTIP 731 coinControlFeatures->setText(QApplication::translate(
"OptionsDialog",
"Enable coin &control features",
nullptr));
732 #ifndef QT_NO_TOOLTIP 733 spendZeroConfChange->setToolTip(QApplication::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_NO_TOOLTIP 735 spendZeroConfChange->setText(QApplication::translate(
"OptionsDialog",
"&Spend unconfirmed change",
nullptr));
736 m_enable_psbt_controls->setText(QApplication::translate(
"OptionsDialog",
"Enable &PSBT controls",
nullptr));
737 #ifndef QT_NO_TOOLTIP 738 m_enable_psbt_controls->setToolTip(QApplication::translate(
"OptionsDialog",
"Whether to show PSBT controls.",
nullptr));
739 #endif // QT_NO_TOOLTIP 740 groupBoxHww->setTitle(QApplication::translate(
"OptionsDialog",
"External Signer (e.g. hardware wallet)",
nullptr));
741 externalSignerPathLabel->setText(QApplication::translate(
"OptionsDialog",
"&External signer script path",
nullptr));
742 #ifndef QT_NO_TOOLTIP 743 externalSignerPath->setToolTip(QApplication::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_NO_TOOLTIP 746 #ifndef QT_NO_TOOLTIP 747 mapPortUpnp->setToolTip(QApplication::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_NO_TOOLTIP 749 mapPortUpnp->setText(QApplication::translate(
"OptionsDialog",
"Map port using &UPnP",
nullptr));
750 #ifndef QT_NO_TOOLTIP 751 mapPortNatpmp->setToolTip(QApplication::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_NO_TOOLTIP 753 mapPortNatpmp->setText(QApplication::translate(
"OptionsDialog",
"Map port using NA&T-PMP",
nullptr));
754 #ifndef QT_NO_TOOLTIP 755 allowIncoming->setToolTip(QApplication::translate(
"OptionsDialog",
"Accept connections from outside.",
nullptr));
756 #endif // QT_NO_TOOLTIP 757 allowIncoming->setText(QApplication::translate(
"OptionsDialog",
"Allow incomin&g connections",
nullptr));
758 #ifndef QT_NO_TOOLTIP 759 connectSocks->setToolTip(QApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a SOCKS5 proxy.",
nullptr));
760 #endif // QT_NO_TOOLTIP 761 connectSocks->setText(QApplication::translate(
"OptionsDialog",
"&Connect through SOCKS5 proxy (default proxy):",
nullptr));
762 proxyIpLabel->setText(QApplication::translate(
"OptionsDialog",
"Proxy &IP:",
nullptr));
763 #ifndef QT_NO_TOOLTIP 764 proxyIp->setToolTip(QApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)",
nullptr));
765 #endif // QT_NO_TOOLTIP 766 proxyPortLabel->setText(QApplication::translate(
"OptionsDialog",
"&Port:",
nullptr));
767 #ifndef QT_NO_TOOLTIP 768 proxyPort->setToolTip(QApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)",
nullptr));
769 #endif // QT_NO_TOOLTIP 770 proxyActiveNets->setText(QApplication::translate(
"OptionsDialog",
"Used for reaching peers via:",
nullptr));
771 #ifndef QT_NO_TOOLTIP 772 proxyReachIPv4->setToolTip(QApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
773 #endif // QT_NO_TOOLTIP 776 #ifndef QT_NO_TOOLTIP 777 proxyReachIPv6->setToolTip(QApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
778 #endif // QT_NO_TOOLTIP 781 #ifndef QT_NO_TOOLTIP 782 proxyReachTor->setToolTip(QApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
783 #endif // QT_NO_TOOLTIP 785 proxyReachTorLabel->setText(QApplication::translate(
"OptionsDialog",
"Tor",
nullptr));
786 #ifndef QT_NO_TOOLTIP 787 connectSocksTor->setToolTip(QApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a separate SOCKS5 proxy for Tor onion services.",
nullptr));
788 #endif // QT_NO_TOOLTIP 789 connectSocksTor->setText(QApplication::translate(
"OptionsDialog",
"Use separate SOCKS&5 proxy to reach peers via Tor onion services:",
nullptr));
790 proxyIpTorLabel->setText(QApplication::translate(
"OptionsDialog",
"Proxy &IP:",
nullptr));
791 #ifndef QT_NO_TOOLTIP 792 proxyIpTor->setToolTip(QApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)",
nullptr));
793 #endif // QT_NO_TOOLTIP 794 proxyPortTorLabel->setText(QApplication::translate(
"OptionsDialog",
"&Port:",
nullptr));
795 #ifndef QT_NO_TOOLTIP 796 proxyPortTor->setToolTip(QApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)",
nullptr));
797 #endif // QT_NO_TOOLTIP 799 #ifndef QT_NO_TOOLTIP 800 showTrayIcon->setToolTip(QApplication::translate(
"OptionsDialog",
"Show the icon in the system tray.",
nullptr));
801 #endif // QT_NO_TOOLTIP 802 showTrayIcon->setText(QApplication::translate(
"OptionsDialog",
"&Show tray icon",
nullptr));
803 #ifndef QT_NO_TOOLTIP 804 minimizeToTray->setToolTip(QApplication::translate(
"OptionsDialog",
"Show only a tray icon after minimizing the window.",
nullptr));
805 #endif // QT_NO_TOOLTIP 806 minimizeToTray->setText(QApplication::translate(
"OptionsDialog",
"&Minimize to the tray instead of the taskbar",
nullptr));
807 #ifndef QT_NO_TOOLTIP 808 minimizeOnClose->setToolTip(QApplication::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_NO_TOOLTIP 810 minimizeOnClose->setText(QApplication::translate(
"OptionsDialog",
"M&inimize on close",
nullptr));
812 langLabel->setText(QApplication::translate(
"OptionsDialog",
"User Interface &language:",
nullptr));
813 #ifndef QT_NO_TOOLTIP 814 lang->setToolTip(QApplication::translate(
"OptionsDialog",
"The user interface language can be set here. This setting will take effect after restarting %1.",
nullptr));
815 #endif // QT_NO_TOOLTIP 816 unitLabel->setText(QApplication::translate(
"OptionsDialog",
"&Unit to show amounts in:",
nullptr));
817 #ifndef QT_NO_TOOLTIP 818 unit->setToolTip(QApplication::translate(
"OptionsDialog",
"Choose the default subdivision unit to show in the interface and when sending coins.",
nullptr));
819 #endif // QT_NO_TOOLTIP 820 #ifndef QT_NO_TOOLTIP 821 thirdPartyTxUrlsLabel->setToolTip(QApplication::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_NO_TOOLTIP 823 thirdPartyTxUrlsLabel->setText(QApplication::translate(
"OptionsDialog",
"&Third-party transaction URLs",
nullptr));
824 #ifndef QT_NO_TOOLTIP 825 thirdPartyTxUrls->setToolTip(QApplication::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_NO_TOOLTIP 827 moneyFontLabel->setText(QApplication::translate(
"OptionsDialog",
"Font in the Overview tab: ",
nullptr));
829 overriddenByCommandLineInfoLabel->setText(QApplication::translate(
"OptionsDialog",
"Options set in this dialog are overridden by the command line:",
nullptr));
831 #ifndef QT_NO_TOOLTIP 832 openBitcoinConfButton->setToolTip(QApplication::translate(
"OptionsDialog",
"Open the %1 configuration file from the working directory.",
nullptr));
833 #endif // QT_NO_TOOLTIP 834 openBitcoinConfButton->setText(QApplication::translate(
"OptionsDialog",
"Open Configuration File",
nullptr));
835 #ifndef QT_NO_TOOLTIP 836 resetButton->setToolTip(QApplication::translate(
"OptionsDialog",
"Reset all client options to default.",
nullptr));
837 #endif // QT_NO_TOOLTIP 838 resetButton->setText(QApplication::translate(
"OptionsDialog",
"&Reset Options",
nullptr));
840 okButton->setText(QApplication::translate(
"OptionsDialog",
"&OK",
nullptr));
841 cancelButton->setText(QApplication::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