![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <optionsmodel.h>
Signals | |
void | displayUnitChanged (int unit) |
void | privateSendRoundsChanged () |
void | privateSentAmountChanged () |
void | advancedPSUIChanged (bool) |
void | coinControlFeaturesChanged (bool) |
void | hideTrayIconChanged (bool) |
Public Member Functions | |
OptionsModel (QObject *parent=0, bool resetSettings=false) | |
void | Init (bool resetSettings=false) |
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) |
void | setDisplayUnit (const QVariant &value) |
bool | getHideTrayIcon () |
bool | getMinimizeToTray () |
bool | getMinimizeOnClose () |
int | getDisplayUnit () |
QString | getThirdPartyTxUrls () |
bool | getProxySettings (QNetworkProxy &proxy) const |
bool | getCoinControlFeatures () |
bool | getShowAdvancedPSUI () |
const QString & | getOverriddenByCommandLine () |
void | setRestartRequired (bool fRequired) |
bool | isRestartRequired () |
Public Attributes | |
bool | resetSettings |
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 | fHideTrayIcon |
bool | fMinimizeToTray |
bool | fMinimizeOnClose |
QString | language |
int | nDisplayUnit |
QString | strThirdPartyTxUrls |
bool | fCoinControlFeatures |
bool | fShowAdvancedPSUI |
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 22 of file optionsmodel.h.
Definition at line 29 of file optionsmodel.h.
|
explicit |
Definition at line 36 of file optionsmodel.cpp.
|
private |
Add option to list of GUI options overridden through command line/config file.
Definition at line 42 of file optionsmodel.cpp.
Referenced by Init().
|
signal |
Definition at line 194 of file moc_optionsmodel.cpp.
Referenced by setData().
|
signal |
Definition at line 201 of file moc_optionsmodel.cpp.
Referenced by setData().
QVariant OptionsModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 214 of file optionsmodel.cpp.
|
signal |
Definition at line 175 of file moc_optionsmodel.cpp.
Referenced by setDisplayUnit().
|
inline |
Definition at line 76 of file optionsmodel.h.
Referenced by SendCoinsDialog::coinControlUpdateLabels(), SendCoinsDialog::send(), and SendCoinsDialog::setModel().
|
inline |
Definition at line 73 of file optionsmodel.h.
Referenced by TransactionView::changedAmount(), DarksendConfig::clickBasic(), DarksendConfig::clickHigh(), DarksendConfig::clickMax(), TransactionView::computeSum(), RecentRequestsTableModel::data(), TransactionTableModel::data(), TransactionView::exportClicked(), TransactionTableModel::formatTxAmount(), RecentRequestsTableModel::getAmountTitle(), SendCoinsDialog::on_sendButton_clicked(), WalletView::processNewTransaction(), PaymentServer::processPaymentRequest(), SendCoinsDialog::processSendCoinsReturn(), SendCoinsDialog::send(), SendCoinsDialog::setBalance(), UnitDisplayStatusBarControl::setOptionsModel(), TransactionTableModel::TransactionTableModel(), ReceiveRequestDialog::update(), TransactionTableModel::updateAmountColumnTitle(), SendCoinsEntry::updateDisplayUnit(), ReceiveCoinsDialog::updateDisplayUnit(), OverviewPage::updateDisplayUnit(), SendCoinsDialog::updateDisplayUnit(), SendCoinsDialog::updateFeeMinimizedLabel(), CoinControlDialog::updateLabels(), SendCoinsDialog::updateMinFeeLabel(), SendCoinsDialog::updateSmartFeeLabel(), and CoinControlDialog::updateView().
|
inline |
Definition at line 70 of file optionsmodel.h.
Referenced by BitcoinGUI::setClientModel().
|
inline |
Definition at line 72 of file optionsmodel.h.
Referenced by BitcoinGUI::closeEvent().
|
inline |
Definition at line 71 of file optionsmodel.h.
Referenced by BitcoinGUI::changeEvent().
|
inline |
Definition at line 78 of file optionsmodel.h.
Referenced by OptionsDialog::setModel().
bool OptionsModel::getProxySettings | ( | QNetworkProxy & | proxy | ) | const |
Definition at line 517 of file optionsmodel.cpp.
Referenced by PaymentServer::initNetManager().
|
inline |
Definition at line 77 of file optionsmodel.h.
Referenced by OverviewPage::setWalletModel().
|
inline |
Definition at line 74 of file optionsmodel.h.
Referenced by TransactionView::setModel().
|
signal |
Definition at line 208 of file moc_optionsmodel.cpp.
void OptionsModel::Init | ( | bool | resetSettings = false | ) |
Definition at line 48 of file optionsmodel.cpp.
Referenced by OptionsModel().
bool OptionsModel::isRestartRequired | ( | ) |
Definition at line 541 of file optionsmodel.cpp.
Referenced by OptionsDialog::setModel().
|
signal |
Definition at line 182 of file moc_optionsmodel.cpp.
Referenced by setData().
|
signal |
Definition at line 188 of file moc_optionsmodel.cpp.
Referenced by setData().
void OptionsModel::Reset | ( | ) |
Definition at line 195 of file optionsmodel.cpp.
Referenced by Init(), and OptionsDialog::on_resetButton_clicked().
int OptionsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 208 of file optionsmodel.cpp.
bool OptionsModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Definition at line 306 of file optionsmodel.cpp.
void OptionsModel::setDisplayUnit | ( | const QVariant & | value | ) |
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal
Definition at line 506 of file optionsmodel.cpp.
Referenced by UnitDisplayStatusBarControl::onMenuSelection(), and setData().
void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
Definition at line 535 of file optionsmodel.cpp.
|
private |
Definition at line 93 of file optionsmodel.h.
Referenced by data(), getCoinControlFeatures(), Init(), and setData().
|
private |
Definition at line 87 of file optionsmodel.h.
Referenced by data(), getHideTrayIcon(), Init(), and setData().
|
private |
Definition at line 89 of file optionsmodel.h.
Referenced by data(), getMinimizeOnClose(), Init(), and setData().
|
private |
Definition at line 88 of file optionsmodel.h.
Referenced by data(), getMinimizeToTray(), Init(), and setData().
|
private |
Definition at line 94 of file optionsmodel.h.
Referenced by data(), getShowAdvancedPSUI(), Init(), and setData().
|
private |
Definition at line 90 of file optionsmodel.h.
Referenced by Init().
|
private |
Definition at line 91 of file optionsmodel.h.
Referenced by data(), getDisplayUnit(), Init(), and setDisplayUnit().
bool OptionsModel::resetSettings |
Definition at line 83 of file optionsmodel.h.
Referenced by Init(), OptionsModel(), Reset(), and BitcoinApplication::~BitcoinApplication().
|
private |
Definition at line 96 of file optionsmodel.h.
Referenced by addOverriddenOption(), and getOverriddenByCommandLine().
|
private |
Definition at line 92 of file optionsmodel.h.
Referenced by data(), getThirdPartyTxUrls(), Init(), and setData().