blob: b64bf8c9c8f332fd8a77cb0c2017c100e73c3ceb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include <QMainWindow>
#include <QObject>
#include <QStackedLayout>
#include <QWebEngineView>
#include "LuaRuntime.hpp"
#include "widgets/BrowserManager.hpp"
#include "widgets/InputLine.hpp"
class MainWindow : public QMainWindow {
public:
MainWindow();
protected:
void keyPressEvent(QKeyEvent *event) override;
void evaluateCommand(QString command);
void hideInputLine();
void showInputLine();
void showURLInput(QString url = "");
void showCommandInput(QString command = "");
private:
BrowserManager *browserManager;
InputLine *inputLine;
LuaRuntime *luaRuntime;
QStackedLayout *layout;
};
|