krita
KisToolDummy Class Reference
#include <kis_tool_dummy.h>
Inherits KisToolNonPaint.
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 | |
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
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.
Implements KisCanvasObserver.
Definition at line 49 of file kis_tool_dummy.cc.
The documentation for this class was generated from the following files: