Dash Core  0.12.2.1
P2P Digital Currency
OptionsModel Class Reference

#include <optionsmodel.h>

+ Inheritance diagram for OptionsModel:

Public Types

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

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
 

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

Member Enumeration Documentation

◆ OptionID

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

Definition at line 29 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.

Member Function Documentation

◆ addOverriddenOption()

void OptionsModel::addOverriddenOption ( const std::string &  option)
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().

◆ advancedPSUIChanged

void OptionsModel::advancedPSUIChanged ( bool  _t1)
signal

Definition at line 194 of file moc_optionsmodel.cpp.

Referenced by setData().

◆ coinControlFeaturesChanged

void OptionsModel::coinControlFeaturesChanged ( bool  _t1)
signal

Definition at line 201 of file moc_optionsmodel.cpp.

Referenced by setData().

◆ data()

QVariant OptionsModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 214 of file optionsmodel.cpp.

◆ displayUnitChanged

void OptionsModel::displayUnitChanged ( int  unit)
signal

Definition at line 175 of file moc_optionsmodel.cpp.

Referenced by setDisplayUnit().

◆ getCoinControlFeatures()

bool OptionsModel::getCoinControlFeatures ( )
inline

◆ getDisplayUnit()

◆ getHideTrayIcon()

bool OptionsModel::getHideTrayIcon ( )
inline

Definition at line 70 of file optionsmodel.h.

Referenced by BitcoinGUI::setClientModel().

◆ getMinimizeOnClose()

bool OptionsModel::getMinimizeOnClose ( )
inline

Definition at line 72 of file optionsmodel.h.

Referenced by BitcoinGUI::closeEvent().

◆ getMinimizeToTray()

bool OptionsModel::getMinimizeToTray ( )
inline

Definition at line 71 of file optionsmodel.h.

Referenced by BitcoinGUI::changeEvent().

◆ getOverriddenByCommandLine()

const QString& OptionsModel::getOverriddenByCommandLine ( )
inline

Definition at line 78 of file optionsmodel.h.

Referenced by OptionsDialog::setModel().

◆ getProxySettings()

bool OptionsModel::getProxySettings ( QNetworkProxy &  proxy) const

Definition at line 517 of file optionsmodel.cpp.

Referenced by PaymentServer::initNetManager().

◆ getShowAdvancedPSUI()

bool OptionsModel::getShowAdvancedPSUI ( )
inline

Definition at line 77 of file optionsmodel.h.

Referenced by OverviewPage::setWalletModel().

◆ getThirdPartyTxUrls()

QString OptionsModel::getThirdPartyTxUrls ( )
inline

Definition at line 74 of file optionsmodel.h.

Referenced by TransactionView::setModel().

◆ hideTrayIconChanged

void OptionsModel::hideTrayIconChanged ( bool  _t1)
signal

Definition at line 208 of file moc_optionsmodel.cpp.

Referenced by Init(), and setData().

◆ Init()

void OptionsModel::Init ( bool  resetSettings = false)

Definition at line 48 of file optionsmodel.cpp.

Referenced by OptionsModel().

◆ isRestartRequired()

bool OptionsModel::isRestartRequired ( )

Definition at line 541 of file optionsmodel.cpp.

Referenced by OptionsDialog::setModel().

◆ privateSendRoundsChanged

void OptionsModel::privateSendRoundsChanged ( )
signal

Definition at line 182 of file moc_optionsmodel.cpp.

Referenced by setData().

◆ privateSentAmountChanged

void OptionsModel::privateSentAmountChanged ( )
signal

Definition at line 188 of file moc_optionsmodel.cpp.

Referenced by setData().

◆ Reset()

void OptionsModel::Reset ( )

Definition at line 195 of file optionsmodel.cpp.

Referenced by Init(), and OptionsDialog::on_resetButton_clicked().

◆ rowCount()

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

Definition at line 208 of file optionsmodel.cpp.

◆ setData()

bool OptionsModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Definition at line 306 of file optionsmodel.cpp.

◆ setDisplayUnit()

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().

◆ setRestartRequired()

void OptionsModel::setRestartRequired ( bool  fRequired)

Definition at line 535 of file optionsmodel.cpp.

Referenced by Init(), and setData().

Member Data Documentation

◆ fCoinControlFeatures

bool OptionsModel::fCoinControlFeatures
private

Definition at line 93 of file optionsmodel.h.

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

◆ fHideTrayIcon

bool OptionsModel::fHideTrayIcon
private

Definition at line 87 of file optionsmodel.h.

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

◆ fMinimizeOnClose

bool OptionsModel::fMinimizeOnClose
private

Definition at line 89 of file optionsmodel.h.

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

◆ fMinimizeToTray

bool OptionsModel::fMinimizeToTray
private

Definition at line 88 of file optionsmodel.h.

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

◆ fShowAdvancedPSUI

bool OptionsModel::fShowAdvancedPSUI
private

Definition at line 94 of file optionsmodel.h.

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

◆ language

QString OptionsModel::language
private

Definition at line 90 of file optionsmodel.h.

Referenced by Init().

◆ nDisplayUnit

int OptionsModel::nDisplayUnit
private

Definition at line 91 of file optionsmodel.h.

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

◆ resetSettings

bool OptionsModel::resetSettings

Definition at line 83 of file optionsmodel.h.

Referenced by Init(), OptionsModel(), Reset(), and BitcoinApplication::~BitcoinApplication().

◆ strOverriddenByCommandLine

QString OptionsModel::strOverriddenByCommandLine
private

Definition at line 96 of file optionsmodel.h.

Referenced by addOverriddenOption(), and getOverriddenByCommandLine().

◆ strThirdPartyTxUrls

QString OptionsModel::strThirdPartyTxUrls
private

Definition at line 92 of file optionsmodel.h.

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


The documentation for this class was generated from the following files: