Diffusion Krita 6c1469d49ea1

Use KisFilterStrategyRegistry to access the filter strategies

Authored by rempt on Jun 1 2017, 9:41 AM.

Description

Use KisFilterStrategyRegistry to access the filter strategies

  • This fixes a memory leak when using the filter strategies in

scripting

  • This adds a method to the Krita api to get all installed

filter strategies

  • Fixes a typo on the KisFilterStrategy api

Note: in scripts, you now need to use the real id of the strategies,
and those start for no good reason at all with caps.

Details

Committed
remptJun 1 2017, 9:42 AM
Parents
R37:e96b768eb1e1: Remove KoXmlReader completely
Branches
Unknown
Tags
Unknown

Shouldn't Node also be adjusted?

/libs/libkis/Document.h
372

I think you mean 'extensive'? Right now it sounds like it can be easily extended?

380

Lanczos3, not Kanczos3

rempt added a comment.Jun 1 2017, 12:11 PM

Shouldn't Node also be adjusted?

Ah, yes -- that one too. And it is possible to extend the list of filter strategies with new ones, by making a plugin that adds one to the registry,