Skip to content

Commit

Permalink
fixed layout issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Morgensterns committed May 21, 2024
1 parent e0b402e commit 10e3978
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
27 changes: 18 additions & 9 deletions source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Class {

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'Alex M 5/21/2024 01:18'
#'squeak_changestamp' : 'Alex M 5/21/2024 10:40'
}
GMTEEditor class >> createCommandBarWithBuilder: aBuilder [
^aBuilder pluggablePanelSpec new
Expand All @@ -28,18 +28,24 @@ GMTEEditor class >> createCommandBarWithBuilder: aBuilder [
"margin: 0@0;"
verticalResizing: #shrinkWrap;

frame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 0.1) offsets: nil);
"frame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 0.1) offsets: nil);"
frame: (LayoutFrame
fractions: (0@0 corner: 1@0)
offsets: (0@0 corner: 0@ 50));
yourself
]

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'Alex M 5/21/2024 02:01'
#'squeak_changestamp' : 'Alex M 5/21/2024 10:43'
}
GMTEEditor class >> createLayersWithBuilder: aBuilder [
^aBuilder pluggableListSpec new
name: 'layers';
frame: (LayoutFrame fractions: (0.8 @ 0.1 corner: 1 @ 1) offsets: nil);
"frame: (LayoutFrame fractions: (0.8 @ 0.1 corner: 1 @ 1) offsets: nil);"
frame: (LayoutFrame
fractions: (0.8@0 corner: 1@1)
offsets: (0@ 50 corner: 0@0));
"A LOT OF MOCKUP CODE"
model:self;
getSelected: #selectedLayer;
Expand All @@ -51,26 +57,29 @@ GMTEEditor class >> createLayersWithBuilder: aBuilder [

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'Alex M 5/20/2024 15:44'
#'squeak_changestamp' : 'Alex M 5/21/2024 10:40'
}
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);
frame: (LayoutFrame fractions: (0.2 @ 0 corner: 0.8 @ 0.8)
offsets: (0@ 50 corner: 0@0));
yourself
]

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'Alex M 5/20/2024 16:46'
#'squeak_changestamp' : 'Alex M 5/21/2024 10:48'
}
GMTEEditor class >> createTilestoreWithBuilder: aBuilder [

^aBuilder pluggableScrollPaneSpec new
frame: ((0 @ 0.1) corner: 0.2 @ 1);
frame: (LayoutFrame fractions: (0 @ 0 corner: 0.2 @ 1)
offsets: (0@ 50 corner: 0@0));
name: 'tile store';
layout: #vertical;
spacing: 10@10;
children: {};
padding: 10;
spacing: 20;
Expand Down Expand Up @@ -176,7 +185,7 @@ GMTEEditor class >> loadTileSetWithDimensions: aPoint source: anImageMorph [

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'Alex M 5/21/2024 02:27'
#'squeak_changestamp' : 'Alex M 5/21/2024 10:11'
}
GMTEEditor class >> new [

Expand Down
4 changes: 2 additions & 2 deletions source/GM-TE/GMTETileSelector.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Class {

{
#category : #'as yet unclassified',
#'squeak_changestamp' : 'Alex M 5/21/2024 02:25'
#'squeak_changestamp' : 'Alex M 5/21/2024 02:57'
}
GMTETileSelector >> handlesMouseDown: evt [
"TODO: make this useful."
source ifNotNil: [source visible:true; image: self image].
source ifNotNil: [source visible:true; image: (self image scaledToWidth:75)].
^ true.
]

Expand Down

0 comments on commit 10e3978

Please sign in to comment.