Changes to connection window to actually retrieve and show socketcan
interfaces now.
This commit is contained in:
@@ -48,6 +48,9 @@ ConnectionWindow::ConnectionWindow(QWidget *parent) :
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
connect(ui->btnOK, SIGNAL(clicked(bool)), this, SLOT(handleOKButton()));
|
connect(ui->btnOK, SIGNAL(clicked(bool)), this, SLOT(handleOKButton()));
|
||||||
|
connect(ui->rbGVRET, SIGNAL(toggled(bool)), this, SLOT(handleConnTypeChanged()));
|
||||||
|
connect(ui->rbKvaser, SIGNAL(toggled(bool)), this, SLOT(handleConnTypeChanged()));
|
||||||
|
connect(ui->rbSocketCAN, SIGNAL(toggled(bool)), this, SLOT(handleConnTypeChanged()));
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectionWindow::~ConnectionWindow()
|
ConnectionWindow::~ConnectionWindow()
|
||||||
@@ -60,6 +63,11 @@ void ConnectionWindow::showEvent(QShowEvent* event)
|
|||||||
{
|
{
|
||||||
QDialog::showEvent(event);
|
QDialog::showEvent(event);
|
||||||
qDebug() << "Show connectionwindow";
|
qDebug() << "Show connectionwindow";
|
||||||
|
handleConnTypeChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ConnectionWindow::handleConnTypeChanged()
|
||||||
|
{
|
||||||
if (ui->rbGVRET->isChecked()) getSerialPorts();
|
if (ui->rbGVRET->isChecked()) getSerialPorts();
|
||||||
if (ui->rbKvaser->isChecked()) getKvaserPorts();
|
if (ui->rbKvaser->isChecked()) getKvaserPorts();
|
||||||
if (ui->rbSocketCAN->isChecked()) getSocketcanPorts();
|
if (ui->rbSocketCAN->isChecked()) getSocketcanPorts();
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ public slots:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void handleOKButton();
|
void handleOKButton();
|
||||||
|
void handleConnTypeChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::ConnectionWindow *ui;
|
Ui::ConnectionWindow *ui;
|
||||||
|
|||||||
Reference in New Issue
Block a user