MCPcopy Create free account
hub / github.com/MITK/MITK / setEnabled

Method setEnabled

Modules/SegmentationUI/src/QmitkToolSelectionBox.cpp:308–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void QmitkToolSelectionBox::setEnabled(bool enable)
309{
310 if (QWidget::isEnabled() == enable)
311 return;
312
313 QWidget::setEnabled(enable);
314
315 if (enable)
316 {
317 m_ToolManager->RegisterClient();
318
319 auto id = m_ToolManager->GetActiveToolID();
320 emit ToolSelected(id);
321 }
322 else
323 {
324 m_ToolManager->ActivateTool(-1);
325 m_ToolManager->UnregisterClient();
326
327 emit ToolSelected(-1);
328 }
329}
330
331void QmitkToolSelectionBox::UpdateButtonsEnabledState()
332{

Callers 15

InitializeMethod · 0.45
CreateQtPartControlMethod · 0.45
CreateQtPartControlMethod · 0.45
foreachFunction · 0.45
OnSelectionChangedMethod · 0.45
foreachFunction · 0.45
CreateQtPartControlMethod · 0.45
CreateQtPartControlMethod · 0.45
CreateQtPartControlMethod · 0.45
OnSelectionChangedMethod · 0.45

Calls 4

RegisterClientMethod · 0.80
GetActiveToolIDMethod · 0.80
ActivateToolMethod · 0.80
UnregisterClientMethod · 0.80

Tested by 4

InitializeMethod · 0.36