The ExportDialog class.
More...
#include <exportdialog.h>
The ExportDialog class.
The dialog to initiate an export. Requires a valid Sequence to be set in olive::ActiveSequence or the result is defined (most likely a crash), so you should always do a nullptr
check on olive::ActiveSequence before constructing this dialog.
ExportDialog::ExportDialog |
( |
QWidget * |
parent | ) |
|
|
explicit |
void ExportDialog::add_codec_to_combobox |
( |
QComboBox * |
box, |
|
|
enum AVCodecID |
codec |
|
) |
| |
|
private |
Retrieves the human-readable name of an AVCodecID and adds it to a QComboBox.
Also sets that item's data to the AVCodecID so it can be retrieved directly from the QComboBox.
- Parameters
-
box | The QComboBox to add the item to. |
codec | The codec to add to the QComboBox. |
void ExportDialog::comp_type_changed |
( |
int |
index | ) |
|
|
privateslot |
Slot for when the compression type changes.
Different UI objects should be displayed for different compression types.
- Parameters
-
void ExportDialog::export_thread_finished |
( |
| ) |
|
|
privateslot |
Slot for the export thread completing (both succeeding and failing)
Runs whenever the thread has finished. Determines whether the thread succeeded or not (and shows an error message if not), cleans up the ExportThread object, sets the UI state back to normal.
Connect to ExportThread::finished().
void ExportDialog::format_changed |
( |
int |
index | ) |
|
|
privateslot |
Slot for when the user changes the format.
Used to populate the available codecs list for this format.
- Parameters
-
index | Current format index (corresponding to enum ExportFormats) |
void ExportDialog::open_advanced_video_dialog |
( |
| ) |
|
|
privateslot |
Slot to open the Advanced Video Dialog.
Opens a dialog for setting more advanced video settings and passes a reference to vcodec_params to it.
void ExportDialog::prep_ui_for_render |
( |
bool |
r | ) |
|
|
private |
Enables/disables certain UI objects based on the exporting state.
Some UI controls don't need to be set while exporting. This function enables/disables them appropriately.
- Parameters
-
r | TRUE if we're exporting, FALSE if we finished. |
void ExportDialog::setup_ui |
( |
| ) |
|
|
private |
Function to create UI objects.
void ExportDialog::StartExport |
( |
| ) |
|
|
privateslot |
Slot for when the user clicks the Export button.
Asks the user for the file to save to.
void ExportDialog::update_progress_bar |
( |
int |
value, |
|
|
qint64 |
remaining_ms |
|
) |
| |
|
privateslot |
Slot for the export thread to update the progress bar's value.
- Parameters
-
value | An value between 0 - 100. A percentage of the Sequence that has been exported so far. |
remaining_ms | The estimated time in milliseconds that it will take to complete the rest of the Sequence. |
void ExportDialog::vcodec_changed |
( |
int |
index | ) |
|
|
privateslot |
Slot for when the video codec changes.
Some video codecs require different settings. In the case of that, this function sorts through those.
- Parameters
-
index | Current vcodecCombobox index - its item data contains the AVCodecID. |
QComboBox* ExportDialog::acodecCombobox |
|
private |
ComboBox for the exported audio's codec.
QSpinBox* ExportDialog::audiobitrateSpinbox |
|
private |
SpinBox for the exported audio's bitrate.
QGroupBox* ExportDialog::audioGroupbox |
|
private |
GroupBox containing all audio-related UI objects.
QPushButton* ExportDialog::cancel_button |
|
private |
Dialog cancel button to close this dialog.
QComboBox* ExportDialog::compressionTypeCombobox |
|
private |
ComboBox for the exported video compression type.
QPushButton* ExportDialog::export_button |
|
private |
Export button to trigger the start of an export.
QVector<QString> ExportDialog::format_strings |
|
private |
Internal array of human-readable names corresponding to enum ExportFormats.
QComboBox* ExportDialog::formatCombobox |
|
private |
ComboBox for the exported video's format.
QDoubleSpinBox* ExportDialog::framerateSpinbox |
|
private |
SpinBox for the exported video's frame rate.
QSpinBox* ExportDialog::heightSpinbox |
|
private |
SpinBox for the exported video's height.
QProgressBar* ExportDialog::progressBar |
|
private |
Progress bar for visually showing the export progress.
QComboBox* ExportDialog::rangeCombobox |
|
private |
ComboBox for selecting the time range of the Sequence to export.
QPushButton* ExportDialog::renderCancel |
|
private |
Cancel button to abort the export before completion.
QSpinBox* ExportDialog::samplingRateSpinbox |
|
private |
SpinBox for the exported audio's sample rate.
qint64 ExportDialog::total_export_time_start |
|
private |
Time value set when exporting begins to determine the total duration of the export.
Struct for advanced video codec parameters.
More advanced video encoding parameters to be sent to the ExportThread. These variables are not directly editable in this dialog, instead calling open_advanced_video_dialog() will open an AdvancedVideoDialog for setting these values directly. vcodec_changed() should also set these to the defaults for that codec where appropriate.
QComboBox* ExportDialog::vcodecCombobox |
|
private |
ComboBox for the exported video codec.
QLabel* ExportDialog::videoBitrateLabel |
|
private |
Label for the exported video's bitrate - changes depending on the compression type.
QDoubleSpinBox* ExportDialog::videobitrateSpinbox |
|
private |
SpinBox for the exported video's bitrate.
QGroupBox* ExportDialog::videoGroupbox |
|
private |
GroupBox containing all video-related UI objects.
QSpinBox* ExportDialog::widthSpinbox |
|
private |
SpinBox for the exported video's width.
The documentation for this class was generated from the following files: