Skip to content

Commit

Permalink
Add AnnotationMorph example.
Browse files Browse the repository at this point in the history
  • Loading branch information
stlutz committed Jan 17, 2018
1 parent ffbed60 commit 625d647
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .squot
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ OrderedDictionary {
'src\/ActiveExpressions-Examples.package' : #SquotCypressCodeSerializer,
'src\/ActiveExpressions-Tests.package' : #SquotCypressCodeSerializer,
'src\/BaselineOfActiveExpressions.package' : #SquotCypressCodeSerializer
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
activeExpression

^ activeExpression
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
following
follow: aMorph

self startFollowing: aMorph
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
following
followTo: newBounds

self left: newBounds left
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private
setActiveExpression: anObject

activeExpression := anObject.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
following
startFollowing: aMorph

self stopFollowing.
self setActiveExpression: ([aMorph bounds] onChangeDo: [:bounds | self followTo: bounds])
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
stepping and presenter
step


Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
following
stopFollowing

self activeExpression ifNotNil: [:aexp | aexp disable]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
"class" : {
},
"instance" : {
} }
"activeExpression" : "sl 1/17/2018 19:11",
"follow:" : "sl 1/17/2018 19:24",
"followTo:" : "sl 1/17/2018 19:27",
"setActiveExpression:" : "sl 1/17/2018 19:12",
"startFollowing:" : "sl 1/17/2018 19:27",
"step" : "sl 1/17/2018 19:13",
"stopFollowing" : "sl 1/17/2018 19:18" } }
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"commentStamp" : "",
"instvars" : [
],
"activeExpression" ],
"name" : "AExpAnnotationMorph",
"pools" : [
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SystemOrganization addCategory: #'ActiveExpressions-Examples'!
Empty file.

0 comments on commit 625d647

Please sign in to comment.