The NewSequenceDialog class.
More...
#include <newsequencedialog.h>
The NewSequenceDialog class.
A dialog that creates a new (or edits an existing) Sequence object. Can be run from any part of the application.
NewSequenceDialog::NewSequenceDialog |
( |
QWidget * |
parent = nullptr , |
|
|
Media * |
existing = nullptr , |
|
|
Sequence * |
iexisting_sequence = nullptr |
|
) |
| |
|
explicit |
NewSequenceDialog constructor.
- Parameters
-
parent | QWidget parent. Usually MainWindow. |
existing | Set 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_sequence | If 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. |
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
-
index | Currently 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
-
void NewSequenceDialog::SetNameEditable |
( |
bool |
enabled | ) |
|
Set whether the Sequence's name can be edited.
This defaults to TRUE.
- Parameters
-
enabled | TRUE 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.
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 |
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 |
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 |
The documentation for this class was generated from the following files: