![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
Interface from Qt to configuration data structure for Bitcoin client. More...
#include <optionsmodel.h>
Public Types | |
| enum | OptionID { StartAtStartup , ShowTrayIcon , MinimizeToTray , MapPortUPnP , MapPortNatpmp , MinimizeOnClose , ProxyUse , ProxyIP , ProxyPort , ProxyUseTor , ProxyIPTor , ProxyPortTor , DisplayUnit , ThirdPartyTxUrls , Language , UseEmbeddedMonospacedFont , CoinControlFeatures , SubFeeFromAmount , ThreadsScriptVerif , Prune , PruneSize , DatabaseCache , ExternalSignerPath , SpendZeroConfChange , Listen , Server , OptionIDRowCount } |
Signals | |
| void | displayUnitChanged (int unit) |
| void | coinControlFeaturesChanged (bool) |
| void | showTrayIconChanged (bool) |
| void | useEmbeddedMonospacedFontChanged (bool) |
Public Member Functions | |
| OptionsModel (QObject *parent=nullptr, bool resetSettings=false) | |
| void | Init (bool resetSettings=false) |
| void | Reset () |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| void | setDisplayUnit (const QVariant &value) |
| Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal. More... | |
| bool | getShowTrayIcon () const |
| bool | getMinimizeToTray () const |
| bool | getMinimizeOnClose () const |
| int | getDisplayUnit () const |
| QString | getThirdPartyTxUrls () const |
| bool | getUseEmbeddedMonospacedFont () const |
| bool | getCoinControlFeatures () const |
| bool | getSubFeeFromAmount () const |
| const QString & | getOverriddenByCommandLine () |
| void | SetPruneEnabled (bool prune, bool force=false) |
| void | SetPruneTargetGB (int prune_target_gb, bool force=false) |
| void | setRestartRequired (bool fRequired) |
| bool | isRestartRequired () const |
| interfaces::Node & | node () const |
| void | setNode (interfaces::Node &node) |
Private Member Functions | |
| void | addOverriddenOption (const std::string &option) |
| void | checkAndMigrate () |
Private Attributes | |
| interfaces::Node * | m_node = nullptr |
| bool | m_show_tray_icon |
| bool | fMinimizeToTray |
| bool | fMinimizeOnClose |
| QString | language |
| int | nDisplayUnit |
| QString | strThirdPartyTxUrls |
| bool | m_use_embedded_monospaced_font |
| bool | fCoinControlFeatures |
| bool | m_sub_fee_from_amount |
| 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 38 of file optionsmodel.h.
Definition at line 45 of file optionsmodel.h.
|
explicit |
|
private |
Definition at line 38 of file optionsmodel.cpp.
|
private |
Definition at line 580 of file optionsmodel.cpp.
|
signal |
|
override |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void OptionsModel::Init | ( | bool | resetSettings = false | ) |
Definition at line 44 of file optionsmodel.cpp.
| bool OptionsModel::isRestartRequired | ( | ) | const |
|
inline |
Definition at line 103 of file optionsmodel.h.
| void OptionsModel::Reset | ( | ) |
Definition at line 213 of file optionsmodel.cpp.
|
override |
Definition at line 238 of file optionsmodel.cpp.
|
override |
| void OptionsModel::setDisplayUnit | ( | const QVariant & | value | ) |
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal.
Definition at line 557 of file optionsmodel.cpp.
|
inline |
Definition at line 104 of file optionsmodel.h.
| void OptionsModel::SetPruneEnabled | ( | bool | prune, |
| bool | force = false |
||
| ) |
Definition at line 275 of file optionsmodel.cpp.
| void OptionsModel::SetPruneTargetGB | ( | int | prune_target_gb, |
| bool | force = false |
||
| ) |
Definition at line 290 of file optionsmodel.cpp.
| void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
|
signal |
|
signal |
|
private |
Definition at line 116 of file optionsmodel.h.
|
private |
Definition at line 111 of file optionsmodel.h.
|
private |
Definition at line 110 of file optionsmodel.h.
|
private |
Definition at line 112 of file optionsmodel.h.
|
private |
Definition at line 107 of file optionsmodel.h.
|
private |
Definition at line 109 of file optionsmodel.h.
|
private |
Definition at line 117 of file optionsmodel.h.
|
private |
Definition at line 115 of file optionsmodel.h.
|
private |
Definition at line 113 of file optionsmodel.h.
|
private |
Definition at line 119 of file optionsmodel.h.
|
private |
Definition at line 114 of file optionsmodel.h.