| 157 | } |
| 158 | |
| 159 | void QmitkNodeSelectionDialog::SetSelectionCheckFunction(const SelectionCheckFunctionType &checkFunction) |
| 160 | { |
| 161 | m_CheckFunction = checkFunction; |
| 162 | auto checkResponse = m_CheckFunction(m_SelectedNodes); |
| 163 | |
| 164 | SetErrorText(checkResponse); |
| 165 | |
| 166 | m_Controls->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(checkResponse.empty()); |
| 167 | } |
| 168 | |
| 169 | void QmitkNodeSelectionDialog::SetErrorText(const std::string& checkResponse) |
| 170 | { |