diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-09 19:47:50 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-09 19:47:50 +0530 |
| commit | 61f99089288138989cf244d174882aa5088b738b (patch) | |
| tree | ea1202b098b92e85b16e670d1c3ea1b86fcaef58 /include/widgets/MainWindow.hpp | |
| parent | 1e2302be2b47fbeb340db7482ed8476c829a7f66 (diff) | |
| download | null-browser-61f99089288138989cf244d174882aa5088b738b.tar.gz null-browser-61f99089288138989cf244d174882aa5088b738b.zip | |
Refactor directory structure
Diffstat (limited to 'include/widgets/MainWindow.hpp')
| -rw-r--r-- | include/widgets/MainWindow.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/widgets/MainWindow.hpp b/include/widgets/MainWindow.hpp new file mode 100644 index 0000000..8ba0ed9 --- /dev/null +++ b/include/widgets/MainWindow.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include <QMainWindow> +#include <QObject> +#include <QWebEngineView> + +#include "widgets/BrowserManager.hpp" +#include "widgets/CommandInput.hpp" + +class MainWindow : public QMainWindow { +public: + MainWindow(); + +protected: + void keyPressEvent(QKeyEvent *event) override; + void toggleURLInput(); + void evaluateCommand(QString command); + void hideURLInput(); + void showURLInput(); + +private: + BrowserManager *browserManager; + CommandInput *commandInput; +}; |
