equal
deleted
inserted
replaced
2868 ! ! |
2868 ! ! |
2869 |
2869 |
2870 !UIPainterView methodsFor:'undo actions'! |
2870 !UIPainterView methodsFor:'undo actions'! |
2871 |
2871 |
2872 createUndoLayout:aView |
2872 createUndoLayout:aView |
2873 "create undo action before changing a views layout" |
2873 "create undo action before changing a view's layout" |
2874 |
2874 |
2875 |lyt args prop| |
2875 |lyt args prop| |
2876 |
2876 |
2877 undoHistory isTransactionOpen ifTrue:[ |
2877 undoHistory isTransactionOpen ifTrue:[ |
2878 prop := self propertyOfView:aView. |
2878 prop := self propertyOfView:aView. |
2890 args at:3 put:(lyt copy). |
2890 args at:3 put:(lyt copy). |
2891 undoHistory addUndoSelector:#undoLayout: withArgs:args. |
2891 undoHistory addUndoSelector:#undoLayout: withArgs:args. |
2892 self undoHistoryChanged. |
2892 self undoHistoryChanged. |
2893 ] |
2893 ] |
2894 ] |
2894 ] |
|
2895 |
|
2896 "Modified (comment): / 31-08-2017 / 20:17:23 / cg" |
2895 ! |
2897 ! |
2896 |
2898 |
2897 createUndoRemove:aView |
2899 createUndoRemove:aView |
2898 "create undo method before deleting views |
2900 "create undo method before deleting views |
2899 " |
2901 " |