Files
StarPilot/selfdrive/ui/qt/window.hpp
T
iejMac 5f96a3407b review training guide button (#20466)
* 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
2021-03-25 17:36:44 -07:00

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();
};