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

A subclass of QDialog with additional features. More...

Inheritance diagram for QtlDialog:
QtlBrowserDialog QtlMovieAboutMediaTools QtlMovieAudioTestDialog QtlMovieEditSettings QtlMovieEditTaskDialog QtlMovieInputFilePropertiesDialog QtlTextFileViewer

Public Member Functions

 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...
 

Protected Member Functions

virtual bool event (QEvent *event) Q_DECL_OVERRIDE
 Process an event. More...
 

Private Member Functions

 QtlDialog () Q_DECL_EQ_DELETE
 
void restoreGeometryFromSettings ()
 Last saved geometry. More...
 
void saveGeometryToSettings ()
 Save the geometry to _geometrySettings. More...
 

Private Attributes

int _eventRecursion
 Where to save and restore the dialog geometry. More...
 
bool _geometrySaved
 Recursion counter in event(). More...
 
QtlGeometrySettingsInterface_geometrySettings
 
QRect _lastSavedGeometry
 If true, last geometry was saved as _lastSavedGeometry. More...
 

Detailed Description

A subclass of QDialog with additional features.

Constructor & Destructor Documentation

◆ QtlDialog() [1/2]

QtlDialog::QtlDialog ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0,
QtlGeometrySettingsInterface geometrySettings = 0 
)
explicit

Constructor.

Parameters
[in]parentOptional parent widget.
[in]flagsWidget flags.
[in]geometrySettingsWhere to save and restore the dialog geometry.

◆ QtlDialog() [2/2]

QtlDialog::QtlDialog ( )
private

Member Function Documentation

◆ geometrySettings()

QtlGeometrySettingsInterface* QtlDialog::geometrySettings ( ) const
inline

Get the object where to save and restore the dialog geometry.

Returns
The object where to save and restore the dialog geometry. Can be null.

◆ setGeometrySettings()

void QtlDialog::setGeometrySettings ( QtlGeometrySettingsInterface geometrySettings,
bool  restoreImmediately = false 
)

Set the object where to save and restore the dialog geometry.

Parameters
[in]geometrySettingsThe object where to save and restore the dialog geometry. Can be null.
[in]restoreImmediatelyIf true and geometrySettings is not null, immediately restore the geometry.

◆ event()

bool QtlDialog::event ( QEvent *  event)
protectedvirtual

Process an event.

Reimplemented from QObject and QWidget.

Parameters
[in,out]eventThe event to process.
Returns
True if the event was recognized and processed.

◆ restoreGeometryFromSettings()

void QtlDialog::restoreGeometryFromSettings ( )
private

Last saved geometry.

Restore the geometry from _geometrySettings.

◆ saveGeometryToSettings()

void QtlDialog::saveGeometryToSettings ( )
private

Save the geometry to _geometrySettings.

Member Data Documentation

◆ _geometrySettings

QtlGeometrySettingsInterface* QtlDialog::_geometrySettings
private

◆ _eventRecursion

int QtlDialog::_eventRecursion
private

Where to save and restore the dialog geometry.

◆ _geometrySaved

bool QtlDialog::_geometrySaved
private

Recursion counter in event().

◆ _lastSavedGeometry

QRect QtlDialog::_lastSavedGeometry
private

If true, last geometry was saved as _lastSavedGeometry.


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