aboutsummaryrefslogtreecommitdiff
path: root/src/qt/mainwindow.hpp
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-06-06 22:03:57 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-06-08 20:06:12 +0200
commitd5d61d18c89af3f6743b7c56774eebdfdcc87b2c (patch)
treeb4299c1af7e194e9083d4de1bce382102ea46e95 /src/qt/mainwindow.hpp
downloadOFQT-d5d61d18c89af3f6743b7c56774eebdfdcc87b2c.tar.gz
OFQT-d5d61d18c89af3f6743b7c56774eebdfdcc87b2c.zip
Release 0.1.00.1.0
Diffstat (limited to 'src/qt/mainwindow.hpp')
-rw-r--r--src/qt/mainwindow.hpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/qt/mainwindow.hpp b/src/qt/mainwindow.hpp
new file mode 100644
index 0000000..0d21efc
--- /dev/null
+++ b/src/qt/mainwindow.hpp
@@ -0,0 +1,50 @@
+#ifndef MAINWINDOW_HPP
+#define MAINWINDOW_HPP
+
+#include <QThread>
+#include <QMainWindow>
+#include <QMenu>
+
+#include "settings.hpp"
+#include "workers.hpp"
+
+QT_BEGIN_NAMESPACE
+namespace Ui { class MainWindow; }
+QT_END_NAMESPACE
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ MainWindow(QWidget* parent = nullptr);
+ ~MainWindow();
+
+private:
+ Ui::MainWindow *ui;
+ Settings* settings;
+ QThread thread;
+ Worker* worker;
+
+ bool in_progress;
+ bool installed;
+ bool uptodate;
+
+ void setupButton();
+ void resetProgress();
+
+public slots:
+ void workerResult(const Worker::Results_t&);
+
+private slots:
+ void settingsWindow();
+ void updateButton();
+ void showButtonContext(const QPoint&);
+ void openDiscordInvite();
+ void openWebsite();
+
+signals:
+ void workerOperate(const Worker::Tasks_t&);
+
+};
+#endif // MAINWINDOW_HPP