| 234 | } |
| 235 | |
| 236 | void QmitkMxNMultiWidget::Synchronize(bool synchronized) |
| 237 | { |
| 238 | if (synchronized) |
| 239 | { |
| 240 | SetDisplayActionEventHandler(std::make_unique<mitk::DisplayActionEventHandlerSynchronized>()); |
| 241 | } |
| 242 | else |
| 243 | { |
| 244 | SetDisplayActionEventHandler(std::make_unique<mitk::DisplayActionEventHandlerDesynchronized>()); |
| 245 | } |
| 246 | |
| 247 | std::string prefixFilter = synchronized ? "" : this->GetMultiWidgetName().toStdString(); |
| 248 | auto displayActionEventHandler = GetDisplayActionEventHandler(); |
| 249 | if (nullptr != displayActionEventHandler) |
| 250 | { |
| 251 | displayActionEventHandler->InitActions(prefixFilter); |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | QmitkRenderWindow* QmitkMxNMultiWidget::GetRenderWindow(const QString& widgetName) const |
| 256 | { |
no test coverage detected