mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-10 07:08:07 +00:00
51ed9ec971
Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
67 lines
1.6 KiB
C++
67 lines
1.6 KiB
C++
// Copyright (c) 2011-2013 The Bitcoin developers
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef OPTIONSDIALOG_H
|
|
#define OPTIONSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class MonitoredDataMapper;
|
|
class OptionsModel;
|
|
class QValidatedLineEdit;
|
|
|
|
namespace Ui {
|
|
class OptionsDialog;
|
|
}
|
|
|
|
/** 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 only apply button */
|
|
void enableApplyButton();
|
|
/* disable only apply button */
|
|
void disableApplyButton();
|
|
/* 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_resetButton_clicked();
|
|
void on_okButton_clicked();
|
|
void on_cancelButton_clicked();
|
|
void on_applyButton_clicked();
|
|
|
|
void showRestartWarning_Proxy();
|
|
void showRestartWarning_Lang();
|
|
void updateDisplayUnit();
|
|
void handleProxyIpValid(QValidatedLineEdit *object, bool fState);
|
|
|
|
signals:
|
|
void proxyIpValid(QValidatedLineEdit *object, bool fValid);
|
|
|
|
private:
|
|
Ui::OptionsDialog *ui;
|
|
OptionsModel *model;
|
|
MonitoredDataMapper *mapper;
|
|
bool fRestartWarningDisplayed_Proxy;
|
|
bool fRestartWarningDisplayed_Lang;
|
|
bool fProxyIpValid;
|
|
};
|
|
|
|
#endif // OPTIONSDIALOG_H
|