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

Method onItemMotionModelChanged

Gui/TrackerPanel.cpp:1442–1463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1440}
1441
1442void
1443TrackerPanel::onItemMotionModelChanged(int index)
1444{
1445 ComboBox* widget = qobject_cast<ComboBox*>( sender() );
1446
1447 assert(widget);
1448 for (std::size_t i = 0; i < _imp->items.size(); ++i) {
1449 QWidget* cellW = _imp->view->cellWidget(i, COL_MOTION_MODEL);
1450 if (widget == cellW) {
1451 TrackMarkerPtr marker = _imp->items[i].marker.lock();
1452 TrackerContextPtr context = getContext();
1453 // Set the selection to only this marker otherwise all markers will get the enabled value
1454 context->beginEditSelection(TrackerContext::eTrackSelectionInternal);
1455 context->clearSelection(TrackerContext::eTrackSelectionInternal);
1456 context->addTrackToSelection(marker, TrackerContext::eTrackSelectionInternal);
1457 context->endEditSelection(TrackerContext::eTrackSelectionInternal);
1458
1459 marker->setMotionModelFromGui(index);
1460 break;
1461 }
1462 }
1463}
1464
1465void
1466TrackerPanel::onTrackKeyframeSet(const TrackMarkerPtr& marker,

Callers

nothing calls this directly

Calls 8

cellWidgetMethod · 0.80
beginEditSelectionMethod · 0.80
addTrackToSelectionMethod · 0.80
endEditSelectionMethod · 0.80
setMotionModelFromGuiMethod · 0.80
sizeMethod · 0.45
lockMethod · 0.45
clearSelectionMethod · 0.45

Tested by

no test coverage detected