Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fix #80

Merged
merged 4 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/SqueakWhiteboard-Core/WBElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,11 @@ WBElement >> addOwnMorphTo: aMorph [

{
#category : #resize,
#'squeak_changestamp' : 'ACL 7/10/2024 11:55'
#'squeak_changestamp' : 'is 7/12/2024 20:00'
}
WBElement >> addResizeFrame [

self resizable ifTrue: [
self resizeFrame: (WBResizeFrame newWithParent: self)]
self resizable ifTrue: [self resizeFrame: (WBResizeFrame newWithParent: self)]



Expand Down
37 changes: 23 additions & 14 deletions src/SqueakWhiteboard-Core/WBResizeBar.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ WBResizeBar class >> newWithParent: aMorph [

]

{
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 20:01'
}
WBResizeBar class >> resizeCursor [

^ self subclassResponsibility
]

{
#category : #cursor,
#'squeak_changestamp' : 'is 6/23/2024 01:53'
Expand Down Expand Up @@ -61,18 +70,18 @@ WBResizeBar >> frame: anElement [

{
#category : #mouseEvents,
#'squeak_changestamp' : 'is 6/23/2024 01:53'
#'squeak_changestamp' : 'is 7/12/2024 19:59'
}
WBResizeBar >> handlesMouseDown: aEvent [
WBResizeBar >> handlesMouseDown: anEvent [

^ true
]

{
#category : #mouseEvents,
#'squeak_changestamp' : 'is 6/23/2024 01:53'
#'squeak_changestamp' : 'is 7/12/2024 19:59'
}
WBResizeBar >> handlesMouseOver: aEvent [
WBResizeBar >> handlesMouseOver: anEvent [

^ true
]
Expand Down Expand Up @@ -132,40 +141,40 @@ WBResizeBar >> mouseEnter: aEvent [

{
#category : #mouseEvents,
#'squeak_changestamp' : 'is 6/23/2024 01:53'
#'squeak_changestamp' : 'is 7/12/2024 19:59'
}
WBResizeBar >> mouseLeave: aEvent [
WBResizeBar >> mouseLeave: anEvent [

self defaultCursor
]

{
#category : #mouseEvents,
#'squeak_changestamp' : 'is 6/23/2024 01:53'
#'squeak_changestamp' : 'is 7/12/2024 19:59'
}
WBResizeBar >> mouseMove: mouseEvent [
WBResizeBar >> mouseMove: anEvent [

self resize: (mouseEvent cursorPoint - self lastPosition).
self lastPosition: mouseEvent cursorPoint.
self resize: (anEvent cursorPoint - self lastPosition).
self lastPosition: anEvent cursorPoint.
self setLayout
]

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 01:54'
#'squeak_changestamp' : 'is 7/12/2024 20:00'
}
WBResizeBar >> resize: movement [

^ self SubclassResponsibility
^ self subclassResponsibility
]

{
#category : #cursor,
#'squeak_changestamp' : 'is 6/23/2024 01:53'
#'squeak_changestamp' : 'is 7/12/2024 15:09'
}
WBResizeBar >> resizeCursor [

Cursor move show
self class resizeCursor show
]

{
Expand Down
14 changes: 7 additions & 7 deletions src/SqueakWhiteboard-Core/WBResizeBottom.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ Class {
}

{
#category : #sizing,
#'squeak_changestamp' : 'JK 6/30/2024 21:17'
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 15:09'
}
WBResizeBottom >> resize: movement [
WBResizeBottom class >> resizeCursor [

self frame resizeBottom: self center y + movement y
^ Cursor resizeBottom
]

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 01:54'
#'squeak_changestamp' : 'JK 6/30/2024 21:17'
}
WBResizeBottom >> resizeCursor [
WBResizeBottom >> resize: movement [

Cursor resizeBottom show
self frame resizeBottom: self center y + movement y
]

{
Expand Down
17 changes: 8 additions & 9 deletions src/SqueakWhiteboard-Core/WBResizeBottomLeft.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ Class {
}

{
#category : #sizing,
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 15:00'
}
WBResizeBottomLeft >> resize: movement [
WBResizeBottomLeft class >> resizeCursor [

self frame resizeLeft: self center x + movement x.
self frame resizeBottom: self center y + movement y
^ Cursor resizeBottomLeft
]

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 02:01'
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
}
WBResizeBottomLeft >> resizeCursor [
WBResizeBottomLeft >> resize: movement [

Cursor resizeBottomLeft show

self frame resizeLeft: self center x + movement x.
self frame resizeBottom: self center y + movement y
]

{
Expand Down
17 changes: 8 additions & 9 deletions src/SqueakWhiteboard-Core/WBResizeBottomRight.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ Class {
}

{
#category : #sizing,
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 15:01'
}
WBResizeBottomRight >> resize: movement [
WBResizeBottomRight class >> resizeCursor [

self frame resizeRight: self center x + movement x.
self frame resizeBottom: self center y + movement y
^ Cursor resizeBottomRight
]

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 02:01'
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
}
WBResizeBottomRight >> resizeCursor [
WBResizeBottomRight >> resize: movement [

Cursor resizeBottomRight show

self frame resizeRight: self center x + movement x.
self frame resizeBottom: self center y + movement y
]

{
Expand Down
21 changes: 15 additions & 6 deletions src/SqueakWhiteboard-Core/WBResizeHandle.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ WBResizeHandle class >> newWithParent: aMorph [

]

{
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 20:00'
}
WBResizeHandle class >> resizeCursor [

^ self subclassResponsibility
]

{
#category : #cursor,
#'squeak_changestamp' : 'is 6/23/2024 01:59'
Expand Down Expand Up @@ -133,9 +142,9 @@ WBResizeHandle >> mouseEnter: anEvent [

{
#category : #'event handling',
#'squeak_changestamp' : 'is 6/23/2024 02:00'
#'squeak_changestamp' : 'is 7/12/2024 19:59'
}
WBResizeHandle >> mouseLeave: aEvent [
WBResizeHandle >> mouseLeave: anEvent [

self defaultCursor
]
Expand All @@ -153,20 +162,20 @@ WBResizeHandle >> mouseMove: anEvent [

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 02:00'
#'squeak_changestamp' : 'is 7/12/2024 20:00'
}
WBResizeHandle >> resize: movement [

^ self SubclassResponsibility
^ self subclassResponsibility
]

{
#category : #cursor,
#'squeak_changestamp' : 'is 6/23/2024 02:01'
#'squeak_changestamp' : 'is 7/12/2024 15:04'
}
WBResizeHandle >> resizeCursor [

^ self SubclassResponsibility
self class resizeCursor show
]

{
Expand Down
14 changes: 7 additions & 7 deletions src/SqueakWhiteboard-Core/WBResizeLeft.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ Class {
}

{
#category : #sizing,
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 15:10'
}
WBResizeLeft >> resize: movement [
WBResizeLeft class >> resizeCursor [

self frame resizeLeft: self center x + movement x
^ Cursor resizeLeft
]

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 01:55'
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
}
WBResizeLeft >> resizeCursor [
WBResizeLeft >> resize: movement [

Cursor resizeLeft show
self frame resizeLeft: self center x + movement x
]

{
Expand Down
14 changes: 7 additions & 7 deletions src/SqueakWhiteboard-Core/WBResizeRight.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ Class {
}

{
#category : #sizing,
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 15:10'
}
WBResizeRight >> resize: movement [
WBResizeRight class >> resizeCursor [

self frame resizeRight: self center x + movement x
^ Cursor resizeRight
]

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 01:55'
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
}
WBResizeRight >> resizeCursor [
WBResizeRight >> resize: movement [

Cursor resizeRight show
self frame resizeRight: self center x + movement x
]

{
Expand Down
14 changes: 7 additions & 7 deletions src/SqueakWhiteboard-Core/WBResizeTop.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ Class {
}

{
#category : #sizing,
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 15:10'
}
WBResizeTop >> resize: movement [
WBResizeTop class >> resizeCursor [

self frame resizeTop: self center y + movement y
^ Cursor resizeTop
]

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 01:56'
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
}
WBResizeTop >> resizeCursor [
WBResizeTop >> resize: movement [

Cursor resizeTop show
self frame resizeTop: self center y + movement y
]

{
Expand Down
17 changes: 8 additions & 9 deletions src/SqueakWhiteboard-Core/WBResizeTopLeft.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ Class {
}

{
#category : #sizing,
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
#category : #defaults,
#'squeak_changestamp' : 'is 7/12/2024 18:40'
}
WBResizeTopLeft >> resize: movement [
WBResizeTopLeft class >> resizeCursor [

self frame resizeLeft: self center x + movement x.
self frame resizeTop: self center y + movement y

^ Cursor resizeTopLeft
]

{
#category : #sizing,
#'squeak_changestamp' : 'is 6/23/2024 02:02'
#'squeak_changestamp' : 'JK 6/30/2024 21:18'
}
WBResizeTopLeft >> resizeCursor [
WBResizeTopLeft >> resize: movement [

Cursor resizeTopLeft show
self frame resizeLeft: self center x + movement x.
self frame resizeTop: self center y + movement y

]

Expand Down
Loading
Loading