| 1880 | } |
| 1881 | |
| 1882 | void |
| 1883 | TrackerPanel::onMotionModelKnobValueChanged(const TrackMarkerPtr &marker, |
| 1884 | int /*dimension*/, |
| 1885 | int reason) |
| 1886 | { |
| 1887 | if (reason == eValueChangedReasonNatronGuiEdited) { |
| 1888 | return; |
| 1889 | } |
| 1890 | int row = getMarkerRow(marker); |
| 1891 | if (row == -1) { |
| 1892 | return; |
| 1893 | } |
| 1894 | ComboBox* w = dynamic_cast<ComboBox*>( _imp->view->cellWidget(row, COL_MOTION_MODEL) ); |
| 1895 | if (!w) { |
| 1896 | return; |
| 1897 | } |
| 1898 | int index = marker->getMotionModelKnob()->getValue(); |
| 1899 | w->setCurrentIndex_no_emit(index); |
| 1900 | } |
| 1901 | |
| 1902 | void |
| 1903 | TrackerPanel::onEnabledChanged(const TrackMarkerPtr& marker, |
nothing calls this directly
no test coverage detected