digiKam
Loading...
Searching...
No Matches
dsavesettingswidget.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 : 2006-09-13
7 * Description : a widget to provide options to save image.
8 *
9 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QWidget>
20
21// Local includes
22
23#include "digikam_export.h"
24#include "filesaveconflictbox.h"
25
26class KConfigGroup;
27
28namespace Digikam
29{
30
31class DIGIKAM_EXPORT DSaveSettingsWidget : public QWidget
32{
33 Q_OBJECT
34
35public:
36
38 {
39 OUTPUT_PNG = 0,
42 OUTPUT_PPM
43 };
44
45public:
46
47 explicit DSaveSettingsWidget(QWidget* const parent);
48 ~DSaveSettingsWidget() override;
49
50public:
51
52 void setCustomSettingsWidget(QWidget* const custom);
53
54 OutputFormat fileFormat() const;
55 void setFileFormat(OutputFormat f);
56
57 FileSaveConflictBox::ConflictRule conflictRule() const;
58 void setConflictRule(FileSaveConflictBox::ConflictRule r);
59
60 QString extension() const;
61 QString typeMime() const;
62
63 void resetToDefault();
64
65 void readSettings(KConfigGroup& group);
66 void writeSettings(KConfigGroup& group);
67
68 static QString extensionForFormat(OutputFormat format);
69
70public Q_SLOTS:
71
72 void slotPopulateImageFormat(bool sixteenBits);
73
74Q_SIGNALS:
75
78
79private:
80
81 class Private;
82 Private* const d = nullptr;
83};
84
85} // namespace Digikam
Definition dsavesettingswidget.h:32
OutputFormat
Definition dsavesettingswidget.h:38
@ OUTPUT_JPEG
Definition dsavesettingswidget.h:41
@ OUTPUT_TIFF
Definition dsavesettingswidget.h:40
ConflictRule
Definition filesaveconflictbox.h:37
Definition datefolderview.cpp:34