[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Tools
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2006-03-28 18:18:41
Message-ID: 200603282018.41718.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic