ged(6,#) should wait for a right click for quitting, instead of quitting after t
Reported by Samuel GOUGEON (@sgougeon)
-- Bug description --
ged(6,#) should wait for a right click for quitting, instead of quitting after that the first entity has been moved.
This would allow to move as many entities as wished, without calling ged so many times.
-- Scilab error message --
-- How to reproduce the bug --
Created an attachment (id=1918)
ged(6,#): patch for quitting only on a right clic, when moving entities
Indeed, the present mode requires to build an external loop to call ged(6,0) as many times as the user wants to move entities. It would be much more handy to have this loop inside ged, and to trigger the quit with a specific event, say a right click.
The patch is trivial. In function ged_move_entity() embeded in ged.sci, just add
btn = 0
while ~or(btn==[2 5]) // right button clicked or pressed => Quit
as the 2 first lines, and
end
3 lines before the endfunction, just before sca()
And that's it. This improves a lot the ged(6,#) mode.
This has been implemented in the attached ged.sci
(embedding also the trivial fix for bug 7775)
Exec and enjoy on a plot2d()!