9 #ifndef UI_OPTIONSDIALOG_H
10 #define UI_OPTIONSDIALOG_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QCheckBox>
17 #include <QtWidgets/QDialog>
18 #include <QtWidgets/QFrame>
19 #include <QtWidgets/QGroupBox>
20 #include <QtWidgets/QHBoxLayout>
21 #include <QtWidgets/QHeaderView>
22 #include <QtWidgets/QLabel>
23 #include <QtWidgets/QLineEdit>
24 #include <QtWidgets/QPushButton>
25 #include <QtWidgets/QSpacerItem>
26 #include <QtWidgets/QSpinBox>
27 #include <QtWidgets/QTabWidget>
28 #include <QtWidgets/QVBoxLayout>
29 #include <QtWidgets/QWidget>
134 if (OptionsDialog->objectName().isEmpty())
135 OptionsDialog->setObjectName(QStringLiteral(
"OptionsDialog"));
136 OptionsDialog->resize(560, 440);
137 OptionsDialog->setModal(
true);
140 tabWidget =
new QTabWidget(OptionsDialog);
141 tabWidget->setObjectName(QStringLiteral(
"tabWidget"));
143 tabMain->setObjectName(QStringLiteral(
"tabMain"));
158 prune->setObjectName(QStringLiteral(
"prune"));
163 pruneSize->setObjectName(QStringLiteral(
"pruneSize"));
181 pruneWarning->setObjectName(QStringLiteral(
"pruneWarning"));
195 databaseCache->setObjectName(QStringLiteral(
"databaseCache"));
232 verticalSpacer_Main =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
238 tabWallet->setObjectName(QStringLiteral(
"tabWallet"));
242 groupBox->setObjectName(QStringLiteral(
"groupBox"));
264 tabNetwork->setObjectName(QStringLiteral(
"tabNetwork"));
268 mapPortUpnp->setObjectName(QStringLiteral(
"mapPortUpnp"));
273 allowIncoming->setObjectName(QStringLiteral(
"allowIncoming"));
278 connectSocks->setObjectName(QStringLiteral(
"connectSocks"));
285 proxyIpLabel->setObjectName(QStringLiteral(
"proxyIpLabel"));
291 proxyIp->setObjectName(QStringLiteral(
"proxyIp"));
292 proxyIp->setMinimumSize(QSize(140, 0));
293 proxyIp->setMaximumSize(QSize(140, 16777215));
304 proxyPort->setObjectName(QStringLiteral(
"proxyPort"));
306 proxyPort->setMaximumSize(QSize(55, 16777215));
350 proxyReachTor->setObjectName(QStringLiteral(
"proxyReachTor"));
382 proxyIpTor->setObjectName(QStringLiteral(
"proxyIpTor"));
384 proxyIpTor->setMaximumSize(QSize(140, 16777215));
395 proxyPortTor->setObjectName(QStringLiteral(
"proxyPortTor"));
414 tabWindow->setObjectName(QStringLiteral(
"tabWindow"));
418 hideTrayIcon->setObjectName(QStringLiteral(
"hideTrayIcon"));
438 tabDisplay->setObjectName(QStringLiteral(
"tabDisplay"));
444 langLabel->setObjectName(QStringLiteral(
"langLabel"));
450 lang->setObjectName(QStringLiteral(
"lang"));
460 unitLabel->setObjectName(QStringLiteral(
"unitLabel"));
466 unit->setObjectName(QStringLiteral(
"unit"));
482 thirdPartyTxUrls->setPlaceholderText(QStringLiteral(
"https://example.com/tx/%s"));
497 frame =
new QFrame(OptionsDialog);
498 frame->setObjectName(QStringLiteral(
"frame"));
537 resetButton->setObjectName(QStringLiteral(
"resetButton"));
545 horizontalSpacer_1 =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
550 statusLabel->setObjectName(QStringLiteral(
"statusLabel"));
561 horizontalSpacer_2 =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
567 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
573 okButton =
new QPushButton(OptionsDialog);
574 okButton->setObjectName(QStringLiteral(
"okButton"));
580 cancelButton->setObjectName(QStringLiteral(
"cancelButton"));
594 #ifndef QT_NO_SHORTCUT
604 #endif // QT_NO_SHORTCUT
612 QMetaObject::connectSlotsByName(OptionsDialog);
617 OptionsDialog->setWindowTitle(QApplication::translate(
"OptionsDialog",
"Options", 0));
618 #ifndef QT_NO_TOOLTIP
619 bitcoinAtStartup->setToolTip(QApplication::translate(
"OptionsDialog",
"Automatically start %1 after logging in to the system.", 0));
620 #endif // QT_NO_TOOLTIP
621 bitcoinAtStartup->setText(QApplication::translate(
"OptionsDialog",
"&Start %1 on system login", 0));
622 #ifndef QT_NO_TOOLTIP
623 prune->setToolTip(QApplication::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.", 0));
624 #endif // QT_NO_TOOLTIP
625 prune->setText(QApplication::translate(
"OptionsDialog",
"Prune &block storage to", 0));
627 pruneWarning->setText(QApplication::translate(
"OptionsDialog",
"Reverting this setting requires re-downloading the entire blockchain.", 0));
628 databaseCacheLabel->setText(QApplication::translate(
"OptionsDialog",
"Size of &database cache", 0));
630 threadsScriptVerifLabel->setText(QApplication::translate(
"OptionsDialog",
"Number of script &verification threads", 0));
631 #ifndef QT_NO_TOOLTIP
632 threadsScriptVerif->setToolTip(QApplication::translate(
"OptionsDialog",
"(0 = auto, <0 = leave that many cores free)", 0));
633 #endif // QT_NO_TOOLTIP
635 groupBox->setTitle(QApplication::translate(
"OptionsDialog",
"Expert", 0));
636 #ifndef QT_NO_TOOLTIP
637 coinControlFeatures->setToolTip(QApplication::translate(
"OptionsDialog",
"Whether to show coin control features or not.", 0));
638 #endif // QT_NO_TOOLTIP
639 coinControlFeatures->setText(QApplication::translate(
"OptionsDialog",
"Enable coin &control features", 0));
640 #ifndef QT_NO_TOOLTIP
641 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.", 0));
642 #endif // QT_NO_TOOLTIP
643 spendZeroConfChange->setText(QApplication::translate(
"OptionsDialog",
"&Spend unconfirmed change", 0));
645 #ifndef QT_NO_TOOLTIP
646 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.", 0));
647 #endif // QT_NO_TOOLTIP
648 mapPortUpnp->setText(QApplication::translate(
"OptionsDialog",
"Map port using &UPnP", 0));
649 #ifndef QT_NO_TOOLTIP
650 allowIncoming->setToolTip(QApplication::translate(
"OptionsDialog",
"Accept connections from outside.", 0));
651 #endif // QT_NO_TOOLTIP
652 allowIncoming->setText(QApplication::translate(
"OptionsDialog",
"Allow incomin&g connections", 0));
653 #ifndef QT_NO_TOOLTIP
654 connectSocks->setToolTip(QApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a SOCKS5 proxy.", 0));
655 #endif // QT_NO_TOOLTIP
656 connectSocks->setText(QApplication::translate(
"OptionsDialog",
"&Connect through SOCKS5 proxy (default proxy):", 0));
657 proxyIpLabel->setText(QApplication::translate(
"OptionsDialog",
"Proxy &IP:", 0));
658 #ifndef QT_NO_TOOLTIP
659 proxyIp->setToolTip(QApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)", 0));
660 #endif // QT_NO_TOOLTIP
661 proxyPortLabel->setText(QApplication::translate(
"OptionsDialog",
"&Port:", 0));
662 #ifndef QT_NO_TOOLTIP
663 proxyPort->setToolTip(QApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)", 0));
664 #endif // QT_NO_TOOLTIP
665 proxyActiveNets->setText(QApplication::translate(
"OptionsDialog",
"Used for reaching peers via:", 0));
666 #ifndef QT_NO_TOOLTIP
667 proxyReachIPv4->setToolTip(QApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.", 0));
668 #endif // QT_NO_TOOLTIP
671 #ifndef QT_NO_TOOLTIP
672 proxyReachIPv6->setToolTip(QApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.", 0));
673 #endif // QT_NO_TOOLTIP
676 #ifndef QT_NO_TOOLTIP
677 proxyReachTor->setToolTip(QApplication::translate(
"OptionsDialog",
"Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.", 0));
678 #endif // QT_NO_TOOLTIP
681 #ifndef QT_NO_TOOLTIP
682 connectSocksTor->setToolTip(QApplication::translate(
"OptionsDialog",
"Connect to the Bitcoin network through a separate SOCKS5 proxy for Tor onion services.", 0));
683 #endif // QT_NO_TOOLTIP
684 connectSocksTor->setText(QApplication::translate(
"OptionsDialog",
"Use separate SOCKS&5 proxy to reach peers via Tor onion services:", 0));
685 proxyIpTorLabel->setText(QApplication::translate(
"OptionsDialog",
"Proxy &IP:", 0));
686 #ifndef QT_NO_TOOLTIP
687 proxyIpTor->setToolTip(QApplication::translate(
"OptionsDialog",
"IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)", 0));
688 #endif // QT_NO_TOOLTIP
689 proxyPortTorLabel->setText(QApplication::translate(
"OptionsDialog",
"&Port:", 0));
690 #ifndef QT_NO_TOOLTIP
691 proxyPortTor->setToolTip(QApplication::translate(
"OptionsDialog",
"Port of the proxy (e.g. 9050)", 0));
692 #endif // QT_NO_TOOLTIP
694 #ifndef QT_NO_TOOLTIP
695 hideTrayIcon->setToolTip(QApplication::translate(
"OptionsDialog",
"Hide the icon from the system tray.", 0));
696 #endif // QT_NO_TOOLTIP
697 hideTrayIcon->setText(QApplication::translate(
"OptionsDialog",
"&Hide tray icon", 0));
698 #ifndef QT_NO_TOOLTIP
699 minimizeToTray->setToolTip(QApplication::translate(
"OptionsDialog",
"Show only a tray icon after minimizing the window.", 0));
700 #endif // QT_NO_TOOLTIP
701 minimizeToTray->setText(QApplication::translate(
"OptionsDialog",
"&Minimize to the tray instead of the taskbar", 0));
702 #ifndef QT_NO_TOOLTIP
703 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.", 0));
704 #endif // QT_NO_TOOLTIP
705 minimizeOnClose->setText(QApplication::translate(
"OptionsDialog",
"M&inimize on close", 0));
707 langLabel->setText(QApplication::translate(
"OptionsDialog",
"User Interface &language:", 0));
708 #ifndef QT_NO_TOOLTIP
709 lang->setToolTip(QApplication::translate(
"OptionsDialog",
"The user interface language can be set here. This setting will take effect after restarting %1.", 0));
710 #endif // QT_NO_TOOLTIP
711 unitLabel->setText(QApplication::translate(
"OptionsDialog",
"&Unit to show amounts in:", 0));
712 #ifndef QT_NO_TOOLTIP
713 unit->setToolTip(QApplication::translate(
"OptionsDialog",
"Choose the default subdivision unit to show in the interface and when sending coins.", 0));
714 #endif // QT_NO_TOOLTIP
715 #ifndef QT_NO_TOOLTIP
716 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 |.", 0));
717 #endif // QT_NO_TOOLTIP
718 thirdPartyTxUrlsLabel->setText(QApplication::translate(
"OptionsDialog",
"&Third party transaction URLs", 0));
719 #ifndef QT_NO_TOOLTIP
720 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 |.", 0));
721 #endif // QT_NO_TOOLTIP
723 overriddenByCommandLineInfoLabel->setText(QApplication::translate(
"OptionsDialog",
"Options set in this dialog are overridden by the command line or in the configuration file:", 0));
725 #ifndef QT_NO_TOOLTIP
726 openBitcoinConfButton->setToolTip(QApplication::translate(
"OptionsDialog",
"Open the %1 configuration file from the working directory.", 0));
727 #endif // QT_NO_TOOLTIP
728 openBitcoinConfButton->setText(QApplication::translate(
"OptionsDialog",
"Open Configuration File", 0));
729 #ifndef QT_NO_TOOLTIP
730 resetButton->setToolTip(QApplication::translate(
"OptionsDialog",
"Reset all client options to default.", 0));
731 #endif // QT_NO_TOOLTIP
732 resetButton->setText(QApplication::translate(
"OptionsDialog",
"&Reset Options", 0));
734 okButton->setText(QApplication::translate(
"OptionsDialog",
"&OK", 0));
735 cancelButton->setText(QApplication::translate(
"OptionsDialog",
"&Cancel", 0));
746 #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
QPushButton * cancelButton
QVBoxLayout * verticalLayout_Wallet
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
QSpacerItem * verticalSpacer
QCheckBox * connectSocksTor
QVBoxLayout * verticalLayout_Buttons
QSpacerItem * verticalSpacer_Wallet
QLabel * overriddenByCommandLineLabel
QLabel * databaseCacheLabel
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
QSpacerItem * verticalSpacer_Main
QCheckBox * coinControlFeatures
QPushButton * resetButton
QHBoxLayout * horizontalLayout_2_Display
void retranslateUi(QDialog *OptionsDialog)
QHBoxLayout * horizontalLayout_3_Network
QSpacerItem * horizontalSpacer_Bottom