Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
optionsdialog.cpp
Go to the documentation of this file.
127 ui->lang->addItem(locale.nativeLanguageName() + QString(" - ") + locale.nativeCountryName() + QString(" (") + langStr + QString(")"), QVariant(langStr));
130 ui->lang->addItem(QLocale::languageToString(locale.language()) + QString(" - ") + QLocale::countryToString(locale.country()) + QString(" (") + langStr + QString(")"), QVariant(langStr));
137 ui->lang->addItem(locale.nativeLanguageName() + QString(" (") + langStr + QString(")"), QVariant(langStr));
140 ui->lang->addItem(QLocale::languageToString(locale.language()) + QString(" (") + langStr + QString(")"), QVariant(langStr));
158 connect(ui->proxyIp, SIGNAL(validationDidChange(QValidatedLineEdit *)), this, SLOT(updateProxyValidationState()));
159 connect(ui->proxyIpTor, SIGNAL(validationDidChange(QValidatedLineEdit *)), this, SLOT(updateProxyValidationState()));
160 connect(ui->proxyPort, SIGNAL(textChanged(const QString&)), this, SLOT(updateProxyValidationState()));
161 connect(ui->proxyPortTor, SIGNAL(textChanged(const QString&)), this, SLOT(updateProxyValidationState()));
176 // Store the current PrivateSend enabled state to recover it if it gets changed but the dialog gets not accepted but declined.
229 /* warn when one of the following settings changes by user action (placed here so init via mapper doesn't trigger them) */
244 connect(ui->thirdPartyTxUrls, SIGNAL(textChanged(const QString &)), this, SLOT(showRestartWarning()));
333 QMessageBox::StandardButton btnRetVal = QMessageBox::question(this, tr("Confirm options reset"),
334 tr("Client restart required to activate changes.") + "<br><br>" + tr("Client will be shut down. Do you want to proceed?"),
406 QValidatedLineEdit *otherProxyWidget = (pUiProxyIp == ui->proxyIpTor) ? ui->proxyIp : ui->proxyIpTor;
407 if (pUiProxyIp->isValid() && (!ui->proxyPort->isEnabled() || ui->proxyPort->text().toInt() > 0) && (!ui->proxyPortTor->isEnabled() || ui->proxyPortTor->text().toInt() > 0))
429 (strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachIPv4->setChecked(true) : ui->proxyReachIPv4->setChecked(false);
434 (strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachIPv6->setChecked(true) : ui->proxyReachIPv6->setChecked(false);
439 (strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachTor->setChecked(true) : ui->proxyReachTor->setChecked(false);
Definition: optionsmodel.h:62
Definition: netaddress.h:26
OptionsDialog(QWidget *parent, bool enableWallet)
Definition: optionsdialog.cpp:34
Proxy address widget validator, checks for a valid proxy address.
Definition: optionsdialog.h:26
Definition: optionsmodel.h:59
void appearanceChanged()
Definition: optionsmodel.h:44
Definition: optionsmodel.h:46
Definition: optionsmodel.h:37
void setFont(const std::vector< QWidget *> &vecWidgets, FontWeight weight, int nPointSize, bool fItalic)
Workaround to set correct font styles in all themes since there is a bug in macOS which leads to issu...
Definition: guiutil.cpp:1552
Definition: optionsmodel.h:65
Definition: netaddress.h:24
Definition: addressbookpage.h:12
CService LookupNumeric(const char *pszName, int portDefault)
Definition: netbase.cpp:168
const QString & getOverriddenByCommandLine()
Definition: optionsmodel.h:87
Definition: optionsmodel.h:40
Definition: optionsmodel.h:55
Line edit that can be marked as "invalid" to show input validation feedback.
Definition: qvalidatedlineedit.h:13
Definition: optionsmodel.h:38
std::string ToStringIP(bool fUseGetnameinfo=true) const
Definition: netaddress.cpp:261
Definition: optionsmodel.h:35
Definition: netbase.h:29
Definition: optionsmodel.h:63
void updateFonts()
Update the font of all widgets where a custom font has been set with GUIUtil::setFont.
Definition: guiutil.cpp:1563
Definition: optionsmodel.h:33
A combination of a network address (CNetAddr) and a (TCP) port.
Definition: netaddress.h:143
State validate(QString &input, int &pos) const
Definition: optionsdialog.cpp:483
Definition: optionsmodel.h:41
Definition: optionsmodel.h:34
Definition: optionsmodel.h:43
Definition: optionsmodel.h:42
void disableMacFocusRect(const QWidget *w)
Disable the OS default focus rect for macOS because we have custom focus rects set in the css files...
Definition: guiutil.cpp:1789
bool fEnablePrivateSend
Definition: privatesend-client.h:213
void on_hideTrayIcon_stateChanged(int fState)
Definition: optionsdialog.cpp:365
Definition: optionsmodel.h:45
Definition: optionsmodel.h:39
void appearanceChanged()
Definition: optionsmodel.h:52
Definition: optionsmodel.h:36
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:25
QString getThemedStyleQString(ThemedStyle style)
Helper to get css style strings which are injected into rich text through qt.
Definition: guiutil.cpp:210
Definition: netaddress.h:25
void showRestartWarning(bool fPersistent=false)
Definition: optionsdialog.cpp:378
void updatePrivateSendVisibility()
Definition: optionsdialog.cpp:442
void on_cancelButton_clicked()
Definition: optionsdialog.cpp:360
int GetNumCores()
Return the number of physical cores available on the current system.
Definition: util.cpp:1355
void updateProxyValidationState()
Definition: optionsdialog.cpp:403
Definition: appearancewidget.h:22
ProxyAddressValidator(QObject *parent)
Definition: optionsdialog.cpp:478
static constexpr unsigned short DEFAULT_GUI_PROXY_PORT
Definition: optionsmodel.h:17
static const int MAX_SCRIPTCHECK_THREADS
Maximum number of script-checking threads allowed.
Definition: validation.h:83
Definition: optionsmodel.h:61