mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 22:53:55 +08:00
* 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>
32 lines
587 B
C++
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);
|
|
};
|