Previous and applied selection are shown (#1454)#1803
Previous and applied selection are shown (#1454)#1803PabloRufianJimenez wants to merge 2 commits intoPintaProject:masterfrom
Conversation
…and applied selection when drawing.
|
Note however that is implementation has a flaw.
2025-10-08.20-14-48.mp4This also happens if instead of doing another selection and undoing (step 3 & 4), you switch to another tool and switch back; any action that makes the tool call This is because I wanted to ask your opinion on this before committing to it or whether this implementation is good enough. |
|
Another possibility could be making it so the outlines are shown only when the handles are being dragged and not when idle. |
|
I think showing the outline only when the handle is being dragged sounds fine - that seems to be what Paint.NET was doing in the video in the bug report I only took a quick glance over the changes (I'll be out on vacation for the next couple weeks), but my initial reaction is that I'd like to see if we can avoid adding more selection-specific methods onto BaseTool for this. I'm not a big fan of the existing For example:
|
|
How about creating an interface Also, I personally didn't like the idea of |
|
Yeah, storing it in the DocumentSelection probably isn't best after giving it more thought, since this more ephemeral data used by a tool I think my other suggestion of The IToolHandle interface was originally intended more for interactive things the user might click on, rather than extra guides, but I think that (or something similar along those lines) might be a good avenue to explore. Then the selection tools could just draw the extra outlines themselves, and maybe something similar for the text tool in the future |
When using the Rectangle, Ellipse or Lasso select tool, the outlines of the previous selection and the applied selection (i.e. the selection that is combined with the previous selection) are shown if using a combine mode other than replace.
2025-10-08.18-39-56.mp4