File indexing completed on 2025-01-19 03:50:56
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 16/08/2016 0007 * Description : A Red-Eye tool for automatic detection and correction filter. 0008 * 0009 * SPDX-FileCopyrightText: 2016 by Omar Amin <Omar dot moh dot amin at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_BQM_RED_EYE_CORRECTION_H 0016 #define DIGIKAM_BQM_RED_EYE_CORRECTION_H 0017 0018 // Local includes 0019 0020 #include "batchtool.h" 0021 #include "redeyecorrectionfilter.h" 0022 #include "redeyecorrectionsettings.h" 0023 0024 using namespace Digikam; 0025 0026 namespace DigikamBqmRedEyeCorrectionPlugin 0027 { 0028 0029 class RedEyeCorrection : public BatchTool 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 0035 explicit RedEyeCorrection(QObject* const parent = nullptr); 0036 ~RedEyeCorrection() override; 0037 0038 BatchToolSettings defaultSettings() override; 0039 0040 BatchTool* clone(QObject* const parent = nullptr) const override; 0041 0042 void registerSettingsWidget() override; 0043 0044 void cancel() override; 0045 0046 private: 0047 0048 bool toolOperations() override; 0049 0050 private Q_SLOTS: 0051 0052 void slotAssignSettings2Widget() override; 0053 void slotSettingsChanged() override; 0054 0055 private: 0056 0057 RedEyeCorrectionFilter* m_redEyeCFilter; 0058 RedEyeCorrectionSettings* m_settingsView; 0059 }; 0060 0061 } // namespace DigikamBqmRedEyeCorrectionPlugin 0062 0063 #endif // DIGIKAM_BQM_RED_EYE_CORRECTION_H