digiKam
adjustcurvestool.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 : 2004-12-01
7  * Description : image histogram adjust curves.
8  *
9  * Copyright (C) 2004-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_EDITOR_ADJUST_CURVES_TOOL_H
25 #define DIGIKAM_EDITOR_ADJUST_CURVES_TOOL_H
26 
27 // Local includes
28 
29 #include "editortool.h"
30 #include "dcolor.h"
31 
32 using namespace Digikam;
33 
35 {
36 
38 {
39  Q_OBJECT
40 
41 public:
42 
43  explicit AdjustCurvesTool(QObject* const parent);
44  ~AdjustCurvesTool() override;
45 
46 private Q_SLOTS:
47 
48  void slotSaveAsSettings() override;
49  void slotLoadSettings() override;
50  void slotResetSettings() override;
51  void slotPickerColorButtonActived(int);
52  void slotSpotColorChanged();
53  void slotColorSelectedFromTarget(const Digikam::DColor&);
54  void slotResetCurrentChannel();
55  void slotChannelChanged() override;
56  void slotScaleChanged() override;
57 
58 private:
59 
60  void readSettings() override;
61  void writeSettings() override;
62  void preparePreview() override;
63  void prepareFinal() override;
64  void setPreviewImage() override;
65  void setFinalImage() override;
66 
67 private:
68 
69  class Private;
70  Private* const d;
71 };
72 
73 } // namespace DigikamEditorAdjustCurvesToolPlugin
74 
75 #endif // DIGIKAM_EDITOR_ADJUST_CURVES_TOOL_H
Definition: dcolor.h:43
Definition: editortool.h:136
Definition: adjustcurvestool.cpp:57
Definition: datefolderview.cpp:43