digiKam
colorfxtool.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-02-14
7  * Description : a digiKam image tool for to apply a color
8  * effect to an image.
9  *
10  * Copyright (C) 2004-2005 by Renchi Raju <renchi dot raju at gmail dot com>
11  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_EDITOR_COLOR_FX_TOOL_H
27 #define DIGIKAM_EDITOR_COLOR_FX_TOOL_H
28 
29 // Local includes
30 
31 #include "editortool.h"
32 #include "dimg.h"
33 
34 using namespace Digikam;
35 
37 {
38 
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit ColorFxTool(QObject* const parent);
46  ~ColorFxTool() override;
47 
48 private:
49 
50  void readSettings() override;
51  void writeSettings() override;
52  void preparePreview() override;
53  void prepareFinal() override;
54  void setPreviewImage() override;
55  void setFinalImage() override;
56 
57 private Q_SLOTS:
58 
59  void slotInit() override;
60  void slotResetSettings() override;
61  void slotColorSelectedFromTarget(const Digikam::DColor& color);
62 
63 private:
64 
65  class Private;
66  Private* const d;
67 };
68 
69 } // namespace DigikamEditorColorFxToolPlugin
70 
71 #endif // DIGIKAM_EDITOR_COLOR_FX_TOOL_H
Definition: dcolor.h:43
Definition: editortool.h:136
Definition: colorfxtool.cpp:60
Definition: datefolderview.cpp:43