You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
637 B
35 lines
637 B
5 years ago
|
#pragma once
|
||
|
|
||
|
#include <QWidget>
|
||
|
#include <QStackedLayout>
|
||
|
|
||
4 years ago
|
#include "offroad/settings.h"
|
||
|
#include "offroad/onboarding.h"
|
||
|
#include "home.h"
|
||
|
#include "../ui.h"
|
||
4 years ago
|
|
||
|
class MainWindow : public QWidget {
|
||
|
Q_OBJECT
|
||
|
|
||
|
protected:
|
||
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
||
|
|
||
|
public:
|
||
|
explicit MainWindow(QWidget *parent = 0);
|
||
|
|
||
|
private:
|
||
4 years ago
|
Device device;
|
||
|
QUIState qs;
|
||
|
|
||
4 years ago
|
QStackedLayout *main_layout;
|
||
4 years ago
|
HomeWindow *homeWindow;
|
||
4 years ago
|
SettingsWindow *settingsWindow;
|
||
|
OnboardingWindow *onboardingWindow;
|
||
|
|
||
|
public slots:
|
||
4 years ago
|
void offroadTransition(bool offroad);
|
||
4 years ago
|
void openSettings();
|
||
|
void closeSettings();
|
||
4 years ago
|
void reviewTrainingGuide();
|
||
4 years ago
|
};
|