mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-21 21:12:06 +08:00
abffb4db29
* refactor onboarding
* skip training guide if is dashcam
* apply review
* cleanup include
* move public ctro up
* slots is private
* cleanup headers
* set style sheet in onboardingwindow
* rebase master
* match ui
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8781f586c5
29 lines
570 B
C++
29 lines
570 B
C++
#pragma once
|
|
|
|
#include <QStackedLayout>
|
|
#include <QWidget>
|
|
|
|
#include "selfdrive/ui/qt/home.h"
|
|
#include "selfdrive/ui/qt/offroad/onboarding.h"
|
|
#include "selfdrive/ui/qt/offroad/settings.h"
|
|
|
|
class MainWindow : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
|
|
private:
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
void openSettings();
|
|
void closeSettings();
|
|
|
|
Device device;
|
|
QUIState qs;
|
|
|
|
QStackedLayout *main_layout;
|
|
HomeWindow *homeWindow;
|
|
SettingsWindow *settingsWindow;
|
|
OnboardingWindow *onboardingWindow;
|
|
};
|