digiKam
resize.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2009-02-17
7  * Description : resize image batch tool.
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_BQM_RESIZE_H
25 #define DIGIKAM_BQM_RESIZE_H
26 
27 // Local includes
28 
29 #include "batchtool.h"
30 
31 using namespace Digikam;
32 
33 namespace DigikamBqmResizePlugin
34 {
35 
36 class Resize : public BatchTool
37 {
38  Q_OBJECT
39 
40 public:
41 
42  explicit Resize(QObject* const parent = nullptr);
43  ~Resize() override;
44 
45  BatchToolSettings defaultSettings() override;
46 
47  BatchTool* clone(QObject* const parent = nullptr) const override;
48 
49  void registerSettingsWidget() override;
50 
51 private Q_SLOTS:
52 
53  void slotAssignSettings2Widget() override;
54  void slotSettingsChanged() override;
55  void slotPercentChanged();
56 
57 private:
58 
59  bool toolOperations() override;
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 };
66 
67 } // namespace DigikamBqmResizePlugin
68 
69 #endif // DIGIKAM_BQM_RESIZE_H
Definition: resize.h:37
Definition: batchtool.h:56
Definition: resize.cpp:46
Definition: datefolderview.cpp:43
QMap< QString, QVariant > BatchToolSettings
Definition: batchtool.h:48