TSI_Config/keyphase.h

35 lines
910 B
C
Raw Normal View History

2024-12-17 18:53:41 +08:00
#ifndef KEYPHASE_H
#define KEYPHASE_H
2025-04-02 14:28:53 +08:00
#include <memory>
2024-12-17 18:53:41 +08:00
#include <QDialog>
2025-03-23 14:03:48 +08:00
#include "data_config.h"
2025-04-02 14:28:53 +08:00
#include "keyphase_data.h"
2024-12-17 18:53:41 +08:00
namespace Ui {
class KeyPhase;
}
2025-03-27 10:16:01 +08:00
class KeyPhase : public QDialog {
2024-12-17 18:53:41 +08:00
Q_OBJECT
2025-03-27 10:16:01 +08:00
public:
explicit KeyPhase(int slot_no_,int cardtype, QWidget *parent = nullptr);
2024-12-17 18:53:41 +08:00
~KeyPhase();
2025-03-23 14:03:48 +08:00
int slot_no;
CardType car_type;
2025-03-27 10:16:01 +08:00
private slots:
2025-02-18 10:55:51 +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-03-27 10:16:01 +08:00
private:
2024-12-17 18:53:41 +08:00
Ui::KeyPhase *ui;
2025-04-02 14:28:53 +08:00
void UpdateData(std::shared_ptr<KeyphaseData> &keyphase_data);
// TachometerVariables keyphase_variables[4];
// void readJsonFile(const QString &filePath);
2025-03-23 14:03:48 +08:00
void Init();
2024-12-17 18:53:41 +08:00
};
#endif // KEYPHASE_H