| 952 | } |
| 953 | |
| 954 | void |
| 955 | TrackerPanel::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 | |
| 973 | TrackMarkerPtr |
| 974 | TrackerPanel::makeTrackInternal() |
nothing calls this directly
no test coverage detected