mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 11:23:49 +08:00
31 lines
602 B
C++
31 lines
602 B
C++
#pragma once
|
|
|
|
#include "selfdrive/ui/qt/onroad/buttons.h"
|
|
|
|
class DrivingPersonalityButton : public QPushButton {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DrivingPersonalityButton(QWidget *parent = 0);
|
|
|
|
void updateState(const UIState &s, const FrogPilotUIState &fs);
|
|
|
|
private:
|
|
void paintEvent(QPaintEvent *event) override;
|
|
void showEvent(QShowEvent *event) override;
|
|
void updateTheme();
|
|
|
|
bool theme_updated;
|
|
bool traffic_mode_active;
|
|
|
|
int personality;
|
|
|
|
Params params_memory{"", true};
|
|
|
|
QMap<int, QPair<QPixmap, QSharedPointer<QMovie>>> icon_map;
|
|
|
|
QMovie *currentGif;
|
|
|
|
QPixmap currentImg;
|
|
};
|