digiKam
channelmixertool.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 : 2005-02-26
7  * Description : image channels mixer.
8  *
9  * Copyright (C) 2005-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_CHANNEL_MIXER_TOOL_H
25 #define DIGIKAM_EDITOR_CHANNEL_MIXER_TOOL_H
26 
27 // Local includes
28 
29 #include "editortool.h"
30 
31 using namespace Digikam;
32 
34 {
35 
37 {
38  Q_OBJECT
39 
40 public:
41 
42  explicit ChannelMixerTool(QObject* const parent);
43  ~ChannelMixerTool() override;
44 
45 private:
46 
47  void readSettings() override;
48  void writeSettings() override;
49  void preparePreview() override;
50  void prepareFinal() override;
51  void setPreviewImage() override;
52  void setFinalImage() override;
53 
54  void updateSettingsWidgets();
55 
56 private Q_SLOTS:
57 
58  void slotResetSettings() override;
59  void slotSaveAsSettings() override;
60  void slotLoadSettings() override;
61  void slotOutChannelChanged();
62 
63 private:
64 
65  class Private;
66  Private* const d;
67 };
68 
69 } // namespace DigikamEditorChannelMixerToolPlugin
70 
71 #endif // DIGIKAM_EDITOR_CHANNEL_MIXER_TOOL_H
Definition: editortool.h:136
Definition: channelmixertool.cpp:60
Definition: datefolderview.cpp:43