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