TSI_Config/radial_vibration.h

40 lines
971 B
C
Raw Permalink Normal View History

2025-03-20 15:06:41 +08:00
#ifndef RADIAL_VIBRATION_H
#define RADIAL_VIBRATION_H
#include <QWidget>
#include "data_config.h"
namespace Ui {
class Radial_vibration;
}
2025-03-28 10:17:18 +08:00
class Radial_vibration : public QWidget {
2025-03-20 15:06:41 +08:00
Q_OBJECT
2025-03-28 10:17:18 +08:00
public:
explicit Radial_vibration(int slot_no_, int channel_, bool active, QWidget *parent = nullptr);
2025-03-20 15:06:41 +08:00
~Radial_vibration();
int slot_no;
int channel;
2025-03-28 10:17:18 +08:00
private slots:
2025-03-20 15:06:41 +08:00
void on_pushButton_confirm_clicked();
2025-03-28 10:17:18 +08:00
void on_pushButton_cancel_clicked();
2025-03-20 15:06:41 +08:00
void on_pushButton_set_default_clicked();
2025-03-28 15:32:39 +08:00
void on_checkBox_1x_ampl_toggled(bool checked);
void on_checkBox_2x_ampl_toggled(bool checked);
void on_checkBox_not_1x_ampl_toggled(bool checked);
void on_checkBox_smax_ampl_toggled(bool checked);
2025-03-28 10:17:18 +08:00
private:
2025-03-20 15:06:41 +08:00
Ui::Radial_vibration *ui;
Filter filter[3];
Dealy delay;
Variables variables[6];
Alert_Variables alert_variables;
void readJsonFile(const QString &filePath);
void Init();
};
#endif // RADIAL_VIBRATION_H