![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Preferences dialog. More...
#include <optionsdialog.h>
Signals | |
void | proxyIpChecks (QValidatedLineEdit *pUiProxyIp, int nProxyPort) |
Public Member Functions | |
OptionsDialog (QWidget *parent) | |
~OptionsDialog () | |
void | setModel (OptionsModel *model) |
void | setMapper () |
Protected Member Functions | |
bool | eventFilter (QObject *object, QEvent *event) |
Private Slots | |
void | enableOkButton () |
void | disableOkButton () |
void | setOkButtonState (bool fState) |
void | on_resetButton_clicked () |
void | on_okButton_clicked () |
void | on_cancelButton_clicked () |
void | showRestartWarning (bool fPersistent=false) |
void | clearStatusLabel () |
void | updateDisplayUnit () |
void | doProxyIpChecks (QValidatedLineEdit *pUiProxyIp, int nProxyPort) |
Private Attributes | |
Ui::OptionsDialog * | ui |
OptionsModel * | model |
MonitoredDataMapper * | mapper |
bool | fProxyIpValid |
Preferences dialog.
Definition at line 19 of file optionsdialog.h.
|
explicit |
SOCKS version is only selectable for default proxy and is always 5 for IPv6 and Tor
check if the locale name consists of 2 parts (language_country)
display language strings as "language - country (locale name)", e.g. "German - Germany (de)"
display language strings as "language (locale name)", e.g. "German (de)"
Definition at line 27 of file optionsdialog.cpp.
References Ui_OptionsDialog::connectSocks, Ui_OptionsDialog::databaseCache, doProxyIpChecks(), Ui_OptionsDialog::lang, mapper, Ui_OptionsDialog::mapPortUpnp, MAX_SCRIPTCHECK_THREADS, nMaxDbCache, nMinDbCache, CTransaction::nMinTxFee, Ui_OptionsDialog::proxyIp, proxyIpChecks(), Ui_OptionsDialog::proxyPort, GUIUtil::restoreWindowGeometry(), QValidatedLineEdit::setEnabled(), BitcoinAmountField::setSingleStep(), Ui_OptionsDialog::setupUi(), Ui_OptionsDialog::socksVersion, Ui_OptionsDialog::tabWidget, Ui_OptionsDialog::tabWindow, Ui_OptionsDialog::thirdPartyTxUrls, Ui_OptionsDialog::threadsScriptVerif, Ui_OptionsDialog::transactionFee, ui, and Ui_OptionsDialog::unit.
OptionsDialog::~OptionsDialog | ( | ) |
Definition at line 115 of file optionsdialog.cpp.
References GUIUtil::saveWindowGeometry(), and ui.
|
privateslot |
Definition at line 256 of file optionsdialog.cpp.
References Ui_OptionsDialog::statusLabel, and ui.
Referenced by showRestartWarning().
|
privateslot |
Definition at line 200 of file optionsdialog.cpp.
References setOkButtonState().
Referenced by doProxyIpChecks().
|
privateslot |
Definition at line 270 of file optionsdialog.cpp.
References disableOkButton(), enableOkButton(), fProxyIpValid, LookupNumeric(), QValidatedLineEdit::setValid(), Ui_OptionsDialog::statusLabel, and ui.
Referenced by OptionsDialog().
|
privateslot |
Definition at line 193 of file optionsdialog.cpp.
References fProxyIpValid, and setOkButtonState().
Referenced by doProxyIpChecks().
|
protected |
Definition at line 292 of file optionsdialog.cpp.
References Ui_OptionsDialog::proxyIp, proxyIpChecks(), Ui_OptionsDialog::proxyPort, and ui.
|
privateslot |
Definition at line 234 of file optionsdialog.cpp.
|
privateslot |
Definition at line 228 of file optionsdialog.cpp.
References mapper.
|
privateslot |
Definition at line 210 of file optionsdialog.cpp.
References model, and OptionsModel::Reset().
|
signal |
Definition at line 125 of file moc_optionsdialog.cpp.
Referenced by eventFilter(), and OptionsDialog().
void OptionsDialog::setMapper | ( | ) |
Definition at line 160 of file optionsdialog.cpp.
References MonitoredDataMapper::addMapping(), Ui_OptionsDialog::bitcoinAtStartup, OptionsModel::CoinControlFeatures, Ui_OptionsDialog::coinControlFeatures, Ui_OptionsDialog::connectSocks, OptionsModel::DatabaseCache, Ui_OptionsDialog::databaseCache, OptionsModel::DisplayAddresses, Ui_OptionsDialog::displayAddresses, OptionsModel::DisplayUnit, OptionsModel::Fee, Ui_OptionsDialog::lang, OptionsModel::Language, mapper, OptionsModel::MapPortUPnP, Ui_OptionsDialog::mapPortUpnp, OptionsModel::MinimizeOnClose, Ui_OptionsDialog::minimizeOnClose, OptionsModel::MinimizeToTray, Ui_OptionsDialog::minimizeToTray, OptionsModel::ProxyIP, Ui_OptionsDialog::proxyIp, OptionsModel::ProxyPort, Ui_OptionsDialog::proxyPort, OptionsModel::ProxySocksVersion, OptionsModel::ProxyUse, Ui_OptionsDialog::socksVersion, OptionsModel::SpendZeroConfChange, Ui_OptionsDialog::spendZeroConfChange, OptionsModel::StartAtStartup, OptionsModel::ThirdPartyTxUrls, Ui_OptionsDialog::thirdPartyTxUrls, OptionsModel::ThreadsScriptVerif, Ui_OptionsDialog::threadsScriptVerif, Ui_OptionsDialog::transactionFee, ui, and Ui_OptionsDialog::unit.
Referenced by setModel().
void OptionsDialog::setModel | ( | OptionsModel * | model | ) |
Definition at line 121 of file optionsdialog.cpp.
References Ui_OptionsDialog::connectSocks, Ui_OptionsDialog::databaseCache, OptionsModel::getOverriddenByCommandLine(), OptionsModel::isRestartRequired(), Ui_OptionsDialog::lang, mapper, model, Ui_OptionsDialog::overriddenByCommandLineLabel, setMapper(), showRestartWarning(), Ui_OptionsDialog::spendZeroConfChange, Ui_OptionsDialog::thirdPartyTxUrls, Ui_OptionsDialog::threadsScriptVerif, ui, and updateDisplayUnit().
Referenced by BitcoinGUI::optionsClicked().
|
privateslot |
Definition at line 205 of file optionsdialog.cpp.
References Ui_OptionsDialog::okButton, and ui.
Referenced by disableOkButton(), and enableOkButton().
|
privateslot |
Definition at line 239 of file optionsdialog.cpp.
References clearStatusLabel(), Ui_OptionsDialog::statusLabel, and ui.
Referenced by setModel().
|
privateslot |
Definition at line 261 of file optionsdialog.cpp.
References OptionsModel::getDisplayUnit(), model, BitcoinAmountField::setDisplayUnit(), Ui_OptionsDialog::transactionFee, and ui.
Referenced by setModel().
|
private |
Definition at line 56 of file optionsdialog.h.
Referenced by doProxyIpChecks(), and enableOkButton().
|
private |
Definition at line 55 of file optionsdialog.h.
Referenced by on_okButton_clicked(), OptionsDialog(), setMapper(), and setModel().
|
private |
Definition at line 54 of file optionsdialog.h.
Referenced by on_resetButton_clicked(), setModel(), and updateDisplayUnit().
|
private |
Definition at line 53 of file optionsdialog.h.
Referenced by clearStatusLabel(), doProxyIpChecks(), eventFilter(), OptionsDialog(), setMapper(), setModel(), setOkButtonState(), showRestartWarning(), updateDisplayUnit(), and ~OptionsDialog().