Files
sunnypilot/selfdrive/ui/qt/setup/setup.h
Cameron Clough 79e6910106 setup: detailed error messages (#27429)
* setup: specific error state for non-executable file

* Result -> DownloadResult

* complete -> finished

* rename widgets to be more consistent

* fix typos

* fix setCurrentIndex

This appears to have different behaviour on device than on PC (off by
one)

* load fonts

* copy

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Revert "load fonts"

This reverts commit e8756598ed99aea39ef5721453e97920a494051c.

* font family

* undo

* less widgets more better

* font size

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-23 19:45:48 -08:00

32 lines
587 B
C++

#pragma once
#include <QLabel>
#include <QStackedWidget>
#include <QString>
#include <QWidget>
class Setup : public QStackedWidget {
Q_OBJECT
public:
explicit Setup(QWidget *parent = 0);
private:
QWidget *low_voltage();
QWidget *getting_started();
QWidget *network_setup();
QWidget *downloading();
QWidget *download_failed(QLabel *url, QLabel *body);
QWidget *failed_widget;
QWidget *downloading_widget;
signals:
void finished(const QString &url, const QString &error = "");
public slots:
void nextPage();
void prevPage();
void download(QString url);
};