#include <qptc10devicedialog.h>
Definition at line 11 of file qptc10devicedialog.h.
Definition at line 7 of file qptc10devicedialog.cpp.
References commandEntered(), m_Device, and ui.
9 ui(
new Ui::QPTC10DeviceDialog),
17 ui->m_PidDeviceSettings->setDevice(dev);
19 dev->updateChannelList();
21 ui->m_InputChannel->addItems(dev->get_InputChannels());
22 ui->m_OutputChannel->addItems(dev->get_OutputChannels());
23 ui->m_InputChannel->setCurrentIndex(dev->get_InputChannel());
24 ui->m_OutputChannel->setCurrentIndex(dev->get_OutputChannel());
27 connect(
ui->m_CommandEntry, SIGNAL(activated(QString)),
this, SLOT(
commandEntered()));
Ui::QPTC10DeviceDialog * ui
QPTC10DeviceWPtr m_Device
QSharedPointer< QPTC10Device > QPTC10DevicePtr
QPTC10DeviceDialog::~QPTC10DeviceDialog |
( |
| ) |
|
void QPTC10DeviceDialog::accept |
( |
| ) |
|
|
slot |
Definition at line 35 of file qptc10devicedialog.cpp.
References DEBUG_PTC10, m_Device, and ui.
41 dev->printMessage(
"QPTC10DeviceDialog::accept");
44 ui->m_PidDeviceSettings->accept();
46 dev->set_InputChannel(
ui->m_InputChannel->currentIndex());
47 dev->set_OutputChannel(
ui->m_OutputChannel->currentIndex());
Ui::QPTC10DeviceDialog * ui
QPTC10DeviceWPtr m_Device
QSharedPointer< QPTC10Device > QPTC10DevicePtr
void QPTC10DeviceDialog::commandEntered |
( |
| ) |
|
|
slot |
Definition at line 53 of file qptc10devicedialog.cpp.
References m_Device, and ui.
Referenced by QPTC10DeviceDialog().
55 QString cmd =
ui->m_CommandEntry->currentText();
57 ui->m_Messages->append(cmd);
62 dev->sendCommand(cmd);
Ui::QPTC10DeviceDialog * ui
QPTC10DeviceWPtr m_Device
QSharedPointer< QPTC10Device > QPTC10DevicePtr
Ui::QPTC10DeviceDialog* QPTC10DeviceDialog::ui |
|
private |
The documentation for this class was generated from the following files: