-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
result dialog: refactor overview pyramid integration, add pane splitt…
…er, fix result selection
- Loading branch information
Showing
26 changed files
with
75 additions
and
111 deletions.
There are no files selected for viewing
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: 4 additions & 0 deletions
4
packages/SwaLint-Core.package/OverviewPyramidMorph.class/instance/asContainer.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,4 @@ | ||
initialization | ||
asContainer | ||
|
||
^ self asContainerWithPadding: 5 px |
11 changes: 11 additions & 0 deletions
11
packages/SwaLint-Core.package/OverviewPyramidMorph.class/instance/asContainerWithPadding..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,11 @@ | ||
initialization | ||
asContainerWithPadding: padding | ||
|
||
| container | | ||
container := Morph new | ||
beTransparent; | ||
extent: (self fullBounds; extent) + (padding * 2); | ||
addMorph: self; | ||
yourself. | ||
self position: padding. | ||
^ container |
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
11 changes: 11 additions & 0 deletions
11
packages/SwaLint-Core.package/SLResultDialog.class/instance/buildOverviewPyramidWith..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,11 @@ | ||
building | ||
buildOverviewPyramidWith: aBuilder | ||
|
||
| overviewResults pyramid | | ||
overviewResults := self getOverviewPyramidResults ifNil: [^ nil]. | ||
pyramid := OverviewPyramidMorph newWithResults: overviewResults. | ||
|
||
^ aBuilder pluggableScrollPaneSpec new | ||
name: self overviewPyramidScrollPaneName; | ||
morph: (pyramid asContainerWithPadding: 20 px); | ||
yourself |
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
13 changes: 13 additions & 0 deletions
13
packages/SwaLint-Core.package/SLResultDialog.class/instance/buildResultsListMorphs.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,13 @@ | ||
building | ||
buildResultsListMorphs | ||
|
||
| builder specs | | ||
builder := Project uiManager toolBuilder. | ||
specs := self buildResultsListMorphsWith: builder. | ||
specs withIndexDo: [:spec :index | | ||
spec frame: | ||
(LayoutFrame fullFrame | ||
leftFraction: index - 1 / specs size; | ||
rightFraction: index / specs size; | ||
yourself)]. | ||
^ specs collect: [:each | each buildWith: builder] |
9 changes: 9 additions & 0 deletions
9
packages/SwaLint-Core.package/SLResultDialog.class/instance/buildResultsListMorphsWith..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,9 @@ | ||
building | ||
buildResultsListMorphsWith: aBuilder | ||
|
||
^ Array streamContents: [:stream | | ||
stream nextPut: | ||
(self buildResultsListWith: aBuilder). | ||
self isOrderedByTests ifFalse: [ | ||
(self buildOverviewPyramidWith: aBuilder) ifNotNil: [:pyramid | | ||
stream nextPut: pyramid]]] |
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
8 changes: 0 additions & 8 deletions
8
packages/SwaLint-Core.package/SLResultDialog.class/instance/createOverviewPyramidMorph..st
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...SwaLint-Core.package/SLResultDialog.class/instance/createOverviewPyramidMorphWith.and..st
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/SwaLint-Core.package/SLResultDialog.class/instance/hideOverviewPyramid.st
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/SwaLint-Core.package/SLResultDialog.class/instance/overviewPyramidFrame.st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/SwaLint-Core.package/SLResultDialog.class/instance/overviewPyramidIsSelected.st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
packages/SwaLint-Core.package/SLResultDialog.class/instance/overviewPyramidScrollFrame.st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/SwaLint-Core.package/SLResultDialog.class/instance/resultPanel.st
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/SwaLint-Core.package/SLResultDialog.class/instance/resultSelected..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,5 @@ | ||
accessing-results | ||
resultSelected: anInteger | ||
|
||
resultIndex := anInteger. | ||
self changed: #resultSelected; changed: #browsable. |
2 changes: 1 addition & 1 deletion
2
packages/SwaLint-Core.package/SLResultDialog.class/instance/resultSelected.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 @@ | ||
accessing-results | ||
resultSelected | ||
|
||
^ 0 | ||
^ resultIndex |
9 changes: 0 additions & 9 deletions
9
packages/SwaLint-Core.package/SLResultDialog.class/instance/resultsFrameInPanel.st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/SwaLint-Core.package/SLResultDialog.class/instance/resultsPanelName.st
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
packages/SwaLint-Core.package/SLResultDialog.class/instance/showOverviewPyramid.st
This file was deleted.
Oops, something went wrong.
4 changes: 1 addition & 3 deletions
4
packages/SwaLint-Core.package/SLResultDialog.class/instance/toggleResultView.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,6 +1,4 @@ | ||
accessing | ||
toggleResultView | ||
|
||
(Smalltalk isMorphic and: self overviewPyramidIsSelected and: self isOrderedByTests not) | ||
ifTrue: [ self showOverviewPyramid ] | ||
ifFalse: [ self hideOverviewPyramid ]. | ||
self changed: #buildResultsListMorphs. |
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