digiKam
greycstorationsettings.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-09-13
7  * Description : Greycstoration settings widgets
8  *
9  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_GREY_CSTORATION_SETTINGS_H
24 #define DIGIKAM_GREY_CSTORATION_SETTINGS_H
25 
26 // Qt includes
27 
28 #include <QObject>
29 #include <QFile>
30 #include <QString>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 #include "greycstorationfilter.h"
36 
37 class QTabWidget;
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT GreycstorationSettings : public QObject
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit GreycstorationSettings(QTabWidget* const parent);
49  ~GreycstorationSettings() override;
50 
51  void setSettings(const GreycstorationContainer& settings);
52  GreycstorationContainer settings() const;
53 
54  void setDefaultSettings(const GreycstorationContainer& settings);
55 
56  bool loadSettings(QFile& file, const QString& header);
57  void saveSettings(QFile& file, const QString& header);
58 
59  void setEnabled(bool);
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 };
66 
67 } // namespace Digikam
68 
69 #endif // DIGIKAM_GREY_CSTORATION_SETTINGS_H
Definition: greycstorationfilter.h:44
Definition: greycstorationsettings.h:43
Definition: datefolderview.cpp:43