You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
568 B
35 lines
568 B
4 years ago
|
#pragma once
|
||
4 years ago
|
#include <map>
|
||
4 years ago
|
|
||
4 years ago
|
#include <QFrame>
|
||
4 years ago
|
#include <QPushButton>
|
||
4 years ago
|
#include <QLabel>
|
||
4 years ago
|
|
||
4 years ago
|
#include "common/params.h"
|
||
4 years ago
|
#include "widgets/scrollview.h"
|
||
4 years ago
|
|
||
4 years ago
|
class OffroadAlert : public QFrame {
|
||
4 years ago
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit OffroadAlert(QWidget *parent = 0);
|
||
4 years ago
|
int alertCount = 0;
|
||
4 years ago
|
bool updateAvailable;
|
||
4 years ago
|
|
||
|
private:
|
||
4 years ago
|
Params params;
|
||
|
QLabel releaseNotes;
|
||
|
std::map<std::string, QLabel*> alerts;
|
||
|
QPushButton rebootBtn;
|
||
|
void updateAlerts();
|
||
4 years ago
|
|
||
4 years ago
|
ScrollView *releaseNotesScroll;
|
||
|
ScrollView *alertsScroll;
|
||
|
|
||
4 years ago
|
signals:
|
||
|
void closeAlerts();
|
||
|
|
||
|
public slots:
|
||
|
void refresh();
|
||
|
};
|