~ubuntu-branches/ubuntu/oneiric/koffice/oneiric-updates

« back to all changes in this revision

Viewing changes to libs/pigment/KoColorSpaceRegistry.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  Copyright (c) 2003 Patrick Julien  <freak@codepimps.org>
3
 
 *  Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
 
3
 *  Copyright (c) 2004,2010 Cyrille Berger <cberger@cberger.net>
4
4
 *
5
5
 * This library is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU Lesser General Public
90
90
    void addProfile(KoColorProfile* profile);
91
91
    void addProfile(const KoColorProfile* profile); // TODO why ?
92
92
    void removeProfile(KoColorProfile* profile);
 
93
    
 
94
    /**
 
95
     * Create an alias to a profile with a different name. Then @ref profileByName
 
96
     * will return the profile @p to when passed @p name as a parameter.
 
97
     */
 
98
    void addProfileAlias(const QString& name, const QString& to);
93
99
 
94
100
    /**
95
101
     * create a profile of the specified type.
113
119
     * @param factory the factory with which all the returned profiles will work.
114
120
     * @return a list of profiles for the factory
115
121
     */
116
 
    QList<const KoColorProfile *>  profilesFor(const KoColorSpaceFactory * factory);
 
122
    QList<const KoColorProfile *>  profilesFor(const KoColorSpaceFactory * factory) const;
117
123
 
118
124
    /**
119
125
     * Return the list of profiles for a colorspace with the argument id.
123
129
     * @param id the colorspace-id with which all the returned profiles will work.
124
130
     * @return a list of profiles for the factory
125
131
     */
126
 
    QList<const KoColorProfile *>  profilesFor(const KoID& id);
 
132
    QList<const KoColorProfile *>  profilesFor(const KoID& id) const;
127
133
 
128
134
    /**
129
135
     * @return a list of color spaces compatible with this profile
130
136
     */
131
 
    QList<const KoColorSpaceFactory*> colorSpacesFor(const KoColorProfile* _profile);
 
137
    QList<const KoColorSpaceFactory*> colorSpacesFor(const KoColorProfile* _profile) const;
132
138
 
133
139
    /**
134
140
     * Return the list of profiles for a colorspace with the argument id.
138
144
     * @param colorSpaceId the colorspace-id with which all the returned profiles will work.
139
145
     * @return a list of profiles for the factory
140
146
     */
141
 
    QList<const KoColorProfile *>  profilesFor(const QString &colorSpaceId);
 
147
    QList<const KoColorProfile *>  profilesFor(const QString& id) const;
142
148
    const KoColorSpaceFactory* colorSpaceFactory(const QString &colorSpaceId) const;
143
149
 
144
150
    KoColorSpace* grabColorSpace(const KoColorSpace*);