File indexing completed on 2025-01-19 03:50:58
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2012-12-28 0007 * Description : crop image batch tool. 0008 * 0009 * SPDX-FileCopyrightText: 2012-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_CROP_H 0016 #define DIGIKAM_BQM_CROP_H 0017 0018 // Local includes 0019 0020 #include "batchtool.h" 0021 0022 using namespace Digikam; 0023 0024 namespace DigikamBqmCropPlugin 0025 { 0026 0027 class Crop : public BatchTool 0028 { 0029 Q_OBJECT 0030 0031 public: 0032 0033 explicit Crop(QObject* const parent = nullptr); 0034 ~Crop() override; 0035 0036 BatchToolSettings defaultSettings() override; 0037 0038 BatchTool* clone(QObject* const parent = nullptr) const override; 0039 0040 void registerSettingsWidget() override; 0041 0042 Q_SIGNALS: 0043 0044 void signalAutoCrop(); 0045 0046 private Q_SLOTS: 0047 0048 void slotAssignSettings2Widget() override; 0049 void slotSettingsChanged() override; 0050 void slotDisableParameters(bool); 0051 0052 private: 0053 0054 bool toolOperations() override; 0055 0056 private: 0057 0058 class Private; 0059 Private* const d; 0060 }; 0061 0062 } // namespace DigikamBqmCropPlugin 0063 0064 #endif // DIGIKAM_BQM_CROP_H