TSI_Config/seismic_monitor.h

71 lines
1.8 KiB
C
Raw Normal View History

2025-03-09 11:53:05 +08:00
#ifndef SEISMIC_MONITOR_H
#define SEISMIC_MONITOR_H
#include <QWidget>
#include "data_config.h"
2025-04-01 15:03:59 +08:00
#include "vibrationdata.h"
2025-03-09 11:53:05 +08:00
namespace Ui {
class Seismic_monitor;
}
2025-04-01 15:03:59 +08:00
class Seismic_monitor : public QWidget {
2025-03-09 11:53:05 +08:00
Q_OBJECT
2025-04-01 15:03:59 +08:00
public:
explicit Seismic_monitor(int slot,int cardtype, QWidget *parent = nullptr);
2025-03-09 11:53:05 +08:00
~Seismic_monitor();
int slot_no;
int channel;
CardType car_type;
2025-04-01 15:03:59 +08:00
private slots:
2025-03-09 11:53:05 +08:00
void on_pushButton_confirm_clicked();
void on_pushButton_set_default_clicked();
void on_pushButton_config_1_clicked();
2025-03-11 16:42:00 +08:00
void on_pushButton_config_3_clicked();
2025-03-25 10:47:13 +08:00
void on_pushButton_config_2_clicked();
void on_pushButton_config_4_clicked();
void on_comboBox_chan_type_1_currentTextChanged(const QString &arg1);
void on_comboBox_chan_type_2_currentTextChanged(const QString &arg1);
void on_comboBox_chan_type_3_currentTextChanged(const QString &arg1);
void on_comboBox_chan_type_4_currentTextChanged(const QString &arg1);
void on_pushButton_cancel_clicked();
void on_comboBox_transducer_name_1_currentTextChanged(const QString &arg1);
void on_comboBox_transducer_name_2_currentTextChanged(const QString &arg1);
void on_comboBox_transducer_name_3_currentTextChanged(const QString &arg1);
void on_comboBox_transducer_name_4_currentTextChanged(const QString &arg1);
2025-04-01 15:03:59 +08:00
private:
2025-03-09 11:53:05 +08:00
Ui::Seismic_monitor *ui;
2025-04-01 15:03:59 +08:00
void UpdateData(std::shared_ptr<VibrationData> vib_data);
2025-03-09 11:53:05 +08:00
int card_type;
2025-04-01 15:03:59 +08:00
// void readJsonFile(const QString &filePath);
// SeismicMonitor seismic_monitor[CHANNLE_COUNT];
QVector<Transducer> vec_transducer;
2025-03-09 11:53:05 +08:00
void Init();
void EnableKeyphase();
2025-07-09 20:24:50 +08:00
void EnableKeyphase2();
void EnableKeyphase3();
void EnableKeyphase4();
void DisableKeyphase();
2025-07-09 20:24:50 +08:00
void DisableKeyphase2();
void DisableKeyphase3();
void DisableKeyphase4();
2025-03-09 11:53:05 +08:00
};
#endif // SEISMIC_MONITOR_H