mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-27 00:42:05 +08:00
1a0a638740
* setup: replace software selection widget with input dialog * revert https://github.com/commaai/openpilot/pull/21617/commits/3f7047651c31b209c9c4a0b8ff7bd408aca3f9e5
31 lines
511 B
C++
31 lines
511 B
C++
#pragma once
|
|
|
|
#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();
|
|
|
|
QWidget *failed_widget;
|
|
QWidget *downloading_widget;
|
|
|
|
signals:
|
|
void finished(bool success);
|
|
|
|
public slots:
|
|
void nextPage();
|
|
void prevPage();
|
|
void download(QString url);
|
|
};
|