Merge lp:~mhm/tapaal/tapaal-fix-873427 into lp:tapaal
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Kenneth Yrke Jørgensen | ||||||||
Approved revision: | 641 | ||||||||
Merged at revision: | 641 | ||||||||
Proposed branch: | lp:~mhm/tapaal/tapaal-fix-873427 | ||||||||
Merge into: | lp:tapaal | ||||||||
Diff against target: |
199 lines (+46/-25) 8 files modified
src/pipe/gui/DrawingSurfaceImpl.java (+1/-0) src/pipe/gui/graphicElements/AnnotationNote.java (+1/-1) src/pipe/gui/graphicElements/ArcPath.java (+6/-0) src/pipe/gui/graphicElements/ArcPathPoint.java (+17/-4) src/pipe/gui/graphicElements/PetriNetObject.java (+1/-1) src/pipe/gui/graphicElements/tapn/TimedOutputArcComponent.java (+18/-17) src/pipe/gui/graphicElements/tapn/TimedPlaceComponent.java (+1/-1) src/pipe/gui/graphicElements/tapn/TimedTransitionComponent.java (+1/-1) |
||||||||
To merge this branch: | bzr merge lp:~mhm/tapaal/tapaal-fix-873427 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jiri Srba | Approve | ||
Kenneth Yrke Jørgensen | Approve | ||
mhm (community) | Approve | ||
Review via email: mp+84592@code.launchpad.net |
This proposal supersedes a proposal from 2011-12-06.
Commit message
Added, zoom "loading/update" functionality when setting the model of the DrawinSurface(DS), fixes bug 873427.
When selecting a PN-component, the corresponding net is set as the model for the DS. But setting the model for the DS, did not update the zoom.
This problem was introduced when adding the functionallity to copy components. Before models where only loaded from file, or as a new component, both always with zoom level 100%.
But when copying a loaded component, it might not be at zoom level 100%, the new compenent had the right zoom level, but it was not loaded correctly.
The graphical element where copied with a zoomed position, this did not work, as the graphical size of the elements where not "zoomed", and the position did not correspond to the zoom level.
Now the graphical elements places, transitions and notes are copied with the original position, i.e. at zoom level 100%, and then they are updated when drawn on the DS.
Seems to work fine in most cases now, except for the situation when you have some control points
on arcs for making them curved. To see the problem, open e.g. the ABP in the examples, zoom to
50% and make a component copy. Then go to the copy and zoom back to 100%. All works as it should
except for the control points on arcs that stay as they were in the 50% zoom.