2025-03-20 15:06:41 +08:00
|
|
|
#ifndef VELOCITY_H
|
|
|
|
#define VELOCITY_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "data_config.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class Velocity;
|
|
|
|
}
|
|
|
|
|
2025-03-28 10:17:18 +08:00
|
|
|
class Velocity : public QWidget {
|
2025-03-20 15:06:41 +08:00
|
|
|
Q_OBJECT
|
|
|
|
|
2025-03-28 10:17:18 +08:00
|
|
|
public:
|
|
|
|
explicit Velocity(int slot_no_, int channel_, bool active, QWidget *parent = nullptr);
|
2025-03-20 15:06:41 +08:00
|
|
|
~Velocity();
|
|
|
|
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-26 16:20:19 +08:00
|
|
|
void on_pushButton_cancel_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_rms_toggled(bool checked);
|
|
|
|
void on_checkBox_integrate_toggled(bool checked);
|
2025-03-26 16:20:19 +08:00
|
|
|
|
2025-03-28 10:17:18 +08:00
|
|
|
private:
|
2025-03-20 15:06:41 +08:00
|
|
|
Ui::Velocity *ui;
|
|
|
|
|
2025-04-01 15:03:59 +08:00
|
|
|
// Filter filter[3];
|
|
|
|
// Dealy delay;
|
|
|
|
// Variables variables[4];
|
|
|
|
// Alert_Variables alert_variables;
|
2025-03-20 15:06:41 +08:00
|
|
|
|
2025-04-01 15:03:59 +08:00
|
|
|
// void readJsonFile(const QString &filePath);
|
2025-03-20 15:06:41 +08:00
|
|
|
void Init();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VELOCITY_H
|