panels: allow insert and overwrite from footageviewerpanel too

Makes FootageViewerPanel and ProjectPanel derive from a common base that
TimelinePanel searches for when looking for a source to insert/overwrite from.
This commit is contained in:
itsmattkc
2020-03-03 20:26:01 +11:00
parent 2f7819d0ae
commit 0bca86e3c7
6 changed files with 29 additions and 6 deletions
+3 -2
View File
@@ -21,6 +21,7 @@
#ifndef PROJECT_PANEL_H
#define PROJECT_PANEL_H
#include "footagemanagementpanel.h"
#include "project/project.h"
#include "widget/panel/panel.h"
#include "widget/projectexplorer/projectexplorer.h"
@@ -28,7 +29,7 @@
/**
* @brief A PanelWidget wrapper around a ProjectExplorer and a ProjectToolbar
*/
class ProjectPanel : public PanelWidget
class ProjectPanel : public PanelWidget, public FootageManagementPanel
{
Q_OBJECT
public:
@@ -41,7 +42,7 @@ public:
Folder* GetSelectedFolder();
QList<Footage*> GetSelectedFootage();
virtual QList<Footage*> GetSelectedFootage() override;
ProjectViewModel* model();