2
* cmyk_u8_plugin.cc -- Part of Krita
4
* Copyright (c) 2004 Boudewijn Rempt (boud@valdyas.org)
5
* Copyright (c) 2005 Adrian Page <adrian@pagenet.plus.com>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
#include <kgenericfactory.h>
23
#include <KoColorSpaceRegistry.h>
24
#include <KoBasicHistogramProducers.h>
25
#include "cmyk_plugin.h"
26
#include "kis_cmyk_colorspace.h"
28
typedef KGenericFactory<CMYKU8Plugin> CMYKU8PluginFactory;
29
K_EXPORT_COMPONENT_FACTORY( kritacmykplugin, CMYKU8PluginFactory( "kocolorspaces" ) )
32
CMYKU8Plugin::CMYKU8Plugin(QObject *parent, const QStringList &)
36
KoColorSpaceRegistry * f = KoColorSpaceRegistry::instance();
38
KoColorSpaceFactory * csf = new KisCmykU8ColorSpaceFactory();
41
KoHistogramProducerFactoryRegistry::instance()->add(
42
new KoBasicHistogramProducerFactory<KoBasicU8HistogramProducer>
43
(KoID("CMYK8HISTO", i18n("CMYK8 Histogram")), csf->id()) );
47
CMYKU8Plugin::~CMYKU8Plugin()
51
#include "cmyk_plugin.moc"