Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Private Slots | Private Attributes | List of all members
ReplaceClipMediaDialog Class Reference

The ReplaceClipMediaDialog class. More...

#include <replaceclipmediadialog.h>

Inheritance diagram for ReplaceClipMediaDialog:

Public Member Functions

 ReplaceClipMediaDialog (QWidget *parent, Media *old_media)
 ReplaceClipMediaDialog Constructor. More...
 

Private Slots

virtual void accept () override
 Overridden accept for when the user clicks "Replace". More...
 

Private Attributes

Mediamedia
 Internal pointer to the Media we're replacing. More...
 
QTreeView * tree
 Tree widget to show Project's media. More...
 
QCheckBox * use_same_media_in_points
 CheckBox for using the same media in points. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

ReplaceClipMediaDialog::ReplaceClipMediaDialog ( QWidget *  parent,
Media old_media 
)

ReplaceClipMediaDialog Constructor.

Parameters
parentQWidget parent. Usually MainWindow or Project panel.
old_mediaA valid Media object which will be used to scan the currently active Sequence for Clips using it.

Member Function Documentation

void ReplaceClipMediaDialog::accept ( )
overrideprivatevirtualslot

Overridden 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

Member Data Documentation

Media* ReplaceClipMediaDialog::media
private

Internal pointer to the Media we're replacing.

QTreeView* ReplaceClipMediaDialog::tree
private

Tree widget to show Project's media.

QCheckBox* ReplaceClipMediaDialog::use_same_media_in_points
private

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),


The documentation for this class was generated from the following files: