| 1676 | } |
| 1677 | |
| 1678 | QmitkMxNMultiWidget::GroupSyncIndexType QmitkMxNMultiWidget::NextFreeSyncGroupIndex() const |
| 1679 | { |
| 1680 | // m_SynchronizedWidgetConnectors is a std::map with int keys, so iteration is |
| 1681 | // in ascending key order. Walk from 1 and return the first gap. |
| 1682 | GroupSyncIndexType candidate = 1; |
| 1683 | for (const auto& entry : m_SynchronizedWidgetConnectors) |
| 1684 | { |
| 1685 | if (entry.first != candidate) |
| 1686 | { |
| 1687 | break; |
| 1688 | } |
| 1689 | ++candidate; |
| 1690 | } |
| 1691 | return candidate; |
| 1692 | } |
| 1693 | |
| 1694 | void QmitkMxNMultiWidget::OnCreateNewSyncGroupRequested(QmitkSynchronizedNodeSelectionWidget* synchronizedWidget) |
| 1695 | { |
no outgoing calls