File indexing completed on 2025-01-05 03:51:40
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2005-03-10 0007 * Description : a tool to apply texture over an image 0008 * 0009 * SPDX-FileCopyrightText: 2005-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2006-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_EDITOR_TEXTURE_TOOL_H 0017 #define DIGIKAM_EDITOR_TEXTURE_TOOL_H 0018 0019 // Qt includes 0020 0021 #include <QString> 0022 0023 // Local includes 0024 0025 #include "editortool.h" 0026 0027 using namespace Digikam; 0028 0029 namespace DigikamEditorTextureToolPlugin 0030 { 0031 0032 class TextureTool : public EditorToolThreaded 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 0038 explicit TextureTool(QObject* const parent); 0039 ~TextureTool() override; 0040 0041 private Q_SLOTS: 0042 0043 void slotResetSettings() override; 0044 0045 private: 0046 0047 void readSettings() override; 0048 void writeSettings() override; 0049 void preparePreview() override; 0050 void prepareFinal() override; 0051 void setPreviewImage() override; 0052 void setFinalImage() override; 0053 0054 private: 0055 0056 class Private; 0057 Private* const d; 0058 }; 0059 0060 } // namespace DigikamEditorTextureToolPlugin 0061 0062 #endif // DIGIKAM_EDITOR_TEXTURE_TOOL_H