|
Krita Source Code Documentation
|
The KisCmbGradient class allows the user to select a gradient. More...
#include <kis_cmb_gradient.h>
Inheritance diagram for KisCmbGradient:Signals | |
| void | gradientChanged (KoAbstractGradientSP) |
Signals inherited from KisPopupButton | |
| void | sigPopupWidgetShown () |
Public Member Functions | |
| KoAbstractGradientSP | gradient () const |
| KisCmbGradient (QWidget *parent=0) | |
| void | setCanvasResourcesInterface (KoCanvasResourcesInterfaceSP canvasResourcesInterface) |
| void | setGradient (KoAbstractGradientSP gradient) |
| QSize | sizeHint () const override |
| ~KisCmbGradient () | |
Public Member Functions inherited from KisPopupButton | |
| void | adjustPosition () |
| adjustPosition adjusts the position of the popup widget based on the position of this button and the size of the widget | |
| bool | isPopupWidgetVisible () |
| KisPopupButton (QWidget *parent) | |
| void | setArrowVisible (bool v) |
| void | setPopupWidget (QWidget *widget) |
| void | setPopupWidgetWidth (int w) |
| ~KisPopupButton () override | |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
Protected Member Functions inherited from KisPopupButton | |
| void | paintEvent (QPaintEvent *event) override |
| void | paintPopupArrow () |
Private Slots | |
| void | gradientSelected () |
Private Member Functions | |
| void | updateGradientPreview () |
Private Attributes | |
| KoCheckerBoardPainter | m_checkersPainter |
| KisGenericGradientEditor * | m_gradientEditor |
Additional Inherited Members | |
Public Slots inherited from KisPopupButton | |
| void | hidePopupWidget () |
| void | setPopupWidgetDetached (bool detach) |
| void | setPopupWidgetVisible (bool visible) |
| void | showPopupWidget () |
The KisCmbGradient class allows the user to select a gradient.
Definition at line 20 of file kis_cmb_gradient.h.
|
explicit |
Definition at line 19 of file kis_cmb_gradient.cpp.
References gradientSelected(), KisGenericGradientEditor::loadUISettings(), m_gradientEditor, KisPopupButton::setPopupWidget(), and KisGenericGradientEditor::sigGradientChanged().
| KisCmbGradient::~KisCmbGradient | ( | ) |
Definition at line 31 of file kis_cmb_gradient.cpp.
References m_gradientEditor, and KisGenericGradientEditor::saveUISettings().
| KoAbstractGradientSP KisCmbGradient::gradient | ( | ) | const |
Definition at line 43 of file kis_cmb_gradient.cpp.
References KisGenericGradientEditor::gradient, and m_gradientEditor.
|
signal |
|
privateslot |
Definition at line 53 of file kis_cmb_gradient.cpp.
References gradient(), gradientChanged(), and updateGradientPreview().
|
overrideprotected |
Definition at line 92 of file kis_cmb_gradient.cpp.
References updateGradientPreview().
| void KisCmbGradient::setCanvasResourcesInterface | ( | KoCanvasResourcesInterfaceSP | canvasResourcesInterface | ) |
Definition at line 48 of file kis_cmb_gradient.cpp.
References m_gradientEditor, and KisGenericGradientEditor::setCanvasResourcesInterface().
| void KisCmbGradient::setGradient | ( | KoAbstractGradientSP | gradient | ) |
Definition at line 36 of file kis_cmb_gradient.cpp.
References gradient(), m_gradientEditor, KisGenericGradientEditor::setGradient(), and updateGradientPreview().
|
override |
Definition at line 79 of file kis_cmb_gradient.cpp.
|
private |
Definition at line 60 of file kis_cmb_gradient.cpp.
References KisGenericGradientEditor::canvasResourcesInterface, gradient(), iconSize(), m_checkersPainter, m_gradientEditor, and KoCheckerBoardPainter::paint().
|
private |
Definition at line 49 of file kis_cmb_gradient.h.
|
private |
Definition at line 50 of file kis_cmb_gradient.h.