File indexing completed on 2025-01-19 03:50:59

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2009-02-10
0007  * Description : flip image batch tool.
0008  *
0009  * SPDX-FileCopyrightText: 2009-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_FLIP_H
0016 #define DIGIKAM_BQM_FLIP_H
0017 
0018 // Local includes
0019 
0020 #include "batchtool.h"
0021 
0022 class QComboBox;
0023 
0024 using namespace Digikam;
0025 
0026 namespace DigikamBqmFlipPlugin
0027 {
0028 
0029 class Flip : public BatchTool
0030 {
0031     Q_OBJECT
0032 
0033 public:
0034 
0035     explicit Flip(QObject* const parent = nullptr);
0036     ~Flip()                                                 override;
0037 
0038     BatchToolSettings defaultSettings()                     override;
0039 
0040     BatchTool* clone(QObject* const parent = nullptr) const override;
0041 
0042     void registerSettingsWidget()                           override;
0043 
0044 private:
0045 
0046     bool toolOperations()                                   override;
0047 
0048 private Q_SLOTS:
0049 
0050     void slotAssignSettings2Widget()                        override;
0051     void slotSettingsChanged()                              override;
0052 
0053 private:
0054 
0055     QComboBox* m_comboBox;
0056 };
0057 
0058 } // namespace DigikamBqmFlipPlugin
0059 
0060 #endif // DIGIKAM_BQM_FLIP_H