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

Method onResetButtonClicked

Gui/TrackerPanel.cpp:954–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954void
955TrackerPanel::onResetButtonClicked()
956{
957 TrackerContextPtr context = getContext();
958
959 assert(context);
960 std::list<TrackMarkerPtr> markers;
961 context->getSelectedMarkers(&markers);
962 context->clearSelection(TrackerContext::eTrackSelectionInternal);
963 context->endEditSelection(TrackerContext::eTrackSelectionInternal);
964
965 for (std::list<TrackMarkerPtr>::iterator it = markers.begin(); it != markers.end(); ++it) {
966 (*it)->resetTrack();
967 }
968 context->beginEditSelection(TrackerContext::eTrackSelectionInternal);
969 context->addTracksToSelection(markers, TrackerContext::eTrackSelectionInternal);
970 context->endEditSelection(TrackerContext::eTrackSelectionInternal);
971}
972
973TrackMarkerPtr
974TrackerPanel::makeTrackInternal()

Callers

nothing calls this directly

Calls 8

getSelectedMarkersMethod · 0.80
endEditSelectionMethod · 0.80
resetTrackMethod · 0.80
beginEditSelectionMethod · 0.80
addTracksToSelectionMethod · 0.80
clearSelectionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected