| 1415 | } // TrackerPanel::onItemDataChanged |
| 1416 | |
| 1417 | void |
| 1418 | TrackerPanel::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 | |
| 1442 | void |
| 1443 | TrackerPanel::onItemMotionModelChanged(int index) |
nothing calls this directly
no test coverage detected