-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More Squeak 6.0 support and some UI clean-up
- Loading branch information
1 parent
f946b00
commit a165fd4
Showing
36 changed files
with
90 additions
and
198 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/Koans-Core.package/KoanBrowser.class/class/defaultExtent.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
constants | ||
defaultExtent | ||
|
||
^ 800@600 | ||
^ 670@500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/Koans-Core.package/KoanBrowser.class/instance/selectedChapter..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
accessing | ||
selectedChapter: anObject | ||
|
||
selectedChapter := anObject | ||
selectedChapter = anObject ifTrue: [^ self]. | ||
selectedChapter := anObject. | ||
self changed: #selectedChapter. |
4 changes: 3 additions & 1 deletion
4
src/Koans-Core.package/KoanBrowser.class/instance/selectedKoan..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
accessing | ||
selectedKoan: aKoan | ||
|
||
selectedKoan := aKoan | ||
selectedKoan = aKoan ifTrue: [^ self]. | ||
selectedKoan := aKoan. | ||
self changed: #selectedKoan. |
5 changes: 1 addition & 4 deletions
5
src/Koans-Core.package/KoanBrowser.class/instance/welcomeMessage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
ui | ||
welcomeMessage | ||
|
||
^ ' | ||
Welcome to the Koans. If you want to proceed | ||
on your path to enlightenment choose a chapter | ||
(on the left) to meditate on.' | ||
^ 'Welcome to the Koans. If you want to proceed on your path to enlightenment choose a chapter (on the left) to meditate on.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
constants | ||
buttonHeight | ||
|
||
^ Preferences standardButtonFont height + 25 | ||
^ ToolBuilder default buttonRowHeight |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
constants | ||
defaultExtent | ||
|
||
^ 800@600 | ||
^ 670@500 |
4 changes: 0 additions & 4 deletions
4
src/Koans-Core.package/KoanEditor.class/class/defaultOffset.st
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/Koans-Core.package/KoanEditor.class/instance/buildBackToSelectionViewButtonWith..st
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/Koans-Core.package/KoanEditor.class/instance/buildBrowseProjectButtonWith..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/Koans-Core.package/KoanEditor.class/instance/buildButtonBarWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
building | ||
buildButtonBarWith: aBuilder | ||
|
||
| panelSpec | | ||
panelSpec := aBuilder pluggablePanelSpec new. | ||
panelSpec | ||
layout: #horizontal; | ||
children: OrderedCollection new; | ||
frame: (LayoutFrame | ||
fractions: (0@1 corner: 1@1) | ||
offsets: (0@ self class buttonHeight negated corner: 0@0)). | ||
|
||
self buttonSpecs do: [:spec | panelSpec children add: ( | ||
spec | ||
ifNil: [aBuilder pluggableSpacerSpec new] | ||
ifNotNil: [ | label action enabled help | | ||
label := spec first. | ||
action := spec second. | ||
enabled := spec third. | ||
help := spec fourth. | ||
aBuilder pluggableButtonSpec new | ||
model: self; | ||
label: label; | ||
action: action; | ||
enabled: enabled; | ||
help: help; | ||
yourself])]. | ||
|
||
^panelSpec |
13 changes: 0 additions & 13 deletions
13
src/Koans-Core.package/KoanEditor.class/instance/buildDebugButtonWith..st
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/Koans-Core.package/KoanEditor.class/instance/buildNextButtonWith..st
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/Koans-Core.package/KoanEditor.class/instance/buildPreviousButtonWith..st
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/Koans-Core.package/KoanEditor.class/instance/buildResetKoanButtonWith..st
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/Koans-Core.package/KoanEditor.class/instance/buildTestButtonWith..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Koans-Core.package/KoanEditor.class/instance/buttonSpecs.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
building | ||
buttonSpecs | ||
|
||
^ #( | ||
('Overview' changeToSelectionView nil 'Go back to overview') | ||
nil | ||
('Browse Project' browseProject isBrowseProjectButtonEnabled 'Browse Koans Project') | ||
('Debug' debugKoan nil 'Debug this Koan') | ||
('Reset Koan' resetKoan nil 'Reset code an try again') | ||
nil | ||
('Previous' previousKoan isPreviousButtonEnabled 'Go back to previous Koan') | ||
('Test' saveAndTest nil 'Save edits and test Koan') | ||
('Next' nextKoan isNextButtonEnabled 'Proceed to next Koan') | ||
) |
2 changes: 1 addition & 1 deletion
2
src/Koans-Core.package/KoanEditor.class/instance/statusBarHeight.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
statusbar | ||
statusBarHeight | ||
|
||
^ 100 | ||
^ ToolBuilder default inputFieldHeight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#objectsReplacedByNames : true, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
6 changes: 0 additions & 6 deletions
6
...ckage/KoanEditorTests.class/instance/testBuildBackToSelectionViewButtonWithReturnsSpec.st
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...s-Tests.package/KoanEditorTests.class/instance/testBuildBrowseProjectButtonReturnsSpec.st
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.