From 2adcd4f24eca2fa529c42fc1165319bcc4ea179e Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Thu, 12 Jul 2018 18:12:14 +1000 Subject: Initial commit --- installer/mainwindow.h | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 installer/mainwindow.h (limited to 'installer/mainwindow.h') diff --git a/installer/mainwindow.h b/installer/mainwindow.h new file mode 100644 index 0000000..dcfd34f --- /dev/null +++ b/installer/mainwindow.h @@ -0,0 +1,67 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private slots: + void on_installOptions_clicked(); + + void getInstallerMetadata(); + + void setInstallPath(); + + void on_cancelMetadataButton_clicked(); + + void on_retryMetadataButton_clicked(); + + void on_installEveryone_toggled(bool checked); + + void on_installButton_clicked(); + + void on_installButton_2_clicked(); + + void on_exitButton_clicked(); + + void on_retryInstallButton_clicked(); + +private: + Ui::MainWindow *ui; + + void paintEvent(QPaintEvent* event); + + QNetworkAccessManager mgr; + QPixmap backgroundImage; + QJsonObject metadata; +}; + +#endif // MAINWINDOW_H -- cgit v1.2.3