A subclass of QMainWindow, used as intermediate base for the main UI's in the application. More...
Public Slots | |
| 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... | |
Public Member Functions | |
| 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 Types | |
| enum | CancelStatus { NothingToCancel, CancelInProgress, CancelRefused } |
| The type of cancelation. More... | |
Protected Member Functions | |
| virtual void | applyUserInterfaceSettings (bool initial) |
| Apply the settings which affect the UI. More... | |
| virtual void | closeEvent (QCloseEvent *event) |
| Event handler to handle window close. More... | |
| virtual CancelStatus | proposeToCancel ()=0 |
| Check if some work is currently in progress and propose to abort it. More... | |
| void | setupUserInterface (QtlLogger *log, QAction *aboutQt) |
| Finalize the setup of the user interface. More... | |
Private Attributes | |
| bool | _closePending |
| Close the application as soon as possible. More... | |
| QtlStdoutLogger | _defaultLog |
| Default logger, until set by application. More... | |
| QtlMovieHelp | _help |
| To display help. More... | |
| QtlLogger * | _log |
| Application logger, typically a text window. More... | |
| QtlMovieSettings * | _settings |
| Global settings. More... | |
| QSoundEffect | _sound |
| Sound player for notification. More... | |
A subclass of QMainWindow, used as intermediate base for the main UI's in the application.
|
protected |
|
explicit |
Constructor.
| [in] | parent | Optional parent widget. |
| [in] | logDebug | If true, set initial log mode to debug. |
|
virtual |
Destructor.
|
inline |
Get the global logger of the application.
|
inline |
Check if the application is about to close.
Typically, this is after a close action on the window, the subclass started to abort the processing and we are waiting for the abort processing to complete.
|
inline |
Get the global settings of the application.
| void QtlMovieMainWindowBase::playNotificationSound | ( | ) |
Start to play the notification sound.
| void QtlMovieMainWindowBase::setIconTaskBarVisible | ( | bool | visible | ) |
Set the task bar in the application's icon visible (or not).
| [in] | visible | Whether or not set task bar should be visible. |
| void QtlMovieMainWindowBase::setIconTaskBarValue | ( | int | value, |
| int | maximum | ||
| ) |
Set the value of the task bar in the application's icon.
| [in] | value | The value to set, between zero and maximum. |
| [in] | maximum | Maximum value. |
|
slot |
Invoked by the "Settings..." button.
|
slot |
Invoked by the "About Media Tools" button.
|
slot |
Invoked by the "About" button.
|
slot |
Invoked by the "Help" button.
|
slot |
Invoked by the "Release Notes" button.
|
slot |
Invoked by the "Search New Version" button.
| [in] | silent | Do not report errors or no new version. |
|
slot |
Invoked by the "Home Page" button.
|
slot |
Invoked by the "Support & Bug Report" button.
|
protected |
Finalize the setup of the user interface.
Should be called by the constructor of a subclass after the UI is created.
| [in] | log | Optional log window in the subclass application. |
| [in] | aboutQt | Optional menu action "About Qt" in the application. |
|
inlineprotectedvirtual |
Apply the settings which affect the UI.
Invoked when the settings are loaded or changed. Should be reimplemented by subclasses.
| [in] | initial | If true, the object is being constructed. If false, this is typically following the edition of settings. |
Reimplemented in QtlMovieDvdExtractionWindow, and QtlMovieMainWindow.
|
protectedpure virtual |
Check if some work is currently in progress and propose to abort it.
Must be reimplemented by subclasses.
Implemented in QtlMovieDvdExtractionWindow, and QtlMovieMainWindow.
|
protectedvirtual |
Event handler to handle window close.
| event | Notified event. |
Reimplemented in QtlMovieDvdExtractionWindow.
|
private |
Global settings.
|
private |
Default logger, until set by application.
|
private |
Application logger, typically a text window.
|
private |
Sound player for notification.
|
private |
To display help.
|
private |
Close the application as soon as possible.