![]() |
digiKam
|
#include <filesaveoptionsbox.h>
Public Types | |
enum | FORMAT { NONE = 0 , JPEG , PNG , TIFF , PGF , JXL , WEBP , AVIF } |
Public Member Functions | |
void | applySettings () |
FORMAT | discoverFormat (const QString &filename, FORMAT fallback=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 AVIF, Digikam::DPluginLoader::exportWidget(), Digikam::DPluginLoader::instance(), JPEG, JXL, Digikam::layoutSpacing(), NONE, PGF, PNG, TIFF, and WEBP.
|
override |
Destructor.
void Digikam::FileSaveOptionsBox::applySettings | ( | ) |
FileSaveOptionsBox::FORMAT Digikam::FileSaveOptionsBox::discoverFormat | ( | const QString & | filename, |
FileSaveOptionsBox::FORMAT | fallback = 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 AVIF, JPEG, JXL, PGF, PNG, TIFF, and WEBP.
Referenced by setImageFileFormat().
void Digikam::FileSaveOptionsBox::setImageFileFormat | ( | const QString & | ext | ) |
References discoverFormat(), and NONE.