digiKam
bordertool.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 : 2005-01-20
7  * Description : a digiKam image tool to add a border
8  * around an image.
9  *
10  * Copyright 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright 2006-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_EDITOR_BORDER_TOOL_H
27 #define DIGIKAM_EDITOR_BORDER_TOOL_H
28 
29 // Qt includes
30 
31 #include <QString>
32 
33 // Local includes
34 
35 #include "editortool.h"
36 
37 using namespace Digikam;
38 
40 {
41 
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit BorderTool(QObject* const parent);
49  ~BorderTool() override;
50 
51 private Q_SLOTS:
52 
53  void slotResetSettings() override;
54 
55 private:
56 
57  void readSettings() override;
58  void writeSettings() override;
59  void preparePreview() override;
60  void prepareFinal() override;
61  void setPreviewImage() override;
62  void setFinalImage() override;
63 
64 private:
65 
66  class Private;
67  Private* const d;
68 };
69 
70 } // namespace DigikamEditorBorderToolPlugin
71 
72 #endif // DIGIKAM_EDITOR_BORDER_TOOL_H
Definition: editortool.h:136
Definition: bordertool.cpp:49
Definition: datefolderview.cpp:43