22 : QWidget(parent), m_Controls(nullptr)
38 m_Controls =
new Ui::QmitkToolSelectionWidgetControls;
58 return m_Controls->m_ToolSelectionComboBox->currentIndex();
63 m_Controls->m_ToolSelectionComboBox->addItems(toolNames);
68 m_Controls->m_ToolSelectionComboBox->addItem(toolName);
73 m_Controls->m_ToolSelectionComboBox->insertItem(index, toolName);
78 for(
int i=0; i <
m_Controls->m_ToolSelectionComboBox->count(); ++i)
80 if(
m_Controls->m_ToolSelectionComboBox->itemText(i).compare(toolName) == 0)
81 m_Controls->m_ToolSelectionComboBox->removeItem(i);
87 m_Controls->m_ToolSelectionComboBox->removeItem(index);
103 this->setEnabled(
true );
108 this->setEnabled(
false );
115 m_Controls->m_ToolSelectionComboBox->setEnabled(
false);
117 m_Controls->m_ToolSelectionComboBox->setEnabled(
true);
124 return m_Controls->m_UseToolCheckBox->isChecked();