Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

optionsdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 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 <QButtonGroup>
9 #include <QDialog>
10 #include <QValidator>
11 
12 class AppearanceWidget;
13 class OptionsModel;
14 class QValidatedLineEdit;
15 
16 QT_BEGIN_NAMESPACE
17 class QDataWidgetMapper;
18 QT_END_NAMESPACE
19 
20 namespace Ui {
21 class OptionsDialog;
22 }
23 
26 class ProxyAddressValidator : public QValidator
27 {
28  Q_OBJECT
29 
30 public:
31  explicit ProxyAddressValidator(QObject *parent);
32 
33  State validate(QString &input, int &pos) const;
34 };
35 
37 class OptionsDialog : public QDialog
38 {
39  Q_OBJECT
40 
41 public:
42  explicit OptionsDialog(QWidget *parent, bool enableWallet);
44 
46  void setMapper();
47 
48 private Q_SLOTS:
50  void showPage(int index);
51  /* set OK button state (enabled / disabled) */
52  void setOkButtonState(bool fState);
54  void on_okButton_clicked();
56 
57  void on_hideTrayIcon_stateChanged(int fState);
58 
59  void showRestartWarning(bool fPersistent = false);
60  void clearStatusLabel();
62  /* query the networks, for which the default proxy is used */
64 
66 
67  void updateWidth();
68 
69 Q_SIGNALS:
70  void appearanceChanged();
71  void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort);
72 
73 private:
74  Ui::OptionsDialog *ui;
76  QDataWidgetMapper *mapper;
77  QButtonGroup pageButtons;
78  QString previousTheme;
81 
82  void showEvent(QShowEvent* event) override;
83 };
84 
85 #endif // BITCOIN_QT_OPTIONSDIALOG_H
Ui::OptionsDialog * ui
Definition: optionsdialog.h:74
QString previousTheme
Definition: optionsdialog.h:78
bool fPrivateSendEnabledPrev
Definition: optionsdialog.h:80
OptionsDialog(QWidget *parent, bool enableWallet)
Proxy address widget validator, checks for a valid proxy address.
Definition: optionsdialog.h:26
void appearanceChanged()
QButtonGroup pageButtons
Definition: optionsdialog.h:77
void setOkButtonState(bool fState)
void on_resetButton_clicked()
Line edit that can be marked as "invalid" to show input validation feedback.
OptionsModel * model
Definition: optionsdialog.h:75
void showPage(int index)
custom tab buttons clicked
State validate(QString &input, int &pos) const
void setModel(OptionsModel *model)
QDataWidgetMapper * mapper
Definition: optionsdialog.h:76
void on_okButton_clicked()
void updateDefaultProxyNets()
void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort)
void on_hideTrayIcon_stateChanged(int fState)
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:25
AppearanceWidget * appearance
Definition: optionsdialog.h:79
void showRestartWarning(bool fPersistent=false)
void updatePrivateSendVisibility()
void on_cancelButton_clicked()
Preferences dialog.
Definition: optionsdialog.h:37
void showEvent(QShowEvent *event) override
void clearStatusLabel()
void updateProxyValidationState()
ProxyAddressValidator(QObject *parent)
Released under the MIT license