18 m_ControlInterface(controlInterface)
22 if ( ! m_ControlInterface )
25 ui->probesComboBox->setEnabled(
false);
26 ui->probesLabel->setEnabled(
false);
30 if ( ! m_ControlInterface->GetIsActive() ) { m_ControlInterface->SetIsActive(true); }
33 std::vector<mitk::USProbe::Pointer> probes = m_ControlInterface->GetProbeSet();
34 for (
auto it = probes.begin();
35 it != probes.end(); ++it )
37 std::string probeIdentifier = (*it)->GetName();
38 ui->probesComboBox->addItem(QString::fromUtf8(probeIdentifier.data(), probeIdentifier.size()));
42 if ( probes.size() > 0 )
44 ui->probesComboBox->setCurrentIndex(0);
45 m_ControlInterface->SelectProbe(0);
48 connect( ui->probesComboBox, SIGNAL(activated(
int)),
this, SLOT(OnProbeControlActivated(
int)) );