PIVX Core  5.6.99
P2P Digital Currency
Public Types | Signals | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
OptionsModel Class Reference

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

#include <optionsmodel.h>

Inheritance diagram for OptionsModel:
[legend]
Collaboration diagram for OptionsModel:
[legend]

Public Types

enum  OptionID {
  StartAtStartup , MinimizeToTray , MapPortUPnP , MapPortNatpmp ,
  MinimizeOnClose , ProxyUse , ProxyIP , ProxyPort ,
  DisplayUnit , ThirdPartyTxUrls , Digits , Theme ,
  Language , CoinControlFeatures , ThreadsScriptVerif , DatabaseCache ,
  SpendZeroConfChange , ZeromintEnable , ZeromintAddresses , ZeromintPercentage ,
  ZeromintPrefDenom , HideCharts , HideZeroBalances , HideOrphans ,
  AnonymizePivxAmount , ShowMasternodesTab , Listen , ShowColdStakingScreen ,
  OptionIDRowCount
}
 

Signals

void displayUnitChanged (int unit)
 
void coinControlFeaturesChanged (bool)
 
void showHideColdStakingScreen (bool)
 
void hideChartsChanged (bool)
 
void hideZeroBalancesChanged (bool)
 
void hideOrphansChanged (bool)
 

Public Member Functions

 OptionsModel (QObject *parent=0)
 
void Init ()
 
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 refreshDataView ()
 
void setDisplayUnit (const QVariant &value)
 Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal. More...
 
bool isHideCharts ()
 
bool getMinimizeToTray ()
 
bool getMinimizeOnClose ()
 
int getDisplayUnit ()
 
QString getThirdPartyTxUrls ()
 
bool getCoinControlFeatures ()
 
const QString & getOverriddenByCommandLine ()
 
const QString & getLang ()
 
void setRestartRequired (bool fRequired)
 
bool isRestartRequired ()
 
bool isColdStakingScreenEnabled ()
 
bool invertColdStakingScreenStatus ()
 
void setMainDefaultOptions (QSettings &settings, bool reset=false)
 
void setWalletDefaultOptions (QSettings &settings, bool reset=false)
 
void setNetworkDefaultOptions (QSettings &settings, bool reset=false)
 
void setWindowDefaultOptions (QSettings &settings, bool reset=false)
 
void setDisplayDefaultOptions (QSettings &settings, bool reset=false)
 

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 fMinimizeToTray
 
bool fMinimizeOnClose
 
QString language
 
int nDisplayUnit
 
QString strThirdPartyTxUrls
 
bool fCoinControlFeatures
 
bool showColdStakingScreen
 
bool fHideCharts
 
bool fHideZeroBalances
 
bool fHideOrphans
 
QString strOverriddenByCommandLine
 

Detailed Description

Interface from Qt to configuration data structure for PIVX 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 21 of file optionsmodel.h.

Member Enumeration Documentation

◆ OptionID

Enumerator
StartAtStartup 
MinimizeToTray 
MapPortUPnP 
MapPortNatpmp 
MinimizeOnClose 
ProxyUse 
ProxyIP 
ProxyPort 
DisplayUnit 
ThirdPartyTxUrls 
Digits 
Theme 
Language 
CoinControlFeatures 
ThreadsScriptVerif 
DatabaseCache 
SpendZeroConfChange 
ZeromintEnable 
ZeromintAddresses 
ZeromintPercentage 
ZeromintPrefDenom 
HideCharts 
HideZeroBalances 
HideOrphans 
AnonymizePivxAmount 
ShowMasternodesTab 
Listen 
ShowColdStakingScreen 
OptionIDRowCount 

Definition at line 28 of file optionsmodel.h.

Constructor & Destructor Documentation

◆ OptionsModel()

OptionsModel::OptionsModel ( QObject *  parent = 0)
explicit

Definition at line 31 of file optionsmodel.cpp.

Here is the call graph for this function:

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 36 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ coinControlFeaturesChanged

void OptionsModel::coinControlFeaturesChanged ( bool  )
signal
Here is the caller graph for this function:

◆ data()

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

Definition at line 241 of file optionsmodel.cpp.

Here is the call graph for this function:

◆ displayUnitChanged

void OptionsModel::displayUnitChanged ( int  unit)
signal
Here is the caller graph for this function:

◆ getCoinControlFeatures()

bool OptionsModel::getCoinControlFeatures ( )
inline

Definition at line 76 of file optionsmodel.h.

◆ getDisplayUnit()

int OptionsModel::getDisplayUnit ( )
inline

Definition at line 74 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getLang()

const QString& OptionsModel::getLang ( )
inline

Definition at line 78 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getMinimizeOnClose()

bool OptionsModel::getMinimizeOnClose ( )
inline

Definition at line 73 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getMinimizeToTray()

bool OptionsModel::getMinimizeToTray ( )
inline

Definition at line 72 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getOverriddenByCommandLine()

const QString& OptionsModel::getOverriddenByCommandLine ( )
inline

Definition at line 77 of file optionsmodel.h.

◆ getThirdPartyTxUrls()

QString OptionsModel::getThirdPartyTxUrls ( )
inline

Definition at line 75 of file optionsmodel.h.

◆ hideChartsChanged

void OptionsModel::hideChartsChanged ( bool  )
signal
Here is the caller graph for this function:

◆ hideOrphansChanged

void OptionsModel::hideOrphansChanged ( bool  )
signal
Here is the caller graph for this function:

◆ hideZeroBalancesChanged

void OptionsModel::hideZeroBalancesChanged ( bool  )
signal
Here is the caller graph for this function:

◆ Init()

void OptionsModel::Init ( )

Definition at line 42 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ invertColdStakingScreenStatus()

bool OptionsModel::invertColdStakingScreenStatus ( )
inline

Definition at line 86 of file optionsmodel.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isColdStakingScreenEnabled()

bool OptionsModel::isColdStakingScreenEnabled ( )
inline

Definition at line 85 of file optionsmodel.h.

Here is the caller graph for this function:

◆ isHideCharts()

bool OptionsModel::isHideCharts ( )
inline

Definition at line 71 of file optionsmodel.h.

Here is the caller graph for this function:

◆ isRestartRequired()

bool OptionsModel::isRestartRequired ( )

Definition at line 483 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ refreshDataView()

void OptionsModel::refreshDataView ( )

Definition at line 91 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

void OptionsModel::Reset ( )

Definition at line 222 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowCount()

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

Definition at line 235 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ setData()

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

Definition at line 319 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDisplayDefaultOptions()

void OptionsModel::setDisplayDefaultOptions ( QSettings &  settings,
bool  reset = false 
)

Definition at line 192 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDisplayUnit()

void OptionsModel::setDisplayUnit ( const QVariant &  value)

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

Definition at line 467 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ setMainDefaultOptions()

void OptionsModel::setMainDefaultOptions ( QSettings &  settings,
bool  reset = false 
)

Definition at line 96 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ setNetworkDefaultOptions()

void OptionsModel::setNetworkDefaultOptions ( QSettings &  settings,
bool  reset = false 
)

Definition at line 145 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ setRestartRequired()

void OptionsModel::setRestartRequired ( bool  fRequired)

Definition at line 477 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ setWalletDefaultOptions()

void OptionsModel::setWalletDefaultOptions ( QSettings &  settings,
bool  reset = false 
)

Definition at line 134 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWindowDefaultOptions()

void OptionsModel::setWindowDefaultOptions ( QSettings &  settings,
bool  reset = false 
)

Definition at line 177 of file optionsmodel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showHideColdStakingScreen

void OptionsModel::showHideColdStakingScreen ( bool  )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ fCoinControlFeatures

bool OptionsModel::fCoinControlFeatures
private

Definition at line 109 of file optionsmodel.h.

◆ fHideCharts

bool OptionsModel::fHideCharts
private

Definition at line 111 of file optionsmodel.h.

◆ fHideOrphans

bool OptionsModel::fHideOrphans
private

Definition at line 113 of file optionsmodel.h.

◆ fHideZeroBalances

bool OptionsModel::fHideZeroBalances
private

Definition at line 112 of file optionsmodel.h.

◆ fMinimizeOnClose

bool OptionsModel::fMinimizeOnClose
private

Definition at line 105 of file optionsmodel.h.

◆ fMinimizeToTray

bool OptionsModel::fMinimizeToTray
private

Definition at line 104 of file optionsmodel.h.

◆ language

QString OptionsModel::language
private

Definition at line 106 of file optionsmodel.h.

◆ nDisplayUnit

int OptionsModel::nDisplayUnit
private

Definition at line 107 of file optionsmodel.h.

◆ resetSettings

bool OptionsModel::resetSettings

Definition at line 83 of file optionsmodel.h.

◆ showColdStakingScreen

bool OptionsModel::showColdStakingScreen
private

Definition at line 110 of file optionsmodel.h.

◆ strOverriddenByCommandLine

QString OptionsModel::strOverriddenByCommandLine
private

Definition at line 115 of file optionsmodel.h.

◆ strThirdPartyTxUrls

QString OptionsModel::strThirdPartyTxUrls
private

Definition at line 108 of file optionsmodel.h.


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