TSI_Config/acceleration.h

42 lines
815 B
C
Raw Normal View History

2024-12-17 18:53:41 +08:00
#ifndef ACCELERATION_H
#define ACCELERATION_H
#include <QWidget>
2025-02-25 11:18:20 +08:00
#include "data_config.h"
2024-12-17 18:53:41 +08:00
namespace Ui {
2024-12-18 17:14:41 +08:00
class Acceleration;
2024-12-17 18:53:41 +08:00
}
2025-03-28 10:17:18 +08:00
class Acceleration : public QWidget {
2024-12-17 18:53:41 +08:00
Q_OBJECT
2025-03-28 10:17:18 +08:00
public:
explicit Acceleration(int slot_no_, int channel_, bool active, QWidget *parent = nullptr);
2024-12-18 17:14:41 +08:00
~Acceleration();
2025-02-25 11:18:20 +08:00
int slot_no;
int channel;
2025-03-28 10:17:18 +08:00
private slots:
2025-02-25 11:18:20 +08:00
void on_pushButton_confirm_clicked();
2024-12-17 18:53:41 +08:00
2025-03-20 14:38:14 +08:00
void on_pushButton_set_default_clicked();
void on_pushButton_cancel_clicked();
2025-03-28 10:17:18 +08:00
void on_1x_ampl_toggled(bool checked);
void on_2x_ampl_toggled(bool checked);
2025-03-28 10:17:18 +08:00
private:
2024-12-18 17:14:41 +08:00
Ui::Acceleration *ui;
2025-02-25 11:18:20 +08:00
Filter filter[3];
Dealy delay;
Variables variables[4];
Alert_Variables alert_variables;
void readJsonFile(const QString &filePath);
void Init();
2024-12-17 18:53:41 +08:00
};
#endif // ACCELERATION_H