TSI_Config/tachometer.h

39 lines
994 B
C
Raw Permalink Normal View History

2024-12-17 18:53:41 +08:00
#ifndef TACHOMETER_H
#define TACHOMETER_H
#include <QDialog>
2025-03-21 10:42:24 +08:00
#include "data_config.h"
2025-04-02 14:07:37 +08:00
#include "config_mgr.h"
#include "tachometer_data.h"
2024-12-17 18:53:41 +08:00
namespace Ui {
class Tachometer;
}
2025-03-27 10:16:01 +08:00
class Tachometer : public QDialog {
2024-12-17 18:53:41 +08:00
Q_OBJECT
2025-03-27 10:16:01 +08:00
public:
explicit Tachometer(int slot_no_,int cardtype, QWidget *parent = nullptr);
2024-12-17 18:53:41 +08:00
~Tachometer();
2025-03-21 10:42:24 +08:00
int slot_no;
CardType car_type;
2025-03-27 10:16:01 +08:00
private slots:
2025-03-23 14:03:48 +08:00
void on_pushButton_confirm_clicked();
2025-03-27 10:16:01 +08:00
void on_pushButton_cancel_clicked();
2025-03-28 10:17:18 +08:00
void on_manual_threshold_1_clicked(bool checked);
void on_manual_threshold_2_clicked(bool checked);
void on_manual_threshold_3_clicked(bool checked);
void on_manual_threshold_4_clicked(bool checked);
2025-04-22 10:11:18 +08:00
void on_radioButton_automatic_threshold_1_clicked();
private:
2024-12-17 18:53:41 +08:00
Ui::Tachometer *ui;
2025-04-02 14:07:37 +08:00
void UpdateData(std::shared_ptr<TachometerData> &speed_data);
// Tachometer_Variables tachometer_variables[4];
2025-03-21 10:42:24 +08:00
2025-04-02 14:07:37 +08:00
// void readJsonFile(const QString &filePath);
2025-03-21 10:42:24 +08:00
void Init();
2024-12-17 18:53:41 +08:00
};
#endif // TACHOMETER_H