X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Foptionsdialog.h;h=b568916f673d760e19d8a48f10784b047eaa4e80;hb=07fc3447c6e0de124cacba2594426b4c17f7b4d3;hp=5d75e061e16b4965331c9880f73fe5f03333d1e2;hpb=e054c116d1b17c4d2875908996d60e46eb4ed256;p=novacoin.git diff --git a/src/qt/optionsdialog.h b/src/qt/optionsdialog.h index 5d75e06..b568916 100644 --- a/src/qt/optionsdialog.h +++ b/src/qt/optionsdialog.h @@ -1,7 +1,7 @@ #ifndef OPTIONSDIALOG_H #define OPTIONSDIALOG_H -#include +#include namespace Ui { class OptionsDialog; @@ -11,7 +11,7 @@ class MonitoredDataMapper; class QValidatedLineEdit; /** Preferences dialog. */ -class OptionsDialog : public QDialog +class OptionsDialog : public QWidget { Q_OBJECT @@ -24,6 +24,7 @@ public: protected: bool eventFilter(QObject *object, QEvent *event); + void keyPressEvent(QKeyEvent *); private slots: /* enable only apply button */ @@ -41,22 +42,29 @@ private slots: void on_applyButton_clicked(); void showRestartWarning_Proxy(); + void showRestartWarning_Tor(); void showRestartWarning_Lang(); void showRestartWarning_URL(); void updateDisplayUnit(); void handleProxyIpValid(QValidatedLineEdit *object, bool fState); + void handleTorIpValid(QValidatedLineEdit *object, bool fState); + + void on_chooseSeeder_clicked(); signals: void proxyIpValid(QValidatedLineEdit *object, bool fValid); + void torIpValid(QValidatedLineEdit *object, bool fValid); private: Ui::OptionsDialog *ui; OptionsModel *model; MonitoredDataMapper *mapper; bool fRestartWarningDisplayed_Proxy; + bool fRestartWarningDisplayed_Tor; bool fRestartWarningDisplayed_Lang; bool fRestartWarningDisplayed_URL; bool fProxyIpValid; + bool fTorIpValid; }; #endif // OPTIONSDIALOG_H