-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
148 additions
and
142 deletions.
There are no files selected for viewing
20 changes: 11 additions & 9 deletions
20
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/addYAxisValues..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,10 +1,12 @@ | ||
yAxis-selection | ||
addYAxisValues: t1 | ||
| t2 | | ||
t2 := self getYAxis asOrderedCollection. | ||
t2 add: t1. | ||
self setYAxis: t2. | ||
self yAxisSelection: self defaultYAxisSelection. | ||
self changed: #getYAxis. | ||
self changed: #isYAxisSelected:. | ||
self changed: #yAxis:setSelected: | ||
addYAxisValues: aString | ||
|
||
| yCollection | | ||
|
||
yCollection := self getYAxis asOrderedCollection. | ||
yCollection add: aString. | ||
self setYAxis: yCollection; | ||
yAxisSelection: self defaultYAxisSelection; | ||
changed: #getYAxis; | ||
changed: #isYAxisSelected:; | ||
changed: #yAxis:setSelected: |
33 changes: 17 additions & 16 deletions
33
...ticsWorkbench-UI.package/SWMainformModel.class/instance/buildChangeYAxisSelectionWith..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,21 +1,22 @@ | ||
building | ||
buildChangeYAxisSelectionWith: t1 | ||
^ t1 pluggablePanelSpec new children: {t1 pluggableButtonSpec new model: self; | ||
label: 'Add'; | ||
style: self cornerStyle; | ||
buildChangeYAxisSelectionWith: aBuilder | ||
|
||
^ aBuilder pluggablePanelSpec new children: {aBuilder pluggableButtonSpec new model: self; | ||
label: 'Add'; | ||
style: self cornerStyle; | ||
|
||
frame: (0 @ 0 corner: 0.33 @ 1.0); | ||
action: #showYAxisPopup. t1 pluggableButtonSpec new model: self; | ||
label: 'Edit'; | ||
style: self cornerStyle; | ||
frame: (0 @ 0 corner: 0.33 @ 1.0); | ||
action: #showYAxisPopup. aBuilder pluggableButtonSpec new model: self; | ||
label: 'Edit'; | ||
style: self cornerStyle; | ||
|
||
frame: (0.33 @ 0 corner: 0.66 @ 1.0); | ||
action: #editYAxisValues. t1 pluggableButtonSpec new model: self; | ||
label: 'Remove'; | ||
style: self cornerStyle; | ||
frame: (0.33 @ 0 corner: 0.66 @ 1.0); | ||
action: #editYAxisValues. aBuilder pluggableButtonSpec new model: self; | ||
label: 'Remove'; | ||
style: self cornerStyle; | ||
|
||
frame: (0.66 @ 0 corner: 1.0 @ 1.0); | ||
action: #removeYAxisValues}; | ||
frame: (0.66 @ 0 corner: 1.0 @ 1.0); | ||
action: #removeYAxisValues}; | ||
|
||
frame: (0.7 @ 0.37 corner: 1 @ 0.45); | ||
yourself | ||
frame: (0.7 @ 0.37 corner: 1 @ 0.45); | ||
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
39 changes: 19 additions & 20 deletions
39
.../StatisticsWorkbench-UI.package/SWMainformModel.class/instance/buildTextWith.withAxis..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,25 +1,24 @@ | ||
building | ||
buildTextWith: aBuilder withAxis: aNumber | ||
| windowContent layoutPosition | | ||
|
||
windowContent := layoutPosition := nil. | ||
| windowContent layoutPosition | | ||
|
||
aNumber caseOf: { | ||
[1] -> [windowContent := #buildXAxisLabel. | ||
layoutPosition := 0.3 @ 0.17 corner: 1 @ 0.25]. | ||
[2] -> [windowContent := #buildYAxisLabel. | ||
layoutPosition := 0.3 @ 0.37 corner: 0.75 @ 0.25]. | ||
[3] -> [windowContent := #buildColumnsLabel. | ||
layoutPosition := 0.3 @ 0.68 corner: 1 @ 0.25]. | ||
[4] -> [windowContent := #buildThemeLabel. | ||
windowContent := layoutPosition := nil. | ||
aNumber caseOf: { | ||
[1] -> [windowContent := #buildXAxisLabel. | ||
layoutPosition := 0.3 @ 0.17 corner: 1 @ 0.25]. | ||
[2] -> [windowContent := #buildYAxisLabel. | ||
layoutPosition := 0.3 @ 0.37 corner: 0.75 @ 0.25]. | ||
[3] -> [windowContent := #buildColumnsLabel. | ||
layoutPosition := 0.3 @ 0.68 corner: 1 @ 0.25]. | ||
[4] -> [windowContent := #buildThemeLabel. | ||
layoutPosition := 0 @ 0.82 corner: 1 @ 0.9]. | ||
} otherwise: [ | ||
windowContent := #buildXAxisLabel. | ||
layoutPosition := 0.3 @ 0.53 corner: 1 @ 0.15 | ||
]. | ||
|
||
^ aBuilder pluggablePanelSpec new | ||
model: self; | ||
children: windowContent; | ||
frame: layoutPosition; | ||
yourself | ||
} otherwise: [ | ||
windowContent := #buildXAxisLabel. | ||
layoutPosition := 0.3 @ 0.53 corner: 1 @ 0.15 | ||
]. | ||
^ aBuilder pluggablePanelSpec new | ||
model: self; | ||
children: windowContent; | ||
frame: layoutPosition; | ||
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
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
2 changes: 1 addition & 1 deletion
2
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/cornerStyle.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,6 @@ | ||
building | ||
cornerStyle | ||
|
||
(MenuMorph roundedMenuCorners = false) | ||
MenuMorph roundedMenuCorners = false | ||
ifTrue: [^ #menuButton] | ||
ifFalse: [^ #nil] |
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
2 changes: 1 addition & 1 deletion
2
...ages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/defaultWindowExtent.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 @@ | ||
default-values | ||
defaultWindowExtent | ||
|
||
^ 510 @ 330 | ||
^ 510@330 |
2 changes: 1 addition & 1 deletion
2
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/defaultYValue.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 @@ | ||
default-values | ||
defaultYValue | ||
|
||
^ '22, 110, 64, 211, 35' | ||
^ {'11, 12, 13, 14, 15'. '21, 22, 23, 24, 25'. '31, 32, 33, 34, 35'} |
32 changes: 17 additions & 15 deletions
32
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/editYAxisValues.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,22 +1,24 @@ | ||
yAxis-selection | ||
editYAxisValues | ||
| t1 t3 | | ||
t3 := self yAxisSelection | ||
indexOf: true | ||
ifAbsent: [0]. | ||
t3 = 0 | ||
|
||
| value index | | ||
|
||
index := self yAxisSelection indexOf: true ifAbsent: [0]. | ||
index = 0 | ||
ifTrue: [self inform: 'Error: Please select one yAxis before!'] | ||
ifFalse: [t3 := 1. | ||
ifFalse: [ | ||
value := 1. | ||
yAxisSelection | ||
do: [:t4 | | ||
t4 | ||
ifTrue: [t1 := UIManager default | ||
ifTrue: [value := UIManager default | ||
request: 'Enter your y-Axis values (separated by ",")' | ||
initialAnswer: (self yAxis at: t3). | ||
t1 isEmpty | ||
ifFalse: [self yAxis at: t3 put: t1]]. | ||
t3 := t3 + 1]. | ||
self yAxisSelection: self defaultYAxisSelection. | ||
self changed: #getYAxis. | ||
self changed: #isYAxisSelected:. | ||
self changed: #yAxis:setSelected:] | ||
initialAnswer: (self yAxis at: index). | ||
value isEmpty | ||
ifFalse: [self yAxis at: index put: value]]. | ||
index := index + 1]. | ||
|
||
self yAxisSelection: self defaultYAxisSelection; | ||
changed: #getYAxis; | ||
changed: #isYAxisSelected:; | ||
changed: #yAxis:setSelected:] |
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
2 changes: 1 addition & 1 deletion
2
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/isDarkSelected.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 @@ | ||
theme-selection | ||
isDarkSelected | ||
|
||
^ selectedTheme = SWDarkTheme | ||
^ selectedTheme = SWDarkTheme |
2 changes: 1 addition & 1 deletion
2
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/isHPISelected.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 @@ | ||
theme-selection | ||
isHPISelected | ||
|
||
^ selectedTheme = SWHPITheme | ||
^ selectedTheme = SWHPITheme |
2 changes: 1 addition & 1 deletion
2
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/isLightSelected.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 @@ | ||
theme-selection | ||
isLightSelected | ||
|
||
^ selectedTheme = SWDefaultTheme | ||
^ selectedTheme = SWDefaultTheme |
4 changes: 2 additions & 2 deletions
4
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/isYAxisSelected..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 @@ | ||
yAxis-selection | ||
isYAxisSelected: t1 | ||
isYAxisSelected: anIndex | ||
|
||
^ self yAxisSelection at: t1 | ||
^ self yAxisSelection at: anIndex |
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
24 changes: 11 additions & 13 deletions
24
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/removeYAxisValues.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,20 +1,18 @@ | ||
yAxis-selection | ||
removeYAxisValues | ||
|
||
| temp index | | ||
| tempCollection index | | ||
|
||
yAxisSelection isEmpty | ||
ifTrue: [self inform: 'Error: Please add some yAxis values before!']; | ||
ifFalse: [ | ||
index := 1. | ||
temp := OrderedCollection new. | ||
yAxisSelection do: [ :element | | ||
element | ||
ifFalse: [temp add: (self yAxis at: index)]. | ||
index := index +1. | ||
index := 1. | ||
tempCollection := OrderedCollection new. | ||
yAxisSelection do: [ :element | element ifFalse: [tempCollection add: (self yAxis at: index)]. | ||
index := index +1]. | ||
|
||
]. | ||
self setYAxis: temp. | ||
self yAxisSelection: self defaultYAxisSelection. | ||
self changed: #getYAxis. | ||
self changed: #isYAxisSelected:. | ||
self changed: #yAxis:setSelected:] | ||
self setYAxis: tempCollection; | ||
yAxisSelection: self defaultYAxisSelection; | ||
changed: #getYAxis; | ||
changed: #isYAxisSelected:; | ||
changed: #yAxis:setSelected:] |
4 changes: 2 additions & 2 deletions
4
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/setYAxis..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 @@ | ||
yAxis-selection | ||
setYAxis: t1 | ||
setYAxis: aCollection | ||
|
||
yAxis := t1 | ||
yAxis := aCollection |
8 changes: 5 additions & 3 deletions
8
packages/StatisticsWorkbench-UI.package/SWMainformModel.class/instance/showYAxisPopup.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,5 +1,7 @@ | ||
event-handling | ||
showYAxisPopup | ||
| t1 | | ||
t1 := UIManager default request: 'Enter your y-Axis values (separated by ",")' initialAnswer: '32, 44, 65, 45, 3'. | ||
self addYAxisValues: t1 | ||
|
||
| yValues | | ||
|
||
yValues := UIManager default request: 'Enter your y-Axis values (separated by ",")' initialAnswer: '32, 44, 65, 45, 3'. | ||
self addYAxisValues: yValues |
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
Oops, something went wrong.