Shape tools create new shape layers: Bug 299844

Michael O'Sullivan francium.duck at gmail.com
Wed Jul 4 10:00:32 UTC 2012


On Jul 3, 2012 9:07 PM, "Sven Langkamp" <sven.langkamp at gmail.com> wrote:
>
> On Tue, Jul 3, 2012 at 9:07 PM, Michael O'Sullivan <
francium.duck at gmail.com> wrote:
>>
>> Hello!
>>
>> I'm very impressed with Krita, and would like to contribute. I've only
>> started looking at the source code today though, and I'm now feeling
>> rather stupid.
>>
>> The scratch I'd like to itch is the following bug:
>> Bug 299844 - using a shape tool creates new shape layer even if shape
>> layer selected
>> https://bugs.kde.org/show_bug.cgi?id=299844
>>
>> I've found that the "draw a path" and "draw straight line with current
>> brush" tools don't seemed to be influenced by this bug, so I was
>> hoping to compare and contrast the implementations of these tools with
>> those of the ellipse and rectangle shape tools. The only problem is,
>> I'm not sure which files the "draw a path" and "draw straight line
>> with current brush" tools are implemented in the krita/ui/tools
>> directory. Can anyone point me in the right direction?
>>
>
> Welcome!
>
> krita/ui/tools are just the base classes for tools. The specific tools
are under krita/plugins/tools.
> The line and path tool are under krita/plugins/tools/defaulttools
kis_tool_line and kis_tool_path
>
> You might also have a look at ui/kis_shape_controller.cpp there is a
method addShape that adds the new shape layer.
>
> If you have questions you can also ask in the Krita IRC channel #krita on
irc.freenode.net
>
> Good luck!
>
> _______________________________________________
> kimageshop mailing list
> kimageshop at kde.org
> https://mail.kde.org/mailman/listinfo/kimageshop
>

Thank you so much! This may take me a little while; I'm still working out
how it all fits together. I'll lurk on the irc channel :)

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20120704/6eb572b3/attachment.html>


More information about the kimageshop mailing list