5 #if defined(HAVE_CONFIG_H) 16 #include <validation.h> 25 #include <QDataWidgetMapper> 27 #include <QIntValidator> 29 #include <QMessageBox> 60 ui->
proxyPort->setValidator(
new QIntValidator(1, 65535,
this));
92 QDir translations(
":translations");
100 ui->
lang->addItem(QString(
"(") + tr(
"default") + QString(
")"), QVariant(
""));
101 for (
const QString &langStr : translations.entryList())
103 QLocale locale(langStr);
106 if(langStr.contains(
"_"))
108 #if QT_VERSION >= 0x040800 110 ui->
lang->addItem(locale.nativeLanguageName() + QString(
" - ") + locale.nativeCountryName() + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
113 ui->
lang->addItem(QLocale::languageToString(locale.language()) + QString(
" - ") + QLocale::countryToString(locale.country()) + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
118 #if QT_VERSION >= 0x040800 120 ui->
lang->addItem(locale.nativeLanguageName() + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
123 ui->
lang->addItem(QLocale::languageToString(locale.language()) + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
127 #if QT_VERSION >= 0x040700 134 mapper =
new QDataWidgetMapper(
this);
135 mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
136 mapper->setOrientation(Qt::Vertical);
154 this->
model = _model;
163 if (strLabel.isEmpty())
164 strLabel = tr(
"none");
242 QMessageBox::StandardButton btnRetVal = QMessageBox::question(
this, tr(
"Confirm options reset"),
243 tr(
"Client restart required to activate changes.") +
"<br><br>" + tr(
"Client will be shut down. Do you want to proceed?"),
244 QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
246 if(btnRetVal == QMessageBox::Cancel)
251 QApplication::quit();
258 QMessageBox::information(
this, tr(
"Configuration options"),
259 tr(
"The configuration file is used to specify advanced user options which override GUI settings. " 260 "Additionally, any command-line options will override this configuration file."));
264 QMessageBox::critical(
this, tr(
"Error"), tr(
"The configuration file could not be opened."));
298 ui->
statusLabel->setText(tr(
"Client restart required to activate changes."));
302 ui->
statusLabel->setText(tr(
"This change would require a client restart."));
330 ui->
statusLabel->setText(tr(
"The supplied proxy address is invalid."));
337 std::string strProxy;
338 QString strDefaultProxyGUI;
368 return QValidator::Acceptable;
370 return QValidator::Invalid;
QCheckBox * spendZeroConfChange
QCheckBox * proxyReachIPv6
#define SetObjectStyleSheet(object, name)
OptionsDialog(QWidget *parent, bool enableWallet)
Proxy address widget validator, checks for a valid proxy address.
QSpinBox * threadsScriptVerif
void setupUi(QDialog *OptionsDialog)
QPushButton * cancelButton
std::string ToStringIP() const
CService LookupNumeric(const char *pszName, int portDefault)
void setOkButtonState(bool fState)
const QString & getOverriddenByCommandLine()
QCheckBox * minimizeToTray
void on_resetButton_clicked()
Line edit that can be marked as "invalid" to show input validation feedback.
QPushButton * openFabcoinConfButton
if(a.IndicesBefore(b, len, lenIndices))
QCheckBox * checkForUpdates
QCheckBox * zeroBalanceAddressToken
QLabel * proxyPortTorLabel
QCheckBox * fabcoinAtStartup
A combination of a network address (CNetAddr) and a (TCP) port.
FabcoinAmountField * reserveBalance
QCheckBox * allowIncoming
void setModel(OptionsModel *model)
QDataWidgetMapper * mapper
void on_okButton_clicked()
void updateDefaultProxyNets()
QCheckBox * proxyReachIPv4
QCheckBox * connectSocksTor
State validate(QString &input, int &pos) const
void on_hideTrayIcon_stateChanged(int fState)
QLabel * overriddenByCommandLineLabel
QValidatedLineEdit * proxyIpTor
QCheckBox * minimizeOnClose
QLineEdit * thirdPartyTxUrls
Interface from Qt to configuration data structure for Fabcoin client.
QCheckBox * proxyReachTor
void showRestartWarning(bool fPersistent=false)
void setCheckValidator(const QValidator *v)
void setEnabled(bool enabled)
void on_cancelButton_clicked()
QValidatedLineEdit * proxyIp
bool GetProxy(enum Network net, proxyType &proxyInfoOut)
std::string ToStringPort() const
int GetNumCores()
Return the number of physical cores available on the current system.
void updateProxyValidationState()
QCheckBox * notUseChangeAddress
QCheckBox * coinControlFeatures
Fabcoin unit definitions.
QPushButton * resetButton
ProxyAddressValidator(QObject *parent)
void on_openFabcoinConfButton_clicked()