cctw  0.2.1
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CctwqtSetupCheckImportDialog Class Reference

#include <cctwqtsetupcheckimportdialog.h>

Inheritance diagram for CctwqtSetupCheckImportDialog:
Inheritance graph
Collaboration diagram for CctwqtSetupCheckImportDialog:
Collaboration graph

Public Slots

void accept ()
 

Public Member Functions

 CctwqtSetupCheckImportDialog (CctwqtMainWindow *parent, CctwImporter *data)
 
 ~CctwqtSetupCheckImportDialog ()
 

Private Member Functions

void setCurrentDirectory (QString dir)
 

Private Attributes

Ui::CctwqtSetupCheckImportDialog * ui
 
CctwqtMainWindowm_Window
 
CctwImporterm_Data
 

Detailed Description

Definition at line 13 of file cctwqtsetupcheckimportdialog.h.

Constructor & Destructor Documentation

CctwqtSetupCheckImportDialog::CctwqtSetupCheckImportDialog ( CctwqtMainWindow parent,
CctwImporter data 
)
explicit

Definition at line 8 of file cctwqtsetupcheckimportdialog.cpp.

References m_Data, setCurrentDirectory(), and ui.

8  :
9  QDialog(parent),
10  ui(new Ui::CctwqtSetupCheckImportDialog),
11  m_Window(parent),
12  m_Data(data)
13 {
14  ui->setupUi(this);
15 
16  setAttribute(Qt::WA_DeleteOnClose);
17 
18  if (m_Data) {
19  ui->m_DarkImagePath->setText(m_Data->get_DarkImagePath());
20  setCurrentDirectory(m_Data->get_ImageDirectory());
21  ui->m_DataImages->addItems(m_Data->get_ImagePaths());
22  ui->m_OutputPath->setText(m_Data->get_OutputPath());
23 
24  ui->m_CheckRigorously->setChecked(m_Data->get_CheckRigorously());
25  ui->m_CheckApproximately->setChecked(m_Data->get_CheckApproximately());
26  }
27 }
Ui::CctwqtSetupCheckImportDialog * ui
CctwqtSetupCheckImportDialog::~CctwqtSetupCheckImportDialog ( )

Definition at line 29 of file cctwqtsetupcheckimportdialog.cpp.

References ui.

30 {
31  delete ui;
32 }
Ui::CctwqtSetupCheckImportDialog * ui

Member Function Documentation

void CctwqtSetupCheckImportDialog::accept ( )
slot

Definition at line 34 of file cctwqtsetupcheckimportdialog.cpp.

References CctwImporter::checkImportedData(), m_Data, and ui.

35 {
36  if (m_Data) {
37  m_Data->set_CheckRigorously(ui->m_CheckRigorously->isChecked());
38  m_Data->set_CheckApproximately(ui->m_CheckApproximately->isChecked());
39  }
40 
41  QtConcurrent::run(m_Data, &CctwImporter::checkImportedData);
42 // QMetaObject::invokeMethod(m_Data, "checkImportedData", Qt::QueuedConnection);
43 
44  QDialog::accept();
45 }
void checkImportedData()
Ui::CctwqtSetupCheckImportDialog * ui
void CctwqtSetupCheckImportDialog::setCurrentDirectory ( QString  dir)
private

Definition at line 47 of file cctwqtsetupcheckimportdialog.cpp.

References ui.

Referenced by CctwqtSetupCheckImportDialog().

48 {
49  ui->m_DataDirectory->setText(dir);
50 }
Ui::CctwqtSetupCheckImportDialog * ui

Member Data Documentation

CctwImporter* CctwqtSetupCheckImportDialog::m_Data
private

Definition at line 30 of file cctwqtsetupcheckimportdialog.h.

Referenced by accept(), and CctwqtSetupCheckImportDialog().

CctwqtMainWindow* CctwqtSetupCheckImportDialog::m_Window
private

Definition at line 29 of file cctwqtsetupcheckimportdialog.h.

Ui::CctwqtSetupCheckImportDialog* CctwqtSetupCheckImportDialog::ui
private

The documentation for this class was generated from the following files: