64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
|
|
#include "copy_channel.h"
|
||
|
|
#include "ui_copy_channel.h"
|
||
|
|
|
||
|
|
CopyChannel::CopyChannel(QWidget *parent) :
|
||
|
|
QWidget(parent),
|
||
|
|
ui(new Ui::CopyChannel)
|
||
|
|
{
|
||
|
|
ui->setupUi(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
CopyChannel::~CopyChannel()
|
||
|
|
{
|
||
|
|
delete ui;
|
||
|
|
}
|
||
|
|
|
||
|
|
void CopyChannel::on_radioButton_ch1_clicked(bool checked)
|
||
|
|
{
|
||
|
|
if(checked){
|
||
|
|
ui->checkBox_ch1->setChecked(false);
|
||
|
|
ui->checkBox_ch1->setEnabled(false);
|
||
|
|
}
|
||
|
|
ui->checkBox_ch2->setEnabled(true);
|
||
|
|
ui->checkBox_ch3->setEnabled(true);
|
||
|
|
ui->checkBox_ch4->setEnabled(true);
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
void CopyChannel::on_radioButton_ch2_clicked(bool checked)
|
||
|
|
{
|
||
|
|
if(checked){
|
||
|
|
ui->checkBox_ch2->setChecked(false);
|
||
|
|
ui->checkBox_ch2->setEnabled(false);
|
||
|
|
}
|
||
|
|
ui->checkBox_ch1->setEnabled(true);
|
||
|
|
ui->checkBox_ch3->setEnabled(true);
|
||
|
|
ui->checkBox_ch4->setEnabled(true);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
void CopyChannel::on_radioButton_ch3_clicked(bool checked)
|
||
|
|
{
|
||
|
|
if(checked){
|
||
|
|
ui->checkBox_ch3->setChecked(false);
|
||
|
|
ui->checkBox_ch3->setEnabled(false);
|
||
|
|
}
|
||
|
|
ui->checkBox_ch2->setEnabled(true);
|
||
|
|
ui->checkBox_ch1->setEnabled(true);
|
||
|
|
ui->checkBox_ch4->setEnabled(true);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
void CopyChannel::on_radioButton_ch4_clicked(bool checked)
|
||
|
|
{
|
||
|
|
if(checked){
|
||
|
|
ui->checkBox_ch4->setChecked(false);
|
||
|
|
ui->checkBox_ch4->setEnabled(false);
|
||
|
|
}
|
||
|
|
ui->checkBox_ch2->setEnabled(true);
|
||
|
|
ui->checkBox_ch3->setEnabled(true);
|
||
|
|
ui->checkBox_ch1->setEnabled(true);
|
||
|
|
}
|
||
|
|
|