I’ve been looking at the code and playing with the app figure out how to replicate this
It seems that the selection/move tool by themselves are working pretty good.
I was playing the the move tool and noticed a couple of features that are pretty cool. If you use the move tool with a shift enter, the object gets moved along the x-y and the hold the control down will rotated the selection, you can scale the selected bitmap….All pretty cool… but that’s not our bug.
I’ve been trying to come up with a consistent way to generate the bug for testing. I can’t seem I can seem to find it at the moment. One thing that I’m observing multiple times but I can’t do it intentionally, is that a copy based occurs if I draw on the original, the copy also updates. (I’m assuming this is a bug and not a feature.)
Also if I do a file new, I’m seeming a invisible selection that blanks out what ever I’m drawing. This seems to be happens only after the weird copy occurs. My suspicion root cause is some combination of mouse clicks, key-strokes that you would normally never do, but are allowed.
One thing that does seem strange to me is that cut- copy and paste from the command from the pull down are enabled at all times. It seems me that the business rule should be if you perform any of these actions the selection box should be displayed. The corollary would be if the selection box is not displayed the copy-cut-paste should not be enabled, If ctrl-x ctrl-v, ctrl-c is attempted with no selection box is displayed, a modal message pops saying that you can’t do that from the pop-up menu.
Now in my mind when a paste if performed via a ctrl-v the copy should be placed where the mouse cursor resides (upper left corner)
If we don’t want to give an error message when some does a edit-paste it seems to me that when some does a edit->paste the copy should be placed in the middle of the screen, the selection is switched to the copy.
My current thinking is that if a ctrl-v is pressed (after initial ctrl-c) the selection could move to the copy (and in the background perform a new copy to the selection. This should enable you to keep hitting ctrl-V to get multiple copies.
Whenever the selection is not visible, the clipboard is cleared.
In my mind, the next step should be only to allow Edit=>copy, Edit=>Paste,Edit=>cut, Ctrl-C, Ctrl-V,Ctrl-X only if the selection grid. Before, I invest the time in doing that, I think I should get the ok from Matt to go for it.
I was just looking at this post.. http://www.pencil2d.org/forums/topic/capturing-paper-animation/ That might just mess up my perfect plan.. Could we want to paste images from outside pencil2d? I suppose that could be a Edit-Past-Special(with behavior the same as Edit-Paste?