aboutsummaryrefslogtreecommitdiff
path: root/include/MainWindow.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/MainWindow.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/MainWindow.hpp b/include/MainWindow.hpp
new file mode 100644
index 0000000..20e07c0
--- /dev/null
+++ b/include/MainWindow.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <QMainWindow>
+#include <QObject>
+#include <QWebEngineView>
+
+#include "CommandInput.hpp"
+
+class MainWindow : public QMainWindow {
+public:
+ MainWindow();
+
+protected:
+ void keyPressEvent(QKeyEvent *event) override;
+ void toggleURLInput();
+ void evaluateCommand(QString command);
+
+private:
+ QWebEngineView *web;
+ CommandInput *urlInputUI;
+};