Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
optionsdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef OPTIONSDIALOG_H
6 #define OPTIONSDIALOG_H
7 
8 #include <QDialog>
9 
11 class OptionsModel;
12 class QValidatedLineEdit;
13 
14 namespace Ui {
15 class OptionsDialog;
16 }
17 
19 class OptionsDialog : public QDialog
20 {
21  Q_OBJECT
22 
23 public:
24  explicit OptionsDialog(QWidget *parent);
26 
28  void setMapper();
29 
30 protected:
31  bool eventFilter(QObject *object, QEvent *event);
32 
33 private slots:
34  /* enable OK button */
35  void enableOkButton();
36  /* disable OK button */
37  void disableOkButton();
38  /* set OK button state (enabled / disabled) */
39  void setOkButtonState(bool fState);
41  void on_okButton_clicked();
43 
44  void showRestartWarning(bool fPersistent = false);
45  void clearStatusLabel();
46  void updateDisplayUnit();
47  void doProxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort);
48 
49 signals:
50  void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort);
51 
52 private:
57 };
58 
59 #endif // OPTIONSDIALOG_H
Ui::OptionsDialog * ui
Definition: optionsdialog.h:53
OptionsDialog(QWidget *parent)
void setOkButtonState(bool fState)
void on_resetButton_clicked()
Line edit that can be marked as "invalid" to show input validation feedback.
void updateDisplayUnit()
OptionsModel * model
Definition: optionsdialog.h:54
MonitoredDataMapper * mapper
Definition: optionsdialog.h:55
void setModel(OptionsModel *model)
void on_okButton_clicked()
void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort)
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:20
void doProxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort)
bool eventFilter(QObject *object, QEvent *event)
void showRestartWarning(bool fPersistent=false)
Data to Widget mapper that watches for edits and notifies listeners when a field is edited...
void on_cancelButton_clicked()
Preferences dialog.
Definition: optionsdialog.h:19
void clearStatusLabel()
void disableOkButton()