Skip to content

Commit

Permalink
overview pyramid: add high-dpi support, minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
LinqLover committed Dec 21, 2024
1 parent 47d34d2 commit 1290f1e
Show file tree
Hide file tree
Showing 24 changed files with 49 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ initialization
addCalcMorphWith: aString to: aMorph at: yPosition

| calcmorph |
calcmorph := TextMorph new contents: aString.
calcmorph := (TextMorph new contents: aString) lock.
aMorph addMorph: calcmorph.
calcmorph position: ((aMorph position x)-(calcmorph width)-5)@yPosition.
calcmorph position: ((aMorph position x)-(calcmorph width)-5 px)@yPosition.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ initialization
addNameMorphWith: aString to: aMorph at: yPosition

| namemorph |
namemorph := (TextMorph new contents: aString).
namemorph := (TextMorph new contents: aString) lock.
aMorph addMorph: namemorph.
namemorph position: ((aMorph position x)+5)@yPosition.
namemorph position: ((aMorph position x)+5 px)@yPosition.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ initialization
addResultMorphWith: aString to: aMorph at: yPosition

| resultmorph |
resultmorph := (TextMorph new contents: aString).
resultmorph := (TextMorph new contents: aString) lock.
aMorph addMorph: resultmorph.
resultmorph position: ((aMorph position x)+(aMorph width)-(resultmorph width)-5)@yPosition.
resultmorph position: ((aMorph position x)+(aMorph width)-(resultmorph width)-5 px)@yPosition.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"class" : {
},
"instance" : {
"addCalcMorphWith:to:at:" : "NA 7/31/2015 21:18",
"addNameMorphWith:to:at:" : "NA 7/31/2015 21:16",
"addResultMorphWith:to:at:" : "NA 7/31/2015 21:18",
"addCalcMorphWith:to:at:" : "ct 12/21/2024 19:02",
"addNameMorphWith:to:at:" : "ct 12/21/2024 19:01",
"addResultMorphWith:to:at:" : "ct 12/21/2024 19:02",
"buildDictionary" : "NH 7/28/2015 13:31",
"setupContainerMorphWith:at:" : "BD 6/29/2018 12:45",
"xOffset" : "NH 7/28/2015 13:44",
"yOffset" : "NH 7/28/2015 13:44" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ initialization
addCalcMorphWith: aString to: aMorph at: yPosition

| calcmorph |
calcmorph := TextMorph new contents: aString.
calcmorph := (TextMorph new contents: aString) lock.
aMorph addMorph: calcmorph.
calcmorph position: ((aMorph position x)+(aMorph width)+5)@yPosition.
calcmorph position: ((aMorph position x)+(aMorph width)+5 px)@yPosition.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ initialization
addNameMorphWith: aString to: aMorph at: yPosition

| namemorph |
namemorph := (TextMorph new contents: aString).
namemorph := (TextMorph new contents: aString) lock.
aMorph addMorph: namemorph.
namemorph position: ((aMorph position x)+(aMorph width)-(namemorph width)-5)@yPosition.
namemorph position: ((aMorph position x)+(aMorph width)-(namemorph width)-5 px)@yPosition.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ initialization
addResultMorphWith: aString to: aMorph at: yPosition

| resultmorph |
resultmorph := (TextMorph new contents: aString).
resultmorph := (TextMorph new contents: aString) lock.
aMorph addMorph: resultmorph.
resultmorph position: ((aMorph position x)+5)@yPosition.
resultmorph position: ((aMorph position x)+5 px)@yPosition.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"class" : {
},
"instance" : {
"addCalcMorphWith:to:at:" : "NA 7/31/2015 21:25",
"addNameMorphWith:to:at:" : "NA 7/31/2015 21:27",
"addResultMorphWith:to:at:" : "NA 7/31/2015 21:24",
"addCalcMorphWith:to:at:" : "ct 12/21/2024 19:02",
"addNameMorphWith:to:at:" : "ct 12/21/2024 19:02",
"addResultMorphWith:to:at:" : "ct 12/21/2024 19:02",
"buildDictionary" : "NH 7/28/2015 13:45",
"setupContainerMorphWith:at:" : "BD 6/29/2018 12:46",
"xOffset" : "NH 7/28/2015 13:47",
"yOffset" : "NH 7/28/2015 14:22" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ initialization
addNameMorphWith: aString to: aMorph at: yPosition

| namemorph |
namemorph := (TextMorph new contents: aString).
namemorph := (TextMorph new contents: aString) lock.
aMorph addMorph: namemorph.
namemorph position: ((aMorph position x)+5)@yPosition.
namemorph position: ((aMorph position x)+5 px)@yPosition.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ initialization
addResultMorphWith: aString to: aMorph at: yPosition

| resultmorph |
resultmorph := (TextMorph new contents: aString).
resultmorph := (TextMorph new contents: aString) lock.
aMorph addMorph: resultmorph.
resultmorph position: ((aMorph position x)+(aMorph width)-(resultmorph width)-5)@yPosition.
resultmorph position: ((aMorph position x)+(aMorph width)-(resultmorph width)-5 px)@yPosition.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
},
"instance" : {
"addCalcMorphWith:to:at:" : "NA 7/31/2015 22:03",
"addNameMorphWith:to:at:" : "NA 7/31/2015 21:30",
"addResultMorphWith:to:at:" : "NA 7/31/2015 21:31",
"addNameMorphWith:to:at:" : "ct 12/21/2024 19:02",
"addResultMorphWith:to:at:" : "ct 12/21/2024 19:02",
"buildDictionary" : "NH 7/28/2015 13:48",
"createMorphFor:withValue:andValForCalc:andOffsetX:Y:addCalculation:" : "NA 7/31/2015 22:05",
"setupContainerMorphWith:at:" : "BD 6/29/2018 12:46",
"xOffset" : "NH 7/28/2015 13:47",
"yOffset" : "NH 7/28/2015 13:49" } }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
instance creation
newWithResults: aDictionary

^ self new
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
initialization
borderWidth

^ 1
^ 1 px
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialization
buildDictionary

^ self subclassResponsibility
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
positioning
defaultMorphEntryHeight

^ 20
^ 20 px
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
positioning
defaultMorphEntryWidth

^ 80
^ 80 px
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
positioning
defaultMorphEntryWidthExtension

^ 35
^ 35 px
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
positioning
getMainMorphCenterX

^ (self center x)+140
^ (self center x)+140 px
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ initialization
initialize

super initialize.
self hResizing: #shrinkWrap; vResizing: #shrinkWrap.
self color: self defaultBackgroundColor.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
yOffset

^ self subclassResponsibility
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
"addCalcMorphWith:to:at:" : "NA 7/31/2015 22:03",
"addNameMorphWith:to:at:" : "NA 7/31/2015 21:41",
"addResultMorphWith:to:at:" : "NA 7/31/2015 21:41",
"borderWidth" : "NA 7/30/2015 13:30",
"borderWidth" : "ct 12/21/2024 18:18",
"buildDictionary" : "ct 12/21/2024 18:18",
"buildEntries" : "BD 6/29/2018 12:32",
"buildMorphs" : "BD 6/29/2018 12:46",
"createMorphFor:withValue:andValForCalc:andOffsetX:Y:addCalculation:" : "NA 7/31/2015 22:01",
"defaultBackgroundColor" : "NA 7/30/2015 13:43",
"defaultMorphEntryHeight" : "NH 7/28/2015 11:43",
"defaultMorphEntryWidth" : "NA 7/30/2015 13:48",
"defaultMorphEntryWidthExtension" : "NA 7/31/2015 21:00",
"defaultMorphEntryHeight" : "ct 12/21/2024 18:18",
"defaultMorphEntryWidth" : "ct 12/21/2024 18:18",
"defaultMorphEntryWidthExtension" : "ct 12/21/2024 18:18",
"formatSymbol:" : "NH 7/28/2015 13:41",
"getMainMorphCenterX" : "NA 7/31/2015 21:00",
"initialize" : "NA 7/31/2015 20:26",
"getMainMorphCenterX" : "ct 12/21/2024 19:23",
"initialize" : "ct 12/21/2024 18:19",
"newRectangleMorph" : "BD 6/29/2018 12:47",
"results" : "NH 7/28/2015 13:06",
"results:" : "NH 7/28/2015 13:06",
"setupContainerMorphWith:at:" : "NA 7/31/2015 21:42" } }
"setupContainerMorphWith:at:" : "NA 7/31/2015 21:42",
"xOffset" : "ct 12/21/2024 19:21",
"yOffset" : "ct 12/21/2024 18:19" } }

0 comments on commit 1290f1e

Please sign in to comment.