|
Krita Source Code Documentation
|
#include <kis_color_history.h>
Inheritance diagram for KisColorHistory:Public Slots | |
| void | addColorToHistory (const KoColor &color) |
| void | clearColorHistory () |
| void | colorHistoryChanged () |
| void | updateUserSettings () |
Public Slots inherited from KisColorPatches | |
| void | updateSettings () override |
Public Slots inherited from KisColorSelectorBase | |
| virtual void | reset () |
| virtual void | showPopup (Move move=MoveToMousePosition) |
| virtual void | updateSettings () |
Protected Member Functions | |
| KisColorSelectorBase * | createPopup () const override |
Protected Member Functions inherited from KisColorSelectorBase | |
| void | changeEvent (QEvent *event) override |
| void | dragEnterEvent (QDragEnterEvent *) override |
| void | dropEvent (QDropEvent *) override |
| bool | isPopup () const |
| void | keyPressEvent (QKeyEvent *) override |
| void | mouseMoveEvent (QMouseEvent *event) override |
| void | requestUpdateColorAndPreview (const KoColor &color, Acs::ColorRole role) |
| void | setHidingTime (int time) |
| void | showEvent (QShowEvent *event) override |
Private Member Functions | |
| KisUniqueColorSet * | colorHistoryModel () |
| void | updateColorHistory (const QList< KoColor > &history) |
Private Attributes | |
| QToolButton * | m_clearButton |
| KisDocument * | m_document |
| std::unique_ptr< KisUniqueColorSet > | m_fallbackColorHistoryModel |
| bool | m_history_per_document = false |
| KisCanvasResourceProvider * | m_resourceProvider |
Additional Inherited Members | |
Public Types inherited from KisColorPatches | |
| enum | Direction { Horizontal , Vertical } |
Public Types inherited from KisColorSelectorBase | |
| enum | Move { MoveToMousePosition , DontMove } |
Protected Slots inherited from KisColorSelectorBase | |
| virtual void | canvasResourceChanged (int key, const QVariant &v) |
| if you overwrite this, keep in mind, that you should set the color only, if m_colorUpdateAllowed is true | |
| void | hidePopup () |
| void | updateLastUsedColorPreview (const KoColor &color) |
Protected Attributes inherited from KisColorSelectorBase | |
| QPointer< KisCanvas2 > | m_canvas |
| bool | m_colorUpdateAllowed |
| bool | m_colorUpdateSelf |
| QWidget * | m_parent |
| KisColorSelectorBase * | m_popup |
Definition at line 17 of file kis_color_history.h.
|
explicit |
Definition at line 24 of file kis_color_history.cpp.
References clearColorHistory(), colorHistoryChanged(), KisConfigNotifier::instance(), KisIconUtils::loadIcon(), m_clearButton, m_fallbackColorHistoryModel, KisColorPatches::setAdditionalButtons(), and updateUserSettings().
| KisColorHistory::~KisColorHistory | ( | ) |
Definition at line 44 of file kis_color_history.cpp.
Definition at line 92 of file kis_color_history.cpp.
References KisUniqueColorSet::addColor(), colorHistoryModel(), COMPOSITE_ERASE, KisCanvasResourceProvider::currentCompositeOp(), m_resourceProvider, and updateColorHistory().
|
slot |
Definition at line 103 of file kis_color_history.cpp.
References KisUniqueColorSet::clear(), colorHistoryModel(), and updateColorHistory().
|
slot |
Definition at line 136 of file kis_color_history.cpp.
References colorHistoryModel(), KIS_SAFE_ASSERT_RECOVER_RETURN, and KisColorPatches::setColors().
|
private |
Definition at line 111 of file kis_color_history.cpp.
References KisCanvasResourceProvider::colorHistoryModel(), KisDocument::colorHistoryModel, m_document, m_fallbackColorHistoryModel, m_history_per_document, and m_resourceProvider.
|
overrideprotectedvirtual |
Implements KisColorSelectorBase.
Definition at line 84 of file kis_color_history.cpp.
References KisColorPatches::colors(), KisColorHistory(), KisColorSelectorBase::m_canvas, setCanvas(), and KisColorPatches::setColors().
|
overridevirtual |
Reimplemented from KisColorSelectorBase.
Definition at line 56 of file kis_color_history.cpp.
References addColorToHistory(), colorHistoryChanged(), KisDocument::colorHistoryModel, colorHistoryModel(), KisCanvasResourceProvider::colorHistoryModel(), KisViewManager::document(), KisCanvas2::imageView(), m_document, m_resourceProvider, KisColorPatches::setCanvas(), KisColorPatches::setColors(), and KisCanvas2::viewManager().
|
overridevirtual |
Reimplemented from KisColorSelectorBase.
Definition at line 48 of file kis_color_history.cpp.
References m_document, m_resourceProvider, and KisColorPatches::unsetCanvas().
Definition at line 122 of file kis_color_history.cpp.
References colorHistoryModel(), and KisColorPatches::setColors().
|
slot |
Definition at line 128 of file kis_color_history.cpp.
References colorHistoryModel(), KisConfig::colorHistoryPerDocument(), m_history_per_document, and updateColorHistory().
|
private |
Definition at line 49 of file kis_color_history.h.
|
private |
Definition at line 50 of file kis_color_history.h.
|
private |
Definition at line 42 of file kis_color_history.h.
|
private |
Definition at line 47 of file kis_color_history.h.
|
private |
Definition at line 51 of file kis_color_history.h.