Skip to content

Commit

Permalink
Adds doubleclick on watch displays to explore all values
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeAtHPI committed Oct 12, 2023
1 parent d791ba8 commit be42b28
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SBInactiveExampleWatch >> doubleClick: evt [
"Nothing"
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SBInactiveExampleWatch >> expression: aBlock [

super expression: aBlock.
Expand Down
4 changes: 2 additions & 2 deletions packages/Sandblocks-Babylonian/SBWatchValueBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SBWatchValueBlock class >> registerShortcuts: aProvider [

]

{ #category : #'as yet unclassified' }
{ #category : #'event handling' }
SBWatchValueBlock >> doubleClick: evt [

super doubleClick: evt.
Expand All @@ -25,7 +25,7 @@ SBWatchValueBlock >> doubleClick: evt [

{ #category : #accessing }
SBWatchValueBlock >> exploreValue [
<action>
<action>

self watchValue watchedValue explore
]
Expand Down
23 changes: 20 additions & 3 deletions packages/Sandblocks-Watch/SBWatchView.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,26 @@ SBWatchView >> displayWatchValues [
ifFalse: [self maxWidth]).
]

{ #category : #'event handling' }
SBWatchView >> doubleClick: evt [

super doubleClick: evt.
self exploreValues
]

{ #category : #'colors and color policies' }
SBWatchView >> drawnColor [

^ Color white
]

{ #category : #accessing }
SBWatchView >> exploreValues [
<action>

self object explore
]

{ #category : #accessing }
SBWatchView >> incrementCount [

Expand Down Expand Up @@ -183,7 +197,7 @@ SBWatchView >> layoutCommands [
{ #category : #accessing }
SBWatchView >> maxWidth [

^ 450
^ 300
]

{ #category : #accessing }
Expand All @@ -202,7 +216,9 @@ SBWatchView >> object [
{ #category : #'event handling' }
SBWatchView >> placeholder [

^ Morph new color: Color transparent; extent: (0@0)
^ Morph new
color: Color transparent;
extent: (0@0)
]

{ #category : #printing }
Expand Down Expand Up @@ -330,5 +346,6 @@ SBWatchView >> watchValuesContainer [
changeTableLayout;
listDirection: #leftToRight;
layoutInset: 1;
borderWidth: 0
borderWidth: 0;
on: #doubleClick send: #exploreValues to: self
]

0 comments on commit be42b28

Please sign in to comment.