|
Krita Source Code Documentation
|
#include <default_tools.h>
Inheritance diagram for DefaultTools:Public Member Functions | |
| DefaultTools (QObject *parent, const QVariantList &) | |
| ~DefaultTools () override | |
A module wrapper around Krita's default tools. Despite the fact that new tools are created for every new view, it is not possible to make tools standard parts of the type of the imagesize plugin, because we need to create a new set of tools for every pointer device (mouse, stylus, eraser, puck, etc.). So this plugin is a module which is loaded once into Krita. For every tool there is a factory class that is registered with the tool registry, and that is used to create new instances of the tools.
Definition at line 23 of file default_tools.h.
| DefaultTools::DefaultTools | ( | QObject * | parent, |
| const QVariantList & | ) |
Definition at line 36 of file default_tools.cc.
References KoGenericRegistry< T >::add(), and KoToolRegistry::instance().
|
override |
Definition at line 54 of file default_tools.cc.