Anoncoin  0.9.4
P2P Digital Currency
optionsdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef OPTIONSDIALOG_H
7 #define OPTIONSDIALOG_H
8 
9 #include <QDialog>
10 
11 #include "i2poptionswidget.h"
12 
14 class OptionsModel;
15 class QValidatedLineEdit;
16 
17 namespace Ui {
18 class OptionsDialog;
19 }
20 
22 class OptionsDialog : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  explicit OptionsDialog(QWidget *parent);
29 
30  void setClientModel(ClientModel* clientModel);
32  void setMapper();
33 
34 protected:
35  bool eventFilter(QObject *object, QEvent *event);
36 
37 private slots:
38  /* enable OK button */
39  void enableOkButton();
40  /* disable OK button */
41  void disableOkButton();
42  /* set OK button state (enabled / disabled) */
43  void setOkButtonState(bool fState);
45  void on_okButton_clicked();
47 
48  void showRestartWarning(bool fPersistent = false);
50  void clearStatusLabel();
51  void updateDisplayUnit();
52  void doProxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort);
53 
54 signals:
55  void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort);
56 
57 private:
62  // Settings for the I2P options widget, operated from its own tab
65 };
66 
67 #endif // OPTIONSDIALOG_H
Ui::OptionsDialog * ui
Definition: optionsdialog.h:58
OptionsDialog(QWidget *parent)
I2POptionsWidget * tabI2P
Definition: optionsdialog.h:64
void showRestartWarning_I2P()
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:59
MonitoredDataMapper * mapper
Definition: optionsdialog.h:60
void setModel(OptionsModel *model)
void on_okButton_clicked()
void proxyIpChecks(QValidatedLineEdit *pUiProxyIp, int nProxyPort)
Model for Anoncoin network client.
Definition: clientmodel.h:45
Interface from Qt to configuration data structure for Anoncoin client.
Definition: optionsmodel.h:27
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()
bool fRestartWarningDisplayed_I2P
Definition: optionsdialog.h:63
Preferences dialog.
Definition: optionsdialog.h:22
void clearStatusLabel()
void setClientModel(ClientModel *clientModel)
void disableOkButton()