krita

KisToolPaint Class Reference

Inheritance diagram for KisToolPaint:

KisTool KisCanvasObserver KisToolFreehand KisToolShape List of all members.

Detailed Description

Definition at line 51 of file kis_tool_paint.h.


Public Slots

virtual void activate ()
virtual void deactivate ()
void slotSetOpacity (int opacityPerCent)
void slotSetCompositeMode (const KisCompositeOp &compositeOp)
void slotPopupQuickHelp ()

Public Member Functions

 KisToolPaint (const QString &UIName)
virtual ~KisToolPaint ()
virtual void update (KisCanvasSubject *subject)
virtual void paint (KisCanvasPainter &gc)
virtual void paint (KisCanvasPainter &gc, const QRect &rc)
virtual void buttonPress (KisButtonPressEvent *e)
virtual void move (KisMoveEvent *e)
virtual void buttonRelease (KisButtonReleaseEvent *e)
virtual void doubleClick (KisDoubleClickEvent *e)
virtual void keyPress (QKeyEvent *e)
virtual void keyRelease (QKeyEvent *e)
virtual QCursor cursor ()
virtual void setCursor (const QCursor &cursor)
virtual QWidget * createOptionWidget (QWidget *parent)
virtual QWidget * optionWidget ()
virtual void addOptionWidgetOption (QWidget *control, QWidget *label=0)

Protected Member Functions

void notifyModified () const
void addOptionWidgetLayout (QLayout *layout)

Protected Attributes

KisCanvasSubjectm_subject
QRect m_dirtyRect
Q_UINT8 m_opacity
KisCompositeOp m_compositeOp
bool m_paintOutline

Member Function Documentation

void KisToolPaint::update ( KisCanvasSubject subject  )  [virtual]

Implement this function to query the KisCanvasSubject implementation about state that may be interesting, such as current paint color and so on.

Parameters:
subject the KisCanvasSubject that may know something that's interesting for us.

Implements KisCanvasObserver.

Reimplemented in KisToolFreehand.

Definition at line 68 of file kis_tool_paint.cc.

QWidget * KisToolPaint::createOptionWidget ( QWidget *  parent  )  [virtual]

This function is called to create the configuration widget of the tool.

Parameters:
parent the parent of the widget

Reimplemented from KisTool.

Reimplemented in KisToolShape.

Definition at line 118 of file kis_tool_paint.cc.

QWidget * KisToolPaint::optionWidget (  )  [virtual]

Returns:
the current configuration widget.

Reimplemented from KisTool.

Definition at line 159 of file kis_tool_paint.cc.

void KisToolPaint::activate (  )  [virtual, slot]

This slot is called when the tool is selected in the toolbox.

Implements KisTool.

Definition at line 213 of file kis_tool_paint.cc.

void KisToolPaint::deactivate (  )  [virtual, slot]

deactivate is called when the tool gets deactivated because another tool is selected.

Tools can then clean up after themselves.

Implements KisTool.

Definition at line 82 of file kis_tool_paint.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys