Changeset View
Changeset View
Standalone View
Standalone View
libs/pigment/resources/KoColorSetEntry.h
- This file was added.
1 | #ifndef KOCOLORSETENTRY_H | ||||
---|---|---|---|---|---|
2 | #define KOCOLORSETENTRY_H | ||||
3 | | ||||
4 | #include "kritapigment_export.h" | ||||
5 | #include <QString> | ||||
6 | #include "KoColor.h" | ||||
7 | | ||||
8 | class KRITAPIGMENT_EXPORT KoColorSetEntry | ||||
9 | { | ||||
10 | public: | ||||
11 | KoColorSetEntry(); | ||||
12 | KoColorSetEntry(const KoColor &color, const QString &name); | ||||
13 | | ||||
14 | public: | ||||
15 | QString name() const { return m_name; } | ||||
16 | void setName(const QString &name) { m_name = name; } | ||||
17 | QString id() const { return m_id; } | ||||
18 | void setId(const QString &id) { m_id = id; } | ||||
19 | KoColor color() const { return m_color; } | ||||
20 | void setColor(const KoColor &color) { m_color = color; } | ||||
21 | bool spotColor() const { return m_spotColor; } | ||||
22 | void setSpotColor(bool spotColor) { m_spotColor = spotColor; } | ||||
23 | | ||||
24 | public: | ||||
25 | bool operator==(const KoColorSetEntry& rhs) const { | ||||
26 | return m_color == rhs.m_color && m_name == rhs.m_name; | ||||
27 | } | ||||
28 | | ||||
29 | private: | ||||
30 | KoColor m_color; | ||||
31 | QString m_name; | ||||
32 | QString m_id; | ||||
33 | bool m_spotColor; | ||||
34 | }; | ||||
35 | | ||||
36 | #endif // KOCOLORSETENTRY_H |