krita

KisToolDummy Class Reference

#include <kis_tool_dummy.h>

Inheritance diagram for KisToolDummy:

KisToolNonPaint KisTool KisCanvasObserver List of all members.

Detailed Description

The dummy tool is activated when a layer does not permit painting or any other destructive action.

It shows a forbidden cursor, making it clear that you really cannot do anything here.

Furthermore, it implements more or less the same things as the pan tool, so we can at least move the canvas around.

Definition at line 39 of file kis_tool_dummy.h.


Public Member Functions

 KisToolDummy ()
virtual ~KisToolDummy ()
virtual void update (KisCanvasSubject *subject)
virtual void setup (KActionCollection *collection)
virtual void buttonPress (KisButtonPressEvent *e)
virtual void move (KisMoveEvent *e)
virtual void buttonRelease (KisButtonReleaseEvent *e)
virtual QWidget * createOptionWidget (QWidget *parent)
virtual QWidget * optionWidget ()

Member Function Documentation

QWidget * KisToolDummy::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.

Definition at line 97 of file kis_tool_dummy.cc.

QWidget * KisToolDummy::optionWidget  )  [virtual]
 

Returns:
the current configuration widget.

Reimplemented from KisTool.

Definition at line 105 of file kis_tool_dummy.cc.

void KisToolDummy::setup KActionCollection *  collection  )  [virtual]
 

This function is called after the creation of a tool to create the KAction corresponding to the tool.

The code should look like :

Implements KisTool.

Definition at line 85 of file kis_tool_dummy.cc.

void KisToolDummy::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.

Reimplemented from KisToolNonPaint.

Definition at line 49 of file kis_tool_dummy.cc.


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