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"
|
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_, QWidget *parent = nullptr);
|
2024-12-17 18:53:41 +08:00
|
|
|
~Tachometer();
|
2025-03-21 10:42:24 +08:00
|
|
|
int slot_no;
|
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-23 14:03:48 +08:00
|
|
|
|
2025-03-27 10:16:01 +08:00
|
|
|
private:
|
2024-12-17 18:53:41 +08:00
|
|
|
Ui::Tachometer *ui;
|
2025-03-21 10:42:24 +08:00
|
|
|
|
|
|
|
Tachometer_Variables tachometer_variables[4];
|
|
|
|
|
|
|
|
void readJsonFile(const QString &filePath);
|
|
|
|
void Init();
|
2024-12-17 18:53:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TACHOMETER_H
|