Files
clearpilot/selfdrive/ui/qt/ready.h
Comma Device 1ff14d346f wip
2024-05-14 08:21:27 +00:00

31 lines
704 B
C++
Executable File

#pragma once
#include <QMovie>
#include <QLabel>
#include <QPushButton>
#include <QPixmap>
#include <QProgressBar>
#include <QSocketNotifier>
#include <QVariantAnimation>
#include <QWidget>
#include <QTimer>
#include "common/util.h"
#include "selfdrive/ui/ui.h"
class ReadyWindow : public QWidget {
Q_OBJECT
public:
ReadyWindow(QWidget* parent = nullptr);
private:
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
void refresh();
void paintEvent(QPaintEvent *event) override;
Params params;
QTimer* timer;
bool is_hot = false;
QString cur_temp;
QPixmap img_ready;
QPixmap img_hot;
};