2017-03-29 10:18:37 +00:00
|
|
|
#ifndef ABOUTDIALOG_H
|
|
|
|
#define ABOUTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2017-10-02 09:41:28 +00:00
|
|
|
#include <memory>
|
2018-09-13 06:32:14 +00:00
|
|
|
#include <QtNetwork/QNetworkReply>
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2018-03-21 20:32:32 +00:00
|
|
|
namespace Ui {
|
|
|
|
class AboutDialog;
|
2017-03-29 10:18:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class AboutDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-05-04 07:58:32 +00:00
|
|
|
explicit AboutDialog(QWidget *parent = nullptr);
|
2017-03-29 10:18:37 +00:00
|
|
|
~AboutDialog();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_buttonBox_rejected();
|
2017-12-15 16:09:04 +00:00
|
|
|
void on_showVersionButton_clicked();
|
2018-03-09 15:05:40 +00:00
|
|
|
void on_showPluginsButton_clicked();
|
2019-03-09 13:11:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @fn AboutDialog::on_checkForUpdatesButton_clicked()
|
|
|
|
*
|
|
|
|
* @brief Initiates process of checking for updates.
|
|
|
|
*/
|
2018-09-13 06:32:14 +00:00
|
|
|
void on_checkForUpdatesButton_clicked();
|
2019-03-09 13:11:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @fn AboutDialog::on_updatesCheckBox_stateChanged(int state)
|
|
|
|
*
|
|
|
|
* @brief Changes value of autoUpdateEnabled option in settings.
|
|
|
|
*/
|
|
|
|
void on_updatesCheckBox_stateChanged(int state);
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
private:
|
2017-10-02 09:41:28 +00:00
|
|
|
std::unique_ptr<Ui::AboutDialog> ui;
|
2017-03-29 10:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ABOUTDIALOG_H
|