-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter_pt.cpp
69 lines (55 loc) · 1.24 KB
/
filter_pt.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include "filter_pt.h"
#include "ui_filter_pt.h"
Filter_pt::Filter_pt(QWidget *parent) :
QDialog(parent),
ui(new Ui::Filter_pt)
{
ui->setupUi(this);
}
Filter_pt::~Filter_pt()
{
delete ui;
}
void Filter_pt::on_radioButton_clicked()
{
if(ui->radioButton->isChecked()) {
ui->radioButton_2->setChecked(false);
ui->radioButton_3->setChecked(false);
axis="x";
}
}
void Filter_pt::on_radioButton_2_clicked()
{
if(ui->radioButton_2->isChecked()) {
ui->radioButton->setChecked(false);
ui->radioButton_3->setChecked(false);
axis="y";
}
}
void Filter_pt::on_radioButton_3_clicked()
{
if(ui->radioButton_3->isChecked()) {
ui->radioButton_2->setChecked(false);
ui->radioButton->setChecked(false);
axis="z";
}
}
void Filter_pt::on_checkBox_clicked()
{
if(ui->checkBox->isChecked()) {
ui->checkBox_2->setChecked(false);
isSave="0";
}
}
void Filter_pt::on_checkBox_2_clicked()
{
if(ui->checkBox_2->isChecked()) {
ui->checkBox->setChecked(false);
isSave="1";
}
}
void Filter_pt::on_buttonBox_accepted()
{
emit sendData(ui->lineEdit->text(), ui->lineEdit_2->text(), axis, isSave);
this->close();
}