Krita Source Code Documentation
Loading...
Searching...
No Matches
DefaultTools Class Reference

#include <default_tools.h>

+ Inheritance diagram for DefaultTools:

Public Member Functions

 DefaultTools (QObject *parent, const QVariantList &)
 
 ~DefaultTools () override
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DefaultTools()

DefaultTools::DefaultTools ( QObject * parent,
const QVariantList &  )

Definition at line 36 of file default_tools.cc.

37 : QObject(parent)
38{
52}
static KoToolRegistry * instance()

References KoGenericRegistry< T >::add(), and KoToolRegistry::instance().

◆ ~DefaultTools()

DefaultTools::~DefaultTools ( )
override

Definition at line 54 of file default_tools.cc.

55{
56}

The documentation for this class was generated from the following files: