5 #if defined(HAVE_CONFIG_H)
22 #include <QIntValidator>
24 #include <QMessageBox>
50 ui->
proxyPort->setValidator(
new QIntValidator(1, 65535,
this));
71 QDir translations(
":translations");
72 ui->
lang->addItem(QString(
"(") + tr(
"default") + QString(
")"), QVariant(
""));
73 foreach(
const QString &langStr, translations.entryList())
75 QLocale locale(langStr);
78 if(langStr.contains(
"_"))
80 #if QT_VERSION >= 0x040800
82 ui->
lang->addItem(locale.nativeLanguageName() + QString(
" - ") + locale.nativeCountryName() + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
85 ui->
lang->addItem(QLocale::languageToString(locale.language()) + QString(
" - ") + QLocale::countryToString(locale.country()) + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
90 #if QT_VERSION >= 0x040800
92 ui->
lang->addItem(locale.nativeLanguageName() + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
95 ui->
lang->addItem(QLocale::languageToString(locale.language()) + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
99 #if QT_VERSION >= 0x040700
108 mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
109 mapper->setOrientation(Qt::Vertical);
132 if (strLabel.isEmpty())
133 strLabel = tr(
"none");
136 connect(model, SIGNAL(displayUnitChanged(
int)),
this, SLOT(
updateDisplayUnit()));
215 QMessageBox::StandardButton btnRetVal = QMessageBox::question(
this, tr(
"Confirm options reset"),
216 tr(
"Client restart required to activate changes.") +
"<br><br>" + tr(
"Client will be shutdown, do you want to proceed?"),
217 QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
219 if(btnRetVal == QMessageBox::Cancel)
224 QApplication::quit();
245 ui->
statusLabel->setText(tr(
"Client restart required to activate changes."));
249 ui->
statusLabel->setText(tr(
"This change would require a client restart."));
272 Q_UNUSED(nProxyPort);
274 const std::string strAddrProxy = pUiProxyIp->text().toStdString();
283 ui->
statusLabel->setText(tr(
"The supplied proxy address is invalid."));
294 if(event->type() == QEvent::FocusOut)
301 return QDialog::eventFilter(
object, event);
QCheckBox * spendZeroConfChange
OptionsDialog(QWidget *parent)
Bitcoin unit definitions.
QSpinBox * threadsScriptVerif
void setupUi(QDialog *OptionsDialog)
void setOkButtonState(bool fState)
const QString & getOverriddenByCommandLine()
bool LookupNumeric(const char *pszName, CService &addr, int portDefault)
static const int64_t nMinDbCache
QCheckBox * minimizeToTray
void on_resetButton_clicked()
Line edit that can be marked as "invalid" to show input validation feedback.
QValueComboBox * socksVersion
static int64_t nMinTxFee
Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) ...
void saveWindowGeometry(const QString &strSetting, QWidget *parent)
Save window size and position.
MonitoredDataMapper * mapper
QCheckBox * displayAddresses
BitcoinAmountField * transactionFee
A combination of a network address (CNetAddr) and a (TCP) port.
void setModel(OptionsModel *model)
void on_okButton_clicked()
void restoreWindowGeometry(const QString &strSetting, const QSize &defaultSize, QWidget *parent)
Restore window size and position.
void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort)
QLabel * overriddenByCommandLineLabel
static const int MAX_SCRIPTCHECK_THREADS
Maximum number of script-checking threads allowed.
QCheckBox * minimizeOnClose
QLineEdit * thirdPartyTxUrls
Interface from Qt to configuration data structure for Bitcoin client.
void doProxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort)
void addMapping(QWidget *widget, int section)
QCheckBox * bitcoinAtStartup
bool eventFilter(QObject *object, QEvent *event)
static const int64_t nMaxDbCache
void setSingleStep(qint64 step)
Set single step in satoshis.
void showRestartWarning(bool fPersistent=false)
void setEnabled(bool enabled)
Data to Widget mapper that watches for edits and notifies listeners when a field is edited...
void on_cancelButton_clicked()
QValidatedLineEdit * proxyIp
void setDisplayUnit(int unit)
Change unit used to display amount.
QCheckBox * coinControlFeatures
void setValid(bool valid)