Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
optionsdialog.h
Go to the documentation of this file.
1 #ifndef OPTIONSDIALOG_H
2 #define OPTIONSDIALOG_H
3 
4 #include <QDialog>
5 
6 namespace Ui {
7 class OptionsDialog;
8 }
9 class OptionsModel;
11 class QValidatedLineEdit;
12 
14 class OptionsDialog : public QDialog
15 {
16  Q_OBJECT
17 
18 public:
19  explicit OptionsDialog(QWidget *parent = 0);
21 
23  void setMapper();
24 
25 protected:
26  bool eventFilter(QObject *object, QEvent *event);
27 
28 private slots:
29  /* enable only apply button */
30  void enableApplyButton();
31  /* disable only apply button */
32  void disableApplyButton();
33  /* enable apply button and OK button */
34  void enableSaveButtons();
35  /* disable apply button and OK button */
36  void disableSaveButtons();
37  /* set apply button and OK button state (enabled / disabled) */
38  void setSaveButtonState(bool fState);
40  void on_okButton_clicked();
43 
46  void updateDisplayUnit();
47  void handleProxyIpValid(QValidatedLineEdit *object, bool fState);
48 
49 signals:
50  void proxyIpValid(QValidatedLineEdit *object, bool fValid);
51 
52 private:
53  Ui::OptionsDialog *ui;
59 };
60 
61 #endif // OPTIONSDIALOG_H
Ui::OptionsDialog * ui
Definition: optionsdialog.h:53
bool fRestartWarningDisplayed_Lang
Definition: optionsdialog.h:57
Definition: aboutdialog.h:6
void on_resetButton_clicked()
Line edit that can be marked as "invalid" to show input validation feedback.
bool fRestartWarningDisplayed_Proxy
Definition: optionsdialog.h:56
void enableSaveButtons()
void updateDisplayUnit()
OptionsModel * model
Definition: optionsdialog.h:54
void showRestartWarning_Proxy()
MonitoredDataMapper * mapper
Definition: optionsdialog.h:55
void disableSaveButtons()
void disableApplyButton()
void setModel(OptionsModel *model)
void on_okButton_clicked()
OptionsDialog(QWidget *parent=0)
void on_applyButton_clicked()
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:12
void enableApplyButton()
bool eventFilter(QObject *object, QEvent *event)
void setSaveButtonState(bool fState)
void proxyIpValid(QValidatedLineEdit *object, bool fValid)
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:14
void showRestartWarning_Lang()
void handleProxyIpValid(QValidatedLineEdit *object, bool fState)