diff options
| author | Victor Tran <vicr12345@gmail.com> | 2018-07-13 00:39:24 +1000 |
|---|---|---|
| committer | Victor Tran <vicr12345@gmail.com> | 2018-07-13 00:39:24 +1000 |
| commit | abc4021919f406ee25e101122144879f8770d51d (patch) | |
| tree | 9f835b216b8481e84fb988e495da42c1aa1aa20a /installer/maintainwindow.h | |
| parent | 2adcd4f24eca2fa529c42fc1165319bcc4ea179e (diff) | |
| download | theInstaller-abc4021919f406ee25e101122144879f8770d51d.tar.gz theInstaller-abc4021919f406ee25e101122144879f8770d51d.tar.bz2 theInstaller-abc4021919f406ee25e101122144879f8770d51d.zip | |
Uninstall support
Diffstat (limited to 'installer/maintainwindow.h')
| -rw-r--r-- | installer/maintainwindow.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/installer/maintainwindow.h b/installer/maintainwindow.h new file mode 100644 index 0000000..8f648c7 --- /dev/null +++ b/installer/maintainwindow.h @@ -0,0 +1,56 @@ +#ifndef MAINTAINWINDOW_H +#define MAINTAINWINDOW_H + +#include <QMainWindow> +#include <QPainter> +#include <QPaintEvent> +#include <QStyle> +#include <QProcess> +#include <QMessageBox> +#include <QDebug> +#include <QLocalServer> +#include <QLocalSocket> +#include <QWinTaskbarButton> +#include <QShowEvent> +#include <QWinTaskbarProgress> +#include <QJsonDocument> +#include <QJsonObject> + +namespace Ui { +class MaintainWindow; +} + +class MaintainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MaintainWindow(QWidget *parent = 0); + ~MaintainWindow(); + +private slots: + void on_uninstallButton_clicked(); + + void on_cancelUninstallButton_clicked(); + + void on_performUninstallButton_clicked(); + + void on_finishButton_clicked(); + + void on_exitButton_clicked(); + + void on_retryInstallButton_clicked(); + +private: + Ui::MaintainWindow *ui; + + void paintEvent(QPaintEvent* event); + void showEvent(QShowEvent *event); + + QPixmap backgroundImage; + QWinTaskbarButton* taskbarButton; + QJsonObject metadata; + bool modifyDone = false; +}; + +#endif // MAINTAINWINDOW_H |
