|
Krita Source Code Documentation
|
#include <kis_color_patches.h>
Inheritance diagram for KisColorPatches:Public Types | |
| enum | Direction { Horizontal , Vertical } |
Public Types inherited from KisColorSelectorBase | |
| enum | Move { MoveToMousePosition , DontMove } |
Public Slots | |
| void | updateSettings () override |
Public Slots inherited from KisColorSelectorBase | |
| virtual void | reset () |
| virtual void | showPopup (Move move=MoveToMousePosition) |
| virtual void | updateSettings () |
Private Attributes | |
| QList< QWidget * > | m_buttonList |
| KisColorPatchesTableView * | m_colorPatchesView |
| QString | m_configPrefix |
| Direction | m_direction |
Additional Inherited Members | |
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 Member Functions inherited from KisColorSelectorBase | |
| void | changeEvent (QEvent *event) override |
| virtual KisColorSelectorBase * | createPopup () const =0 |
| 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 |
Protected Attributes inherited from KisColorSelectorBase | |
| QPointer< KisCanvas2 > | m_canvas |
| bool | m_colorUpdateAllowed |
| bool | m_colorUpdateSelf |
| QWidget * | m_parent |
| KisColorSelectorBase * | m_popup |
Definition at line 18 of file kis_color_patches.h.
|
explicit |
Definition at line 27 of file kis_color_patches.cpp.
References updateSettings().
Definition at line 90 of file kis_color_patches.cpp.
References KisColorPatchesTableView::addColorPatch(), and m_colorPatchesView.
Definition at line 154 of file kis_color_patches.cpp.
References KisColorPatchesTableView::colors(), and m_colorPatchesView.
|
override |
Definition at line 58 of file kis_color_patches.cpp.
References KisColorPatchesTableView::colorPatchAt(), m_colorPatchesView, KisColorSelectorBase::mousePressEvent(), and KisColorSelectorBase::updateColorPreview().
|
override |
Definition at line 35 of file kis_color_patches.cpp.
References KisColorPatchesTableView::colorPatchAt(), KisColorSelectorBase::m_canvas, m_colorPatchesView, and KisColorSelectorBase::mouseReleaseEvent().
| int KisColorPatches::patchCount | ( | ) | const |
Definition at line 75 of file kis_color_patches.cpp.
References m_colorPatchesView, and KisColorPatchesTableView::patchCount().
set buttons, that should be drawn additionally to the patches this class takes ownership of them and will delete them they will be resized to the patchsize
Definition at line 95 of file kis_color_patches.cpp.
References m_buttonList.
|
overridevirtual |
Reimplemented from KisColorSelectorBase.
Reimplemented in KisCommonColors.
Definition at line 80 of file kis_color_patches.cpp.
References KisColorSelectorBase::setCanvas().
Definition at line 149 of file kis_color_patches.cpp.
References colors(), m_colorPatchesView, and KisColorPatchesTableView::setColors().
|
overridevirtual |
Reimplemented from KisColorSelectorBase.
Reimplemented in KisCommonColors.
Definition at line 85 of file kis_color_patches.cpp.
References KisColorSelectorBase::unsetCanvas().
|
overrideslot |
Definition at line 103 of file kis_color_patches.cpp.
References KisColorPatchesTableView::cellSize(), Horizontal, KisColorSelectorBase::isPopup(), m_buttonList, m_colorPatchesView, m_configPrefix, m_direction, KisColorPatchesTableView::reloadWidgetConfig(), KisColorSelectorBase::setPopupBehaviour(), KisColorSelectorBase::updateSettings(), and Vertical.
|
private |
Definition at line 50 of file kis_color_patches.h.
|
private |
Definition at line 52 of file kis_color_patches.h.
|
private |
Definition at line 51 of file kis_color_patches.h.
|
private |
Definition at line 49 of file kis_color_patches.h.