krita/ui
KisToolPaint Class Reference
#include <kis_tool_paint.h>

Public Slots | |
| virtual void | activate (bool temporary=false) |
Signals | |
| void | favoritePaletteCalled (const QPoint &) |
Public Member Functions | |
| KisToolPaint (KoCanvasBase *canvas, const QCursor &cursor) | |
| virtual | ~KisToolPaint () |
| virtual void | mouseReleaseEvent (KoPointerEvent *event) |
| virtual void | paint (QPainter &gc, const KoViewConverter &converter) |
| virtual void | resourceChanged (int key, const QVariant &v) |
| void | setSupportOutline (bool supportOutline) |
Protected Slots | |
| virtual void | resetCursorStyle () |
Protected Member Functions | |
| void | addOptionWidgetLayout (QLayout *layout) |
| virtual void | addOptionWidgetOption (QWidget *control, QWidget *label=0) |
| virtual QWidget * | createOptionWidget () |
| virtual KDE_DEPRECATED QString | quickHelp () const |
Protected Attributes | |
| const KoCompositeOp * | m_compositeOp |
| quint8 | m_opacity |
| bool | m_paintOutline |
Detailed Description
Definition at line 68 of file kis_tool_paint.h.
Constructor & Destructor Documentation
| KisToolPaint::KisToolPaint | ( | KoCanvasBase * | canvas, | |
| const QCursor & | cursor | |||
| ) |
Definition at line 70 of file kis_tool_paint.cc.
| KisToolPaint::~KisToolPaint | ( | ) | [virtual] |
Definition at line 90 of file kis_tool_paint.cc.
Member Function Documentation
| void KisToolPaint::activate | ( | bool | temporary = false |
) | [virtual, slot] |
Reimplemented from KisTool.
Definition at line 122 of file kis_tool_paint.cc.
| void KisToolPaint::addOptionWidgetLayout | ( | QLayout * | layout | ) | [protected] |
Add the tool-specific layout to the default option widget layout.
Definition at line 205 of file kis_tool_paint.cc.
| void KisToolPaint::addOptionWidgetOption | ( | QWidget * | control, | |
| QWidget * | label = 0 | |||
| ) | [protected, virtual] |
Add a widget and a label to the current option widget layout.
Definition at line 213 of file kis_tool_paint.cc.
| QWidget * KisToolPaint::createOptionWidget | ( | ) | [protected, virtual] |
Reimplemented from KisTool.
Reimplemented in KisToolShape.
Definition at line 155 of file kis_tool_paint.cc.
| void KisToolPaint::favoritePaletteCalled | ( | const QPoint & | ) | [signal] |
| void KisToolPaint::mouseReleaseEvent | ( | KoPointerEvent * | event | ) | [virtual] |
reimplemented from superclass
Reimplemented from KisTool.
Reimplemented in KisToolFreehand.
Definition at line 134 of file kis_tool_paint.cc.
| void KisToolPaint::paint | ( | QPainter & | gc, | |
| const KoViewConverter & | converter | |||
| ) | [virtual] |
Reimplemented in KisToolFreehand.
Definition at line 129 of file kis_tool_paint.cc.
| virtual KDE_DEPRECATED QString KisToolPaint::quickHelp | ( | ) | const [inline, protected, virtual] |
Quick help is a short help text about the way the tool functions.
Deprecated: this method may move to KoToolFactory.
Definition at line 108 of file kis_tool_paint.h.
| void KisToolPaint::resetCursorStyle | ( | ) | [protected, virtual, slot] |
Called whenever the configuration settings change.
Reimplemented from KisTool.
Definition at line 269 of file kis_tool_paint.cc.
| void KisToolPaint::resourceChanged | ( | int | key, | |
| const QVariant & | v | |||
| ) | [virtual] |
Reimplemented from KisTool.
Definition at line 94 of file kis_tool_paint.cc.
| void KisToolPaint::setSupportOutline | ( | bool | supportOutline | ) | [inline] |
If the paint tool support outline like brushes, set to true.
If not (e.g. gradient tool), set to false. Default is false.
Definition at line 90 of file kis_tool_paint.h.
Member Data Documentation
const KoCompositeOp* KisToolPaint::m_compositeOp [protected] |
Definition at line 130 of file kis_tool_paint.h.
quint8 KisToolPaint::m_opacity [protected] |
Definition at line 129 of file kis_tool_paint.h.
bool KisToolPaint::m_paintOutline [protected] |
Definition at line 131 of file kis_tool_paint.h.
The documentation for this class was generated from the following files:
