~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/plugins/colorspaces/xyz_u16/xyz_u16_plugin.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *
3
 
 *  Copyright (c) 2007 Cyrille Berger (cberger@cberger.net)
4
 
 *
5
 
 *  This program is free software; you can redistribute it and/or modify
6
 
 *  it under the terms of the GNU General Public License as published by
7
 
 *  the Free Software Foundation; either version 2 of the License, or
8
 
 *  (at your option) any later version.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
 
 */
19
 
 
20
 
#include "xyz_u16_plugin.h"
21
 
 
22
 
#include <kgenericfactory.h>
23
 
#include <KoColorSpaceRegistry.h>
24
 
#include <KoBasicHistogramProducers.h>
25
 
 
26
 
#include "kis_xyz_u16_colorspace.h"
27
 
 
28
 
typedef KGenericFactory<XYZU16Plugin> XYZU16PluginFactory;
29
 
K_EXPORT_COMPONENT_FACTORY(krita_xyz_u16_plugin, XYZU16PluginFactory("krita"))
30
 
 
31
 
 
32
 
XYZU16Plugin::XYZU16Plugin(QObject *parent, const QStringList &)
33
 
        : QObject(parent)
34
 
{
35
 
 
36
 
    KoColorSpaceRegistry * f = KoColorSpaceRegistry::instance();
37
 
 
38
 
    KoColorProfile *xyzProfile = KoLcmsColorProfileContainer::createFromLcmsProfile(cmsCreateXYZProfile());
39
 
    f->addProfile(xyzProfile);
40
 
 
41
 
 
42
 
    KoColorSpaceFactory * csf = new KisXyzU16ColorSpaceFactory();
43
 
    f->add(csf);
44
 
 
45
 
    KoHistogramProducerFactoryRegistry::instance()->add(
46
 
        new KoBasicHistogramProducerFactory<KoBasicU16HistogramProducer>
47
 
        (KoID("XYZ16HISTO", i18n("XYZ16 Histogram")), csf->id()));
48
 
 
49
 
}
50
 
 
51
 
XYZU16Plugin::~XYZU16Plugin()
52
 
{
53
 
}
54
 
 
55
 
#include "xyz_u16_plugin.moc"