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

The SpeedDialog class. More...

#include <speeddialog.h>

Inheritance diagram for SpeedDialog:

Public Slots

virtual int exec () override
 Override of exec() to set up current Clip speed data just before opening. More...
 

Public Member Functions

 SpeedDialog (QWidget *parent, QVector< Clip * > clips)
 SpeedDialog Constructor. More...
 

Private Slots

virtual void accept () override
 Override of accept() to perform the selected changes on the Clips. More...
 
void percent_update ()
 Slot when the speed percentage field is changed by the user. More...
 
void duration_update ()
 Slot when the duration field is changed by the user. More...
 
void frame_rate_update ()
 Slot when the frame rate field is changed by the user. More...
 

Private Attributes

QVector< Clip * > clips_
 Internal array of Clip objects. More...
 
LabelSliderpercent
 Speed percentage field. More...
 
LabelSliderduration
 Duration field. More...
 
LabelSliderframe_rate
 Frame rate field. More...
 
QCheckBox * reverse
 UI widget for setting the Clip's reverse value. More...
 
QCheckBox * maintain_pitch
 UI widget for setting the Clip's maintain pitch value. More...
 
QCheckBox * ripple
 UI widget for setting whether to ripple Clips around these changes or not. More...
 

Detailed Description

The SpeedDialog class.

A dialog for setting the speed of one or more Clips. This can be run from anywhere provided it's given a valid array of Clips.

It's preferable to

Constructor & Destructor Documentation

SpeedDialog::SpeedDialog ( QWidget *  parent,
QVector< Clip * >  clips 
)

SpeedDialog Constructor.

Parameters
parentQWidget parent. Usually MainWindow or Timeline panel.
clipsA valid array of Clips to change the speed of.

Member Function Documentation

void SpeedDialog::accept ( )
overrideprivatevirtualslot

Override of accept() to perform the selected changes on the Clips.

void SpeedDialog::duration_update ( )
privateslot

Slot when the duration field is changed by the user.

The three fields (percent, duration, and frame rate) all work in tandem to create a speed multipler for the Clip. Each has a slot for when one of the fields changes to update the others appropriately so they all have the same speed multipler.

int SpeedDialog::exec ( )
overridevirtualslot

Override of exec() to set up current Clip speed data just before opening.

Returns

The result of QDialog::exec(), a DialogCode result.

void SpeedDialog::frame_rate_update ( )
privateslot

Slot when the frame rate field is changed by the user.

The three fields (percent, duration, and frame rate) all work in tandem to create a speed multipler for the Clip. Each has a slot for when one of the fields changes to update the others appropriately so they all have the same speed multipler.

void SpeedDialog::percent_update ( )
privateslot

Slot when the speed percentage field is changed by the user.

The three fields (percent, duration, and frame rate) all work in tandem to create a speed multipler for the Clip. Each has a slot for when one of the fields changes to update the others appropriately so they all have the same speed multipler.

Member Data Documentation

QVector<Clip*> SpeedDialog::clips_
private

Internal array of Clip objects.

LabelSlider* SpeedDialog::duration
private

Duration field.

LabelSlider* SpeedDialog::frame_rate
private

Frame rate field.

QCheckBox* SpeedDialog::maintain_pitch
private

UI widget for setting the Clip's maintain pitch value.

LabelSlider* SpeedDialog::percent
private

Speed percentage field.

QCheckBox* SpeedDialog::reverse
private

UI widget for setting the Clip's reverse value.

QCheckBox* SpeedDialog::ripple
private

UI widget for setting whether to ripple Clips around these changes or not.


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