5#ifndef BITCOIN_QT_OPTIONSMODEL_H
6#define BITCOIN_QT_OPTIONSMODEL_H
12#include <QAbstractListModel>
84 typedef std::variant<FontChoiceAbstract, QFont>
FontChoice;
91 int rowCount(
const QModelIndex & parent = QModelIndex())
const override;
92 QVariant
data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const override;
93 bool setData(
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole)
override;
95 bool setOption(
OptionID option,
const QVariant& value,
const std::string& suffix=
"");
Interface from Qt to configuration data structure for Bitcoin client.
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
BitcoinUnit m_display_bitcoin_unit
QString strOverriddenByCommandLine
std::variant< FontChoiceAbstract, QFont > FontChoice
bool isRestartRequired() const
QFont getFontForMoney() const
bool getCoinControlFeatures() const
bool fCoinControlFeatures
bool getEnablePSBTControls() const
interfaces::Node & node() const
void coinControlFeaturesChanged(bool)
QString strThirdPartyTxUrls
bool getSubFeeFromAmount() const
int rowCount(const QModelIndex &parent=QModelIndex()) const override
bool m_sub_fee_from_amount
bool setOption(OptionID option, const QVariant &value, const std::string &suffix="")
interfaces::Node & m_node
void displayUnitChanged(BitcoinUnit unit)
void SetPruneTargetGB(int prune_target_gb)
bool Init(bilingual_str &error)
void showTrayIconChanged(bool)
OptionsModel(interfaces::Node &node, QObject *parent=nullptr)
bool getMinimizeToTray() const
BitcoinUnit getDisplayUnit() const
bool getShowTrayIcon() const
bool hasSigner()
Whether -signer was set or not.
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
const QString & getOverriddenByCommandLine()
bool m_enable_psbt_controls
QVariant getOption(OptionID option, const std::string &suffix="") const
bool getMinimizeOnClose() const
void setDisplayUnit(const QVariant &new_unit)
Updates current unit in memory, settings and emits displayUnitChanged(new_unit) signal.
static FontChoice FontChoiceFromString(const QString &)
static QFont getFontForChoice(const FontChoice &fc)
QString getThirdPartyTxUrls() const
void fontForMoneyChanged(const QFont &)
static QString FontChoiceToString(const OptionsModel::FontChoice &)
void addOverriddenOption(const std::string &option)
static const FontChoice UseBestSystemFont
void setRestartRequired(bool fRequired)
Top-level interface for a bitcoin node (bitcoind process).
static constexpr uint64_t GB_BYTES
static int PruneMiBtoGB(int64_t mib)
Convert configured prune target MiB to displayed GB.
static int64_t PruneGBtoMiB(int gb)
Convert displayed prune target GB to configured MiB.
static constexpr uint16_t DEFAULT_GUI_PROXY_PORT
const char * DEFAULT_GUI_PROXY_HOST