mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 22:22:11 +08:00
5f96a3407b
* works * move the param deletion * clean that up * Revert "move the param deletion" This reverts commit 31d8a65f004e7bcf14d29465a9c9d6db03e9dee7. * clean up Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 806226820cb76c83a33dc0f83cc4d67e8c657226
31 lines
591 B
C++
31 lines
591 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();
|
|
void reviewTrainingGuide();
|
|
};
|