mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-21 06:02:29 +08:00
2b6237dd4c
* need to test
* works
* reduce diff
* refactor
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: dab2e1298b
30 lines
561 B
C++
30 lines
561 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include <QStackedLayout>
|
|
|
|
#include "offroad/settings.hpp"
|
|
#include "offroad/onboarding.hpp"
|
|
#include "home.hpp"
|
|
|
|
class MainWindow : public QWidget {
|
|
Q_OBJECT
|
|
|
|
protected:
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
|
|
private:
|
|
QStackedLayout *main_layout;
|
|
HomeWindow *homeWindow;
|
|
SettingsWindow *settingsWindow;
|
|
OnboardingWindow *onboardingWindow;
|
|
|
|
public slots:
|
|
void offroadTransition(bool offroad);
|
|
void openSettings();
|
|
void closeSettings();
|
|
};
|