|
Krita Source Code Documentation
|
#include <WGCommonColorSet.h>
Inheritance diagram for WGCommonColorSet:Public Slots | |
| void | slotUpdateColors () |
Public Slots inherited from KisUniqueColorSet | |
| void | clear () |
Signals | |
| void | sigIdle (bool isIdle) |
Signals inherited from KisUniqueColorSet | |
| void | sigColorAdded (int position) |
| void | sigColorMoved (int from, int to) |
| void | sigColorRemoved (int position) |
| void | sigReset () |
Public Member Functions | |
| void | setAutoUpdate (bool enabled) |
| void | setColorCount (int count) |
| void | setImage (KisImageSP image) |
| WGCommonColorSet (QObject *parent=0) | |
Public Member Functions inherited from KisUniqueColorSet | |
| void | addColor (const KoColor &color) |
| KoColor | color (int index) const |
| KisUniqueColorSet (QObject *parent=nullptr) | |
| int | size () const |
| ~KisUniqueColorSet () override | |
Private Slots | |
| void | slotCalculationDone () |
Private Attributes | |
| bool | m_autoUpdate {false} |
| QSharedPointer< QVector< KoColor > > | m_commonColors |
| bool | m_idle {true} |
| KisImageSP | m_image |
| int | m_numColors {10} |
| QTimer | m_updateTimer |
Definition at line 16 of file WGCommonColorSet.h.
|
explicit |
Definition at line 12 of file WGCommonColorSet.cpp.
References connect(), m_updateTimer, and slotUpdateColors().
| void WGCommonColorSet::setAutoUpdate | ( | bool | enabled | ) |
Definition at line 35 of file WGCommonColorSet.cpp.
References connect(), m_autoUpdate, m_image, and m_updateTimer.
|
inline |
Definition at line 23 of file WGCommonColorSet.h.
References m_numColors.
| void WGCommonColorSet::setImage | ( | KisImageSP | image | ) |
Definition at line 21 of file WGCommonColorSet.cpp.
References connect(), m_autoUpdate, m_image, and m_updateTimer.
|
signal |
|
privateslot |
Definition at line 74 of file WGCommonColorSet.cpp.
References KisUniqueColorSet::addColor(), KisUniqueColorSet::clear(), KisUniqueColorSet::color(), m_commonColors, m_idle, sigIdle(), and KisUniqueColorSet::sigReset().
|
slot |
Definition at line 53 of file WGCommonColorSet.cpp.
References connect(), m_commonColors, m_idle, m_image, m_numColors, m_updateTimer, sigIdle(), and slotCalculationDone().
|
private |
Definition at line 36 of file WGCommonColorSet.h.
|
private |
Definition at line 32 of file WGCommonColorSet.h.
|
private |
Definition at line 35 of file WGCommonColorSet.h.
|
private |
Definition at line 33 of file WGCommonColorSet.h.
|
private |
Definition at line 34 of file WGCommonColorSet.h.
|
private |
Definition at line 31 of file WGCommonColorSet.h.