2025-02-15 11:50:15 +08:00
|
|
|
#ifndef DATA_CONFIG_H
|
|
|
|
#define DATA_CONFIG_H
|
|
|
|
#include <QString>
|
|
|
|
#include <QPushButton>
|
2025-02-18 10:55:51 +08:00
|
|
|
#include <QList>
|
2025-02-15 11:50:15 +08:00
|
|
|
|
2025-02-18 10:55:51 +08:00
|
|
|
#define CHANNLE_COUNT 4
|
2025-02-15 11:50:15 +08:00
|
|
|
typedef struct {
|
|
|
|
int slot;
|
|
|
|
int slot_type;
|
|
|
|
QString chan_display;
|
|
|
|
QString rack_type;
|
|
|
|
QPushButton* slot_btn;
|
|
|
|
}SlotConfig;
|
|
|
|
|
|
|
|
|
|
|
|
enum SlotType{
|
|
|
|
POWER = 10,
|
|
|
|
CONFIG = 20,
|
|
|
|
KEYPHASOR = 25,
|
|
|
|
RELAY = 30,
|
|
|
|
VIBRATE = 40,
|
|
|
|
RPM = 50
|
|
|
|
};
|
2025-02-18 10:55:51 +08:00
|
|
|
|
|
|
|
typedef struct{
|
|
|
|
int id;
|
|
|
|
QString channle_name;
|
|
|
|
bool standby;
|
|
|
|
bool active;
|
|
|
|
QString rack_type;
|
|
|
|
QString tmr_group;
|
|
|
|
QString channel_type;
|
|
|
|
QString transducer_name;
|
|
|
|
QString scale_factor;
|
|
|
|
QString sample_rate;
|
|
|
|
float normal_voltage_low;
|
|
|
|
float normal_voltage_high;
|
|
|
|
}SeismicMonitor;
|
2025-02-15 11:50:15 +08:00
|
|
|
#endif // DATA_CONFIG_H
|