digiKam
Loading...
Searching...
No Matches
Digikam::FileSaveOptionsBox Class Reference

#include <filesaveoptionsbox.h>

+ Inheritance diagram for Digikam::FileSaveOptionsBox:

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
 

Member Enumeration Documentation

◆ FORMAT

Enumerator
NONE 

NOTE: Order is important here: See filesaveoptionbox.cpp which use these values to fill a stack of widgets.

JPEG 
PNG 
TIFF 
PGF 
JXL 
WEBP 
AVIF 

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 AVIF, Digikam::DPluginLoader::exportWidget(), Digikam::DPluginLoader::instance(), JPEG, JXL, Digikam::layoutSpacing(), NONE, PGF, PNG, TIFF, and WEBP.

◆ ~FileSaveOptionsBox()

Digikam::FileSaveOptionsBox::~FileSaveOptionsBox ( )
override

Destructor.

Member Function Documentation

◆ applySettings()

void Digikam::FileSaveOptionsBox::applySettings ( )

◆ discoverFormat()

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.

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 AVIF, JPEG, JXL, PGF, PNG, TIFF, and WEBP.

Referenced by setImageFileFormat().

◆ setImageFileFormat()

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

References discoverFormat(), and NONE.


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