33 lines
674 B
C++
33 lines
674 B
C++
#ifndef DC_OUTPUT_CHANNEL_H
|
|
#define DC_OUTPUT_CHANNEL_H
|
|
|
|
#include <QWidget>
|
|
#include <QRadioButton>
|
|
|
|
namespace Ui {
|
|
class DC_Output_Channel;
|
|
}
|
|
|
|
class DC_Output_Channel : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DC_Output_Channel(QString unit_str_,QWidget *parent = nullptr);
|
|
~DC_Output_Channel();
|
|
signals:
|
|
void output_channel_data_sg(int channel,float minmun,float maxmum);
|
|
private slots:
|
|
void on_pushButton_confirm_clicked();
|
|
|
|
void on_pushButton_cancel_clicked();
|
|
|
|
private:
|
|
Ui::DC_Output_Channel *ui;
|
|
QString unit_str;
|
|
QRadioButton *radiobtn[4];
|
|
bool channel_used[4] = {false,false,false,false};
|
|
};
|
|
|
|
#endif // DC_OUTPUT_CHANNEL_H
|