various: implemented multiple project support
This required various changes to various parts of the infrastructure (mostly using paths to finding the "root project" of any given object throughout). Now theoretically infinite projects can be opened and accounted for at any given time.
This commit is contained in:
@@ -98,6 +98,11 @@ TimelinePoints *FootageViewerWidget::ConnectTimelinePoints()
|
||||
return footage_;
|
||||
}
|
||||
|
||||
Project *FootageViewerWidget::GetTimelinePointsProject()
|
||||
{
|
||||
return footage_->project();
|
||||
}
|
||||
|
||||
void FootageViewerWidget::StartFootageDragInternal(bool enable_video, bool enable_audio)
|
||||
{
|
||||
if (!GetFootage()) {
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
protected:
|
||||
virtual TimelinePoints* ConnectTimelinePoints() override;
|
||||
|
||||
virtual Project* GetTimelinePointsProject() override;
|
||||
|
||||
private:
|
||||
void StartFootageDragInternal(bool enable_video, bool enable_audio);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user