Tools
Boudewijn Rempt
boud at valdyas.org
Tue Mar 28 20:18:41 CEST 2006
On Tuesday 28 March 2006 20:14, Michael Thaler wrote:
> Krita arranges its tools in seperate groups: drawing tools, duplicate and
> paint with filters tools, transform, crop and move tool and selection
> tools. How does Krita determine to what group of tools a tool belongs?
Look into kis_tool: there is an enum:
enum enumToolType {
TOOL_SHAPE = 0, // Geometric shapes like ellipses and lines
TOOL_FREEHAND = 1, // Freehand drawing tools
TOOL_TRANSFORM = 2, // Tools that transform the layer
TOOL_FILL = 3, // Tools that fill parts of the canvas
TOOL_VIEW = 4, // Tools that affect the canvas: pan, zoom, etc.
TOOL_SELECT = 5
};
and every tool returns one of them, although for some tools is't a parent
class and not the ultimate class itself.
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20060328/41b53cff/attachment.pgp
More information about the kimageshop
mailing list