File indexing completed on 2025-01-05 03:51:28

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-05-03
0007  * Description : blur image batch tool.
0008  *
0009  * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_BQM_BLUR_H
0016 #define DIGIKAM_BQM_BLUR_H
0017 
0018 #include "batchtool.h"
0019 #include "dnuminput.h"
0020 
0021 using namespace Digikam;
0022 
0023 namespace DigikamBqmBlurPlugin
0024 {
0025 
0026 class Blur : public BatchTool
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031 
0032     explicit Blur(QObject* const parent = nullptr);
0033     ~Blur()                                                 override;
0034 
0035     BatchToolSettings defaultSettings()                     override;
0036 
0037     BatchTool* clone(QObject* const parent = nullptr) const override;
0038 
0039     void registerSettingsWidget()                           override;
0040 
0041 private:
0042 
0043     bool toolOperations()                                   override;
0044 
0045 private Q_SLOTS:
0046 
0047     void slotAssignSettings2Widget()                        override;
0048     void slotSettingsChanged()                              override;
0049 
0050 private:
0051 
0052     DIntNumInput* m_radiusInput;
0053     bool          m_changeSettings;
0054 };
0055 
0056 } // namespace DigikamBqmBlurPlugin
0057 
0058 #endif // DIGIKAM_BQM_BLUR_H