Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
OptionsDialog Class Reference

Preferences dialog. More...

#include <optionsdialog.h>

+ Inheritance diagram for OptionsDialog:
+ Collaboration diagram for OptionsDialog:

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::OptionsDialogui
 
OptionsModelmodel
 
MonitoredDataMappermapper
 
bool fProxyIpValid
 

Detailed Description

Preferences dialog.

Definition at line 19 of file optionsdialog.h.

Constructor & Destructor Documentation

OptionsDialog::OptionsDialog ( QWidget parent)
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.

+ Here is the call graph for this function:

OptionsDialog::~OptionsDialog ( )

Definition at line 115 of file optionsdialog.cpp.

References GUIUtil::saveWindowGeometry(), and ui.

+ Here is the call graph for this function:

Member Function Documentation

void OptionsDialog::clearStatusLabel ( )
privateslot

Definition at line 256 of file optionsdialog.cpp.

References Ui_OptionsDialog::statusLabel, and ui.

Referenced by showRestartWarning().

+ Here is the caller graph for this function:

void OptionsDialog::disableOkButton ( )
privateslot

Definition at line 200 of file optionsdialog.cpp.

References setOkButtonState().

Referenced by doProxyIpChecks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void OptionsDialog::doProxyIpChecks ( QValidatedLineEdit pUiProxyIp,
int  nProxyPort 
)
privateslot

Definition at line 270 of file optionsdialog.cpp.

References disableOkButton(), enableOkButton(), fProxyIpValid, LookupNumeric(), QValidatedLineEdit::setValid(), Ui_OptionsDialog::statusLabel, and ui.

Referenced by OptionsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void OptionsDialog::enableOkButton ( )
privateslot

Definition at line 193 of file optionsdialog.cpp.

References fProxyIpValid, and setOkButtonState().

Referenced by doProxyIpChecks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool OptionsDialog::eventFilter ( QObject object,
QEvent *  event 
)
protected
void OptionsDialog::on_cancelButton_clicked ( )
privateslot

Definition at line 234 of file optionsdialog.cpp.

void OptionsDialog::on_okButton_clicked ( )
privateslot

Definition at line 228 of file optionsdialog.cpp.

References mapper.

void OptionsDialog::on_resetButton_clicked ( )
privateslot

Definition at line 210 of file optionsdialog.cpp.

References model, and OptionsModel::Reset().

+ Here is the call graph for this function:

void OptionsDialog::proxyIpChecks ( QValidatedLineEdit pUiProxyIp,
int  nProxyPort 
)
signal

Definition at line 125 of file moc_optionsdialog.cpp.

Referenced by eventFilter(), and OptionsDialog().

+ Here is the caller graph for this function:

void OptionsDialog::setMapper ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void OptionsDialog::setOkButtonState ( bool  fState)
privateslot

Definition at line 205 of file optionsdialog.cpp.

References Ui_OptionsDialog::okButton, and ui.

Referenced by disableOkButton(), and enableOkButton().

+ Here is the caller graph for this function:

void OptionsDialog::showRestartWarning ( bool  fPersistent = false)
privateslot

Definition at line 239 of file optionsdialog.cpp.

References clearStatusLabel(), Ui_OptionsDialog::statusLabel, and ui.

Referenced by setModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void OptionsDialog::updateDisplayUnit ( )
privateslot

Definition at line 261 of file optionsdialog.cpp.

References OptionsModel::getDisplayUnit(), model, BitcoinAmountField::setDisplayUnit(), Ui_OptionsDialog::transactionFee, and ui.

Referenced by setModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

bool OptionsDialog::fProxyIpValid
private

Definition at line 56 of file optionsdialog.h.

Referenced by doProxyIpChecks(), and enableOkButton().

MonitoredDataMapper* OptionsDialog::mapper
private

Definition at line 55 of file optionsdialog.h.

Referenced by on_okButton_clicked(), OptionsDialog(), setMapper(), and setModel().

OptionsModel* OptionsDialog::model
private

Definition at line 54 of file optionsdialog.h.

Referenced by on_resetButton_clicked(), setModel(), and updateDisplayUnit().

Ui::OptionsDialog* OptionsDialog::ui
private

The documentation for this class was generated from the following files: