Merge lp:~tapaal-contributor/tapaal/rapid-drawing-fix-810906 into lp:tapaal
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jiri Srba | ||||
Approved revision: | 941 | ||||
Merged at revision: | 940 | ||||
Proposed branch: | lp:~tapaal-contributor/tapaal/rapid-drawing-fix-810906 | ||||
Merge into: | lp:tapaal | ||||
Diff against target: |
219 lines (+78/-26) 4 files modified
src/pipe/gui/DrawingSurfaceImpl.java (+67/-24) src/pipe/gui/GuiFrame.java (+9/-0) src/pipe/gui/handler/ArcKeyboardEventHandler.java (+1/-1) src/pipe/gui/undo/UndoManager.java (+1/-1) |
||||
To merge this branch: | bzr merge lp:~tapaal-contributor/tapaal/rapid-drawing-fix-810906 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jiri Srba | Approve | ||
Review via email: mp+324366@code.launchpad.net |
Commit message
Holding ctrl when adding places/transitions now switches between adding places and transitions and connects arcs between them.
Description of the change
When holding ctrl and clicking with create place/transition tool, the user enters "fast mode" where the create tool switches between creating places and transitions. When creating an object, an outgoing arc is attached to it, and it will also be attached to the next created object, unless the user cancels the process by changing tool.
The implementation lacks a way to cancel the current arc being drawn other than by changing to another tool from the menu.
Undo first removes the arc, and then the place/transition that was last drawn, instead of removing both arc and place/transition.
Tested and works fine, the small drawbacks are not important.