![]() |
Bitcoin Core
26.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 , EnablePSBTControls , MaskValues , OptionIDRowCount } |
Signals | |
void | displayUnitChanged (BitcoinUnit unit) |
void | coinControlFeaturesChanged (bool) |
void | showTrayIconChanged (bool) |
void | useEmbeddedMonospacedFontChanged (bool) |
Public Member Functions | |
OptionsModel (interfaces::Node &node, QObject *parent=nullptr) | |
bool | Init (bilingual_str &error) |
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 |
QVariant | getOption (OptionID option, const std::string &suffix="") const |
bool | setOption (OptionID option, const QVariant &value, const std::string &suffix="") |
void | setDisplayUnit (const QVariant &new_unit) |
Updates current unit in memory, settings and emits displayUnitChanged(new_unit) signal. More... | |
bool | getShowTrayIcon () const |
bool | getMinimizeToTray () const |
bool | getMinimizeOnClose () const |
BitcoinUnit | getDisplayUnit () const |
QString | getThirdPartyTxUrls () const |
bool | getUseEmbeddedMonospacedFont () const |
bool | getCoinControlFeatures () const |
bool | getSubFeeFromAmount () const |
bool | getEnablePSBTControls () const |
const QString & | getOverriddenByCommandLine () |
bool | hasSigner () |
Whether -signer was set or not. More... | |
void | SetPruneTargetGB (int prune_target_gb) |
void | setRestartRequired (bool fRequired) |
bool | isRestartRequired () const |
interfaces::Node & | node () const |
Private Member Functions | |
void | addOverriddenOption (const std::string &option) |
void | checkAndMigrate () |
Private Attributes | |
interfaces::Node & | m_node |
bool | m_show_tray_icon |
bool | fMinimizeToTray |
bool | fMinimizeOnClose |
QString | language |
BitcoinUnit | m_display_bitcoin_unit |
QString | strThirdPartyTxUrls |
bool | m_use_embedded_monospaced_font |
bool | fCoinControlFeatures |
bool | m_sub_fee_from_amount |
bool | m_enable_psbt_controls |
bool | m_mask_values |
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 40 of file optionsmodel.h.
Definition at line 47 of file optionsmodel.h.
|
explicit |
Definition at line 122 of file optionsmodel.cpp.
|
private |
Definition at line 127 of file optionsmodel.cpp.
|
private |
Definition at line 678 of file optionsmodel.cpp.
|
signal |
|
override |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QVariant OptionsModel::getOption | ( | OptionID | option, |
const std::string & | suffix = "" |
||
) | const |
Definition at line 363 of file optionsmodel.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool OptionsModel::hasSigner | ( | ) |
Whether -signer was set or not.
Definition at line 673 of file optionsmodel.cpp.
bool OptionsModel::Init | ( | bilingual_str & | error | ) |
Definition at line 133 of file optionsmodel.cpp.
bool OptionsModel::isRestartRequired | ( | ) | const |
|
inline |
void OptionsModel::Reset | ( | ) |
Definition at line 249 of file optionsmodel.cpp.
|
override |
Definition at line 277 of file optionsmodel.cpp.
|
override |
void OptionsModel::setDisplayUnit | ( | const QVariant & | new_unit | ) |
Updates current unit in memory, settings and emits displayUnitChanged(new_unit) signal.
Definition at line 652 of file optionsmodel.cpp.
bool OptionsModel::setOption | ( | OptionID | option, |
const QVariant & | value, | ||
const std::string & | suffix = "" |
||
) |
Definition at line 458 of file optionsmodel.cpp.
void OptionsModel::SetPruneTargetGB | ( | int | prune_target_gb | ) |
Definition at line 313 of file optionsmodel.cpp.
void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
|
signal |
|
signal |
|
private |
Definition at line 124 of file optionsmodel.h.
|
private |
Definition at line 119 of file optionsmodel.h.
|
private |
Definition at line 118 of file optionsmodel.h.
|
private |
Definition at line 120 of file optionsmodel.h.
|
private |
Definition at line 121 of file optionsmodel.h.
|
private |
Definition at line 126 of file optionsmodel.h.
|
private |
Definition at line 127 of file optionsmodel.h.
|
private |
Definition at line 115 of file optionsmodel.h.
|
private |
Definition at line 117 of file optionsmodel.h.
|
private |
Definition at line 125 of file optionsmodel.h.
|
private |
Definition at line 123 of file optionsmodel.h.
|
private |
Definition at line 130 of file optionsmodel.h.
|
private |
Definition at line 122 of file optionsmodel.h.