Skip to content

Commit

Permalink
scalable Morph
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Storost committed May 19, 2024
1 parent 961aca2 commit c20b406
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ GMTEEditor class >> createLayersWithBuilder: aBuilder [

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'TW 5/19/2024 16:34'
#'squeak_changestamp' : 'JS 5/19/2024 17:12'
}
GMTEEditor class >> createTileViewerWithBuilder: aBuilder [
^aBuilder pluggablePanelSpec new
name: 'Tile Viewer';
layout: #horizontal;
frame: (LayoutFrame fractions: (0.2 @ 0.1 corner: 0.8 @ 0.8) offsets: nil);
yourself
]
Expand Down Expand Up @@ -88,11 +89,11 @@ GMTEEditor class >> createTrayWithBuilder: aBuilder [

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'TW 5/19/2024 16:20'
#'squeak_changestamp' : 'JS 5/19/2024 17:12'
}
GMTEEditor class >> new [

|builder spec morph|
|builder spec morph submorph|
super new.
builder := ToolBuilder default.
spec := builder pluggableWindowSpec new
Expand All @@ -106,5 +107,15 @@ GMTEEditor class >> new [
self createLayersWithBuilder: builder};
yourself.
morph := builder build: spec.

submorph := RectangleMorph new.

(morph submorphNamed: 'Tile Viewer') addMorph: submorph.

submorph
position: (submorph owner position);
hResizing: #spaceFill;
vResizing: #spaceFill.

morph openInWorld
]

0 comments on commit c20b406

Please sign in to comment.