![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
Interface from Qt to configuration data structure for Anoncoin client. More...
#include <optionsmodel.h>
Signals | |
void | displayUnitChanged (int unit) |
void | transactionFeeChanged (qint64) |
void | coinControlFeaturesChanged (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 | getProxySettings (QNetworkProxy &proxy) const |
bool | getCoinControlFeatures () |
const QString & | getOverriddenByCommandLine () |
void | setRestartRequired (bool fRequired) |
bool | isRestartRequired () |
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 |
QString | strOverriddenByCommandLine |
Interface from Qt to configuration data structure for Anoncoin 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 27 of file optionsmodel.h.
Definition at line 34 of file optionsmodel.h.
|
explicit |
|
private |
Add option to list of GUI options overridden through command line/config file.
Definition at line 42 of file optionsmodel.cpp.
|
signal |
QVariant OptionsModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool OptionsModel::getProxySettings | ( | QNetworkProxy & | proxy | ) | const |
Definition at line 429 of file optionsmodel.cpp.
|
inline |
void OptionsModel::Init | ( | ) |
Definition at line 48 of file optionsmodel.cpp.
bool OptionsModel::isRestartRequired | ( | ) |
void OptionsModel::Reset | ( | ) |
Definition at line 161 of file optionsmodel.cpp.
int OptionsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 173 of file optionsmodel.cpp.
bool OptionsModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
void OptionsModel::setDisplayUnit | ( | const QVariant & | value | ) |
Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal.
Definition at line 418 of file optionsmodel.cpp.
void OptionsModel::setRestartRequired | ( | bool | fRequired | ) |
|
signal |
|
private |
Definition at line 104 of file optionsmodel.h.
|
private |
Definition at line 100 of file optionsmodel.h.
|
private |
Definition at line 99 of file optionsmodel.h.
|
private |
Definition at line 101 of file optionsmodel.h.
|
private |
Definition at line 102 of file optionsmodel.h.
|
private |
Definition at line 106 of file optionsmodel.h.
|
private |
Definition at line 103 of file optionsmodel.h.