TSI_Config/dc_output_channel.h

35 lines
725 B
C
Raw Permalink Normal View History

2025-08-04 12:25:12 +08:00
#ifndef DC_OUTPUT_CHANNEL_H
#define DC_OUTPUT_CHANNEL_H
#include <QWidget>
2025-08-04 20:13:21 +08:00
#include <QRadioButton>
2025-08-04 12:25:12 +08:00
namespace Ui {
class DC_Output_Channel;
}
class DC_Output_Channel : public QWidget
{
Q_OBJECT
public:
2025-08-06 22:11:14 +08:00
explicit DC_Output_Channel(int slot_no_,QString unit_str_,int current_index_,QWidget *parent = nullptr);
2025-08-04 12:25:12 +08:00
~DC_Output_Channel();
signals:
2025-08-05 20:49:25 +08:00
void output_channel_data_sg(int channel,float minmun,float maxmum,int not_used);
2025-08-04 12:25:12 +08:00
private slots:
void on_pushButton_confirm_clicked();
void on_pushButton_cancel_clicked();
private:
Ui::DC_Output_Channel *ui;
2025-08-04 20:13:21 +08:00
QString unit_str;
2025-08-05 20:49:25 +08:00
int current_index;
int first_used;
2025-08-06 22:11:14 +08:00
int slot_no;
2025-08-05 20:49:25 +08:00
QRadioButton *radiobtn[5];
2025-08-04 12:25:12 +08:00
};
#endif // DC_OUTPUT_CHANNEL_H