mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-29 10:53:53 +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: 7222d0f20d
40 lines
737 B
C++
40 lines
737 B
C++
#include <array>
|
|
|
|
#include <QLabel>
|
|
#include <QOpenGLWidget>
|
|
#include <QPixmap>
|
|
#include <QProgressBar>
|
|
#include <QSocketNotifier>
|
|
#include <QVariantAnimation>
|
|
#include <QWidget>
|
|
|
|
constexpr int spinner_fps = 30;
|
|
constexpr QSize spinner_size = QSize(360, 360);
|
|
|
|
class TrackWidget : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
TrackWidget(QWidget *parent = nullptr);
|
|
|
|
private:
|
|
void paintEvent(QPaintEvent *event) override;
|
|
std::array<QPixmap, spinner_fps> track_imgs;
|
|
QPixmap comma_img;
|
|
QVariantAnimation m_anim;
|
|
};
|
|
|
|
class Spinner : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Spinner(QWidget *parent = 0);
|
|
|
|
private:
|
|
QLabel *text;
|
|
QProgressBar *progress_bar;
|
|
QSocketNotifier *notifier;
|
|
|
|
public slots:
|
|
void update(int n);
|
|
};
|