author | Claus Gittinger <cg@exept.de> |
Mon, 16 Dec 2013 14:42:41 +0100 | |
changeset 3065 | 311d632319d9 |
parent 1875 | cfef9684a543 |
child 3306 | a2d6e8a1bcaf |
permissions | -rw-r--r-- |
300 | 1 |
" |
736 | 2 |
COPYRIGHT (c) 1997 by eXept Software AG |
300 | 3 |
All Rights Reserved |
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
736 | 7 |
inclusion of the above copyright notice. This software may not |
300 | 8 |
be provided or otherwise made available to, or used by, any |
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
15 |
||
1499
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1065
diff
changeset
|
16 |
"{ Package: 'stx:libtool2' }" |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1065
diff
changeset
|
17 |
|
736 | 18 |
ResourceSpecEditor subclass:#HierarchicalListEditor |
731 | 19 |
instanceVariableNames:'treeView' |
20 |
classVariableNames:'' |
|
300 | 21 |
poolDictionaries:'' |
22 |
category:'Interface-UIPainter' |
|
23 |
! |
|
24 |
||
25 |
!HierarchicalListEditor class methodsFor:'documentation'! |
|
26 |
||
27 |
copyright |
|
28 |
" |
|
736 | 29 |
COPYRIGHT (c) 1997 by eXept Software AG |
300 | 30 |
All Rights Reserved |
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
736 | 34 |
inclusion of the above copyright notice. This software may not |
300 | 35 |
be provided or otherwise made available to, or used by, any |
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
||
40 |
||
41 |
||
42 |
! |
|
43 |
||
44 |
documentation |
|
45 |
" |
|
731 | 46 |
The HierarchicalListEditor allows you to create, modify or just inspect |
47 |
(statical) hierarchical lists for the SelectionInListView. |
|
300 | 48 |
|
49 |
[start with:] |
|
50 |
HierarchicalListEditor open |
|
51 |
||
52 |
[see also:] |
|
53 |
UIPainter |
|
54 |
||
55 |
[author:] |
|
546 | 56 |
Claus Atzkern, eXept Software AG |
731 | 57 |
Thomas Zwick, eXept Software AG |
300 | 58 |
" |
59 |
||
60 |
||
61 |
||
62 |
! ! |
|
63 |
||
731 | 64 |
!HierarchicalListEditor class methodsFor:'instance creation'! |
65 |
||
66 |
openModalOnTreeItem: aTreeItem |
|
67 |
"Open a HierarchicalListEditor modal on aTreeItem" |
|
68 |
"self openModalOnTreeItem: (TreeItem name: 'Label' contents: #Contents)" |
|
69 |
||
70 |
^self new openModalOnTreeItem: aTreeItem |
|
71 |
||
72 |
! ! |
|
73 |
||
74 |
!HierarchicalListEditor class methodsFor:'accessing'! |
|
75 |
||
76 |
resourceType |
|
77 |
"get the type of resource of the method generated by the HierarchicalListEditor" |
|
78 |
||
79 |
^#hierarchicalList |
|
80 |
||
81 |
! ! |
|
82 |
||
551 | 83 |
!HierarchicalListEditor class methodsFor:'help specs'! |
84 |
||
85 |
helpSpec |
|
736 | 86 |
"This resource specification was automatically generated |
87 |
by the UIHelpTool of ST/X." |
|
88 |
||
89 |
"Do not manually edit this!! If it is corrupted, |
|
90 |
the UIHelpTool may not be able to read the specification." |
|
551 | 91 |
|
92 |
" |
|
736 | 93 |
UIHelpTool openOnClass:HierarchicalListEditor |
551 | 94 |
" |
95 |
||
736 | 96 |
<resource: #help> |
97 |
||
98 |
^super helpSpec addPairsFrom:#( |
|
551 | 99 |
|
100 |
#addChild |
|
101 |
'Adds a new child item.' |
|
102 |
||
103 |
#addSister |
|
104 |
'Adds a new sister item.' |
|
105 |
||
581 | 106 |
#contents |
107 |
'Contents of the tree item.' |
|
108 |
||
731 | 109 |
#fileLoad |
110 |
'Opens a dialog for selecting and loading a hierarchical list spec from a class.' |
|
111 |
||
551 | 112 |
#fileNew |
736 | 113 |
'Creates a new hierarchical list. ' |
551 | 114 |
|
731 | 115 |
#fileSave |
116 |
'Saves current hierarchical list spec.' |
|
552 | 117 |
|
731 | 118 |
#fileSaveAs |
119 |
'Opens a dialog to save current hierarchical list spec.' |
|
552 | 120 |
|
581 | 121 |
#label |
122 |
'Label of the tree item.' |
|
123 |
||
551 | 124 |
) |
125 |
! ! |
|
126 |
||
731 | 127 |
!HierarchicalListEditor class methodsFor:'image specs'! |
300 | 128 |
|
731 | 129 |
createChildIcon |
736 | 130 |
"This resource specification was automatically generated |
131 |
by the ImageEditor of ST/X." |
|
132 |
||
133 |
"Do not manually edit this!! If it is corrupted, |
|
134 |
the ImageEditor may not be able to read the specification." |
|
135 |
||
300 | 136 |
" |
736 | 137 |
ImageEditor openOnClass:self andSelector:#createChildIcon |
300 | 138 |
" |
139 |
||
731 | 140 |
<resource: #image> |
141 |
||
142 |
^Icon |
|
143 |
constantNamed:#'HierarchicalListEditor createChildIcon' |
|
1499
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1065
diff
changeset
|
144 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@AUUUUP@@A????2@@A????2 @A????0@@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A?????8@A<3L308@A33L33H@A30L33H@A33L33H@A<3L008@A?????8@C*****(@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?>@_??@_?? _??0_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8') ; yourself); yourself] |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1065
diff
changeset
|
145 |
! |
300 | 146 |
|
731 | 147 |
createSisterIcon |
736 | 148 |
"This resource specification was automatically generated |
149 |
by the ImageEditor of ST/X." |
|
150 |
||
151 |
"Do not manually edit this!! If it is corrupted, |
|
152 |
the ImageEditor may not be able to read the specification." |
|
153 |
||
731 | 154 |
" |
736 | 155 |
ImageEditor openOnClass:self andSelector:#createSisterIcon |
731 | 156 |
" |
157 |
||
158 |
<resource: #image> |
|
159 |
||
160 |
^Icon |
|
161 |
constantNamed:#'HierarchicalListEditor createSisterIcon' |
|
1499
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1065
diff
changeset
|
162 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@AUUUUP@@A????2@@A????2 @A????0@@A?????8@A?????8@A?????8@A<L<O?8@A3<3??8@A<<<<C8@A?L?O?8@A0<0??8@A?????8@A0LCC?8@A<<?L?8@A<<CC?8@A<<?L?8@A<<CL?8@A?????8@C*****(@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 127 127 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'_?>@_??@_?? _??0_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8_??8') ; yourself); yourself] |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1065
diff
changeset
|
163 |
! ! |
731 | 164 |
|
165 |
!HierarchicalListEditor class methodsFor:'interface specs'! |
|
300 | 166 |
|
167 |
windowSpec |
|
736 | 168 |
"This resource specification was automatically generated |
169 |
by the UIPainter of ST/X." |
|
300 | 170 |
|
736 | 171 |
"Do not manually edit this!! If it is corrupted, |
172 |
the UIPainter may not be able to read the specification." |
|
300 | 173 |
|
174 |
" |
|
175 |
UIPainter new openOnClass:HierarchicalListEditor andSelector:#windowSpec |
|
176 |
HierarchicalListEditor new openInterface:#windowSpec |
|
736 | 177 |
HierarchicalListEditor open |
300 | 178 |
" |
179 |
||
180 |
<resource: #canvas> |
|
181 |
||
1686
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
182 |
^ |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
183 |
#(#FullSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
184 |
#name: #windowSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
185 |
#window: |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
186 |
#(#WindowSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
187 |
#label: 'Hierarchical List Editor' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
188 |
#name: 'Hierarchical List Editor' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
189 |
#min: #(#Point 450 280) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
190 |
#max: #(#Point 1152 900) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
191 |
#bounds: #(#Rectangle 16 46 486 376) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
192 |
#menu: #menu |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
193 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
194 |
#component: |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
195 |
#(#SpecCollection |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
196 |
#collection: #( |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
197 |
#(#MenuPanelSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
198 |
#name: 'menuToolbarView' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
199 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 32 0) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
200 |
#menu: #menuToolbar |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
201 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
202 |
#(#VariableHorizontalPanelSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
203 |
#name: 'VariableHorizontalPanel' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
204 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
205 |
#component: |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
206 |
#(#SpecCollection |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
207 |
#collection: #( |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
208 |
#(#ArbitraryComponentSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
209 |
#name: 'TreeView' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
210 |
#menu: #menuEdit |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
211 |
#hasHorizontalScrollBar: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
212 |
#hasVerticalScrollBar: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
213 |
#miniScrollerHorizontal: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
214 |
#miniScrollerVertical: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
215 |
#hasBorder: false |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
216 |
#component: #treeView |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
217 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
218 |
#(#ViewSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
219 |
#name: 'SpecView' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
220 |
#level: -1 |
731 | 221 |
#component: |
1686
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
222 |
#(#SpecCollection |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
223 |
#collection: #( |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
224 |
#(#LabelSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
225 |
#label: 'Label:' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
226 |
#name: 'nameLabel' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
227 |
#layout: #(#AlignmentOrigin 98 0 26 0 1 0.5) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
228 |
#resizeForLabel: true |
1875 | 229 |
translateLabel: true |
1686
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
230 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
231 |
#(#InputFieldSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
232 |
#name: 'labelInputField' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
233 |
#layout: #(#LayoutFrame 100 0 15 0 -5 1.0 37 0) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
234 |
#activeHelpKey: #label |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
235 |
#tabable: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
236 |
#model: #itemName |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
237 |
#acceptOnLeave: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
238 |
#acceptOnLostFocus: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
239 |
#acceptChannel: #acceptChannel |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
240 |
#modifiedChannel: #modifiedChannel |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
241 |
#acceptOnPointerLeave: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
242 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
243 |
#(#LabelSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
244 |
#label: 'Contents:' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
245 |
#name: 'valueLabel' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
246 |
#layout: #(#AlignmentOrigin 98 0 52 0 1 0.5) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
247 |
#activeHelpKey: #contents |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
248 |
#resizeForLabel: true |
1875 | 249 |
translateLabel: true |
300 | 250 |
) |
1686
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
251 |
#(#InputFieldSpec |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
252 |
#name: 'valueInputField' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
253 |
#layout: #(#LayoutFrame 100 0 41 0 -5 1.0 63 0) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
254 |
#activeHelpKey: #contents |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
255 |
#tabable: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
256 |
#model: #itemValue |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
257 |
#type: #smalltalkObject |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
258 |
#acceptOnLeave: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
259 |
#acceptOnLostFocus: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
260 |
#acceptChannel: #acceptChannel |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
261 |
#modifiedChannel: #modifiedChannel |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
262 |
#acceptOnPointerLeave: true |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
263 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
264 |
#(#UISubSpecification |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
265 |
#name: 'SubSpecification' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
266 |
#layout: #(#LayoutFrame 2 0.0 -26 1.0 -2 1.0 -2 1.0) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
267 |
#majorKey: #ToolApplicationModel |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
268 |
#minorKey: #windowSpecForCommit |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
269 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
270 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
271 |
|
300 | 272 |
) |
1686
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
273 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
274 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
275 |
|
300 | 276 |
) |
1686
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
277 |
#handles: #(#Any 0.368421 1.0) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
278 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
279 |
#(#UISubSpecification |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
280 |
#name: 'InfoBarSubSpec' |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
281 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
282 |
#majorKey: #ToolApplicationModel |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
283 |
#minorKey: #windowSpecForInfoBar |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
284 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
285 |
) |
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
286 |
|
5d20782f58f9
allow any object as contents;
Claus Gittinger <cg@exept.de>
parents:
1575
diff
changeset
|
287 |
) |
300 | 288 |
) |
289 |
! ! |
|
290 |
||
506 | 291 |
!HierarchicalListEditor class methodsFor:'menu specs'! |
292 |
||
293 |
menu |
|
736 | 294 |
"This resource specification was automatically generated |
295 |
by the MenuEditor of ST/X." |
|
506 | 296 |
|
736 | 297 |
"Do not manually edit this!! If it is corrupted, |
298 |
the MenuEditor may not be able to read the specification." |
|
506 | 299 |
|
300 |
" |
|
301 |
MenuEditor new openOnClass:HierarchicalListEditor andSelector:#menu |
|
302 |
(Menu new fromLiteralArrayEncoding:(HierarchicalListEditor menu)) startUp |
|
303 |
" |
|
304 |
||
305 |
<resource: #menu> |
|
306 |
||
307 |
^ |
|
308 |
||
309 |
#(#Menu |
|
310 |
||
311 |
#( |
|
312 |
#(#MenuItem |
|
731 | 313 |
#label: 'File' |
314 |
#submenu: |
|
506 | 315 |
#(#Menu |
316 |
||
317 |
#( |
|
318 |
#(#MenuItem |
|
731 | 319 |
#label: 'New' |
320 |
#value: #doNew |
|
321 |
#activeHelpKey: #fileNew |
|
506 | 322 |
) |
323 |
#(#MenuItem |
|
731 | 324 |
#label: '-' |
522 | 325 |
) |
326 |
#(#MenuItem |
|
731 | 327 |
#label: 'Load...' |
328 |
#translateLabel: true |
|
329 |
#value: #doLoad |
|
330 |
#activeHelpKey: #fileLoad |
|
506 | 331 |
) |
332 |
#(#MenuItem |
|
731 | 333 |
#label: '-' |
506 | 334 |
) |
335 |
#(#MenuItem |
|
731 | 336 |
#label: 'Save' |
337 |
#value: #doSave |
|
338 |
#activeHelpKey: #fileSave |
|
506 | 339 |
) |
340 |
#(#MenuItem |
|
731 | 341 |
#label: 'Save As...' |
342 |
#value: #doSaveAs |
|
343 |
#activeHelpKey: #fileSaveAs |
|
506 | 344 |
) |
345 |
#(#MenuItem |
|
731 | 346 |
#label: '-' |
506 | 347 |
) |
348 |
#(#MenuItem |
|
731 | 349 |
#label: 'Browse Class' |
350 |
#value: #doBrowseClass |
|
351 |
#activeHelpKey: #fileBrowseClass |
|
352 |
#enabled: #hasValidClass |
|
581 | 353 |
) |
354 |
#(#MenuItem |
|
731 | 355 |
#label: '-' |
581 | 356 |
) |
357 |
#(#MenuItem |
|
731 | 358 |
#label: 'Exit' |
359 |
#value: #closeRequest |
|
360 |
#activeHelpKey: #fileExit |
|
506 | 361 |
) |
362 |
) nil |
|
363 |
nil |
|
364 |
) |
|
365 |
) |
|
366 |
#(#MenuItem |
|
731 | 367 |
#label: 'Edit' |
368 |
#submenuChannel: #menuEdit |
|
506 | 369 |
) |
370 |
#(#MenuItem |
|
731 | 371 |
#label: 'Add' |
372 |
#submenu: |
|
522 | 373 |
#(#Menu |
374 |
||
375 |
#( |
|
376 |
#(#MenuItem |
|
731 | 377 |
#label: 'Child' |
378 |
#value: #doCreateChild |
|
379 |
#activeHelpKey: #addChild |
|
380 |
#enabled: #canCreateChildChannel |
|
381 |
#labelImage: #(#ResourceRetriever #HierarchicalListEditor #createChildIcon 'Child') |
|
522 | 382 |
) |
383 |
#(#MenuItem |
|
731 | 384 |
#label: 'Sister' |
385 |
#value: #doCreateSister |
|
386 |
#activeHelpKey: #addSister |
|
387 |
#enabled: #canCreateSisterChannel |
|
388 |
#labelImage: #(#ResourceRetriever #HierarchicalListEditor #createSisterIcon 'Sister') |
|
522 | 389 |
) |
390 |
) nil |
|
391 |
nil |
|
392 |
) |
|
393 |
) |
|
394 |
#(#MenuItem |
|
747 | 395 |
#label: 'History' |
396 |
#submenuChannel: #menuHistory |
|
397 |
) |
|
398 |
#(#MenuItem |
|
731 | 399 |
#label: 'Help' |
400 |
#startGroup: #right |
|
401 |
#submenuChannel: #menuHelp |
|
546 | 402 |
) |
506 | 403 |
) nil |
404 |
nil |
|
405 |
) |
|
406 |
! |
|
407 |
||
408 |
menuEdit |
|
736 | 409 |
"This resource specification was automatically generated |
410 |
by the MenuEditor of ST/X." |
|
506 | 411 |
|
736 | 412 |
"Do not manually edit this!! If it is corrupted, |
413 |
the MenuEditor may not be able to read the specification." |
|
506 | 414 |
|
415 |
" |
|
416 |
MenuEditor new openOnClass:HierarchicalListEditor andSelector:#menuEdit |
|
417 |
(Menu new fromLiteralArrayEncoding:(HierarchicalListEditor menuEdit)) startUp |
|
418 |
" |
|
419 |
||
420 |
<resource: #menu> |
|
421 |
||
422 |
^ |
|
423 |
||
424 |
#(#Menu |
|
425 |
||
426 |
#( |
|
427 |
#(#MenuItem |
|
731 | 428 |
#label: 'Cut' |
429 |
#value: #doCut |
|
430 |
#activeHelpKey: #editCut |
|
431 |
#enabled: #valueOfCanCut |
|
432 |
) |
|
433 |
#(#MenuItem |
|
434 |
#label: 'Copy' |
|
435 |
#value: #doCopy |
|
436 |
#activeHelpKey: #editCopy |
|
437 |
#enabled: #valueOfCanCopy |
|
506 | 438 |
) |
439 |
#(#MenuItem |
|
731 | 440 |
#label: 'Paste' |
441 |
#value: #doPaste |
|
442 |
#activeHelpKey: #editPaste |
|
443 |
#enabled: #valueOfCanPaste |
|
506 | 444 |
) |
445 |
#(#MenuItem |
|
731 | 446 |
#label: 'Delete' |
447 |
#value: #doDelete |
|
448 |
#activeHelpKey: #editPaste |
|
449 |
#enabled: #valueOfCanCut |
|
506 | 450 |
) |
451 |
#(#MenuItem |
|
731 | 452 |
#label: '-' |
506 | 453 |
) |
454 |
#(#MenuItem |
|
731 | 455 |
#label: 'Move Up' |
456 |
#value: #doStepUp |
|
457 |
#activeHelpKey: #editMoveUp |
|
458 |
#enabled: #canStepOverChannel |
|
882 | 459 |
#labelImage: #(#ResourceRetriever #Icon #upIcon 'Move Up') |
506 | 460 |
) |
461 |
#(#MenuItem |
|
731 | 462 |
#label: 'Move Down' |
463 |
#value: #doStepDown |
|
464 |
#activeHelpKey: #editMoveDown |
|
465 |
#enabled: #canStepOverChannel |
|
882 | 466 |
#labelImage: #(#ResourceRetriever #Icon #downIcon 'Move Down') |
506 | 467 |
) |
468 |
#(#MenuItem |
|
731 | 469 |
#label: 'Move In' |
470 |
#value: #doStepIn |
|
471 |
#activeHelpKey: #editMoveIn |
|
472 |
#enabled: #canStepInChannel |
|
882 | 473 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon 'Move In') |
506 | 474 |
) |
475 |
#(#MenuItem |
|
731 | 476 |
#label: 'Move Out' |
477 |
#value: #doStepOut |
|
478 |
#activeHelpKey: #editMoveOut |
|
479 |
#enabled: #canStepOutChannel |
|
882 | 480 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon 'Move Out') |
506 | 481 |
) |
482 |
) nil |
|
483 |
nil |
|
484 |
) |
|
485 |
! |
|
486 |
||
487 |
menuToolbar |
|
736 | 488 |
"This resource specification was automatically generated |
489 |
by the MenuEditor of ST/X." |
|
506 | 490 |
|
736 | 491 |
"Do not manually edit this!! If it is corrupted, |
492 |
the MenuEditor may not be able to read the specification." |
|
506 | 493 |
|
494 |
" |
|
495 |
MenuEditor new openOnClass:HierarchicalListEditor andSelector:#menuToolbar |
|
496 |
(Menu new fromLiteralArrayEncoding:(HierarchicalListEditor menuToolbar)) startUp |
|
497 |
" |
|
498 |
||
499 |
<resource: #menu> |
|
500 |
||
501 |
^ |
|
502 |
||
503 |
#(#Menu |
|
504 |
||
505 |
#( |
|
506 |
#(#MenuItem |
|
731 | 507 |
#label: 'New' |
508 |
#isButton: true |
|
509 |
#value: #doNew |
|
510 |
#activeHelpKey: #fileNew |
|
882 | 511 |
#labelImage: #(#ResourceRetriever #Icon #newIcon) |
506 | 512 |
) |
513 |
#(#MenuItem |
|
731 | 514 |
#label: 'Load' |
515 |
#isButton: true |
|
516 |
#value: #doLoad |
|
517 |
#activeHelpKey: #fileLoad |
|
882 | 518 |
#labelImage: #(#ResourceRetriever #Icon #loadIcon) |
731 | 519 |
) |
520 |
#(#MenuItem |
|
521 |
#label: 'Save' |
|
522 |
#isButton: true |
|
523 |
#value: #doSave |
|
524 |
#activeHelpKey: #fileSave |
|
882 | 525 |
#labelImage: #(#ResourceRetriever #Icon #saveIcon) |
506 | 526 |
) |
527 |
#(#MenuItem |
|
731 | 528 |
#label: '' |
529 |
) |
|
530 |
#(#MenuItem |
|
531 |
#label: 'Cut' |
|
532 |
#isButton: true |
|
533 |
#value: #doCut |
|
534 |
#activeHelpKey: #editCut |
|
535 |
#enabled: #valueOfCanCut |
|
882 | 536 |
#labelImage: #(#ResourceRetriever #Icon #cutIcon) |
506 | 537 |
) |
538 |
#(#MenuItem |
|
731 | 539 |
#label: 'Copy' |
540 |
#isButton: true |
|
541 |
#value: #doCopy |
|
542 |
#activeHelpKey: #editCopy |
|
543 |
#enabled: #valueOfCanCopy |
|
882 | 544 |
#labelImage: #(#ResourceRetriever #Icon #copyIcon) |
506 | 545 |
) |
546 |
#(#MenuItem |
|
731 | 547 |
#label: 'Paste' |
548 |
#isButton: true |
|
549 |
#value: #doPaste |
|
550 |
#activeHelpKey: #editPaste |
|
551 |
#enabled: #valueOfCanPaste |
|
882 | 552 |
#labelImage: #(#ResourceRetriever #Icon #pasteIcon) |
506 | 553 |
) |
554 |
#(#MenuItem |
|
731 | 555 |
#label: 'Delete' |
556 |
#isButton: true |
|
557 |
#value: #doDelete |
|
558 |
#activeHelpKey: #editDelete |
|
559 |
#enabled: #valueOfCanCut |
|
882 | 560 |
#labelImage: #(#ResourceRetriever #Icon #deleteIcon) |
731 | 561 |
) |
562 |
#(#MenuItem |
|
563 |
#label: '' |
|
506 | 564 |
) |
565 |
#(#MenuItem |
|
731 | 566 |
#label: 'Add Child' |
567 |
#isButton: true |
|
568 |
#value: #doCreateChild |
|
569 |
#activeHelpKey: #addChild |
|
570 |
#enabled: #canCreateChildChannel |
|
571 |
#labelImage: #(#ResourceRetriever nil #createChildIcon) |
|
572 |
) |
|
573 |
#(#MenuItem |
|
574 |
#label: 'Add Sister' |
|
575 |
#isButton: true |
|
576 |
#value: #doCreateSister |
|
577 |
#activeHelpKey: #addSister |
|
578 |
#enabled: #canCreateSisterChannel |
|
579 |
#labelImage: #(#ResourceRetriever nil #createSisterIcon) |
|
580 |
) |
|
581 |
#(#MenuItem |
|
582 |
#label: '' |
|
506 | 583 |
) |
584 |
#(#MenuItem |
|
731 | 585 |
#label: 'Move Up' |
586 |
#isButton: true |
|
587 |
#value: #doStepUp |
|
588 |
#activeHelpKey: #editMoveUp |
|
589 |
#enabled: #canStepOverChannel |
|
882 | 590 |
#labelImage: #(#ResourceRetriever #Icon #upIcon) |
506 | 591 |
) |
592 |
#(#MenuItem |
|
731 | 593 |
#label: 'Move Down' |
594 |
#isButton: true |
|
595 |
#value: #doStepDown |
|
596 |
#activeHelpKey: #editMoveDown |
|
597 |
#enabled: #canStepOverChannel |
|
882 | 598 |
#labelImage: #(#ResourceRetriever #Icon #downIcon) |
506 | 599 |
) |
600 |
#(#MenuItem |
|
731 | 601 |
#label: 'Move In' |
602 |
#isButton: true |
|
603 |
#value: #doStepIn |
|
604 |
#activeHelpKey: #editMoveIn |
|
605 |
#enabled: #canStepInChannel |
|
882 | 606 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon) |
731 | 607 |
) |
608 |
#(#MenuItem |
|
609 |
#label: 'Move Out' |
|
610 |
#isButton: true |
|
611 |
#value: #doStepOut |
|
612 |
#activeHelpKey: #editMoveOut |
|
613 |
#enabled: #canStepOutChannel |
|
882 | 614 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon) |
506 | 615 |
) |
616 |
) nil |
|
617 |
nil |
|
618 |
) |
|
619 |
! ! |
|
620 |
||
300 | 621 |
!HierarchicalListEditor class methodsFor:'printing'! |
622 |
||
623 |
prettyPrintArray:anArray on:aStream indent:anIndent |
|
624 |
"print a literal array in a nice format |
|
625 |
" |
|
626 |
|arg sol| |
|
627 |
||
628 |
sol := aStream position. |
|
629 |
aStream spaces:anIndent. |
|
630 |
aStream nextPutAll:'#('. |
|
631 |
||
632 |
anArray first isSymbol ifTrue:[ |
|
633 |
arg := anArray first. |
|
634 |
aStream nextPut:$#. |
|
635 |
aStream nextPutAll:anArray first. |
|
636 |
aStream cr. |
|
637 |
anArray size == 2 ifTrue:[ |
|
638 |
self prettyPrintArray:(anArray last) |
|
639 |
on:aStream |
|
640 |
indent:(anIndent + 4). |
|
641 |
]. |
|
642 |
aStream spaces:anIndent. |
|
643 |
aStream nextPut:$). |
|
644 |
^ self |
|
645 |
]. |
|
646 |
||
647 |
aStream nextPut:$'. |
|
648 |
aStream nextPutAll:(anArray at:1). |
|
649 |
aStream nextPut:$'. |
|
650 |
arg := anArray at:2 ifAbsent:nil. |
|
651 |
||
652 |
arg isString ifTrue:[ |
|
653 |
aStream spaces:((50 - (aStream position - sol)) max:4). |
|
654 |
||
655 |
arg isSymbol ifTrue:[ |
|
656 |
aStream nextPut:$#. |
|
657 |
]. |
|
658 |
aStream nextPut:$'. |
|
659 |
aStream nextPutAll:arg. |
|
660 |
aStream nextPut:$'. |
|
661 |
arg := anArray at:3 ifAbsent:nil. |
|
662 |
]. |
|
663 |
arg isArray ifTrue:[ |
|
664 |
aStream nextPutAll:' #('. |
|
665 |
aStream cr. |
|
666 |
arg do:[:e|self prettyPrintArray:e on:aStream indent:(anIndent + 4)]. |
|
667 |
aStream spaces:anIndent. |
|
668 |
aStream nextPut:$). |
|
669 |
]. |
|
670 |
aStream nextPut:$). |
|
671 |
aStream cr. |
|
672 |
! ! |
|
673 |
||
674 |
!HierarchicalListEditor methodsFor:'aspects'! |
|
675 |
||
676 |
canCreateChildChannel |
|
677 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
678 |
^builder booleanValueAspectFor:#canCreateChildChannel |
300 | 679 |
|
680 |
! |
|
681 |
||
682 |
canCreateSisterChannel |
|
683 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
684 |
^builder booleanValueAspectFor:#canCreateSisterChannel |
300 | 685 |
|
686 |
! |
|
687 |
||
688 |
canStepInChannel |
|
689 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
690 |
^builder booleanValueAspectFor:#canStepInChannel |
300 | 691 |
|
692 |
! |
|
693 |
||
694 |
canStepOutChannel |
|
695 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
696 |
^builder booleanValueAspectFor:#canStepOutChannel |
300 | 697 |
|
698 |
! |
|
699 |
||
700 |
canStepOverChannel |
|
701 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
702 |
^builder booleanValueAspectFor:#canStepOverChannel |
300 | 703 |
|
704 |
! |
|
705 |
||
706 |
itemName |
|
707 |
||
708 |
|holder| |
|
709 |
||
710 |
(holder := builder bindingAt:#itemName) isNil ifTrue:[ |
|
711 |
builder aspectAt:#itemName put:(holder := ValueHolder new). |
|
712 |
holder addDependent:self. |
|
713 |
]. |
|
714 |
^ holder |
|
715 |
! |
|
716 |
||
717 |
itemValue |
|
718 |
||
719 |
|holder| |
|
720 |
||
721 |
(holder := builder bindingAt:#itemValue) isNil ifTrue:[ |
|
722 |
builder aspectAt:#itemValue put:(holder := ValueHolder new). |
|
723 |
holder addDependent:self. |
|
724 |
]. |
|
725 |
^ holder |
|
726 |
! |
|
727 |
||
728 |
treeView |
|
729 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
730 |
^treeView |
300 | 731 |
! ! |
732 |
||
731 | 733 |
!HierarchicalListEditor methodsFor:'building'! |
734 |
||
735 |
buildFromClass:aClass andSelector:aSelector |
|
736 |
"rebuild window from a class and selector" |
|
737 |
||
738 |
|cls sel anchor| |
|
300 | 739 |
|
731 | 740 |
cls := self resolveName:aClass. |
741 |
specSelector := nil. |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
742 |
|
731 | 743 |
aSelector size ~~ 0 |
744 |
ifTrue: |
|
745 |
[ |
|
746 |
sel := aSelector asString withoutSeparators. |
|
747 |
sel size ~~ 0 ifTrue:[specSelector := sel asSymbol] |
|
748 |
]. |
|
749 |
treeView selection:nil. |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
750 |
|
731 | 751 |
(specSelector notNil and:[cls notNil]) |
752 |
ifTrue: |
|
753 |
[ |
|
754 |
(cls respondsTo:specSelector) |
|
755 |
ifTrue: |
|
756 |
[ |
|
757 |
anchor := cls perform:specSelector. |
|
758 |
anchor isArray ifTrue:[anchor := anchor decodeAsLiteralArray] |
|
759 |
]. |
|
760 |
]. |
|
761 |
anchor notNil |
|
762 |
ifTrue: [anchor expand. treeView root:anchor] |
|
763 |
ifFalse: [treeView root isNil ifTrue: [self buildRoot]]. |
|
581 | 764 |
|
731 | 765 |
treeView selection: 1. |
581 | 766 |
|
731 | 767 |
self updateHistory. |
768 |
self updateInfoLabel. |
|
769 |
||
770 |
||
771 |
||
772 |
! |
|
773 |
||
736 | 774 |
buildFromResourceSpec: aListSpec |
581 | 775 |
|
731 | 776 |
treeView root: aListSpec |
777 |
||
778 |
! |
|
779 |
||
780 |
buildRoot |
|
781 |
"build just a root" |
|
782 |
||
783 |
treeView root:(TreeItem name:'Root' contents:#Anchor). |
|
784 |
treeView selection:1. |
|
581 | 785 |
! ! |
786 |
||
1575 | 787 |
!HierarchicalListEditor methodsFor:'menu accessing'! |
788 |
||
789 |
menu |
|
790 |
^ self class menu |
|
791 |
! |
|
792 |
||
793 |
menuEdit |
|
794 |
^ self class menuEdit |
|
795 |
! |
|
796 |
||
797 |
menuToolbar |
|
798 |
^ self class menuToolbar |
|
799 |
! ! |
|
800 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
801 |
!HierarchicalListEditor methodsFor:'private'! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
802 |
|
731 | 803 |
getDepthAndSistersNumberOfNode: aNode onParentNode: aParentNode |
804 |
"return depth of selected node" |
|
805 |
||
806 |
|parent childNode depthAndSistersNumbers str| |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
807 |
|
731 | 808 |
depthAndSistersNumbers := OrderedCollection new. |
809 |
childNode := aNode. |
|
810 |
parent := aParentNode. |
|
811 |
[parent notNil] |
|
812 |
whileTrue: |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
813 |
[ |
731 | 814 |
depthAndSistersNumbers add: (parent children indexOf: childNode). |
815 |
childNode := parent. |
|
816 |
parent := parent parent. |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
817 |
]. |
731 | 818 |
depthAndSistersNumbers removeFirst; addFirst: aParentNode children size. |
819 |
str := ''. |
|
820 |
depthAndSistersNumbers reverseDo: [:n| str := str, n printString, '.']. |
|
821 |
^str copyFrom: 1 to: str size - 1 |
|
506 | 822 |
! |
823 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
824 |
newItem |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
825 |
"creates and returns a new default item" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
826 |
|
558 | 827 |
^TreeItem name: 'Item' contents: nil |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
828 |
! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
829 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
830 |
updateChannels |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
831 |
"update channels" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
832 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
833 |
|node parent chnStepIn chnStepOut chnStepOvr chnChild chnSister| |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
834 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
835 |
chnStepIn := chnStepOut := chnStepOvr := chnChild := chnSister := false. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
836 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
837 |
(node := treeView selectedNode) notNil |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
838 |
ifTrue: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
839 |
[ |
731 | 840 |
(builder componentAt: #SpecView) beVisible. |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
841 |
chnChild := true. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
842 |
(parent := node parent) notNil |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
843 |
ifTrue: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
844 |
[ |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
845 |
chnSister := true. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
846 |
chnStepOvr := parent numberOfChildren > 1. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
847 |
chnStepOut := parent parent notNil. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
848 |
chnStepIn := node ~~ parent lastChild |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
849 |
] |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
850 |
] |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
851 |
ifFalse: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
852 |
[ |
731 | 853 |
(builder componentAt: #SpecView) beInvisible |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
854 |
]. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
855 |
self canCreateChildChannel value:chnChild. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
856 |
self canCreateSisterChannel value:chnSister. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
857 |
self canStepOverChannel value:chnStepOvr. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
858 |
self canStepOutChannel value:chnStepOut. |
506 | 859 |
self canStepInChannel value:chnStepIn. |
860 |
||
731 | 861 |
self valueOfCanCut value: (treeView selection notNil |
862 |
ifTrue:[(treeView isInSelection:1) not] |
|
863 |
ifFalse: [false]). |
|
506 | 864 |
|
731 | 865 |
self valueOfCanCopy value: self valueOfCanCut value. |
866 |
||
736 | 867 |
self valueOfCanPaste value: treeView selectedNode notNil & self valueOfCanPaste value. |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
868 |
! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
869 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
870 |
updateInputFields |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
871 |
"reload item value into input fields" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
872 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
873 |
|node| |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
874 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
875 |
(node := treeView selectedNode) notNil |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
876 |
ifTrue: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
877 |
[ |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
878 |
self itemName value:node name. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
879 |
self itemValue value:node contents |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
880 |
] |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
881 |
ifFalse: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
882 |
[ |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
883 |
self itemName value:''. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
884 |
self itemValue value:nil |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
885 |
]. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
886 |
self valueOfEnablingCommitButtons value: false |
300 | 887 |
! ! |
888 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
889 |
!HierarchicalListEditor methodsFor:'startup / release'! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
890 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
891 |
initialize |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
892 |
"setup default values" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
893 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
894 |
super initialize. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
895 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
896 |
treeView := SelectionInTreeView new. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
897 |
treeView multipleSelectOk: true. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
898 |
treeView showDirectoryIndicator: true. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
899 |
treeView showDirectoryIndicatorForRoot: false. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
900 |
treeView action:[:aNr| self updateChannels. self updateInputFields]. |
731 | 901 |
treeView selectConditionBlock: [:i|self askForItemModification]. |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
902 |
treeView validateDoubleClickBlock: [:node| node ~~ treeView model list first]. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
903 |
! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
904 |
|
731 | 905 |
openModalOnTreeItem: aTreeItem |
906 |
"build a tree from aTreeItem and open it modal" |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
907 |
|
736 | 908 |
super openModalOnResourceSpec: aTreeItem |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
909 |
! ! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
910 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
911 |
!HierarchicalListEditor methodsFor:'user actions'! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
912 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
913 |
accept |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
914 |
"invoked by button 'OK'" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
915 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
916 |
|node index| |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
917 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
918 |
(index := treeView selectedIndex) ~~ 0 |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
919 |
ifTrue: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
920 |
[ |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
921 |
node := treeView nodeAtIndex:index. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
922 |
node name: self itemName value. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
923 |
node contents: self itemValue value. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
924 |
treeView redrawLine:index. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
925 |
]. |
731 | 926 |
modified := true. |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
927 |
self valueOfEnablingCommitButtons value: false |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
928 |
! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
929 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
930 |
cancel |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
931 |
"invoked by button 'Cancel'" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
932 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
933 |
self updateInputFields. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
934 |
|
731 | 935 |
modified := false. |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
936 |
self valueOfEnablingCommitButtons value: false |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
937 |
! |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
938 |
|
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
939 |
doCopy |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
940 |
"copy current selected nodes into copy buffer" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
941 |
|
731 | 942 |
self class clipboard: OrderedCollection new. |
736 | 943 |
treeView selectedNodesDo:[:aNode| self class clipboard add: aNode copy]. |
747 | 944 |
self updateAllToolInstances |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
945 |
! |
300 | 946 |
|
947 |
doCreateChild |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
948 |
"create a child within selected parent" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
949 |
|
558 | 950 |
|node newItem| |
300 | 951 |
|
731 | 952 |
((node := treeView selectedNode) notNil and: [self askForItemModification]) |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
953 |
ifTrue: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
954 |
[ |
558 | 955 |
treeView model add: (newItem := self newItem) afterIndex: node children size below:node. |
956 |
newItem name: 'Child ', (self getDepthAndSistersNumberOfNode: newItem onParentNode: node). |
|
300 | 957 |
treeView selectedNodeExpand:true. |
558 | 958 |
treeView selectNode: newItem. |
300 | 959 |
self updateChannels. |
731 | 960 |
modified := true |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
961 |
] |
300 | 962 |
! |
963 |
||
964 |
doCreateSister |
|
965 |
"create a sister next to selected item |
|
966 |
" |
|
558 | 967 |
|node newItem| |
300 | 968 |
|
731 | 969 |
((node := treeView selectedNode) notNil and: [self askForItemModification]) |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
970 |
ifTrue: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
971 |
[ |
558 | 972 |
newItem := self newItem. |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
973 |
node parent notNil |
562 | 974 |
ifTrue: [treeView model add: newItem after:node] |
558 | 975 |
ifFalse:[treeView model add: newItem beforeIndex:1 below:node]. |
562 | 976 |
|
558 | 977 |
newItem name: 'Child ', (self getDepthAndSistersNumberOfNode: newItem onParentNode: node parent). |
978 |
treeView selectNode: newItem. |
|
506 | 979 |
self updateChannels. |
731 | 980 |
modified := true |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
981 |
] |
300 | 982 |
! |
983 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
984 |
doCut |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
985 |
"cut current selected nodes" |
300 | 986 |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
987 |
|selection| |
731 | 988 |
(treeView hasSelection and: [self askForItemModification]) |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
989 |
ifTrue: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
990 |
[ |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
991 |
self doCopy. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
992 |
selection := treeView selection asSortedCollection. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
993 |
treeView selectedNodesRemove. |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
994 |
treeView selection: selection first - 1. |
747 | 995 |
self updateAllToolInstances. |
731 | 996 |
modified := true |
997 |
] |
|
998 |
! |
|
999 |
||
1000 |
doDelete |
|
1001 |
"delete current selected nodes" |
|
1002 |
||
1003 |
|selection| |
|
1004 |
(treeView hasSelection and: [self askForItemModification]) |
|
1005 |
ifTrue: |
|
1006 |
[ |
|
1007 |
selection := treeView selection asSortedCollection. |
|
1008 |
treeView selectedNodesRemove. |
|
1009 |
treeView selection: selection first - 1. |
|
1010 |
self updateChannels. |
|
1011 |
modified := true |
|
300 | 1012 |
] |
1013 |
! |
|
1014 |
||
731 | 1015 |
doNew |
736 | 1016 |
"first do super new; then make a build |
1017 |
of a resource spec containing a root" |
|
300 | 1018 |
|
736 | 1019 |
super doNew ifTrue: [self buildRoot] |
300 | 1020 |
|
731 | 1021 |
|
1022 |
||
300 | 1023 |
! |
1024 |
||
731 | 1025 |
doPaste |
1026 |
"paste after current selected item" |
|
1027 |
||
736 | 1028 |
(self askForItemModification and: [self class clipboard notNil]) |
731 | 1029 |
ifTrue: |
1030 |
[ |
|
1031 |
|copiedNode| |
|
1032 |
self class clipboard do: |
|
1033 |
[:node| |
|
1034 |
copiedNode := node copy. |
|
1035 |
treeView selectedNodeAdd: copiedNode. |
|
1036 |
treeView selectNode: copiedNode. |
|
1037 |
]. |
|
1038 |
self updateChannels. |
|
1039 |
modified := true |
|
1040 |
] |
|
1041 |
! |
|
1042 |
||
1043 |
doReload |
|
1044 |
"reload spec from current class and selector" |
|
1045 |
||
1046 |
self buildFrom:specClass andSelector:specSelector |
|
1047 |
||
1048 |
! |
|
1049 |
||
1050 |
doSave |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1051 |
"install code" |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1052 |
|
731 | 1053 |
|cls code spec category mthd stream| |
300 | 1054 |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1055 |
(specClass notNil and:[specSelector notNil]) |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1056 |
ifFalse: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1057 |
[ |
731 | 1058 |
^self doSaveAs |
300 | 1059 |
]. |
1060 |
||
731 | 1061 |
cls := self resolveName: specClass. |
300 | 1062 |
spec := (treeView nodeAtIndex:1) literalArrayEncoding. |
1063 |
stream := WriteStream on:String new. |
|
1064 |
self class prettyPrintArray:spec on:stream indent:4. |
|
1065 |
spec := stream contents. |
|
731 | 1066 |
category := 'list specs'. |
300 | 1067 |
|
731 | 1068 |
(mthd := cls class compiledMethodAt:specSelector) notNil |
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1069 |
ifTrue: |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1070 |
[ |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1071 |
category := mthd category |
300 | 1072 |
]. |
1073 |
||
1074 |
code := Character excla asString |
|
731 | 1075 |
, cls name , ' class methodsFor:' , category storeString |
300 | 1076 |
, Character excla asString , '\\' |
1077 |
||
1078 |
, specSelector , '\' |
|
736 | 1079 |
, (self class codeGenerationComment replChar:$!! withString:'!!!!') |
1080 |
, '\\ "\' |
|
731 | 1081 |
, ' HierarchicalListEditor openOnClass:' , cls name , ' andSelector:#' , specSelector , '\' |
300 | 1082 |
, ' "\'. |
1083 |
||
1084 |
code := code |
|
1085 |
, '\' |
|
1086 |
, ' <resource: #hierarchicalList>\\' |
|
1087 |
, ' ^\' |
|
1088 |
, spec |
|
1089 |
, ' decodeAsLiteralArray\' |
|
1090 |
, Character excla asString |
|
1091 |
, ' ' |
|
1092 |
, Character excla asString |
|
1093 |
, '\\'. |
|
1094 |
||
1095 |
code := code withCRs. |
|
1096 |
(ReadStream on:code) fileIn. |
|
1097 |
||
731 | 1098 |
self updateHistory. |
1099 |
hasSaved := true. |
|
1100 |
modified := false. |
|
300 | 1101 |
! |
1102 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1103 |
doStepDown |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1104 |
"move selected item after next item" |
300 | 1105 |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1106 |
treeView selectedNodeChangeSequenceOrder:1. |
506 | 1107 |
self updateChannels. |
731 | 1108 |
modified := true |
506 | 1109 |
|
300 | 1110 |
! |
1111 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1112 |
doStepIn |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1113 |
"lets become the selected item a child of its next sister" |
300 | 1114 |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1115 |
treeView selectedNodeBecomeChildOfNext. |
506 | 1116 |
self updateChannels. |
731 | 1117 |
modified := true |
506 | 1118 |
|
1119 |
||
1120 |
||
300 | 1121 |
! |
1122 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1123 |
doStepOut |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1124 |
"let selected node become a sister of its current parent" |
300 | 1125 |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1126 |
treeView selectedNodeBecomeSisterOfParent. |
506 | 1127 |
self updateChannels. |
731 | 1128 |
modified := true |
506 | 1129 |
|
1130 |
||
1131 |
||
300 | 1132 |
! |
1133 |
||
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1134 |
doStepUp |
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1135 |
"move selected item before previous item" |
300 | 1136 |
|
423
ea6880a0e024
totally revised version; create icons will be changed next days
tz
parents:
372
diff
changeset
|
1137 |
treeView selectedNodeChangeSequenceOrder:-1. |
506 | 1138 |
self updateChannels. |
731 | 1139 |
modified := true |
506 | 1140 |
|
1141 |
||
1142 |
||
1856 | 1143 |
! |
1144 |
||
1145 |
openDocumentation |
|
1146 |
self openHTMLDocument:'tools/uipainter/HierarchicalListEditor.html'. |
|
300 | 1147 |
! ! |
1148 |
||
1149 |
!HierarchicalListEditor class methodsFor:'documentation'! |
|
1150 |
||
1151 |
version |
|
1152 |
^ '$Header$' |
|
1153 |
! ! |