qpidctrl  0.7.1
qeurothermdevicedialog.cpp
Go to the documentation of this file.
2 #include "ui_qeurothermdevicedialog.h"
3 #include "qeurothermdevice.h"
4 #include "qpiddebug.h"
5 
7  QDialog(),
8  ui(new Ui::QEurothermDeviceDialog),
9  m_Device(device)
10 {
11  ui->setupUi(this);
12 
14 
15  if (dev) {
16  ui->m_PidDeviceSettings->setDevice(dev);
17 
18  connect(ui->m_Test1Button, SIGNAL(clicked()), dev.data(), SLOT(runTest1()));
19  connect(ui->m_Test2Button, SIGNAL(clicked()), dev.data(), SLOT(runTest2()));
20  }
21 }
22 
24 {
25  delete ui;
26 }
27 
29 {
31 
32  if (dev) {
33  if (qcepDebug(DEBUG_EUROTHERM)) {
34  dev->printMessage("QEurothermDeviceDialog::accept");
35  }
36 
37  ui->m_PidDeviceSettings->accept();
38  }
39 
40  QDialog::accept();
41 }
Ui::QEurothermDeviceDialog * ui
QEurothermDeviceWPtr m_Device
QSharedPointer< QEurothermDevice > QEurothermDevicePtr
QEurothermDeviceDialog(QEurothermDeviceWPtr device)
QWeakPointer< QEurothermDevice > QEurothermDeviceWPtr