Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2007 Cyrille Berger <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifndef KOCOLORTRANSFORMATIONFACTORYREGISTRY_H
#define KOCOLORTRANSFORMATIONFACTORYREGISTRY_H
#include <KoGenericRegistry.h>
#include "kritapigment_export.h"
class KoColorSpace;
class KoColorTransformationFactory;
/**
* This class list the available transformation. The only reason to use directly
* that class is for adding new factory use the static method
* KoColorTransformationFactoryRegistry::add.
*/
class KRITAPIGMENT_EXPORT KoColorTransformationFactoryRegistry : private KoGenericRegistry<KoColorTransformationFactory*>
{
friend class KoColorSpace;
public:
~KoColorTransformationFactoryRegistry() override;
/**
* Add a KoColorTransformationFactory to the registry.
*/
static void addColorTransformationFactory(KoColorTransformationFactory* factory);
static void removeColorTransformationFactory(KoColorTransformationFactory* factory);
private:
static KoColorTransformationFactoryRegistry* instance();
private:
KoColorTransformationFactoryRegistry();
private:
struct Private;
Private* const d;
};
#endif