6 #if defined(HAVE_CONFIG_H)
23 #include <QIntValidator>
25 #include <QMessageBox>
35 , fRestartWarningDisplayed_I2P(false)
55 ui->
proxyPort->setValidator(
new QIntValidator(1, 65535,
this));
69 QDir translations(
":translations");
70 ui->
lang->addItem(QString(
"(") + tr(
"default") + QString(
")"), QVariant(
""));
71 foreach(
const QString &langStr, translations.entryList())
73 QLocale locale(langStr);
76 if(langStr.contains(
"_"))
78 #if QT_VERSION >= 0x040800
80 ui->
lang->addItem(locale.nativeLanguageName() + QString(
" - ") + locale.nativeCountryName() + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
83 ui->
lang->addItem(QLocale::languageToString(locale.language()) + QString(
" - ") + QLocale::countryToString(locale.country()) + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
88 #if QT_VERSION >= 0x040800
90 ui->
lang->addItem(locale.nativeLanguageName() + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
93 ui->
lang->addItem(QLocale::languageToString(locale.language()) + QString(
" (") + langStr + QString(
")"), QVariant(langStr));
97 #if QT_VERSION >= 0x040700
106 mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
107 mapper->setOrientation(Qt::Vertical);
133 if (strLabel.isEmpty())
134 strLabel = tr(
"none");
137 connect(model, SIGNAL(displayUnitChanged(
int)),
this, SLOT(
updateDisplayUnit()));
176 #endif // ENABLE_I2PSAM
234 QMessageBox::StandardButton btnRetVal = QMessageBox::question(
this, tr(
"Confirm options reset"),
235 tr(
"Client restart required to activate changes.") +
"<br><br>" + tr(
"Client will be shutdown, do you want to proceed?"),
236 QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
238 if(btnRetVal == QMessageBox::Cancel)
251 QApplication::quit();
277 ui->
statusLabel->setText(tr(
"Client restart required to activate changes."));
281 ui->
statusLabel->setText(tr(
"This change would require a client restart."));
293 QMessageBox::warning(
this, tr(
"Warning"), tr(
"This setting will take effect after restarting Anoncoin."), QMessageBox::Ok);
297 #endif // ENABLE_I2PSAM
315 Q_UNUSED(nProxyPort);
317 const std::string strAddrProxy = pUiProxyIp->text().toStdString();
326 ui->
statusLabel->setText(tr(
"The supplied proxy address is invalid."));
337 if(event->type() == QEvent::FocusOut)
344 return QDialog::eventFilter(
object, event);
QCheckBox * spendZeroConfChange
OptionsDialog(QWidget *parent)
I2POptionsWidget * tabI2P
void setDisplayUnit(int unit)
Change unit used to display amount.
void showRestartWarning_I2P()
QSpinBox * threadsScriptVerif
Anoncoin unit definitions.
void setupUi(QDialog *OptionsDialog)
void setOkButtonState(bool fState)
const QString & getOverriddenByCommandLine()
bool LookupNumeric(const char *pszName, CService &addr, int portDefault)
QCheckBox * minimizeToTray
void on_resetButton_clicked()
Line edit that can be marked as "invalid" to show input validation feedback.
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
A combination of a network address (CNetAddr) and a (TCP) port.
void setModel(OptionsModel *model)
void on_okButton_clicked()
QCheckBox * anoncoinAtStartup
void restoreWindowGeometry(const QString &strSetting, const QSize &defaultSize, QWidget *parent)
Restore window size and position.
void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort)
Model for Anoncoin network client.
QLabel * overriddenByCommandLineLabel
QCheckBox * minimizeOnClose
QLineEdit * thirdPartyTxUrls
Interface from Qt to configuration data structure for Anoncoin client.
void doProxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort)
void addMapping(QWidget *widget, int section)
AnoncoinAmountField * transactionFee
bool eventFilter(QObject *object, QEvent *event)
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
bool fRestartWarningDisplayed_I2P
void setClientModel(ClientModel *clientModel)
QCheckBox * coinControlFeatures
void setValid(bool valid)