Description of the global settings of the application. More...
Public Types | |
enum | AudioNormalizeMode { Compress, AlignPeak, Clip } |
Define how to normalize the audio when the input dymanic range is too large. More... | |
Public Member Functions | |
QtlMovieSettings (QtlLogger *log, QObject *parent=0) | |
Constructor. More... | |
QtlMovieDeviceProfile | android () const |
Get the selected model of Android device. More... | |
QStringList | audienceLanguages () const |
Get the list of language codes for the intended audience. More... | |
int | aviVideoBitrate (int width, int height) const |
Compute the video bitrate for AVI. More... | |
QString | defaultOutputDir (const QString &outputType, bool force=false) const |
Get the default output directory for a given output type. More... | |
int | dvdVideoHeight () const |
Get the video height of created DVD. More... | |
int | dvdVideoWidth () const |
Get the video width of created DVD. More... | |
QString | initialInputDir () const |
Get the initial input directory. More... | |
QtlMovieDeviceProfile | iPad () const |
Get the selected model of iPad. More... | |
QtlMovieDeviceProfile | iPhone () const |
Get the selected model of iPhone. More... | |
QtlLogger * | log () const |
Get the log. More... | |
void | reportMissingTools () const |
Report missing media tools in the log. More... | |
void | setAudienceLanguages (const QStringList &audienceLanguages) |
Set the list of language codes for the intended audience. More... | |
void | setDefaultOutputDir (const QString &outputType, const QString &defaultOutDir) |
Set the default output directory for a given output type. More... | |
void | setInitialInputDir (const QString &initialInputDir) |
Set the initial input directory. More... | |
![]() | |
QtlSettings (const QString &organization, const QString &application, QObject *parent=0) | |
Constructor. More... | |
virtual void | restoreGeometry (QWidget *widget) Q_DECL_OVERRIDE |
Restore the geometry of a widget. More... | |
template<class WIDGET > | |
void | restoreState (WIDGET *widget) |
Restore the "state" of a widget, for widget classes implementing save/restore state. More... | |
virtual void | saveGeometry (const QWidget *widget) Q_DECL_OVERRIDE |
Save the geometry of a widget. More... | |
template<class WIDGET > | |
void | saveState (const WIDGET *widget) |
Save the "state" of a widget, for widget classes implementing save/restore state. More... | |
void | sync () |
Make sure that all settings are properly saved on disk immediately. More... | |
Static Private Member Functions | |
static void | normalize (QStringList &list) |
"Normalize" a string list: lower case, sorted. More... | |
Private Attributes | |
QtlMovieExecFile * | _ccextractorDefault |
CCExtractor default executable description. More... | |
QtlMovieExecFile * | _ccextractorExplicit |
CCExtractor explicit executable description. More... | |
QtlMovieExecFile * | _dvdauthorDefault |
DvdAuthor default executable description. More... | |
QtlMovieExecFile * | _dvdauthorExplicit |
DvdAuthor explicit executable description. More... | |
QtlMovieExecFile * | _ffmpegDefault |
FFmpeg default executable description. More... | |
QtlMovieExecFile * | _ffmpegExplicit |
FFmpeg explicit executable description. More... | |
QtlMovieExecFile * | _ffprobeDefault |
FFprobe default executable description. More... | |
QtlMovieExecFile * | _ffprobeExplicit |
FFprobe explicit executable description. More... | |
QtlMovieExecFile * | _growisofsDefault |
Growisofs default executable description. More... | |
QtlMovieExecFile * | _growisofsExplicit |
Growisofs explicit executable description. More... | |
QtlLogger * | _log |
Where to log errors. More... | |
QtlMovieExecFile * | _mkisofsDefault |
Mkisofs default executable description. More... | |
QtlMovieExecFile * | _mkisofsExplicit |
Mkisofs explicit executable description. More... | |
Additional Inherited Members | |
![]() | |
bool | boolValue (const QString &key, bool defaultValue) const |
Get a boolean value from the settings. More... | |
int | intValue (const QString &key, int defaultValue) const |
Get an integer value from the settings. More... | |
![]() | |
QSettings | _settings |
Settings in Qt format, accessible to subclasses. More... | |
Description of the global settings of the application.
Refer to the QtlMovie user guide for the definition of each setting.
|
explicit |
Constructor.
[in] | log | Where to log errors. |
[in] | parent | Optional parent widget. |
|
inline |
Get the log.
void QtlMovieSettings::reportMissingTools | ( | ) | const |
Report missing media tools in the log.
QString QtlMovieSettings::initialInputDir | ( | ) | const |
Get the initial input directory.
void QtlMovieSettings::setInitialInputDir | ( | const QString & | initialInputDir | ) |
Set the initial input directory.
[in] | initialInputDir | Set the initial input directory. Specify an empty string to reset to the default. |
QString QtlMovieSettings::defaultOutputDir | ( | const QString & | outputType, |
bool | force = false |
||
) | const |
Get the default output directory for a given output type.
[in] | outputType | Output type. |
[in] | force | When true, return the stored directory value, even if defaultOutputDirIsInput() is true. |
void QtlMovieSettings::setDefaultOutputDir | ( | const QString & | outputType, |
const QString & | defaultOutDir | ||
) |
Set the default output directory for a given output type.
[in] | outputType | Output type. |
[in] | defaultOutDir | Default output directory for the specified output type. If empty, the same directory as the input file will be used for the specified output type. |
QStringList QtlMovieSettings::audienceLanguages | ( | ) | const |
Get the list of language codes for the intended audience.
void QtlMovieSettings::setAudienceLanguages | ( | const QStringList & | audienceLanguages | ) |
Set the list of language codes for the intended audience.
[in] | audienceLanguages | List of language codes for the intended audience. |
int QtlMovieSettings::dvdVideoWidth | ( | ) | const |
Get the video width of created DVD.
int QtlMovieSettings::dvdVideoHeight | ( | ) | const |
Get the video height of created DVD.
QtlMovieDeviceProfile QtlMovieSettings::iPad | ( | ) | const |
Get the selected model of iPad.
QtlMovieDeviceProfile QtlMovieSettings::iPhone | ( | ) | const |
Get the selected model of iPhone.
QtlMovieDeviceProfile QtlMovieSettings::android | ( | ) | const |
Get the selected model of Android device.
|
inline |
Compute the video bitrate for AVI.
[in] | width | Actual video width in pixels. |
[in] | height | Actual video height in pixels. |
|
staticprivate |
"Normalize" a string list: lower case, sorted.
list | List of strings to normalize. |
|
private |
Where to log errors.
|
private |
FFmpeg default executable description.
|
private |
FFmpeg explicit executable description.
|
private |
FFprobe default executable description.
|
private |
FFprobe explicit executable description.
|
private |
DvdAuthor default executable description.
|
private |
DvdAuthor explicit executable description.
|
private |
Mkisofs default executable description.
|
private |
Mkisofs explicit executable description.
|
private |
Growisofs default executable description.
|
private |
Growisofs explicit executable description.
|
private |
CCExtractor default executable description.
|
private |
CCExtractor explicit executable description.