mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
9a827fea20
* c++ cleanup: standardize file extensions to .cc and .h * cleanup files_common old-commit-hash: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
35 lines
637 B
C++
35 lines
637 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include <QStackedLayout>
|
|
|
|
#include "offroad/settings.h"
|
|
#include "offroad/onboarding.h"
|
|
#include "home.h"
|
|
#include "../ui.h"
|
|
|
|
class MainWindow : public QWidget {
|
|
Q_OBJECT
|
|
|
|
protected:
|
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
|
|
private:
|
|
Device device;
|
|
QUIState qs;
|
|
|
|
QStackedLayout *main_layout;
|
|
HomeWindow *homeWindow;
|
|
SettingsWindow *settingsWindow;
|
|
OnboardingWindow *onboardingWindow;
|
|
|
|
public slots:
|
|
void offroadTransition(bool offroad);
|
|
void openSettings();
|
|
void closeSettings();
|
|
void reviewTrainingGuide();
|
|
};
|