46 lines
969 B
C++
46 lines
969 B
C++
#ifndef DC_OUTPUTS_H
|
|
#define DC_OUTPUTS_H
|
|
|
|
#include <QWidget>
|
|
#include "data_config.h"
|
|
#include "vibrationdata.h"
|
|
|
|
namespace Ui {
|
|
class DC_Outputs;
|
|
}
|
|
|
|
class DC_Outputs : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DC_Outputs(int slot_no_,int cardtype,QWidget *parent = nullptr);
|
|
~DC_Outputs();
|
|
int slot_no;
|
|
CardType car_type;
|
|
private slots:
|
|
void on_comboBox_ch_output_activated(int index);
|
|
|
|
void on_pushButton_confirm_clicked();
|
|
|
|
void on_pushButton_cancel_clicked();
|
|
|
|
void output_channel_data(int channel,float minmun,float maxmum,int not_used);
|
|
|
|
void on_comboBox_ch_output_currentIndexChanged(int index);
|
|
|
|
private:
|
|
Ui::DC_Outputs *ui;
|
|
std::shared_ptr<VibrationData> vib_dc_output_ptr = nullptr;
|
|
void Init();
|
|
QString GetUnit(int com_index);
|
|
QLabel *label_ch1[5];
|
|
QLabel *label_ch2[5];
|
|
QLabel *label_ch3[5];
|
|
QLabel *label_ch4[5];
|
|
int current_index;
|
|
QString unit;
|
|
};
|
|
|
|
#endif // DC_OUTPUTS_H
|