tool activate()
Adrian Page
adrian at pagenet.plus.com
Mon Mar 21 14:34:15 CET 2005
Boudewijn Rempt wrote:
>>>>Also there is a clean() method, which seems to do what I want
>>>>deactivate() to be.
>>>
>>>??? In which file?
>>
>>in core/tool/kis_tool.h
>>and implementeted in kis_tool_non_paint to do nothing
>
>
> Yes, I think that the clear() (that's what you meant, right?) were intended
> for what you need: remove the guides, rubber bands or anything else from the
> display when the tool is done. However, I'm not sure. This part of the design
> dates from Patrick Julien's days and I only hacked on it when I was still
> fumbling my way around Krita and C++, and it's been a long time...
Yes, using clear() should do what is wanted. It's called before a
new tool is made active.
Adrian
More information about the kimageshop
mailing list