Debian Codegraph @

core/dplugins/bqm/decorate/watermark/watermark.h

raw
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2009-02-28
7 * Description : batch tool to add visible watermark.
8 *
9 * SPDX-FileCopyrightText: 2009-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2010 by Mikkel Baekhoej Christensen <mbc at baekhoej dot dk>
11 * SPDX-FileCopyrightText: 2017 by Ahmed Fathi <ahmed dot fathi dot abdelmageed at gmail dot com>
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 *
15 * ============================================================ */
16
17 #pragma once
18
19 // Qt includes
20
21 #include <QFont>
22
23 // Local includes
24
25 #include "batchtool.h"
26
27 using namespace Digikam;
28
29 namespace DigikamBqmWatermarkPlugin
30 {
31
32 class WaterMark : public BatchTool
33 {
34 Q_OBJECT
35
36 public:
37
38 explicit WaterMark(QObject* const parent = nullptr);
39 ~WaterMark() override;
40
41 BatchToolSettings defaultSettings() override;
42
43 BatchTool* clone(QObject* const parent = nullptr) const override;
44
45 void registerSettingsWidget() override;
46
47 private Q_SLOTS:
48
49 void slotSettingsChanged() override;
50 void slotAssignSettings2Widget() override;
51
52 private:
53
54 bool toolOperations() override;
55 int queryFontSize(const QString& text,
56 const QFont& font,
57 int length) const;
58
59 private:
60
61 class Private;
62 Private* const d = nullptr;
63 };
64
65 } // namespace DigikamBqmWatermarkPlugin