digiKam
|
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 | |
|
explicit |
Constructor. Don't forget to call setDialog after creation of the dialog.
parent | the 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.
|
override |
Destructor.
void Digikam::FileSaveOptionsBox::applySettings | ( | ) |
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.
filename | file name to discover the desired format from |
fallback | the fallback format to return if no format could be discovered based on the filename |
References Digikam::DImg::HEIF, Digikam::DImg::JP2K, Digikam::DImg::JPEG, Digikam::DImg::PGF, Digikam::DImg::PNG, and Digikam::DImg::TIFF.
Referenced by setImageFileFormat().
void Digikam::FileSaveOptionsBox::setImageFileFormat | ( | const QString & | ext | ) |
References discoverFormat(), and Digikam::DImg::NONE.