Skip to content

Commit 2e4eef2

Browse files
committed
new image buttons
1 parent 3f74413 commit 2e4eef2

File tree

6 files changed

+42
-22
lines changed

6 files changed

+42
-22
lines changed

.squot-materialize

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
},
2222
#path : @7
2323
},
24+
SquotImageMapper {
25+
#path : FSAbsolutePath [
26+
'GMTEIcons',
27+
'undo.png'
28+
],
29+
#encoding : Class [ #PNGReadWriter ]
30+
},
2431
SquotImageMapper {
2532
#path : FSAbsolutePath [
2633
'testingResources',
@@ -49,7 +56,7 @@
4956
'GMTEIcons',
5057
'trash.png'
5158
],
52-
#encoding : Class [ #PNGReadWriter ]
59+
#encoding : @12
5360
},
5461
SquotPlaintextMapper {
5562
#path : FSAbsolutePath [
@@ -64,7 +71,7 @@
6471
'GMTEIcons',
6572
'up.png'
6673
],
67-
#encoding : @21
74+
#encoding : @12
6875
},
6976
SquotTonelMapper {
7077
#package : MCPackage {
@@ -77,7 +84,7 @@
7784
'testingResources',
7885
'squeak.png'
7986
],
80-
#encoding : @21
87+
#encoding : @12
8188
},
8289
SquotCypressMapper {
8390
#package : MCPackage {
@@ -92,7 +99,7 @@
9299
'GMTEIcons',
93100
'rename.png'
94101
],
95-
#encoding : @21
102+
#encoding : @12
96103
},
97104
SquotPlaintextMapper {
98105
#path : FSAbsolutePath [
@@ -105,7 +112,7 @@
105112
'GMTEIcons',
106113
'down.png'
107114
],
108-
#encoding : @21
115+
#encoding : @12
109116
},
110117
SquotPlaintextMapper {
111118
#path : FSAbsolutePath [
@@ -147,7 +154,7 @@
147154
'GMTEIcons',
148155
'merge.png'
149156
],
150-
#encoding : @21
157+
#encoding : @12
151158
},
152159
SquotSoundMapper {
153160
#path : FSAbsolutePath [
@@ -188,7 +195,7 @@
188195
'GMTEIcons',
189196
'broom.png'
190197
],
191-
#encoding : @21
198+
#encoding : @12
192199
},
193200
SquotPlaintextMapper {
194201
#path : FSAbsolutePath [
@@ -213,7 +220,7 @@
213220
'GMTEIcons',
214221
'eye.png'
215222
],
216-
#encoding : @21
223+
#encoding : @12
217224
},
218225
SquotCypressMapper {
219226
#package : MCPackage {
@@ -223,6 +230,13 @@
223230
'source'
224231
]
225232
},
233+
SquotImageMapper {
234+
#path : FSAbsolutePath [
235+
'GMTEIcons',
236+
'redo.png'
237+
],
238+
#encoding : @12
239+
},
226240
SquotPlaintextMapper {
227241
#path : FSAbsolutePath [
228242
'LICENSE'
@@ -234,7 +248,7 @@
234248
'GMTEIcons',
235249
'add.png'
236250
],
237-
#encoding : @21
251+
#encoding : @12
238252
},
239253
SquotTonelMapper {
240254
#package : MCPackage {

GMTEIcons/redo.png

1.6 KB
Loading

GMTEIcons/rename.png

199 Bytes
Loading

GMTEIcons/trash.png

36 Bytes
Loading

GMTEIcons/undo.png

1.6 KB
Loading

source/GM-TE/GMTEEditor.class.st

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ GMTEEditor >> createTilestoreSpecWithBuilder: aBuilder [
647647

648648
{
649649
#category : #building,
650-
#'squeak_changestamp' : 'Alex M 7/1/2024 15:48'
650+
#'squeak_changestamp' : 'TW 7/2/2024 18:34'
651651
}
652652
GMTEEditor >> createToolBarSpecWithBuilder: aBuilder [
653653
"creates the spec for the tool bar"
@@ -656,18 +656,24 @@ GMTEEditor >> createToolBarSpecWithBuilder: aBuilder [
656656
name: 'toolbar';
657657
model: self;
658658
frame: (LayoutFrame fractions: (0@0 corner: 1@0) offsets:(0@0 corner: 0@30));
659-
children: {(aBuilder pluggableButtonSpec new)
660-
name: 'undo';
661-
label: 'undo';
662-
model: self;
663-
frame: (LayoutFrame fractions: (0 @ 0 corner: 0.25 @ 1) offsets: nil);
664-
action: #undo.
665-
(aBuilder pluggableButtonSpec new)
666-
name: 'redo';
667-
label: 'redo';
668-
model: self;
669-
frame: (LayoutFrame fractions: (0.25 @ 0 corner: 0.5 @ 1) offsets: nil);
670-
action: #redo.
659+
children: {
660+
(aBuilder pluggableImageButtonSpec new)
661+
name: 'undo';
662+
label: 'undo';
663+
model: self;
664+
frame: (LayoutFrame fractions: (0 @ 0 corner: 0.25 @ 1) offsets: nil);
665+
action: #undo;
666+
project: 'GameMecha';
667+
path: '/GMTEIcons/undo.png'.
668+
669+
(aBuilder pluggableImageButtonSpec new)
670+
name: 'redo';
671+
label: 'redo';
672+
model: self;
673+
frame: (LayoutFrame fractions: (0.25 @ 0 corner: 0.5 @ 1) offsets: nil);
674+
action: #redo;
675+
project: 'GameMecha';
676+
path: '/GMTEIcons/redo.png'.
671677
};
672678

673679
verticalResizing: #shrinkWrap;

0 commit comments

Comments
 (0)