File indexing completed on 2024-05-26 04:34:20
0001 /* 0002 * SPDX-FileCopyrightText: 2003 Boudewijn Rempt (boud@valdyas.org) 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef DEFAULT_TOOLS_H_ 0008 #define DEFAULT_TOOLS_H_ 0009 0010 #include <QObject> 0011 #include <QVariant> 0012 0013 /** 0014 * A module wrapper around Krita's default tools. 0015 * Despite the fact that new tools are created for every new view, 0016 * it is not possible to make tools standard parts of the type of the 0017 * imagesize plugin, because we need to create a new set of tools for every 0018 * pointer device (mouse, stylus, eraser, puck, etc.). So this plugin is 0019 * a module which is loaded once into Krita. For every tool there is a factory 0020 * class that is registered with the tool registry, and that is used to create 0021 * new instances of the tools. 0022 */ 0023 class DefaultTools : public QObject 0024 { 0025 Q_OBJECT 0026 public: 0027 DefaultTools(QObject *parent, const QVariantList &); 0028 ~DefaultTools() override; 0029 0030 }; 0031 0032 #endif // DEFAULT_TOOLS_H_