2 #include "ui_cctwqtsetupcomparedialog.h"
5 #include <QtConcurrentRun>
15 setAttribute(Qt::WA_DeleteOnClose);
18 ui->m_FileName1->setText(
m_Data->get_FilePath1());
19 ui->m_DatasetName1->setText(
m_Data->get_Dataset1());
21 ui->m_FileName2->setText(
m_Data->get_FilePath2());
22 ui->m_DatasetName2->setText(
m_Data->get_Dataset2());
24 ui->m_CompareRigorously->setChecked(
m_Data->get_CompareRigorously());
25 ui->m_CompareApproximately->setChecked(
m_Data->get_CompareApproximately());
28 connect(
ui->m_BrowseFile1, SIGNAL(clicked()),
this, SLOT(
browse1()));
29 connect(
ui->m_BrowseFile2, SIGNAL(clicked()),
this, SLOT(
browse2()));
40 m_Data->set_FilePath1(
ui->m_FileName1->text());
41 m_Data->set_Dataset1(
ui->m_DatasetName1->text());
43 m_Data->set_FilePath2(
ui->m_FileName2->text());
44 m_Data->set_Dataset2(
ui->m_DatasetName2->text());
46 m_Data->set_CompareRigorously(
ui->m_CompareRigorously->isChecked());
47 m_Data->set_CompareApproximately(
ui->m_CompareApproximately->isChecked());
58 QString path = QFileDialog::getOpenFileName(
this,
"File 1",
ui->m_FileName1->text());
60 if (path.length() > 0) {
61 ui->m_FileName1->setText(path);
67 QString path = QFileDialog::getOpenFileName(
this,
"File 2",
ui->m_FileName2->text());
69 if (path.length() > 0) {
70 ui->m_FileName2->setText(path);
CctwqtSetupCompareDialog(CctwqtMainWindow *parent, CctwComparer *data)
Ui::CctwqtSetupCompareDialog * ui
~CctwqtSetupCompareDialog()