c4443c2be1
- extend network options with a SOCKS version selection - changing "Unit to show amounts in:" now also updates the unit used in the transaction fee box - string updates - link Apply button and OK button when enabling or disabling them - use LookupNumeric() from netbase to verify proxy address (via an EventFilter) - change proxy address field to QValidatedLineEdit and add visual feedback - add a status label used for displaying a message for invalid proxy addresses - allow usage of IPv6 address as proxy address - added warning message when enabling / disabling SOCKS proxy
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
#ifndef OPTIONSDIALOG_H
|
|
#define OPTIONSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class OptionsDialog;
|
|
}
|
|
class OptionsModel;
|
|
class MonitoredDataMapper;
|
|
|
|
/** Preferences dialog. */
|
|
class OptionsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit OptionsDialog(QWidget *parent = 0);
|
|
~OptionsDialog();
|
|
|
|
void setModel(OptionsModel *model);
|
|
void setMapper();
|
|
|
|
protected:
|
|
bool eventFilter(QObject *object, QEvent *event);
|
|
|
|
private slots:
|
|
/* enable apply button and OK button */
|
|
void enableSaveButtons();
|
|
/* disable apply button and OK button */
|
|
void disableSaveButtons();
|
|
/* set apply button and OK button state (enabled / disabled) */
|
|
void setSaveButtonState(bool fState);
|
|
void on_okButton_clicked();
|
|
void on_cancelButton_clicked();
|
|
void on_applyButton_clicked();
|
|
|
|
void showRestartWarning_Proxy();
|
|
void showRestartWarning_Lang();
|
|
void updateDisplayUnit();
|
|
|
|
signals:
|
|
void proxyIpValid(bool fValid);
|
|
|
|
private:
|
|
Ui::OptionsDialog *ui;
|
|
OptionsModel *model;
|
|
MonitoredDataMapper *mapper;
|
|
bool fRestartWarningDisplayed_Proxy;
|
|
bool fRestartWarningDisplayed_Lang;
|
|
bool fProxyIpValid;
|
|
};
|
|
|
|
#endif // OPTIONSDIALOG_H
|