digiKam
curvesadjust.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 : 2010-03-02
7  * Description : Curves Adjust batch tool.
8  *
9  * Copyright (C) 2010-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)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_BQM_CURVES_ADJUST_H
25 #define DIGIKAM_BQM_CURVES_ADJUST_H
26 
27 // Local includes
28 
29 #include "batchtool.h"
30 #include "curvessettings.h"
31 
32 class QComboBox;
33 
34 using namespace Digikam;
35 
37 {
38 
39 class CurvesAdjust : public BatchTool
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit CurvesAdjust(QObject* const parent = nullptr);
46  ~CurvesAdjust() override;
47 
48  BatchToolSettings defaultSettings() override;
49 
50  BatchTool* clone(QObject* const parent = nullptr) const override;
51 
52  void registerSettingsWidget() override;
53 
54 public Q_SLOTS:
55 
56  void slotResetSettingsToDefault();
57 
58 private:
59 
60  bool toolOperations() override;
61 
62 private Q_SLOTS:
63 
64  void slotChannelChanged();
65  void slotAssignSettings2Widget() override;
66  void slotSettingsChanged() override;
67  void slotSettingsLoad();
68 
69 private:
70 
71  DImg m_preview;
72  QComboBox* m_channelCB;
73  CurvesSettings* m_settingsView;
74 };
75 
76 } // namespace DigikamBqmCurvesAdjustPlugin
77 
78 #endif // DIGIKAM_BQM_CURVES_ADJUST_H
Definition: curvesadjust.h:40
Definition: batchtool.h:56
Definition: curvessettings.h:45
Definition: dimg.h:62
Definition: curvesadjust.cpp:45
Definition: datefolderview.cpp:43
QMap< QString, QVariant > BatchToolSettings
Definition: batchtool.h:48