MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / onItemEnabledCheckBoxChecked

Method onItemEnabledCheckBoxChecked

Gui/TrackerPanel.cpp:1417–1440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1415} // TrackerPanel::onItemDataChanged
1416
1417void
1418TrackerPanel::onItemEnabledCheckBoxChecked(bool checked)
1419{
1420 AnimatedCheckBox* widget = qobject_cast<AnimatedCheckBox*>( sender() );
1421 QWidget* widgetContainer = widget->parentWidget();
1422
1423 assert(widget);
1424 for (std::size_t i = 0; i < _imp->items.size(); ++i) {
1425 QWidget* cellW = _imp->view->cellWidget(i, COL_ENABLED);
1426 if (widgetContainer == cellW) {
1427 TrackMarkerPtr marker = _imp->items[i].marker.lock();
1428 TrackerContextPtr context = getContext();
1429 // Set the selection to only this marker otherwise all markers will get the enabled value
1430 context->beginEditSelection(TrackerContext::eTrackSelectionInternal);
1431 context->clearSelection(TrackerContext::eTrackSelectionInternal);
1432 context->addTrackToSelection(marker, TrackerContext::eTrackSelectionInternal);
1433 context->endEditSelection(TrackerContext::eTrackSelectionInternal);
1434 marker->setEnabledFromGui(marker->getCurrentTime(), checked);
1435 widget->setAnimation( marker->getEnabledNessAnimationLevel() );
1436 break;
1437 }
1438 }
1439 getNode()->getNode()->getApp()->redrawAllViewers();
1440}
1441
1442void
1443TrackerPanel::onItemMotionModelChanged(int index)

Callers

nothing calls this directly

Calls 15

cellWidgetMethod · 0.80
beginEditSelectionMethod · 0.80
addTrackToSelectionMethod · 0.80
endEditSelectionMethod · 0.80
setEnabledFromGuiMethod · 0.80
getNodeFunction · 0.70
sizeMethod · 0.45
lockMethod · 0.45
clearSelectionMethod · 0.45
getCurrentTimeMethod · 0.45
setAnimationMethod · 0.45

Tested by

no test coverage detected