mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 05:22:07 +08:00
2b6237dd4c
* need to test * works * reduce diff * refactor Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: dab2e1298b62991e57123972a34167a3ce62de8a
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();
|
|
};
|