mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-20 08:02:07 +08:00
3966599e9d
* Revert "Revert "ui: sunnypilot offroad UI" (#511)" This reverts commit0e264e1b05. * Revert "move files to sp dir" This reverts commitc72d732259. * remove drive stats for now * update translation * update onboarding * remove sp onboarding for now * rearrange * remove more * shorter license
29 lines
734 B
C++
29 lines
734 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) : MainWindow(parent, nullptr, nullptr) {}
|
|
|
|
protected:
|
|
explicit MainWindow(QWidget *parent, HomeWindow *hw = nullptr, SettingsWindow *sw = nullptr);
|
|
HomeWindow *homeWindow;
|
|
SettingsWindow *settingsWindow;
|
|
virtual void closeSettings();
|
|
|
|
private:
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
void openSettings(int index = 0, const QString ¶m = "");
|
|
|
|
QStackedLayout *main_layout;
|
|
OnboardingWindow *onboardingWindow;
|
|
};
|