digiKam
Digikam::FileSaveOptionsBox Class Reference
+ Inheritance diagram for Digikam::FileSaveOptionsBox:

Public Member Functions

void applySettings ()
 
DImg::FORMAT discoverFormat (const QString &filename, DImg::FORMAT fallback=DImg::NONE)
 
 FileSaveOptionsBox (QWidget *const parent=nullptr)
 
void setImageFileFormat (const QString &)
 
 ~FileSaveOptionsBox () override
 

Constructor & Destructor Documentation

◆ FileSaveOptionsBox()

Digikam::FileSaveOptionsBox::FileSaveOptionsBox ( QWidget *const  parent = nullptr)
explicit

Constructor. Don't forget to call setDialog after creation of the dialog.

Parameters
parentthe parent for Qt's parent child mechanism

References Digikam::DImg::HEIF, Digikam::DImg::JP2K, Digikam::DImg::JPEG, Digikam::DImg::NONE, Digikam::DImg::PGF, Digikam::DImg::PNG, and Digikam::DImg::TIFF.

◆ ~FileSaveOptionsBox()

Digikam::FileSaveOptionsBox::~FileSaveOptionsBox ( )
override

Destructor.

Member Function Documentation

◆ applySettings()

void Digikam::FileSaveOptionsBox::applySettings ( )

◆ discoverFormat()

DImg::FORMAT Digikam::FileSaveOptionsBox::discoverFormat ( const QString &  filename,
DImg::FORMAT  fallback = DImg::NONE 
)

Tries to discover a file format that has options to change based on a filename.

Parameters
filenamefile name to discover the desired format from
fallbackthe fallback format to return if no format could be discovered based on the filename
Returns
file format guessed from the file name or the given fallback format if no format could be guessed based on the file name

References Digikam::DImg::HEIF, Digikam::DImg::JP2K, Digikam::DImg::JPEG, Digikam::DImg::PGF, Digikam::DImg::PNG, and Digikam::DImg::TIFF.

Referenced by setImageFileFormat().

◆ setImageFileFormat()

void Digikam::FileSaveOptionsBox::setImageFileFormat ( const QString &  ext)

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