![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
Interface from Qt to configuration data structure for PIVX client. More...
#include <optionsmodel.h>
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 |
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.
Definition at line 28 of file optionsmodel.h.
|
explicit |
|
private |
Add option to list of GUI options overridden through command line/config file.
Definition at line 36 of file optionsmodel.cpp.
|
signal |
| QVariant OptionsModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
|
signal |
|
inline |
Definition at line 76 of file optionsmodel.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 77 of file optionsmodel.h.
|
inline |
Definition at line 75 of file optionsmodel.h.
|
signal |
|
signal |
|
signal |
| void OptionsModel::Init | ( | ) |
Definition at line 42 of file optionsmodel.cpp.
|
inline |
Definition at line 86 of file optionsmodel.h.
|
inline |
|
inline |
| bool OptionsModel::isRestartRequired | ( | ) |
| void OptionsModel::refreshDataView | ( | ) |
Definition at line 91 of file optionsmodel.cpp.
| void OptionsModel::Reset | ( | ) |
Definition at line 222 of file optionsmodel.cpp.
| int OptionsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
| bool OptionsModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) |
Definition at line 319 of file optionsmodel.cpp.
| void OptionsModel::setDisplayDefaultOptions | ( | QSettings & | settings, |
| bool | reset = false |
||
| ) |
Definition at line 192 of file optionsmodel.cpp.
| 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.
| void OptionsModel::setMainDefaultOptions | ( | QSettings & | settings, |
| bool | reset = false |
||
| ) |
| void OptionsModel::setNetworkDefaultOptions | ( | QSettings & | settings, |
| bool | reset = false |
||
| ) |
| void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
| void OptionsModel::setWalletDefaultOptions | ( | QSettings & | settings, |
| bool | reset = false |
||
| ) |
Definition at line 134 of file optionsmodel.cpp.
| void OptionsModel::setWindowDefaultOptions | ( | QSettings & | settings, |
| bool | reset = false |
||
| ) |
Definition at line 177 of file optionsmodel.cpp.
|
signal |
|
private |
Definition at line 109 of file optionsmodel.h.
|
private |
Definition at line 111 of file optionsmodel.h.
|
private |
Definition at line 113 of file optionsmodel.h.
|
private |
Definition at line 112 of file optionsmodel.h.
|
private |
Definition at line 105 of file optionsmodel.h.
|
private |
Definition at line 104 of file optionsmodel.h.
|
private |
Definition at line 106 of file optionsmodel.h.
|
private |
Definition at line 107 of file optionsmodel.h.
| bool OptionsModel::resetSettings |
Definition at line 83 of file optionsmodel.h.
|
private |
Definition at line 110 of file optionsmodel.h.
|
private |
Definition at line 115 of file optionsmodel.h.
|
private |
Definition at line 108 of file optionsmodel.h.