Skip to content

Commit

Permalink
new image buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
RedToxyl committed Jul 2, 2024
1 parent 3f74413 commit 2e4eef2
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 22 deletions.
32 changes: 23 additions & 9 deletions .squot-materialize
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
},
#path : @7
},
SquotImageMapper {
#path : FSAbsolutePath [
'GMTEIcons',
'undo.png'
],
#encoding : Class [ #PNGReadWriter ]
},
SquotImageMapper {
#path : FSAbsolutePath [
'testingResources',
Expand Down Expand Up @@ -49,7 +56,7 @@
'GMTEIcons',
'trash.png'
],
#encoding : Class [ #PNGReadWriter ]
#encoding : @12
},
SquotPlaintextMapper {
#path : FSAbsolutePath [
Expand All @@ -64,7 +71,7 @@
'GMTEIcons',
'up.png'
],
#encoding : @21
#encoding : @12
},
SquotTonelMapper {
#package : MCPackage {
Expand All @@ -77,7 +84,7 @@
'testingResources',
'squeak.png'
],
#encoding : @21
#encoding : @12
},
SquotCypressMapper {
#package : MCPackage {
Expand All @@ -92,7 +99,7 @@
'GMTEIcons',
'rename.png'
],
#encoding : @21
#encoding : @12
},
SquotPlaintextMapper {
#path : FSAbsolutePath [
Expand All @@ -105,7 +112,7 @@
'GMTEIcons',
'down.png'
],
#encoding : @21
#encoding : @12
},
SquotPlaintextMapper {
#path : FSAbsolutePath [
Expand Down Expand Up @@ -147,7 +154,7 @@
'GMTEIcons',
'merge.png'
],
#encoding : @21
#encoding : @12
},
SquotSoundMapper {
#path : FSAbsolutePath [
Expand Down Expand Up @@ -188,7 +195,7 @@
'GMTEIcons',
'broom.png'
],
#encoding : @21
#encoding : @12
},
SquotPlaintextMapper {
#path : FSAbsolutePath [
Expand All @@ -213,7 +220,7 @@
'GMTEIcons',
'eye.png'
],
#encoding : @21
#encoding : @12
},
SquotCypressMapper {
#package : MCPackage {
Expand All @@ -223,6 +230,13 @@
'source'
]
},
SquotImageMapper {
#path : FSAbsolutePath [
'GMTEIcons',
'redo.png'
],
#encoding : @12
},
SquotPlaintextMapper {
#path : FSAbsolutePath [
'LICENSE'
Expand All @@ -234,7 +248,7 @@
'GMTEIcons',
'add.png'
],
#encoding : @21
#encoding : @12
},
SquotTonelMapper {
#package : MCPackage {
Expand Down
Binary file added GMTEIcons/redo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/rename.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/trash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GMTEIcons/undo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 19 additions & 13 deletions source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ GMTEEditor >> createTilestoreSpecWithBuilder: aBuilder [

{
#category : #building,
#'squeak_changestamp' : 'Alex M 7/1/2024 15:48'
#'squeak_changestamp' : 'TW 7/2/2024 18:34'
}
GMTEEditor >> createToolBarSpecWithBuilder: aBuilder [
"creates the spec for the tool bar"
Expand All @@ -656,18 +656,24 @@ GMTEEditor >> createToolBarSpecWithBuilder: aBuilder [
name: 'toolbar';
model: self;
frame: (LayoutFrame fractions: (0@0 corner: 1@0) offsets:(0@0 corner: 0@30));
children: {(aBuilder pluggableButtonSpec new)
name: 'undo';
label: 'undo';
model: self;
frame: (LayoutFrame fractions: (0 @ 0 corner: 0.25 @ 1) offsets: nil);
action: #undo.
(aBuilder pluggableButtonSpec new)
name: 'redo';
label: 'redo';
model: self;
frame: (LayoutFrame fractions: (0.25 @ 0 corner: 0.5 @ 1) offsets: nil);
action: #redo.
children: {
(aBuilder pluggableImageButtonSpec new)
name: 'undo';
label: 'undo';
model: self;
frame: (LayoutFrame fractions: (0 @ 0 corner: 0.25 @ 1) offsets: nil);
action: #undo;
project: 'GameMecha';
path: '/GMTEIcons/undo.png'.

(aBuilder pluggableImageButtonSpec new)
name: 'redo';
label: 'redo';
model: self;
frame: (LayoutFrame fractions: (0.25 @ 0 corner: 0.5 @ 1) offsets: nil);
action: #redo;
project: 'GameMecha';
path: '/GMTEIcons/redo.png'.
};

verticalResizing: #shrinkWrap;
Expand Down

0 comments on commit 2e4eef2

Please sign in to comment.