### Eclipse Workspace Patch 1.0
#P org.sophie2.main.app.commons
|
|
|
|
| 9 | 9 | import org.sophie2.base.commons.util.position.ImmVector; |
| 10 | 10 | import org.sophie2.base.commons.util.position.Position; |
| 11 | 11 | import org.sophie2.base.commons.util.position.Position.Pos1D; |
| | 12 | import org.sophie2.base.media.TimePos; |
| 12 | 13 | import org.sophie2.base.model.book.FrameH; |
| 13 | 14 | import org.sophie2.base.model.book.frame.FrameR4; |
| 14 | 15 | import org.sophie2.base.model.book.interfaces.MemberElement; |
| … |
… |
|
| 86 | 87 | final ImmSize newSize = ResizableElement.KEY_SIZE.get(access); |
| 87 | 88 | final ImmPoint newLocation = |
| 88 | 89 | MemberElement.KEY_LOCATION.get(access).getValue(elementView.getTime()); |
| | 90 | final TimePos time = elementView.getTime(); |
| 89 | 91 | |
| 90 | 92 | new AutoAction("Element resize.", true) { |
| 91 | 93 | |
| … |
… |
|
| 94 | 96 | ResourceChanger ch = getChanger(); |
| 95 | 97 | |
| 96 | 98 | ch.setRaw(ResizableElement.KEY_SIZE, newSize); |
| 97 | | ch.setRaw(MemberElement.KEY_LOCATION, oldChannel.setAll(newLocation)); |
| | 99 | ch.setRaw(MemberElement.KEY_LOCATION, |
| | 100 | oldChannel.setValue(time, newLocation)); |
| 98 | 101 | } |
| 99 | 102 | }.register(access); |
| 100 | 103 | } |
| … |
… |
|
| 108 | 111 | |
| 109 | 112 | private void doMove(final LocationChannel oldChannel, |
| 110 | 113 | final ImmPoint newLocationInPage, final ImmSize newSize) { |
| | 114 | final TimePos time = elementView.getTime(); |
| 111 | 115 | new AutoAction("Frame resize", false) { |
| 112 | 116 | @Override |
| 113 | 117 | public void performAuto() { |
| 114 | 118 | ResourceChanger ch = getChanger(); |
| 115 | 119 | |
| 116 | 120 | ch.setRaw(ResizableElement.KEY_SIZE, newSize); |
| 117 | | ch.setRaw(MemberElement.KEY_LOCATION, oldChannel |
| 118 | | .setAll(newLocationInPage)); |
| | 121 | ch.setRaw(MemberElement.KEY_LOCATION, |
| | 122 | oldChannel.setValue(time, newLocationInPage)); |
| 119 | 123 | } |
| 120 | 124 | }.register(access); |
| 121 | 125 | } |