digiKam
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  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_FILE_SAVE_OPTIONS_BOX_H
26 #define DIGIKAM_FILE_SAVE_OPTIONS_BOX_H
27 
28 // Qt includes
29 
30 #include <QStackedWidget>
31 #include <QString>
32 
33 // Local includes
34 
35 #include "dimg.h"
36 #include "digikam_export.h"
37 
38 namespace Digikam
39 {
40 
41 class DIGIKAM_EXPORT FileSaveOptionsBox : public QStackedWidget
42 {
43  Q_OBJECT
44 
45 public:
46 
52  explicit FileSaveOptionsBox(QWidget* const parent = nullptr);
53 
57  ~FileSaveOptionsBox() override;
58 
59  void applySettings();
60 
71  DImg::FORMAT discoverFormat(const QString& filename, DImg::FORMAT fallback = DImg::NONE);
72 
73  void setImageFileFormat(const QString&);
74 
75 private:
76 
77  void readSettings();
78 
79 private:
80 
81  class Private;
82  Private* const d;
83 };
84 
85 } // namespace Digikam
86 
87 #endif // DIGIKAM_FILE_SAVE_OPTIONS_BOX_H
FORMAT
Definition: dimg.h:66
@ NONE
Definition: dimg.h:71
Definition: filesaveoptionsbox.h:42
Definition: datefolderview.cpp:43