merged with master
This commit is contained in:
@@ -28,15 +28,54 @@
|
||||
#include "ui/sourcetable.h"
|
||||
#include "project/projectelements.h"
|
||||
|
||||
/**
|
||||
* @brief The ReplaceClipMediaDialog class
|
||||
*
|
||||
* A dialog to replace all Clips using a certain Media with a different Media. This dialog can be run from anywhere
|
||||
* provided it's given a valid Media object.
|
||||
*/
|
||||
class ReplaceClipMediaDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ReplaceClipMediaDialog(QWidget* parent, Media* old_media);
|
||||
/**
|
||||
* @brief ReplaceClipMediaDialog Constructor
|
||||
*
|
||||
* @param parent
|
||||
*
|
||||
* QWidget parent. Usually MainWindow or Project panel.
|
||||
*
|
||||
* @param old_media
|
||||
*
|
||||
* A valid Media object which will be used to scan the currently active Sequence for Clips using it.
|
||||
*/
|
||||
ReplaceClipMediaDialog(QWidget* parent, Media* old_media);
|
||||
private slots:
|
||||
void replace();
|
||||
/**
|
||||
* @brief Overrided accept for when the user clicks "Replace"
|
||||
*
|
||||
* Checks whether the requested replace is valid using the following criteria:
|
||||
* * Any Media is selected
|
||||
* * The selected Media is not the same Media that the user is trying to replace
|
||||
* * The Media is not a folder
|
||||
* * The Media is not the currently active Sequence
|
||||
*/
|
||||
virtual void accept() override;
|
||||
private:
|
||||
Media* media;
|
||||
/**
|
||||
* @brief Internal pointer to the Media we're replacing
|
||||
*/
|
||||
Media* media;
|
||||
|
||||
/**
|
||||
* @brief Tree widget to show Project's media
|
||||
*/
|
||||
QTreeView* tree;
|
||||
|
||||
/**
|
||||
* @brief CheckBox for using the same media in points
|
||||
*
|
||||
* When the starting point of a Clip is trimmed (i.e. the Clip no longer starts at 0),
|
||||
*/
|
||||
QCheckBox* use_same_media_in_points;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user