Scribus
Open source desktop publishing at your fingertips
sccolortransformpool.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 
8 #ifndef SCCOLORTRANSFORMPOOL_H
9 #define SCCOLORTRANSFORMPOOL_H
10 
11 #include <QList>
12 #include <QWeakPointer>
13 #include "sccolormgmtstructs.h"
14 #include "sccolortransform.h"
15 
17 {
18  friend class ScColorMgmtEngineData;
19 
20 public:
21  ScColorTransformPool (int engineID);
22 
23  void clear(void);
24  void addTransform(const ScColorTransform& transform, bool force = false);
25  void removeTransform(const ScColorTransform& transform);
26  void removeTransform(const ScColorTransformInfo& info);
27 
28  ScColorTransform findTransform(const ScColorTransformInfo& info) const;
29 
30 protected:
31  int m_engineID;
32  QList< QWeakPointer<ScColorTransformData> > m_pool;
33 };
34 
35 #endif
Definition: sccolormgmtstructs.h:114
Definition: sccolormgmtenginedata.h:22
Definition: sccolortransform.h:16
Definition: sccolortransformpool.h:16