| 1 |
/* ============================================================ |
| 2 |
* |
| 3 |
* This file is a part of digiKam project |
| 4 |
* https://www.digikam.org |
| 5 |
* |
| 6 |
* Date : 16/08/2016 |
| 7 |
* Description : A Red-Eye tool for automatic detection and correction filter. |
| 8 |
* |
| 9 |
* SPDX-FileCopyrightText: 2016 by Omar Amin <Omar dot moh dot amin at gmail dot com> |
| 10 |
* |
| 11 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 12 |
* |
| 13 |
* ============================================================ */ |
| 14 |
|
| 15 |
#pragma once |
| 16 |
|
| 17 |
// Local includes |
| 18 |
|
| 19 |
#include "batchtool.h" |
| 20 |
#include "redeyecorrectionfilter.h" |
| 21 |
#include "redeyecorrectionsettings.h" |
| 22 |
|
| 23 |
using namespace Digikam; |
| 24 |
|
| 25 |
namespace DigikamBqmRedEyeCorrectionPlugin |
| 26 |
{ |
| 27 |
|
| 28 |
class RedEyeCorrection : public BatchTool |
| 29 |
{ |
| 30 |
Q_OBJECT |
| 31 |
|
| 32 |
public: |
| 33 |
|
| 34 |
explicit RedEyeCorrection(QObject* const parent = nullptr); |
| 35 |
~RedEyeCorrection() override = default; |
| 36 |
|
| 37 |
BatchToolSettings defaultSettings() override; |
| 38 |
|
| 39 |
BatchTool* clone(QObject* const parent = nullptr) const override; |
| 40 |
|
| 41 |
void registerSettingsWidget() override; |
| 42 |
|
| 43 |
void cancel() override; |
| 44 |
|
| 45 |
private: |
| 46 |
|
| 47 |
bool toolOperations() override; |
| 48 |
|
| 49 |
private Q_SLOTS: |
| 50 |
|
| 51 |
void slotAssignSettings2Widget() override; |
| 52 |
void slotSettingsChanged() override; |
| 53 |
|
| 54 |
private: |
| 55 |
|
| 56 |
RedEyeCorrectionFilter* m_redEyeCFilter = nullptr; |
| 57 |
RedEyeCorrectionSettings* m_settingsView = nullptr; |
| 58 |
}; |
| 59 |
|
| 60 |
} // namespace DigikamBqmRedEyeCorrectionPlugin |