![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Interface from Qt to configuration data structure for Bitcoin client. More...
#include <optionsmodel.h>
Signals | |
void | displayUnitChanged (int unit) |
void | transactionFeeChanged (qint64) |
void | coinControlFeaturesChanged (bool) |
Public Member Functions | |
OptionsModel (QObject *parent=0) | |
void | Init () |
void | Reset () |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
bool | getMinimizeToTray () |
bool | getMinimizeOnClose () |
int | getDisplayUnit () |
bool | getDisplayAddresses () |
QString | getThirdPartyTxUrls () |
bool | getProxySettings (QNetworkProxy &proxy) const |
bool | getCoinControlFeatures () |
const QString & | getOverriddenByCommandLine () |
void | setRestartRequired (bool fRequired) |
bool | isRestartRequired () |
Private Member Functions | |
void | addOverriddenOption (const std::string &option) |
Add option to list of GUI options overridden through command line/config file. More... | |
Private Attributes | |
bool | fMinimizeToTray |
bool | fMinimizeOnClose |
QString | language |
int | nDisplayUnit |
bool | bDisplayAddresses |
QString | strThirdPartyTxUrls |
bool | fCoinControlFeatures |
QString | strOverriddenByCommandLine |
Interface from Qt to configuration data structure for Bitcoin client.
To Qt, the options are presented as a list with the different options laid out vertically. This can be changed to a tree once the settings become sufficiently complex.
Definition at line 20 of file optionsmodel.h.
Definition at line 27 of file optionsmodel.h.
|
explicit |
Definition at line 27 of file optionsmodel.cpp.
References Init().
|
private |
Add option to list of GUI options overridden through command line/config file.
Definition at line 33 of file optionsmodel.cpp.
References mapArgs, and strOverriddenByCommandLine.
Referenced by Init().
|
signal |
Definition at line 113 of file moc_optionsmodel.cpp.
Referenced by setData().
QVariant OptionsModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 157 of file optionsmodel.cpp.
References bDisplayAddresses, CoinControlFeatures, DatabaseCache, DisplayAddresses, DisplayUnit, fCoinControlFeatures, Fee, fMinimizeOnClose, fMinimizeToTray, GUIUtil::GetStartOnSystemStartup(), Language, MapPortUPnP, MinimizeOnClose, MinimizeToTray, nDisplayUnit, nTransactionFee, ProxyIP, ProxyPort, ProxySocksVersion, ProxyUse, SpendZeroConfChange, StartAtStartup, strThirdPartyTxUrls, ThirdPartyTxUrls, and ThreadsScriptVerif.
|
signal |
Definition at line 99 of file moc_optionsmodel.cpp.
Referenced by setData().
|
inline |
Definition at line 62 of file optionsmodel.h.
References fCoinControlFeatures.
Referenced by SendCoinsDialog::coinControlUpdateLabels(), SendCoinsDialog::on_sendButton_clicked(), and SendCoinsDialog::setModel().
|
inline |
Definition at line 59 of file optionsmodel.h.
References bDisplayAddresses.
Referenced by TransactionTableModel::lookupAddress().
|
inline |
Definition at line 58 of file optionsmodel.h.
References nDisplayUnit.
Referenced by TransactionView::changedAmount(), TransactionTableModel::data(), RecentRequestsTableModel::data(), TransactionTableModel::formatTxAmount(), SendCoinsDialog::on_sendButton_clicked(), WalletView::processNewTransaction(), PaymentServer::processPaymentRequest(), OverviewPage::setBalance(), SendCoinsDialog::setBalance(), ReceiveRequestDialog::update(), OptionsDialog::updateDisplayUnit(), OverviewPage::updateDisplayUnit(), SendCoinsEntry::updateDisplayUnit(), ReceiveCoinsDialog::updateDisplayUnit(), CoinControlDialog::updateLabels(), and CoinControlDialog::updateView().
|
inline |
Definition at line 57 of file optionsmodel.h.
References fMinimizeOnClose.
Referenced by BitcoinGUI::closeEvent().
|
inline |
Definition at line 56 of file optionsmodel.h.
References fMinimizeToTray.
Referenced by BitcoinGUI::changeEvent(), and BitcoinGUI::closeEvent().
|
inline |
Definition at line 63 of file optionsmodel.h.
References strOverriddenByCommandLine.
Referenced by OptionsDialog::setModel().
bool OptionsModel::getProxySettings | ( | QNetworkProxy & | proxy | ) | const |
Definition at line 352 of file optionsmodel.cpp.
References GetProxy(), and NET_IPV4.
Referenced by PaymentServer::initNetManager().
|
inline |
Definition at line 60 of file optionsmodel.h.
References strThirdPartyTxUrls.
Referenced by TransactionView::setModel().
void OptionsModel::Init | ( | ) |
Definition at line 39 of file optionsmodel.cpp.
References addOverriddenOption(), bDisplayAddresses, BitcoinUnits::BTC, DEFAULT_SCRIPTCHECK_THREADS, DEFAULT_TRANSACTION_FEE, fCoinControlFeatures, fMinimizeOnClose, fMinimizeToTray, language, mapArgs, nDefaultDbCache, nDisplayUnit, nTransactionFee, setRestartRequired(), SoftSetArg(), SoftSetBoolArg(), strThirdPartyTxUrls, and USE_UPNP.
Referenced by OptionsModel().
bool OptionsModel::isRestartRequired | ( | ) |
Definition at line 380 of file optionsmodel.cpp.
Referenced by OptionsDialog::setModel().
void OptionsModel::Reset | ( | ) |
Definition at line 139 of file optionsmodel.cpp.
References GUIUtil::GetStartOnSystemStartup(), and GUIUtil::SetStartOnSystemStartup().
Referenced by OptionsDialog::on_resetButton_clicked().
int OptionsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 151 of file optionsmodel.cpp.
References OptionIDRowCount.
bool OptionsModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Definition at line 228 of file optionsmodel.cpp.
References bDisplayAddresses, CoinControlFeatures, coinControlFeaturesChanged(), DatabaseCache, DisplayAddresses, DisplayUnit, displayUnitChanged(), fCoinControlFeatures, Fee, fMinimizeOnClose, fMinimizeToTray, Language, MapPort(), MapPortUPnP, MinimizeOnClose, MinimizeToTray, nDisplayUnit, nTransactionFee, ProxyIP, ProxyPort, ProxySocksVersion, ProxyUse, setRestartRequired(), GUIUtil::SetStartOnSystemStartup(), SpendZeroConfChange, StartAtStartup, strThirdPartyTxUrls, ThirdPartyTxUrls, ThreadsScriptVerif, and transactionFeeChanged().
void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
Definition at line 374 of file optionsmodel.cpp.
Referenced by Init(), and setData().
|
signal |
Definition at line 106 of file moc_optionsmodel.cpp.
Referenced by setData().
|
private |
Definition at line 75 of file optionsmodel.h.
Referenced by data(), getDisplayAddresses(), Init(), and setData().
|
private |
Definition at line 77 of file optionsmodel.h.
Referenced by data(), getCoinControlFeatures(), Init(), and setData().
|
private |
Definition at line 72 of file optionsmodel.h.
Referenced by data(), getMinimizeOnClose(), Init(), and setData().
|
private |
Definition at line 71 of file optionsmodel.h.
Referenced by data(), getMinimizeToTray(), Init(), and setData().
|
private |
Definition at line 73 of file optionsmodel.h.
Referenced by Init().
|
private |
Definition at line 74 of file optionsmodel.h.
Referenced by data(), getDisplayUnit(), Init(), and setData().
|
private |
Definition at line 79 of file optionsmodel.h.
Referenced by addOverriddenOption(), and getOverriddenByCommandLine().
|
private |
Definition at line 76 of file optionsmodel.h.
Referenced by data(), getThirdPartyTxUrls(), Init(), and setData().