keyframes: implemented copying/pasting

This commit is contained in:
itsmattkc
2022-05-10 15:42:09 -07:00
parent af9e54504c
commit 182e1599af
24 changed files with 567 additions and 160 deletions
+18
View File
@@ -860,4 +860,22 @@ void TimeBasedWidget::HideSnaps()
}
}
bool TimeBasedWidget::CopySelected(bool cut)
{
if (ruler()->hasFocus() && ruler()->CopySelected(cut)) {
return true;
}
return false;
}
bool TimeBasedWidget::Paste()
{
if (ruler()->hasFocus() && ruler()->PasteMarkers()) {
return true;
}
return false;
}
}
+4
View File
@@ -73,6 +73,10 @@ public:
void ShowSnaps(const std::vector<rational> &times);
void HideSnaps();
virtual bool CopySelected(bool cut);
virtual bool Paste();
public slots:
void SetTime(const rational &time);