keyframes: implemented copying/pasting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -73,6 +73,10 @@ public:
|
||||
void ShowSnaps(const std::vector<rational> ×);
|
||||
void HideSnaps();
|
||||
|
||||
virtual bool CopySelected(bool cut);
|
||||
|
||||
virtual bool Paste();
|
||||
|
||||
public slots:
|
||||
void SetTime(const rational &time);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user