18 #include "ui_QmitkUSControlsProbesWidget.h"
22 m_ControlInterface(controlInterface)
26 if ( ! m_ControlInterface )
29 ui->probesComboBox->setEnabled(
false);
30 ui->probesLabel->setEnabled(
false);
34 if ( ! m_ControlInterface->GetIsActive() ) { m_ControlInterface->SetIsActive(
true); }
37 std::vector<mitk::USProbe::Pointer> probes = m_ControlInterface->GetProbeSet();
38 for (
auto it = probes.begin();
39 it != probes.end(); ++it )
41 std::string probeIdentifier = (*it)->GetName();
42 ui->probesComboBox->addItem(QString::fromUtf8(probeIdentifier.data(), probeIdentifier.size()));
46 if ( probes.size() > 0 )
48 ui->probesComboBox->setCurrentIndex(0);
49 m_ControlInterface->SelectProbe(0);
52 connect( ui->probesComboBox, SIGNAL(activated(
int)),
this, SLOT(OnProbeControlActivated(
int)) );
60 void QmitkUSControlsProbesWidget::OnProbeControlActivated(
int index)
62 m_ControlInterface->SelectProbe(index);
itk::SmartPointer< Self > Pointer