Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Interface from Qt to configuration data structure for Bitcoin client. More...

#include <optionsmodel.h>

+ Inheritance diagram for OptionsModel:
+ Collaboration diagram for OptionsModel:

Public Types

enum  OptionID {
  StartAtStartup, HideTrayIcon, MinimizeToTray, MapPortUPnP,
  MinimizeOnClose, ProxyUse, ProxyIP, ProxyPort,
  ProxyUseTor, ProxyIPTor, ProxyPortTor, DisplayUnit,
  ThirdPartyTxUrls, Digits, Theme, FontFamily,
  FontScale, FontWeightNormal, FontWeightBold, Language,
  CoinControlFeatures, ThreadsScriptVerif, DatabaseCache, SpendZeroConfChange,
  ShowMasternodesTab, PrivateSendEnabled, ShowAdvancedPSUI, ShowPrivateSendPopups,
  LowKeysWarning, PrivateSendRounds, PrivateSendAmount, PrivateSendMultiSession,
  Listen, OptionIDRowCount
}
 

Signals

void displayUnitChanged (int unit)
 
void privateSendEnabledChanged ()
 
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)
 Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal. More...
 
bool getHideTrayIcon () const
 
bool getMinimizeToTray () const
 
bool getMinimizeOnClose () const
 
int getDisplayUnit () const
 
QString getThirdPartyTxUrls () const
 
bool getProxySettings (QNetworkProxy &proxy) const
 
bool getCoinControlFeatures () const
 
bool getShowAdvancedPSUI ()
 
const QString & getOverriddenByCommandLine ()
 
void emitPrivateSendEnabledChanged ()
 
void setRestartRequired (bool fRequired)
 
bool isRestartRequired () const
 

Public Attributes

bool resetSettingsOnShutdown {false}
 

Private Member Functions

void addOverriddenOption (const std::string &option)
 
void checkAndMigrate ()
 

Private Attributes

bool fHideTrayIcon
 
bool fMinimizeToTray
 
bool fMinimizeOnClose
 
QString language
 
int nDisplayUnit
 
QString strThirdPartyTxUrls
 
bool fCoinControlFeatures
 
bool fShowAdvancedPSUI
 
QString strOverriddenByCommandLine
 

Detailed Description

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 25 of file optionsmodel.h.

Member Enumeration Documentation

◆ OptionID

Enumerator
StartAtStartup 
HideTrayIcon 
MinimizeToTray 
MapPortUPnP 
MinimizeOnClose 
ProxyUse 
ProxyIP 
ProxyPort 
ProxyUseTor 
ProxyIPTor 
ProxyPortTor 
DisplayUnit 
ThirdPartyTxUrls 
Digits 
Theme 
FontFamily 
FontScale 
FontWeightNormal 
FontWeightBold 
Language 
CoinControlFeatures 
ThreadsScriptVerif 
DatabaseCache 
SpendZeroConfChange 
ShowMasternodesTab 
PrivateSendEnabled 
ShowAdvancedPSUI 
ShowPrivateSendPopups 
LowKeysWarning 
PrivateSendRounds 
PrivateSendAmount 
PrivateSendMultiSession 
Listen 
OptionIDRowCount 

Definition at line 32 of file optionsmodel.h.

Constructor & Destructor Documentation

◆ OptionsModel()

OptionsModel::OptionsModel ( QObject *  parent = 0,
bool  resetSettings = false 
)
explicit

Definition at line 36 of file optionsmodel.cpp.

References Init().

Member Function Documentation

◆ addOverriddenOption()

void OptionsModel::addOverriddenOption ( const std::string &  option)
private

Definition at line 42 of file optionsmodel.cpp.

References gArgs, ArgsManager::GetArg(), and strOverriddenByCommandLine.

Referenced by Init().

◆ advancedPSUIChanged

void OptionsModel::advancedPSUIChanged ( bool  )
signal

Referenced by setData().

◆ checkAndMigrate()

void OptionsModel::checkAndMigrate ( )
private

Definition at line 670 of file optionsmodel.cpp.

References CLIENT_VERSION, GetDefaultProxyAddress(), and nDefaultDbCache.

Referenced by Init().

◆ coinControlFeaturesChanged

void OptionsModel::coinControlFeaturesChanged ( bool  )
signal

Referenced by setData().

◆ data()

◆ displayUnitChanged

void OptionsModel::displayUnitChanged ( int  unit)
signal

Referenced by setDisplayUnit().

◆ emitPrivateSendEnabledChanged()

void OptionsModel::emitPrivateSendEnabledChanged ( )

Definition at line 653 of file optionsmodel.cpp.

References privateSendEnabledChanged().

◆ getCoinControlFeatures()

bool OptionsModel::getCoinControlFeatures ( ) const
inline

◆ getDisplayUnit()

◆ getHideTrayIcon()

bool OptionsModel::getHideTrayIcon ( ) const
inline

Definition at line 79 of file optionsmodel.h.

References fHideTrayIcon.

Referenced by BitcoinGUI::setClientModel().

◆ getMinimizeOnClose()

bool OptionsModel::getMinimizeOnClose ( ) const
inline

Definition at line 81 of file optionsmodel.h.

References fMinimizeOnClose.

Referenced by BitcoinGUI::closeEvent().

◆ getMinimizeToTray()

bool OptionsModel::getMinimizeToTray ( ) const
inline

Definition at line 80 of file optionsmodel.h.

References fMinimizeToTray.

Referenced by BitcoinGUI::changeEvent().

◆ getOverriddenByCommandLine()

const QString& OptionsModel::getOverriddenByCommandLine ( )
inline

Definition at line 87 of file optionsmodel.h.

References strOverriddenByCommandLine.

Referenced by OptionsDialog::setModel().

◆ getProxySettings()

bool OptionsModel::getProxySettings ( QNetworkProxy &  proxy) const

◆ getShowAdvancedPSUI()

bool OptionsModel::getShowAdvancedPSUI ( )
inline

Definition at line 86 of file optionsmodel.h.

References fShowAdvancedPSUI.

Referenced by OverviewPage::setWalletModel().

◆ getThirdPartyTxUrls()

QString OptionsModel::getThirdPartyTxUrls ( ) const
inline

Definition at line 83 of file optionsmodel.h.

References strThirdPartyTxUrls.

Referenced by TransactionView::setModel().

◆ hideTrayIconChanged

void OptionsModel::hideTrayIconChanged ( bool  )
signal

Referenced by Init(), and setData().

◆ Init()

◆ isRestartRequired()

bool OptionsModel::isRestartRequired ( ) const

Definition at line 664 of file optionsmodel.cpp.

Referenced by OptionsDialog::clearStatusLabel(), and OptionsDialog::setModel().

◆ privateSendEnabledChanged

void OptionsModel::privateSendEnabledChanged ( )
signal

◆ privateSendRoundsChanged

void OptionsModel::privateSendRoundsChanged ( )
signal

Referenced by setData().

◆ privateSentAmountChanged

void OptionsModel::privateSentAmountChanged ( )
signal

Referenced by setData().

◆ Reset()

◆ rowCount()

int OptionsModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 259 of file optionsmodel.cpp.

References OptionIDRowCount.

◆ setData()

◆ setDisplayUnit()

void OptionsModel::setDisplayUnit ( const QVariant &  value)

Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal.

Definition at line 624 of file optionsmodel.cpp.

References displayUnitChanged(), and nDisplayUnit.

Referenced by UnitDisplayStatusBarControl::onMenuSelection(), and setData().

◆ setRestartRequired()

void OptionsModel::setRestartRequired ( bool  fRequired)

Definition at line 658 of file optionsmodel.cpp.

Referenced by Init(), and setData().

Member Data Documentation

◆ fCoinControlFeatures

bool OptionsModel::fCoinControlFeatures
private

Definition at line 103 of file optionsmodel.h.

Referenced by data(), getCoinControlFeatures(), Init(), and setData().

◆ fHideTrayIcon

bool OptionsModel::fHideTrayIcon
private

Definition at line 97 of file optionsmodel.h.

Referenced by data(), getHideTrayIcon(), Init(), and setData().

◆ fMinimizeOnClose

bool OptionsModel::fMinimizeOnClose
private

Definition at line 99 of file optionsmodel.h.

Referenced by data(), getMinimizeOnClose(), Init(), and setData().

◆ fMinimizeToTray

bool OptionsModel::fMinimizeToTray
private

Definition at line 98 of file optionsmodel.h.

Referenced by data(), getMinimizeToTray(), Init(), and setData().

◆ fShowAdvancedPSUI

bool OptionsModel::fShowAdvancedPSUI
private

Definition at line 104 of file optionsmodel.h.

Referenced by data(), getShowAdvancedPSUI(), Init(), and setData().

◆ language

QString OptionsModel::language
private

Definition at line 100 of file optionsmodel.h.

Referenced by Init().

◆ nDisplayUnit

int OptionsModel::nDisplayUnit
private

Definition at line 101 of file optionsmodel.h.

Referenced by data(), getDisplayUnit(), Init(), and setDisplayUnit().

◆ resetSettingsOnShutdown

bool OptionsModel::resetSettingsOnShutdown {false}

◆ strOverriddenByCommandLine

QString OptionsModel::strOverriddenByCommandLine
private

Definition at line 106 of file optionsmodel.h.

Referenced by addOverriddenOption(), and getOverriddenByCommandLine().

◆ strThirdPartyTxUrls

QString OptionsModel::strThirdPartyTxUrls
private

Definition at line 102 of file optionsmodel.h.

Referenced by data(), getThirdPartyTxUrls(), Init(), and setData().


The documentation for this class was generated from the following files:
Released under the MIT license