36 CreateQtPartControl(
this);
45 void QmitkNDIAuroraWidget::CreateQtPartControl(QWidget *parent)
55 void QmitkNDIAuroraWidget::CreateConnections()
63 m_Controls->portTypeLabelAurora->setVisible(
false);
66 m_Controls->comPortLabelAurora->setText(
"Port Nr:");
67 m_Controls->m_portSpinBoxAurora->setPrefix(
"");
74 m_Controls->m_outputTextAurora->setHtml(
"<body style=\" font-family:\'MS Shell Dlg 2\'; font-size:7pt; font-weight:400; font-style:normal;\" bgcolor=black><span style=\"color:#ffffff;\"><u>output:</u>");
79 m_Controls->m_outputTextAurora->setHtml(QString(s.c_str()));
80 m_Controls->m_outputTextAurora->verticalScrollBar()->setValue(
m_Controls->m_outputTextAurora->verticalScrollBar()->maximum());
89 port =
m_Controls->m_portSpinBoxAurora->value();
95 tempTrackingDevice->SetPortNumber(static_cast<mitk::SerialCommunication::PortNumber>(port));
97 prefix =
m_Controls->portTypeAurora->currentText();
101 QString portName = prefix + QString::number(port);
103 tempTrackingDevice->SetDeviceName(portName.toStdString());
111 std::string
id =
"org.mitk.modules.igt.ui.trackingdeviceconfigurationwidget";
115 propList->Set(
"AuroraPortWin",
m_Controls->m_portSpinBoxAurora->value());
116 propList->Set(
"PortTypeAurora",
m_Controls->portTypeAurora->currentIndex());
121 settings.beginGroup(QString::fromStdString(
id));
122 settings.setValue(
"portSpinBoxAurora", QVariant(
m_Controls->m_portSpinBoxAurora->value()));
123 settings.setValue(
"portTypeAurora", QVariant(
m_Controls->portTypeAurora->currentIndex()));
130 std::string
id =
"org.mitk.modules.igt.ui.trackingdeviceconfigurationwidget";
136 if (propList.IsNull())
138 MITK_ERROR <<
"Property list for this UI (" <<
id <<
") is not available, could not load UI settings!";
return;
141 propList->Get(
"AuroraPortWin", port);
142 propList->Get(
"PortTypeAurora", portType);
150 settings.beginGroup(QString::fromStdString(
id));
152 m_Controls->m_portSpinBoxAurora->setValue(settings.value(
"portSpinBoxAurora", 0).toInt());
153 m_Controls->portTypeAurora->setCurrentIndex(settings.value(
"portTypeAurora", 0).toInt());
160 m_Controls->m_portSpinBoxAurora->setValue(portValue);
163 m_Controls->portTypeAurora->setCurrentIndex(portType);
itk::SmartPointer< Self > Pointer