A subclass of QMainWindow which implements the UI for the application. More...
Public Member Functions | |
QtlMovieMainWindow (QWidget *parent=0, const QStringList &initialFileNames=QStringList(), bool logDebug=false) | |
Constructor. More... | |
bool | restartRequested () const |
Check if a restart of the application was requested by the user. More... | |
![]() | |
QtlMovieMainWindowBase (QWidget *parent=0, bool logDebug=false) | |
Constructor. More... | |
virtual | ~QtlMovieMainWindowBase () |
Destructor. More... | |
bool | closePending () const |
Check if the application is about to close. More... | |
QtlLogger * | log () const |
Get the global logger of the application. More... | |
void | playNotificationSound () |
Start to play the notification sound. More... | |
void | setIconTaskBarValue (int value, int maximum) |
Set the value of the task bar in the application's icon. More... | |
void | setIconTaskBarVisible (bool visible) |
Set the task bar in the application's icon visible (or not). More... | |
QtlMovieSettings * | settings () const |
Get the global settings of the application. More... | |
Private Slots | |
void | cancelTranscoding () |
Invoked by the "Cancel ..." buttons. More... | |
void | deferredAbort () |
Abort the transcoding, using a slot to defer the abort when back in the event loop. More... | |
void | startDvdExtraction () |
Invoked by the "DVD Extraction..." button. More... | |
void | startTranscoding () |
Invoked by the "Transcode ..." buttons. More... | |
void | switchMode () |
Invoked by the "Switch to {Single File|Batch} Mode" button. More... | |
void | transcodingProgress (const QString &description, int current, int maximum, int elapsedSeconds, int remainingSeconds) |
Invoked when some progress is made in the transcoding process. More... | |
void | transcodingStarted () |
Invoked when transcoding starts. More... | |
void | transcodingStopped (bool success) |
Invoked when transcoding stops. More... | |
Private Member Functions | |
virtual void | applyUserInterfaceSettings (bool initial) Q_DECL_OVERRIDE |
Apply the settings which affect the UI. More... | |
virtual CancelStatus | proposeToCancel () Q_DECL_OVERRIDE |
Check if an encoding is currently in progress and propose to abort it. More... | |
bool | startNewJob (QtlMovieTask *task) |
Create and start a new job. More... | |
void | transcodingUpdateUi (bool started) |
Update the UI when transcoding starts or stops. More... | |
Private Attributes | |
bool | _batchMode |
The UI is currently in batch mode (ie not single file mode). More... | |
QtlMovieJob * | _job |
Current transcoding job. More... | |
bool | _restartRequested |
A restart of the application is requested. More... | |
Ui::QtlMovieMainWindow | _ui |
UI from Qt Designer. More... | |
Additional Inherited Members | |
![]() | |
void | about () |
Invoked by the "About" button. More... | |
void | aboutMediaTools () |
Invoked by the "About Media Tools" button. More... | |
void | editSettings () |
Invoked by the "Settings..." button. More... | |
void | openHomePage () |
Invoked by the "Home Page" button. More... | |
void | openSupportPage () |
Invoked by the "Support & Bug Report" button. More... | |
void | searchNewVersion (bool silent=false) |
Invoked by the "Search New Version" button. More... | |
void | showHelp () |
Invoked by the "Help" button. More... | |
void | showReleaseNotes () |
Invoked by the "Release Notes" button. More... | |
![]() | |
enum | CancelStatus { NothingToCancel, CancelInProgress, CancelRefused } |
The type of cancelation. More... | |
![]() | |
virtual void | closeEvent (QCloseEvent *event) |
Event handler to handle window close. More... | |
void | setupUserInterface (QtlLogger *log, QAction *aboutQt) |
Finalize the setup of the user interface. More... | |
A subclass of QMainWindow which implements the UI for the application.
The design of the UI is done using Qt Designer.
|
explicit |
Constructor.
[in] | parent | Optional parent widget. |
[in] | initialFileNames | Optional initial input files, typically from the command line. |
[in] | logDebug | If true, set initial log mode to debug. |
|
inline |
Check if a restart of the application was requested by the user.
|
privateslot |
Invoked by the "Transcode ..." buttons.
|
privateslot |
Invoked by the "Cancel ..." buttons.
|
privateslot |
Abort the transcoding, using a slot to defer the abort when back in the event loop.
|
privateslot |
Invoked by the "DVD Extraction..." button.
|
privateslot |
Invoked by the "Switch to {Single File|Batch} Mode" button.
|
privateslot |
Invoked when transcoding starts.
|
privateslot |
Invoked when transcoding stops.
[in] | success | Indicates whether the transcoding succeeded or failed. |
|
privateslot |
Invoked when some progress is made in the transcoding process.
[in] | description | The description of the current process. |
[in] | current | Current value (whatever unit it means). |
[in] | maximum | Value indicating full completion. If zero, we cannot evaluate the progress. |
[in] | elapsedSeconds | Elapsed seconds since the process started. |
[in] | remainingSeconds | Estimated remaining seconds to process. Negative if the remaining time cannot be estimated. |
|
privatevirtual |
Check if an encoding is currently in progress and propose to abort it.
If the user accept to abort it, start the cancelation. The completion of the cancelation will be notified later by transcodingStopped().
Implements QtlMovieMainWindowBase.
|
privatevirtual |
Apply the settings which affect the UI.
[in] | initial | If true, the object is being constructed. |
Reimplemented from QtlMovieMainWindowBase.
|
private |
Update the UI when transcoding starts or stops.
[in] | started | True if transcoding starts, false if transcoding stops. |
|
private |
Create and start a new job.
[in] | task | The task to execute in the job. |
|
private |
UI from Qt Designer.
|
private |
Current transcoding job.
|
private |
The UI is currently in batch mode (ie not single file mode).
|
private |
A restart of the application is requested.