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/QSpacerItem>
23 #include <QtWidgets/QSpinBox>
24 #include <QtWidgets/QTabWidget>
25 #include <QtWidgets/QVBoxLayout>
26 #include <QtWidgets/QWidget>
132 OptionsDialog->setObjectName(QString::fromUtf8(
"OptionsDialog"));
136 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
138 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
140 tabMain->setObjectName(QString::fromUtf8(
"tabMain"));
155 prune->setObjectName(QString::fromUtf8(
"prune"));
160 pruneSize->setObjectName(QString::fromUtf8(
"pruneSize"));
178 pruneWarning->setObjectName(QString::fromUtf8(
"pruneWarning"));
192 databaseCache->setObjectName(QString::fromUtf8(
"databaseCache"));
229 verticalSpacer_Main =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
235 tabWallet->setObjectName(QString::fromUtf8(
"tabWallet"));
239 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
261 tabNetwork->setObjectName(QString::fromUtf8(
"tabNetwork"));
265 mapPortUpnp->setObjectName(QString::fromUtf8(
"mapPortUpnp"));
270 allowIncoming->setObjectName(QString::fromUtf8(
"allowIncoming"));
275 connectSocks->setObjectName(QString::fromUtf8(
"connectSocks"));
282 proxyIpLabel->setObjectName(QString::fromUtf8(
"proxyIpLabel"));
288 proxyIp->setObjectName(QString::fromUtf8(
"proxyIp"));
289 proxyIp->setMinimumSize(QSize(140, 0));
290 proxyIp->setMaximumSize(QSize(140, 16777215));
295 proxyPortLabel->setObjectName(QString::fromUtf8(
"proxyPortLabel"));
301 proxyPort->setObjectName(QString::fromUtf8(
"proxyPort"));
303 proxyPort->setMaximumSize(QSize(55, 16777215));
323 proxyReachIPv4->setObjectName(QString::fromUtf8(
"proxyReachIPv4"));
335 proxyReachIPv6->setObjectName(QString::fromUtf8(
"proxyReachIPv6"));
347 proxyReachTor->setObjectName(QString::fromUtf8(
"proxyReachTor"));
379 proxyIpTor->setObjectName(QString::fromUtf8(
"proxyIpTor"));
381 proxyIpTor->setMaximumSize(QSize(140, 16777215));
392 proxyPortTor->setObjectName(QString::fromUtf8(
"proxyPortTor"));
411 tabWindow->setObjectName(QString::fromUtf8(
"tabWindow"));
415 hideTrayIcon->setObjectName(QString::fromUtf8(
"hideTrayIcon"));
420 minimizeToTray->setObjectName(QString::fromUtf8(
"minimizeToTray"));
435 tabDisplay->setObjectName(QString::fromUtf8(
"tabDisplay"));
441 langLabel->setObjectName(QString::fromUtf8(
"langLabel"));
447 lang->setObjectName(QString::fromUtf8(
"lang"));
457 unitLabel->setObjectName(QString::fromUtf8(
"unitLabel"));
463 unit->setObjectName(QString::fromUtf8(
"unit"));
479 thirdPartyTxUrls->setPlaceholderText(QString::fromUtf8(
"https://example.com/tx/%s"));
495 frame->setObjectName(QString::fromUtf8(
"frame"));
534 resetButton->setObjectName(QString::fromUtf8(
"resetButton"));
542 horizontalSpacer_1 =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
547 statusLabel->setObjectName(QString::fromUtf8(
"statusLabel"));
558 horizontalSpacer_2 =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
564 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
571 okButton->setObjectName(QString::fromUtf8(
"okButton"));
577 cancelButton->setObjectName(QString::fromUtf8(
"cancelButton"));
591 #if QT_CONFIG(shortcut)
614 OptionsDialog->setWindowTitle(QCoreApplication::translate(
"OptionsDialog",
"Options",
nullptr));
615 #if QT_CONFIG(tooltip)
616 bitcoinAtStartup->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Automatically start %1 after logging in to the system.",
nullptr));
618 bitcoinAtStartup->setText(QCoreApplication::translate(
"OptionsDialog",
"&Start %1 on system login",
nullptr));
619 #if QT_CONFIG(tooltip)
620 prune->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Disables some advanced features but all blocks will still be fully validated. Reverting this setting requires re-downloading the entire blockchain. Actual disk usage may be somewhat higher.",
nullptr));
622 prune->setText(QCoreApplication::translate(
"OptionsDialog",
"Prune &block storage to",
nullptr));
623 pruneSizeUnitLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"GB",
nullptr));
624 pruneWarning->setText(QCoreApplication::translate(
"OptionsDialog",
"Reverting this setting requires re-downloading the entire blockchain.",
nullptr));
625 databaseCacheLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Size of &database cache",
nullptr));
627 threadsScriptVerifLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Number of script &verification threads",
nullptr));
628 #if QT_CONFIG(tooltip)
629 threadsScriptVerif->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"(0 = auto, <0 = leave that many cores free)",
nullptr));
632 groupBox->setTitle(QCoreApplication::translate(
"OptionsDialog",
"Expert",
nullptr));
633 #if QT_CONFIG(tooltip)
634 coinControlFeatures->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Whether to show coin control features or not.",
nullptr));
636 coinControlFeatures->setText(QCoreApplication::translate(
"OptionsDialog",
"Enable coin &control features",
nullptr));
637 #if QT_CONFIG(tooltip)
638 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));
640 spendZeroConfChange->setText(QCoreApplication::translate(
"OptionsDialog",
"&Spend unconfirmed change",
nullptr));
642 #if QT_CONFIG(tooltip)
643 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));
645 mapPortUpnp->setText(QCoreApplication::translate(
"OptionsDialog",
"Map port using &UPnP",
nullptr));
646 #if QT_CONFIG(tooltip)
647 allowIncoming->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Accept connections from outside.",
nullptr));
649 allowIncoming->setText(QCoreApplication::translate(
"OptionsDialog",
"Allow incomin&g connections",
nullptr));
650 #if QT_CONFIG(tooltip)
651 connectSocks->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a SOCKS5 proxy.",
nullptr));
653 connectSocks->setText(QCoreApplication::translate(
"OptionsDialog",
"&Connect through SOCKS5 proxy (default proxy):",
nullptr));
654 proxyIpLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Proxy &IP:",
nullptr));
655 #if QT_CONFIG(tooltip)
656 proxyIp->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)",
nullptr));
658 proxyPortLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Port:",
nullptr));
659 #if QT_CONFIG(tooltip)
660 proxyPort->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)",
nullptr));
662 proxyActiveNets->setText(QCoreApplication::translate(
"OptionsDialog",
"Used for reaching peers via:",
nullptr));
663 #if QT_CONFIG(tooltip)
664 proxyReachIPv4->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
667 proxyReachIPv4Label->setText(QCoreApplication::translate(
"OptionsDialog",
"IPv4",
nullptr));
668 #if QT_CONFIG(tooltip)
669 proxyReachIPv6->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
672 proxyReachIPv6Label->setText(QCoreApplication::translate(
"OptionsDialog",
"IPv6",
nullptr));
673 #if QT_CONFIG(tooltip)
674 proxyReachTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.",
nullptr));
677 proxyReachTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Tor",
nullptr));
678 #if QT_CONFIG(tooltip)
679 connectSocksTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a separate SOCKS5 proxy for Tor onion services.",
nullptr));
681 connectSocksTor->setText(QCoreApplication::translate(
"OptionsDialog",
"Use separate SOCKS&5 proxy to reach peers via Tor onion services:",
nullptr));
682 proxyIpTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Proxy &IP:",
nullptr));
683 #if QT_CONFIG(tooltip)
684 proxyIpTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)",
nullptr));
686 proxyPortTorLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Port:",
nullptr));
687 #if QT_CONFIG(tooltip)
688 proxyPortTor->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)",
nullptr));
691 #if QT_CONFIG(tooltip)
692 hideTrayIcon->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Hide the icon from the system tray.",
nullptr));
694 hideTrayIcon->setText(QCoreApplication::translate(
"OptionsDialog",
"&Hide tray icon",
nullptr));
695 #if QT_CONFIG(tooltip)
696 minimizeToTray->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Show only a tray icon after minimizing the window.",
nullptr));
698 minimizeToTray->setText(QCoreApplication::translate(
"OptionsDialog",
"&Minimize to the tray instead of the taskbar",
nullptr));
699 #if QT_CONFIG(tooltip)
700 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));
702 minimizeOnClose->setText(QCoreApplication::translate(
"OptionsDialog",
"M&inimize on close",
nullptr));
704 langLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"User Interface &language:",
nullptr));
705 #if QT_CONFIG(tooltip)
706 lang->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"The user interface language can be set here. This setting will take effect after restarting %1.",
nullptr));
708 unitLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Unit to show amounts in:",
nullptr));
709 #if QT_CONFIG(tooltip)
710 unit->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Choose the default subdivision unit to show in the interface and when sending coins.",
nullptr));
712 #if QT_CONFIG(tooltip)
713 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));
715 thirdPartyTxUrlsLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"&Third party transaction URLs",
nullptr));
716 #if QT_CONFIG(tooltip)
717 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));
720 overriddenByCommandLineInfoLabel->setText(QCoreApplication::translate(
"OptionsDialog",
"Options set in this dialog are overridden by the command line or in the configuration file:",
nullptr));
722 #if QT_CONFIG(tooltip)
723 openBitcoinConfButton->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Open the %1 configuration file from the working directory.",
nullptr));
725 openBitcoinConfButton->setText(QCoreApplication::translate(
"OptionsDialog",
"Open Configuration File",
nullptr));
726 #if QT_CONFIG(tooltip)
727 resetButton->setToolTip(QCoreApplication::translate(
"OptionsDialog",
"Reset all client options to default.",
nullptr));
729 resetButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&Reset Options",
nullptr));
731 okButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&OK",
nullptr));
732 cancelButton->setText(QCoreApplication::translate(
"OptionsDialog",
"&Cancel",
nullptr));
Line edit that can be marked as "invalid" to show input validation feedback.
QSpacerItem * horizontalSpacer_Main_Prune
QSpacerItem * horizontalSpacer_Bottom
QSpacerItem * horizontalSpacer_1_Network
QVBoxLayout * verticalLayout_Window
QVBoxLayout * verticalLayout
QSpacerItem * verticalSpacer_Network
QHBoxLayout * horizontalLayout_Main_VerifyLabel
QSpacerItem * verticalSpacer_Display
QLabel * overriddenByCommandLineLabel
QHBoxLayout * horizontalLayout_Main_Prune
QHBoxLayout * horizontalLayout_1_Network
QSpinBox * threadsScriptVerif
QSpacerItem * verticalSpacer_Window
QLabel * overriddenByCommandLineInfoLabel
QVBoxLayout * verticalLayout_Display
QSpacerItem * verticalSpacer
QLabel * proxyPortTorLabel
QVBoxLayout * verticalLayout_2
QLabel * proxyReachIPv4Label
QPushButton * cancelButton
QLabel * databaseCacheUnitLabel
QPushButton * resetButton
QHBoxLayout * horizontalLayout_3_Display
QLabel * proxyReachIPv6Label
QHBoxLayout * horizontalLayout_Bottom
QCheckBox * connectSocksTor
QCheckBox * minimizeToTray
void setupUi(QDialog *OptionsDialog)
QHBoxLayout * horizontalLayout_1_Display
QCheckBox * bitcoinAtStartup
QVBoxLayout * verticalLayout_Buttons
QVBoxLayout * verticalLayout_Network
QVBoxLayout * verticalLayout_Main
QSpacerItem * horizontalSpacer_2_Main
QVBoxLayout * verticalLayout_4
QSpacerItem * horizontalSpacer_Main_Threads
QHBoxLayout * horizontalLayout_3_Network
QPushButton * openBitcoinConfButton
QCheckBox * coinControlFeatures
QSpacerItem * verticalSpacer_Main
QValidatedLineEdit * proxyIpTor
QSpacerItem * horizontalSpacer_2
QCheckBox * allowIncoming
QHBoxLayout * horizontalLayout_2_Network
QLabel * databaseCacheLabel
QLabel * proxyReachTorLabel
QLineEdit * thirdPartyTxUrls
void retranslateUi(QDialog *OptionsDialog)
QHBoxLayout * horizontalLayout_2_Main
QSpacerItem * horizontalSpacer_0_Main
QSpacerItem * horizontalSpacer_1
QVBoxLayout * verticalLayout_Wallet
QVBoxLayout * verticalLayout_Bottom
QHBoxLayout * horizontalLayout_Buttons
QCheckBox * spendZeroConfChange
QCheckBox * proxyReachIPv4
QCheckBox * proxyReachIPv6
QLabel * threadsScriptVerifLabel
QSpacerItem * horizontalSpacer_4_Network
QSpacerItem * verticalSpacer_Wallet
QHBoxLayout * horizontalLayout_2_Display
QCheckBox * proxyReachTor
QHBoxLayout * horizontalLayout
QValidatedLineEdit * proxyIp
QLabel * pruneSizeUnitLabel
QCheckBox * minimizeOnClose
QLabel * thirdPartyTxUrlsLabel
QSpacerItem * horizontalSpacer_2_Network