1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2010-12-15 7 * Description : white balance color correction settings container 8 * 9 * Copyright (C) 2007-2021 by Gilles Caulier <caulier dot gilles at gmail dot com> 10 * Copyright (C) 2008 by Guillaume Castagnino <casta at xwing dot info> 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_WB_CONTAINER_H 27 #define DIGIKAM_WB_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 WBContainer 43 { 44 45 public: 46 47 WBContainer(); 48 49 bool isDefault() const; 50 bool operator==(const WBContainer& other) const; 51 52 void writeToFilterAction(FilterAction& action, 53 const QString& prefix = QString()) const; 54 55 static WBContainer fromFilterAction(const FilterAction& action, 56 const QString& prefix = QString()); 57 58 public: 59 60 double black; 61 double expositionMain; 62 double expositionFine; 63 double temperature; 64 double green; 65 double dark; 66 double gamma; 67 double saturation; 68 }; 69 70 } // namespace Digikam 71 72 #endif // DIGIKAM_WB_CONTAINER_H 73