mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 00:33:44 +08:00
e333e4f189
* cleanup include path * continue * format includes * fix testraw.cc * remove include path from SConstruct * regroup * rebase master * almost done * apply review * rename FileReader.xx to filereader.xx * rename Unlogger.x->unlogger.x * rename FrameReader.xx -> framereader.xx * apply reviews * ui.h * continue * fix framebuffer.cc build error:mv util.h up * full path to msm_media_info * fix qcom2 camerad Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
39 lines
649 B
C++
39 lines
649 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
|
|
#include <QFrame>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QVBoxLayout>
|
|
|
|
#include "selfdrive/common/params.h"
|
|
#include "selfdrive/ui/qt/widgets/scrollview.h"
|
|
|
|
class OffroadAlert : public QFrame {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit OffroadAlert(QWidget *parent = 0);
|
|
int alertCount = 0;
|
|
bool updateAvailable;
|
|
|
|
private:
|
|
void updateAlerts();
|
|
|
|
Params params;
|
|
std::map<std::string, QLabel*> alerts;
|
|
|
|
QLabel releaseNotes;
|
|
QPushButton rebootBtn;
|
|
ScrollView *alertsScroll;
|
|
ScrollView *releaseNotesScroll;
|
|
QVBoxLayout *alerts_layout;
|
|
|
|
signals:
|
|
void closeAlerts();
|
|
|
|
public slots:
|
|
void refresh();
|
|
};
|