1 // Copyright (c) 2011-2013 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.
5 #ifndef BITCOIN_QT_OPTIONSDIALOG_H
6 #define BITCOIN_QT_OPTIONSDIALOG_H
11 class QValidatedLineEdit;
14 class QDataWidgetMapper;
21 /** Preferences dialog. */
22 class OptionsDialog : public QDialog
27 explicit OptionsDialog(QWidget *parent, bool enableWallet);
30 void setModel(OptionsModel *model);
34 bool eventFilter(QObject *object, QEvent *event);
37 /* enable OK button */
38 void enableOkButton();
39 /* disable OK button */
40 void disableOkButton();
41 /* set OK button state (enabled / disabled) */
42 void setOkButtonState(bool fState);
43 void on_resetButton_clicked();
44 void on_okButton_clicked();
45 void on_cancelButton_clicked();
47 void showRestartWarning(bool fPersistent = false);
48 void clearStatusLabel();
49 void doProxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort);
52 void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort);
55 Ui::OptionsDialog *ui;
57 QDataWidgetMapper *mapper;
61 #endif // BITCOIN_QT_OPTIONSDIALOG_H