digiKam
filmtool.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 : 2012-02-05
7  * Description : film color negative inverter tool
8  *
9  * Copyright (C) 2012 by Matthias Welwarsky <matthias at welwarsky dot de>
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_FILM_TOOL_H
25 #define DIGIKAM_EDITOR_FILM_TOOL_H
26 
27 // Local includes
28 
29 #include "editortool.h"
30 #include "dcolor.h"
31 
32 class QListWidgetItem;
33 
34 using namespace Digikam;
35 
37 {
38 
39 class FilmProfile;
40 
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit FilmTool(QObject* const parent);
48  ~FilmTool() override;
49 
50 private Q_SLOTS:
51 
52  void slotResetSettings() override;
53  void slotScaleChanged() override;
54  void slotChannelChanged() override;
55  void slotAdjustSliders();
56  void slotFilmItemActivated(QListWidgetItem* item);
57  void slotExposureChanged(double val);
58  void slotGammaInputChanged(double val);
59  void slotColorSelectedFromTarget(const Digikam::DColor& color, const QPoint& p);
60  void slotPickerColorButtonActived(bool checked);
61  void slotResetWhitePoint();
62  void slotColorBalanceStateChanged(int);
63  void slotAutoWhitePoint(void);
64 
65 private:
66 
67  void readSettings() override;
68  void writeSettings() override;
69  void preparePreview() override;
70  void prepareFinal() override;
71  void setPreviewImage() override;
72  void setFinalImage() override;
73 
74  void gammaInputChanged(double val);
75  void setLevelsFromFilm();
76  bool eventFilter(QObject*, QEvent*) override;
77 
78 private:
79 
80  class Private;
81  Private* const d;
82 };
83 
84 } // namespace DigikamEditorFilmToolPlugin
85 
86 #endif // DIGIKAM_EDITOR_FILM_TOOL_H
Definition: filmtool.h:42
Definition: dcolor.h:43
Definition: editortool.h:136
Definition: filmfilter_p.h:35
Definition: filmtool.cpp:66
Definition: datefolderview.cpp:43