A subclass of QMainWindow which implements the UI for the DVD Ripper application. More...
Public Member Functions | |
QtlMovieDvdExtractionWindow (QWidget *parent=0, bool logDebug=false) | |
Constructor. 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... | |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *event) Q_DECL_OVERRIDE |
Event handler to handle window close. More... | |
![]() | |
void | setupUserInterface (QtlLogger *log, QAction *aboutQt) |
Finalize the setup of the user interface. More... | |
Private Slots | |
void | browseDestination () |
Invoked by the "Browse..." button for the output directory for DVD extraction. More... | |
void | cancelExtraction () |
Invoked by the "Cancel ..." buttons. More... | |
void | deferredAbort () |
Abort the extraction, using a slot to defer the abort when back in the event loop. More... | |
void | extractionProgress (const QString &description, int current, int maximum, int elapsedSeconds, int remainingSeconds) |
Invoked when some progress is made in the extraction process. More... | |
void | extractionStarted () |
Invoked when extraction starts. More... | |
void | extractionStopped (bool success) |
Invoked when extraction stops. More... | |
void | refresh () |
Invoked by the "Refresh ..." buttons. More... | |
void | selectedDvdChanged () |
Invoked when the selected DVD has changed. More... | |
void | startExtraction () |
Invoked by the "Start ..." buttons. More... | |
void | updateIsoFileFromVolumeId () |
Update the name of the ISO file to match the volume id of the DVD. More... | |
void | updateIsoFullPath () |
Update the label containing the ISO full path. More... | |
Private Member Functions | |
void | addDirectoryTree (const QtsDvdDirectory &dir) |
Add a tree of files and directories in the table of files. More... | |
void | addFileForExtraction (const QtsDvdFile &file) |
Add a file in the current extraction. More... | |
void | addRowTableFiles (const QtsDvdFilePtr &file) |
Add a row in the files table. More... | |
void | addRowTableTitleSets (const QtsDvdTitleSetPtr &vts) |
Add a row in the VTS table. More... | |
virtual void | applyUserInterfaceSettings (bool initial) Q_DECL_OVERRIDE |
Apply the settings which affect the UI. More... | |
QtsDvdMediaPtr | currentDvd () const |
Get the currently selected DVD. More... | |
void | extractionUpdateUi (bool started) |
Update the UI when extraction starts or stops. More... | |
virtual CancelStatus | proposeToCancel () Q_DECL_OVERRIDE |
Check if an extraction is currently in progress and propose to abort it. More... | |
void | refreshDvdList () |
Refresh the list of DVD's. More... | |
void | refreshFilesList () |
Refresh the list of files. More... | |
void | refreshVtsList () |
Refresh the list of video title sets. More... | |
void | setupTable (QTableWidget *table) |
Common setup for the VTS and Files tables. More... | |
void | setupTableFiles () |
Setup the files table. More... | |
void | setupTableTitleSets () |
Setup the VTS table. More... | |
Private Attributes | |
QList< QtsDvdMediaPtr > | _dvdList |
List of detected DVD's. More... | |
QtlMovieDvdExtractionSession * | _extraction |
Current extraction. More... | |
Ui::QtlMovieDvdExtractionWindow | _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... | |
A subclass of QMainWindow which implements the UI for the DVD Ripper application.
The design of the UI is done using Qt Designer.
|
explicit |
Constructor.
[in] | parent | Optional parent widget. |
[in] | logDebug | If true, set initial log mode to debug. |
|
privateslot |
Invoked by the "Refresh ..." buttons.
|
privateslot |
Invoked by the "Start ..." buttons.
|
privateslot |
Invoked by the "Cancel ..." buttons.
|
privateslot |
Abort the extraction, using a slot to defer the abort when back in the event loop.
|
privateslot |
Invoked when extraction starts.
|
privateslot |
Invoked when extraction stops.
[in] | success | Indicates whether the extraction succeeded or failed. |
|
privateslot |
Invoked when some progress is made in the extraction 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. |
|
privateslot |
Invoked when the selected DVD has changed.
|
privateslot |
Update the name of the ISO file to match the volume id of the DVD.
|
privateslot |
Update the label containing the ISO full path.
|
inlineprivateslot |
Invoked by the "Browse..." button for the output directory for DVD extraction.
|
protectedvirtual |
Event handler to handle window close.
event | Notified event. |
Reimplemented from QtlMovieMainWindowBase.
|
privatevirtual |
Check if an extraction 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 extractionStopped().
Implements QtlMovieMainWindowBase.
|
private |
Common setup for the VTS and Files tables.
[in] | table | The table to setup. |
|
private |
Setup the VTS table.
|
private |
Add a row in the VTS table.
[in] | vts | Description of the VTS to add. |
|
private |
Setup the files table.
|
private |
Add a row in the files table.
[in] | file | Description of the file to add. |
|
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 extraction starts or stops.
[in] | started | True if extraction starts, false if it stops. |
|
private |
Get the currently selected DVD.
|
private |
Refresh the list of DVD's.
|
private |
Refresh the list of video title sets.
|
private |
Refresh the list of files.
|
private |
Add a file in the current extraction.
[in] | file | File description. |
|
private |
Add a tree of files and directories in the table of files.
[in] | dir | Directory description. |
|
private |
UI from Qt Designer.
|
private |
List of detected DVD's.
|
private |
Current extraction.