Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
optionsdialog.h
Go to the documentation of this file.
1// Copyright (c) 2011-2016 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_QT_OPTIONSDIALOG_H
6#define BITCOIN_QT_OPTIONSDIALOG_H
7
8#include <QDialog>
9#include <QValidator>
10
11class OptionsModel;
13
17
18namespace Ui {
19class OptionsDialog;
20}
21
23class ProxyAddressValidator : public QValidator {
25
26public:
27 explicit ProxyAddressValidator(QObject *parent);
28
29 State validate(QString &input, int &pos) const override;
30};
31
33class ThirdPartyTxUrlsValidator : public QValidator {
35
36public:
37 explicit ThirdPartyTxUrlsValidator(QObject *parent);
38
39 State validate(QString &input, int &pos) const override;
40};
41
43class OptionsDialog : public QDialog {
45
46public:
47 explicit OptionsDialog(QWidget *parent, bool enableWallet);
49
54
56 void setMapper();
58
59private Q_SLOTS:
60 /* set OK button state (enabled / disabled) */
61 void setOkButtonState(bool fState);
66
68
69 void togglePruneWarning(bool enabled);
70 void showRestartWarning(bool fPersistent = false);
71 void clearStatusLabel();
73 /* query the networks, for which the default proxy is used */
76
79
80private:
81 Ui::OptionsDialog *ui;
84};
85
86#endif // BITCOIN_QT_OPTIONSDIALOG_H
Preferences dialog.
void setModel(OptionsModel *model)
OptionsModel * model
void setCurrentTab(OptionsDialog::Tab tab)
void on_okButton_clicked()
void on_openBitcoinConfButton_clicked()
void updateDefaultProxyNets()
void updateProxyValidationState()
void togglePruneWarning(bool enabled)
void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, uint16_t nProxyPort)
void on_hideTrayIcon_stateChanged(int fState)
void showRestartWarning(bool fPersistent=false)
void updateThirdPartyTxUrlsState()
void on_resetButton_clicked()
Ui::OptionsDialog * ui
QDataWidgetMapper * mapper
void on_cancelButton_clicked()
void setOkButtonState(bool fState)
Interface from Qt to configuration data structure for Bitcoin client.
Proxy address widget validator, checks for a valid proxy address.
State validate(QString &input, int &pos) const override
Line edit that can be marked as "invalid" to show input validation feedback.
Third party tx URL validator, checks for an https link.
State validate(QString &input, int &pos) const override
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85