Skip to content

Commit 01a672d

Browse files
committed
stop tracking toolbuilder
1 parent e616908 commit 01a672d

File tree

58 files changed

+192
-12219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+192
-12219
lines changed

.squot-materialize

Lines changed: 119 additions & 131 deletions
Large diffs are not rendered by default.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Extension { #name : #MorphicToolBuilder }
2+
3+
{
4+
#category : #'*GM-ToolBuilder',
5+
#'squeak_changestamp' : 'tw 7/12/2024 17:05'
6+
}
7+
MorphicToolBuilder >> buildPluggableImageButton: aSpec [
8+
| widget project enabled |
9+
project := aSpec project.
10+
widget := GMTEImageButton new
11+
name: aSpec name;
12+
target: aSpec model;
13+
groupName: aSpec groupName;
14+
actionSelector: aSpec action;
15+
createStateImagesFrom: ((GitAssetLoader for: project) loadForm: aSpec path) copy.
16+
17+
aSpec buttonGroup ifNotNil: [widget buttonGroup: aSpec buttonGroup].
18+
19+
aSpec description ifNotNil: [widget setBalloonText: aSpec description].
20+
21+
enabled := aSpec enabled.
22+
enabled isSymbol ifFalse: [widget enabled:enabled].
23+
24+
self register: widget id: aSpec name.
25+
widget setImageMode: #unpressed.
26+
27+
aSpec arguments
28+
ifNotNil: [widget arguments: aSpec arguments].
29+
self buildHelpFor: widget spec: aSpec.
30+
self setFrame: aSpec frame in: widget.
31+
self setLayoutHintsFor: widget spec: aSpec.
32+
parent ifNotNil:[self add: widget to: parent].
33+
^ widget
34+
]
35+
36+
{
37+
#category : #'*GM-ToolBuilder',
38+
#'squeak_changestamp' : 'Alex M 6/21/2024 19:44'
39+
}
40+
MorphicToolBuilder >> buildPluggableStaticText: aSpec [
41+
| widget defaultTextColor |
42+
widget := StringMorph new
43+
contents: aSpec text.
44+
45+
self register: widget id: aSpec name.
46+
47+
defaultTextColor := UserInterfaceTheme current get: #textColor for: MenuItemMorph.
48+
defaultTextColor
49+
ifNil: [defaultTextColor := Color black].
50+
51+
aSpec color
52+
ifNil:
53+
[widget color: defaultTextColor]
54+
ifNotNil:
55+
[widget color: aSpec color].
56+
57+
self buildHelpFor: widget spec: aSpec.
58+
59+
self setFrame: aSpec frame in: widget.
60+
self setLayoutHintsForTextField: widget spec: aSpec.
61+
62+
parent ifNotNil:[self add: widget to: parent].
63+
^ widget
64+
]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Extension { #name : #ToolBuilder }
2+
3+
{
4+
#category : #'*GM-ToolBuilder',
5+
#'squeak_changestamp' : 'TW 6/9/2024 18:37'
6+
}
7+
ToolBuilder >> buildPluggableStaticText: aSpec [
8+
^self subclassResponsibility
9+
]

source/ToolBuilder-Kernel/Object.extension.st

Lines changed: 0 additions & 37 deletions
This file was deleted.

source/ToolBuilder-Kernel/PluggableActionButtonSpec.class.st

Lines changed: 0 additions & 17 deletions
This file was deleted.

source/ToolBuilder-Kernel/PluggableAlternateMultiSelectionListSpec.class.st

Lines changed: 0 additions & 13 deletions
This file was deleted.

source/ToolBuilder-Kernel/PluggableButtonSpec.class.st

Lines changed: 0 additions & 146 deletions
This file was deleted.

source/ToolBuilder-Kernel/PluggableCheckBoxSpec.class.st

Lines changed: 0 additions & 17 deletions
This file was deleted.

source/ToolBuilder-Kernel/PluggableCodePaneSpec.class.st

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)