Skip to content

Commit 4e9abcd

Browse files
committed
Adds balloon texts for several example / annotation morphs
1 parent f32b39e commit 4e9abcd

30 files changed

+81
-31
lines changed

packages/Babylonian-UI.package/BPAnnotationMorph.class/instance/createErrorIndicatorFor..st

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
private - ui
22
createErrorIndicatorFor: aTrace
3-
3+
44
| errorIndicator |
55
errorIndicator := IconicButton new.
66
errorIndicator
77
labelGraphic: (ToolIcons exception scaledToSize: self iconSize);
8+
balloonText: 'click to open a debugger for the exception';
89
color: Color transparent;
910
borderWidth: 0;
1011
extent: errorIndicator extent * 0.9;

packages/Babylonian-UI.package/BPAnnotationMorph.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"annotation:" : "jb 12/7/2020 18:56",
1111
"codeContentChanged" : "pre 1/21/2021 16:45",
1212
"containingBrowser" : "pre 1/6/2021 19:45",
13-
"createErrorIndicatorFor:" : "pre 8/17/2020 09:17",
13+
"createErrorIndicatorFor:" : "pre 2/22/2021 12:15",
1414
"editFieldFor:text:onChange:onAccept:" : "pre 1/7/2021 12:18",
1515
"editFieldInitialContent:onChange:onAccept:" : "pre 11/11/2019 10:41",
1616
"emptyTraces" : "jb 12/3/2020 23:22",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
private - ui
2+
annotationLabel
3+
4+
^ 'assertion'

packages/Babylonian-UI.package/BPAssertionMorph.class/instance/updateAssertionFieldsMorph.st

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ updateAssertionFieldsMorph
2121
self codeContentChanged]
2222
onAccept: [:str |
2323
self containingBrowser codeTextMorph accept].
24+
assertionScriptMorph balloonText: 'Write code to check the probed value. The value is available through the `result` variable. The code should return a Boolean value.'.
2425

25-
exampleSelectionMorph := self newExampleSelectionFieldMorph.
26+
exampleSelectionMorph := self newExampleSelectionFieldMorph
27+
balloonText: 'Click to select an example the assertion should be scoped to. The assertion will only be checked for the selected example.';
28+
yourself.
2629

2730
assertionFieldsMorph
2831
addMorphBack: assertionScriptMorph;

packages/Babylonian-UI.package/BPAssertionMorph.class/methodProperties.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
},
44
"instance" : {
55
"annotation:" : "pre 11/23/2020 12:51",
6+
"annotationLabel" : "pre 2/22/2021 12:19",
67
"checkAndConvertValuesMorphIfNecessary:" : "pre 12/16/2020 18:54",
78
"initialize" : "jb 12/7/2020 19:01",
89
"isAssertion" : "pre 11/18/2019 11:50",
910
"isProbe" : "pre 11/18/2019 12:31",
1011
"relevantTracesOf:do:" : "pre 11/18/2019 12:54",
11-
"updateAssertionFieldsMorph" : "pre 1/8/2021 17:18",
12+
"updateAssertionFieldsMorph" : "pre 2/22/2021 12:24",
1213
"updateFrom:" : "jb 12/7/2020 19:01" } }

packages/Babylonian-UI.package/BPExampleMorph.class/instance/addCollapseButtonMorph.st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ addCollapseButtonMorph
88
labelGraphic: (BPIcons moreHorizontalIcon scaledToSize: self iconSize * 0.7);
99
color: Color transparent;
1010
borderWidth: 0;
11+
balloonText: 'hide details of the example';
1112
extent: collapseButton extent * 0.7.
1213
collapseButton
1314
actionSelector: #collapseButtonClicked;

packages/Babylonian-UI.package/BPExampleMorph.class/instance/addDeleteButtonMorph.st

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ addDeleteButtonMorph
55
removeButton := self newRemoveButton.
66
removeButton
77
actionSelector: #removeButtonClicked;
8-
target: self.
8+
target: self;
9+
balloonText: 'delete the example'.
910
self addMorphBack: removeButton.

packages/Babylonian-UI.package/BPExampleMorph.class/instance/addExampleConfigurationButtonMorph.st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ addExampleConfigurationButtonMorph
44
configurationButton := IconicButton new.
55
configurationButton
66
labelGraphic: (BPIcons wrenchIcon scaledToSize: self iconSize * 0.7) asGrayScale;
7+
balloonText: 'configure the examples pre- and postscript';
78
color: Color transparent;
89
borderWidth: 0;
910
extent: configurationButton extent * 0.7.

packages/Babylonian-UI.package/BPExampleMorph.class/instance/addExampleNameMorph.st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ addExampleNameMorph
99
self codeContentChanged]
1010
onAccept: [:str | "nop"].
1111
nameTextMorph
12+
balloonText: 'enter a name for the example';
1213
setTextColor: example color;
1314
width: 15 * self fontWidth;
1415
hideScrollBarsIndefinitely.

packages/Babylonian-UI.package/BPExampleMorph.class/methodProperties.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"instance" : {
55
"activateExampleButtonClicked" : "pre 1/6/2021 19:23",
66
"addActivationButtonMorph" : "pre 9/30/2020 10:35",
7-
"addCollapseButtonMorph" : "pre 1/21/2021 16:25",
8-
"addDeleteButtonMorph" : "pre 1/6/2021 19:14",
9-
"addExampleConfigurationButtonMorph" : "pre 1/21/2021 18:33",
10-
"addExampleNameMorph" : "pre 1/21/2021 18:21",
7+
"addCollapseButtonMorph" : "pre 2/22/2021 12:05",
8+
"addDeleteButtonMorph" : "pre 2/22/2021 12:06",
9+
"addExampleConfigurationButtonMorph" : "pre 2/22/2021 12:06",
10+
"addExampleNameMorph" : "pre 2/22/2021 12:06",
1111
"addExampleSpecificMorphs" : "pre 1/21/2021 18:05",
1212
"addLoaderIconHolder" : "jb 12/7/2020 18:58",
1313
"collapse" : "pre 1/21/2021 18:16",

0 commit comments

Comments
 (0)