cleanup and included closing footage viewer if footage is in use

This commit is contained in:
itsmattkc
2020-10-05 01:04:45 +11:00
parent fa8e7ab5ee
commit d552e71845
7 changed files with 206 additions and 200 deletions
+2 -17
View File
@@ -25,6 +25,7 @@
#include <QTimer>
#include <QTreeView>
#include "node/input/media/media.h"
#include "project/project.h"
#include "project/projectviewmodel.h"
#include "widget/projectexplorer/projectexplorericonview.h"
@@ -101,26 +102,10 @@ signals:
void DoubleClickedItem(Item* item);
private:
enum FootageDeleteResponse {
kDelete,
kOffline,
kCancel
};
/**
* @brief Pop up a QMessageBox to warn the user if the deleted clips are in use
*
* Returns a FootageDeleteResponse
*/
FootageDeleteResponse DeleteWarningMessage(Item* item);
/**
* @brief Check if an item is in use anywhere and return any relevant input nodes
*
* Returns a QMap pairing a Footage node to its StreamPtr
*/
QMap<Node*, StreamPtr> GetFootageNodes(Item* item);
QList<MediaInput*> GetMediaNodesUsingFootage(Footage* item);
/**
* @brief Get all the blocks that solely rely on an input node