digiKam
Loading...
Searching...
No Matches
filesaveoptionsbox.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2007-08-02
7 * Description : a stack of widgets to set image file save
8 * options into image editor.
9 *
10 * SPDX-FileCopyrightText: 2007-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QStackedWidget>
21#include <QString>
22
23// Local includes
24
25#include "digikam_export.h"
26#include "digikam_config.h"
27
28namespace Digikam
29{
30
31class DIGIKAM_EXPORT FileSaveOptionsBox : public QStackedWidget
32{
33 Q_OBJECT
34
35public:
36
37 enum FORMAT
38 {
43 NONE = 0,
47
48#ifdef HAVE_JASPER
49
50 JP2K,
51
52#endif
53
55
56#ifdef HAVE_X265
57
58 HEIF,
59
60#endif
61
64 AVIF
65 };
66
67public:
68
74 explicit FileSaveOptionsBox(QWidget* const parent = nullptr);
75
79 ~FileSaveOptionsBox() override;
80
81 void applySettings();
82
93 FORMAT discoverFormat(const QString& filename, FORMAT fallback = NONE);
94
95 void setImageFileFormat(const QString&);
96
97private:
98
99 void readSettings();
100
101private:
102
103 class Private;
104 Private* const d = nullptr;
105};
106
107} // namespace Digikam
Definition filesaveoptionsbox.h:32
FORMAT
Definition filesaveoptionsbox.h:38
@ WEBP
Definition filesaveoptionsbox.h:63
@ TIFF
Definition filesaveoptionsbox.h:46
@ PNG
Definition filesaveoptionsbox.h:45
@ PGF
Definition filesaveoptionsbox.h:54
@ JPEG
Definition filesaveoptionsbox.h:44
@ JXL
Definition filesaveoptionsbox.h:62
Definition datefolderview.cpp:34