QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlMovieEditSettings Class Reference

A subclass of QtlDialog which implements the UI for the "Edit Settings" action. More...

Inheritance diagram for QtlMovieEditSettings:
QtlDialog

Classes

class  OutputDirectory
 Description of an output directory settings. More...
 

Public Member Functions

 QtlMovieEditSettings (QtlMovieSettings *settings, QtlMovieHelp *help, QWidget *parent=0)
 Constructor. More...
 
void applySettings ()
 Apply the settings values from the dialog box to the QtlTestSettings instance. More...
 
- Public Member Functions inherited from QtlDialog
 QtlDialog (QWidget *parent=0, Qt::WindowFlags flags=0, QtlGeometrySettingsInterface *geometrySettings=0)
 Constructor. More...
 
QtlGeometrySettingsInterfacegeometrySettings () const
 Get the object where to save and restore the dialog geometry. More...
 
void setGeometrySettings (QtlGeometrySettingsInterface *geometrySettings, bool restoreImmediately=false)
 Set the object where to save and restore the dialog geometry. More...
 

Private Types

typedef QMap< QtlMovieOutputFile::OutputType, OutputDirectoryOutputDirectoryMap
 A map of OutputDirectory indexed by output type. More...
 

Private Slots

void browseCcextractor ()
 Invoked by the "Browse..." button for the CCExtractor executable. More...
 
void browseDvdAuthor ()
 Invoked by the "Browse..." button for the DvdAuthor executable. More...
 
void browseDvdBurner ()
 Invoked by the "Browse..." button for the DVD burner device. More...
 
void browseDvdExtractionDir ()
 Invoked by the "Browse..." button for the default output directory for DVD extraction. More...
 
void browseFFmpeg ()
 Invoked by the "Browse..." button for the FFmpeg executable. More...
 
void browseFFprobe ()
 Invoked by the "Browse..." button for the FFprobe executable. More...
 
void browseGrowisofs ()
 Invoked by the "Browse..." button for the Growisofs executable. More...
 
void browseInputDir ()
 Invoked by the "Browse..." button for the default input directory. More...
 
void browseMkisofs ()
 Invoked by the "Browse..." button for the Mkisofs executable. More...
 
void browseOutputDir ()
 Invoked by the "Browse..." buttons for the various default output directories. More...
 
void createChapterToggled (bool createChapters)
 Invoked when the check box "create chapters" is toggled. More...
 
void deleteAudienceLanguage ()
 Invoked by the "Delete" button in the target audience language editing. More...
 
void dvdBurningSpeedChanged (int speed)
 Invoked when the DVD burning speed is changed in the spin box. More...
 
void enableDeleteAudienceLanguage ()
 Enable or disable the "Delete" button in the target audience language editing, based on the selection. More...
 
void help ()
 Invoked by the "Help" button. More...
 
void newAudienceLanguage ()
 Invoked by the "New..." button in the target audience language editing. More...
 
void resetValues (QAbstractButton *button=0)
 Reset the dialog box values from the settings object. More...
 
void setDefaultOutputDirSelectable (bool sameAsInput)
 Invoked when the check box "default output directory is same as input" is toggled. More...
 
void setNormalizeAudioSelectable (bool normalize)
 Invoked when the check box "normalize audio level" is toggled. More...
 
void updateMaxBitRates ()
 Invoked when iPhone/iPad/Android/AVI video quality is updated, update the corresponding max bitrate. More...
 

Private Member Functions

 QtlMovieEditSettings () Q_DECL_EQ_DELETE
 
void setDefaultExecutable (const QString &name, QLabel *label, const QString &fileName)
 Set the default executable path of a media tool. More...
 
void setModelScreenSizes (QtlButtonGrid *grid, const QVector< QtlMovieDeviceProfile > &models)
 Fill a button grid with all model screen sizes of a specific family of devices. More...
 
void updateMaxBitRate (QLabel *labelMaxBitRate, const QSpinBox *spinBoxQuality, int width, int height, float frameRate)
 Update a label containing the maximum video bitrate for an output type. More...
 

Private Attributes

QtlMovieHelp_help
 Object to display help. More...
 
OutputDirectoryMap _outDirs
 Output directories settings. More...
 
QtlMovieSettings_settings
 Associated QtlMovieSettings object. More...
 
Ui::QtlMovieEditSettings _ui
 UI from Qt Designer. More...
 
bool _useDvdBurnerCombo
 Alternate combo box for DVD burner selection. More...
 

Additional Inherited Members

- Protected Member Functions inherited from QtlDialog
virtual bool event (QEvent *event) Q_DECL_OVERRIDE
 Process an event. More...
 

Detailed Description

A subclass of QtlDialog which implements the UI for the "Edit Settings" action.

The design of the UI is done using Qt Designer.

Member Typedef Documentation

◆ OutputDirectoryMap

Constructor & Destructor Documentation

◆ QtlMovieEditSettings() [1/2]

QtlMovieEditSettings::QtlMovieEditSettings ( QtlMovieSettings settings,
QtlMovieHelp help,
QWidget *  parent = 0 
)
explicit

Constructor.

Parameters
[in]settingsThe settings from which to load the initial values.
[in]helpObject to display help.
[in]parentOptional parent widget.

◆ QtlMovieEditSettings() [2/2]

QtlMovieEditSettings::QtlMovieEditSettings ( )
private

Member Function Documentation

◆ applySettings()

void QtlMovieEditSettings::applySettings ( )

Apply the settings values from the dialog box to the QtlTestSettings instance.

◆ resetValues

void QtlMovieEditSettings::resetValues ( QAbstractButton *  button = 0)
privateslot

Reset the dialog box values from the settings object.

Parameters
buttonThe clicked button. Do nothing if not null and not the Reset button.

◆ help

void QtlMovieEditSettings::help ( )
privateslot

Invoked by the "Help" button.

◆ browseFFmpeg

void QtlMovieEditSettings::browseFFmpeg ( )
inlineprivateslot

Invoked by the "Browse..." button for the FFmpeg executable.

◆ browseFFprobe

void QtlMovieEditSettings::browseFFprobe ( )
inlineprivateslot

Invoked by the "Browse..." button for the FFprobe executable.

◆ browseDvdAuthor

void QtlMovieEditSettings::browseDvdAuthor ( )
inlineprivateslot

Invoked by the "Browse..." button for the DvdAuthor executable.

◆ browseMkisofs

void QtlMovieEditSettings::browseMkisofs ( )
inlineprivateslot

Invoked by the "Browse..." button for the Mkisofs executable.

◆ browseGrowisofs

void QtlMovieEditSettings::browseGrowisofs ( )
inlineprivateslot

Invoked by the "Browse..." button for the Growisofs executable.

◆ browseCcextractor

void QtlMovieEditSettings::browseCcextractor ( )
inlineprivateslot

Invoked by the "Browse..." button for the CCExtractor executable.

◆ browseInputDir

void QtlMovieEditSettings::browseInputDir ( )
inlineprivateslot

Invoked by the "Browse..." button for the default input directory.

◆ browseDvdExtractionDir

void QtlMovieEditSettings::browseDvdExtractionDir ( )
inlineprivateslot

Invoked by the "Browse..." button for the default output directory for DVD extraction.

◆ setDefaultOutputDirSelectable

void QtlMovieEditSettings::setDefaultOutputDirSelectable ( bool  sameAsInput)
privateslot

Invoked when the check box "default output directory is same as input" is toggled.

Parameters
sameAsInputState of the check box.

◆ browseOutputDir

void QtlMovieEditSettings::browseOutputDir ( )
privateslot

Invoked by the "Browse..." buttons for the various default output directories.

◆ browseDvdBurner

void QtlMovieEditSettings::browseDvdBurner ( )
privateslot

Invoked by the "Browse..." button for the DVD burner device.

◆ newAudienceLanguage

void QtlMovieEditSettings::newAudienceLanguage ( )
privateslot

Invoked by the "New..." button in the target audience language editing.

◆ deleteAudienceLanguage

void QtlMovieEditSettings::deleteAudienceLanguage ( )
privateslot

Invoked by the "Delete" button in the target audience language editing.

◆ enableDeleteAudienceLanguage

void QtlMovieEditSettings::enableDeleteAudienceLanguage ( )
privateslot

Enable or disable the "Delete" button in the target audience language editing, based on the selection.

◆ createChapterToggled

void QtlMovieEditSettings::createChapterToggled ( bool  createChapters)
privateslot

Invoked when the check box "create chapters" is toggled.

Parameters
createChaptersState of the check box.

◆ setNormalizeAudioSelectable

void QtlMovieEditSettings::setNormalizeAudioSelectable ( bool  normalize)
privateslot

Invoked when the check box "normalize audio level" is toggled.

Parameters
normalizeState of the check box.

◆ updateMaxBitRates

void QtlMovieEditSettings::updateMaxBitRates ( )
privateslot

Invoked when iPhone/iPad/Android/AVI video quality is updated, update the corresponding max bitrate.

◆ dvdBurningSpeedChanged

void QtlMovieEditSettings::dvdBurningSpeedChanged ( int  speed)
privateslot

Invoked when the DVD burning speed is changed in the spin box.

Parameters
[in]speedThe new speed in Nx.

◆ setModelScreenSizes()

void QtlMovieEditSettings::setModelScreenSizes ( QtlButtonGrid grid,
const QVector< QtlMovieDeviceProfile > &  models 
)
private

Fill a button grid with all model screen sizes of a specific family of devices.

Parameters
[in]gridThe button grid to fill.
[in]modelsList of devices.

◆ setDefaultExecutable()

void QtlMovieEditSettings::setDefaultExecutable ( const QString &  name,
QLabel *  label,
const QString &  fileName 
)
private

Set the default executable path of a media tool.

Parameters
[in]nameProduct name.
[in,out]labelThe label widget to update.
[in]fileNameThe default executable path.

◆ updateMaxBitRate()

void QtlMovieEditSettings::updateMaxBitRate ( QLabel *  labelMaxBitRate,
const QSpinBox *  spinBoxQuality,
int  width,
int  height,
float  frameRate 
)
private

Update a label containing the maximum video bitrate for an output type.

Parameters
[in,out]labelMaxBitRateLabel to update.
[in]spinBoxQualitySin box containing the video quality.
[in]widthReference video width.
[in]heightReference video height.
[in]frameRateReference video frame rate.

Member Data Documentation

◆ _ui

Ui::QtlMovieEditSettings QtlMovieEditSettings::_ui
private

UI from Qt Designer.

◆ _settings

QtlMovieSettings* QtlMovieEditSettings::_settings
private

Associated QtlMovieSettings object.

◆ _help

QtlMovieHelp* QtlMovieEditSettings::_help
private

Object to display help.

◆ _outDirs

OutputDirectoryMap QtlMovieEditSettings::_outDirs
private

Output directories settings.

◆ _useDvdBurnerCombo

bool QtlMovieEditSettings::_useDvdBurnerCombo
private

Alternate combo box for DVD burner selection.


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