PRCYCoin  2.0.0.7rc1
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 Bitcoin client. More...

#include <optionsmodel.h>

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

Public Types

enum  OptionID {
  StartAtStartup, MinimizeToTray, MapPortUPnP, MinimizeOnClose,
  ProxyUse, ProxyIP, ProxyPort, DisplayUnit,
  ThirdPartyTxUrls, Digits, Theme, Language,
  CoinControlFeatures, ThreadsScriptVerif, DatabaseCache, SpendZeroConfChange,
  HideOrphans, ShowMasternodesTab, Listen, OptionIDRowCount
}
 

Signals

void displayUnitChanged (int unit)
 
void zeromintPercentageChanged (int)
 
void preferredDenomChanged (int)
 
void coinControlFeaturesChanged (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 setDisplayUnit (const QVariant &value)
 Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal. More...
 
bool getMinimizeToTray ()
 
bool getMinimizeOnClose ()
 
int getDisplayUnit ()
 
QString getThirdPartyTxUrls ()
 
bool getCoinControlFeatures ()
 
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 fMinimizeToTray
 
bool fMinimizeOnClose
 
QString language
 
int nDisplayUnit
 
QString strThirdPartyTxUrls
 
bool fCoinControlFeatures
 
bool fHideOrphans
 
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 18 of file optionsmodel.h.

Member Enumeration Documentation

◆ OptionID

Enumerator
StartAtStartup 
MinimizeToTray 
MapPortUPnP 
MinimizeOnClose 
ProxyUse 
ProxyIP 
ProxyPort 
DisplayUnit 
ThirdPartyTxUrls 
Digits 
Theme 
Language 
CoinControlFeatures 
ThreadsScriptVerif 
DatabaseCache 
SpendZeroConfChange 
HideOrphans 
ShowMasternodesTab 
Listen 
OptionIDRowCount 

Definition at line 25 of file optionsmodel.h.

Constructor & Destructor Documentation

◆ OptionsModel()

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

Definition at line 34 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 39 of file optionsmodel.cpp.

◆ 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 167 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 62 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getDisplayUnit()

int OptionsModel::getDisplayUnit ( )
inline

Definition at line 60 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getMinimizeOnClose()

bool OptionsModel::getMinimizeOnClose ( )
inline

Definition at line 59 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getMinimizeToTray()

bool OptionsModel::getMinimizeToTray ( )
inline

Definition at line 58 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getOverriddenByCommandLine()

const QString& OptionsModel::getOverriddenByCommandLine ( )
inline

Definition at line 63 of file optionsmodel.h.

Here is the caller graph for this function:

◆ getThirdPartyTxUrls()

QString OptionsModel::getThirdPartyTxUrls ( )
inline

Definition at line 61 of file optionsmodel.h.

Here is the caller graph for this function:

◆ hideOrphansChanged

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

◆ Init()

void OptionsModel::Init ( )

Definition at line 45 of file optionsmodel.cpp.

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

◆ isRestartRequired()

bool OptionsModel::isRestartRequired ( )

Definition at line 373 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ preferredDenomChanged

void OptionsModel::preferredDenomChanged ( int  )
signal

◆ Reset()

void OptionsModel::Reset ( )

Definition at line 148 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 161 of file optionsmodel.cpp.

◆ setData()

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

Definition at line 231 of file optionsmodel.cpp.

Here is the call 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 357 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ setRestartRequired()

void OptionsModel::setRestartRequired ( bool  fRequired)

Definition at line 367 of file optionsmodel.cpp.

Here is the caller graph for this function:

◆ zeromintPercentageChanged

void OptionsModel::zeromintPercentageChanged ( int  )
signal

Member Data Documentation

◆ fCoinControlFeatures

bool OptionsModel::fCoinControlFeatures
private

Definition at line 77 of file optionsmodel.h.

◆ fHideOrphans

bool OptionsModel::fHideOrphans
private

Definition at line 78 of file optionsmodel.h.

◆ fMinimizeOnClose

bool OptionsModel::fMinimizeOnClose
private

Definition at line 73 of file optionsmodel.h.

◆ fMinimizeToTray

bool OptionsModel::fMinimizeToTray
private

Definition at line 72 of file optionsmodel.h.

◆ language

QString OptionsModel::language
private

Definition at line 74 of file optionsmodel.h.

◆ nDisplayUnit

int OptionsModel::nDisplayUnit
private

Definition at line 75 of file optionsmodel.h.

◆ resetSettings

bool OptionsModel::resetSettings

Definition at line 68 of file optionsmodel.h.

◆ strOverriddenByCommandLine

QString OptionsModel::strOverriddenByCommandLine
private

Definition at line 80 of file optionsmodel.h.

◆ strThirdPartyTxUrls

QString OptionsModel::strThirdPartyTxUrls
private

Definition at line 76 of file optionsmodel.h.


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