digiKam
bcgcontainer.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-12-15
7  * Description : a Brightness/Contrast/Gamma settings container.
8  *
9  * Copyright (C) 2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2010 by Martin Klapetek <martin dot klapetek 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_BCG_CONTAINER_H
27 #define DIGIKAM_BCG_CONTAINER_H
28 
29 // Qt includes
30 
31 #include <QString>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class FilterAction;
41 
42 class DIGIKAM_EXPORT BCGContainer
43 {
44 
45 public:
46 
47  explicit BCGContainer();
48 
49  bool isDefault() const;
50  bool operator==(const BCGContainer& other) const;
51 
52  void writeToFilterAction(FilterAction& action, const QString& prefix = QString()) const;
53 
54  static BCGContainer fromFilterAction(const FilterAction& action,
55  const QString& prefix = QString());
56 
57 public:
58 
59  int channel;
60 
61  double brightness;
62  double contrast;
63  double gamma;
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_BCG_CONTAINER_H
Definition: bcgcontainer.h:43
double contrast
Definition: bcgcontainer.h:62
double gamma
Definition: bcgcontainer.h:63
double brightness
Definition: bcgcontainer.h:61
int channel
Definition: bcgcontainer.h:59
Definition: filteraction.h:43
QStringView prefix
Definition: itemviewutilities.cpp:593
Definition: datefolderview.cpp:43
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49