Implement Edit Positon multi-dropping
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 28 Feb 2018 14:44:41 +0000 (15:44 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 28 Feb 2018 16:15:37 +0000 (17:15 +0100)
commit17bbcd1ae11db785e420f7248ccfe1423c063d94
treeaec971c466d68e59e64f3ec5cfdbcd00313676d5
parente1b40d86901fa0cce2568df412f657ad6bcbd1c2
Implement Edit Positon multi-dropping

Right-clicking a piece in Edit Position mode now 'lifts it off the board',
and makes it available for dropping multiple times, by left-clicking
empty squares while no piece is selected (highlighted) for moving.
Left-clicks on occupied squares select the piece for moving as usual,
but this does not erase the memory of the 'lifted' piece types. This way
click-click moves remain possible in between drop events, e.g. to get a
piece out of the way.
 The type of the piece that will be dropped is indicated in the message
field. Right-clicking an empty square (which is an invalid action, as empty
squares cannot be lifted for dropping) pops up a note with an overview of
what can be done in Edit Position mode.
 This is an alternative for sweep selection as a method of dropping pieces
on the board. For now it replaces the piece menu. Multiple drop clicks to
the same square will increment the piece type, so piece types not in the
original position can still be created. It doesn't seem possible to do
anything with a board that is completely empty, though!
backend.c