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

The NewSequenceDialog class. More...

#include <newsequencedialog.h>

Inheritance diagram for NewSequenceDialog:

Public Member Functions

 NewSequenceDialog (QWidget *parent=nullptr, Media *existing=nullptr, Sequence *iexisting_sequence=nullptr)
 NewSequenceDialog constructor. More...
 
void set_sequence_name (const QString &s)
 Set the name for the new Sequence. More...
 
void SetNameEditable (bool enabled)
 Set whether the Sequence's name can be edited. More...
 

Private Slots

virtual void accept () override
 Override accept function to create/edit a Sequence. More...
 
void preset_changed (int index)
 Slot when the user changes the preset. More...
 

Private Member Functions

void setup_ui ()
 Internal function to create the dialog's UI. More...
 

Private Attributes

Mediaexisting_item
 Internal reference to an existing Media wrapper (if one was provided to the constructor) More...
 
Sequenceexisting_sequence
 Internal reference to an existing Sequence (if one was provided to the constructor) More...
 
QComboBox * preset_combobox
 ComboBox to set the preset. More...
 
QSpinBox * height_numeric
 SpinBox to set the Sequence height. More...
 
QSpinBox * width_numeric
 SpinBox to set the Sequence width. More...
 
QComboBox * par_combobox
 ComboBox to set the pixel aspect ratio. More...
 
QComboBox * interlacing_combobox
 ComboBox to set the interlacing mode. More...
 
QComboBox * frame_rate_combobox
 ComboBox to set the frame rate. More...
 
QComboBox * audio_frequency_combobox
 ComboBox to set the audio frequence. More...
 
QLabel * sequence_name_label
 Label marker for setting the Sequence's name. More...
 
QLineEdit * sequence_name_edit
 Line edit to set the Sequence's name. More...
 

Detailed Description

The NewSequenceDialog class.

A dialog that creates a new (or edits an existing) Sequence object. Can be run from any part of the application.

Constructor & Destructor Documentation

NewSequenceDialog::NewSequenceDialog ( QWidget *  parent = nullptr,
Media existing = nullptr,
Sequence iexisting_sequence = nullptr 
)
explicit

NewSequenceDialog constructor.

Parameters
parentQWidget parent. Usually MainWindow.
existingSet this to a Sequence object (wrapped in a Media object) to edit an existing Sequence, or leave as nullptr to create a new one.
existing_sequenceIf your Sequence object is not wrapped in a Media object, use this to reference a raw Sequence pointer. You must not use both existing_sequence AND existing - one must be nullptr.

Member Function Documentation

void NewSequenceDialog::accept ( )
overrideprivatevirtualslot

Override accept function to create/edit a Sequence.

void NewSequenceDialog::preset_changed ( int  index)
privateslot

Slot when the user changes the preset.

Sets all values according to the preset chosen.

Parameters
indexCurrently selected index of preset_combobox;
void NewSequenceDialog::set_sequence_name ( const QString &  s)

Set the name for the new Sequence.

If creating a new Sequence, use this function before calling exec() to set what the new Sequence's name will be.

The primary use of this is to set a unique default name (i.e. one that doesn't exist in the Sequence already) which is done by Project panel. This is usually "Sequence" followed by a number.

Parameters
sThe name to set the new Sequence.
void NewSequenceDialog::SetNameEditable ( bool  enabled)

Set whether the Sequence's name can be edited.

This defaults to TRUE.

Parameters
enabledTRUE to allow the user to edit the Sequence's name. FALSE if not.
void NewSequenceDialog::setup_ui ( )
private

Internal function to create the dialog's UI.

Member Data Documentation

QComboBox* NewSequenceDialog::audio_frequency_combobox
private

ComboBox to set the audio frequence.

Media* NewSequenceDialog::existing_item
private

Internal reference to an existing Media wrapper (if one was provided to the constructor)

Sequence* NewSequenceDialog::existing_sequence
private

Internal reference to an existing Sequence (if one was provided to the constructor)

QComboBox* NewSequenceDialog::frame_rate_combobox
private

ComboBox to set the frame rate.

QSpinBox* NewSequenceDialog::height_numeric
private

SpinBox to set the Sequence height.

QComboBox* NewSequenceDialog::interlacing_combobox
private

ComboBox to set the interlacing mode.

QComboBox* NewSequenceDialog::par_combobox
private

ComboBox to set the pixel aspect ratio.

QComboBox* NewSequenceDialog::preset_combobox
private

ComboBox to set the preset.

QLineEdit* NewSequenceDialog::sequence_name_edit
private

Line edit to set the Sequence's name.

QLabel* NewSequenceDialog::sequence_name_label
private

Label marker for setting the Sequence's name.

Primarily a persistent class reference so it can be hidden with SetNameEditable() alongside sequence_name_edit.

QSpinBox* NewSequenceDialog::width_numeric
private

SpinBox to set the Sequence width.


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