Changeset View
Changeset View
Standalone View
Standalone View
plugins/extensions/pykrita/sip/krita/Palette.sip
1 | /* | 1 | class KisSwatch; | ||
---|---|---|---|---|---|
2 | struct KoColorSetEntry { | | |||
3 | %TypeHeaderCode | | |||
4 | #include "KoColorSet.h" | | |||
5 | %End | | |||
6 | public: | | |||
7 | KoColorSetEntry(); | | |||
8 | | ||||
9 | QString name; | | |||
10 | QString id; | | |||
11 | bool spotColor; | | |||
12 | | ||||
13 | bool operator==(const KoColorSetEntry& rhs) const; | | |||
14 | | ||||
15 | }; | | |||
16 | */ | | |||
17 | class KoColorSetEntry; | | |||
18 | 2 | | |||
19 | class Palette : QObject | 3 | class Palette : QObject | ||
20 | { | 4 | { | ||
Context not available. | |||||
33 | bool addGroup(QString name); | 17 | bool addGroup(QString name); | ||
34 | bool removeGroup(QString name, bool keepColors); | 18 | bool removeGroup(QString name, bool keepColors); | ||
35 | int colorsCountTotal(); | 19 | int colorsCountTotal(); | ||
36 | int colorsCountGroup(QString name); | 20 | KisSwatch colorSetEntryByIndex(int index); | ||
37 | KoColorSetEntry colorSetEntryByIndex(int index); | 21 | KisSwatch colorSetEntryFromGroup(int index, const QString &groupName); | ||
38 | KoColorSetEntry colorSetEntryFromGroup(int index, const QString &groupName); | 22 | ManagedColor *colorForEntry(KisSwatch entry) /Factory/; | ||
39 | ManagedColor *colorForEntry(KoColorSetEntry entry) /Factory/; | 23 | void addEntry(KisSwatch entry, QString groupName); | ||
40 | void addEntry(KoColorSetEntry entry, QString groupName); | | |||
41 | void removeEntry(int index, const QString &groupName); | 24 | void removeEntry(int index, const QString &groupName); | ||
42 | void insertEntry(int index, KoColorSetEntry entry, QString groupName); | | |||
43 | bool editEntry(int index, KoColorSetEntry entry, QString groupName); | | |||
44 | bool changeGroupName(QString oldGroupName, QString newGroupName); | 25 | bool changeGroupName(QString oldGroupName, QString newGroupName); | ||
45 | bool moveGroup(const QString &groupName, const QString &groupNameInsertBefore); | 26 | bool moveGroup(const QString &groupName, const QString &groupNameInsertBefore); | ||
46 | bool save(); | 27 | bool save(); | ||
Context not available. |