author | Claus Gittinger <cg@exept.de> |
Tue, 27 Nov 2001 19:13:32 +0100 | |
changeset 1541 | 0dd5572f2607 |
parent 1540 | dda0bf556ebc |
child 1545 | 4f8b08f745eb |
permissions | -rw-r--r-- |
156 | 1 |
" |
765 | 2 |
COPYRIGHT (c) 1995-1998 by eXept Software AG |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3 |
All Rights Reserved |
156 | 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 |
|
7 |
inclusion of the above copyright notice. This software may not |
|
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 |
||
368 | 13 |
|
1391 | 14 |
"{ Package: 'stx:libtool2' }" |
15 |
||
446 | 16 |
ToolApplicationModel subclass:#UIPainter |
1316 | 17 |
instanceVariableNames:'specClass specSelector specSuperclass aspects treeView |
18 |
selectionPanel tabSelection modified specTool layoutTool helpTool' |
|
446 | 19 |
classVariableNames:'' |
60 | 20 |
poolDictionaries:'' |
21 |
category:'Interface-UIPainter' |
|
22 |
! |
|
23 |
||
222 | 24 |
SelectionInTreeView subclass:#TreeView |
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
25 |
instanceVariableNames:'lastDrawnMaster cvsEventsDisabled windowSpec windowSpecClass' |
564 | 26 |
classVariableNames:'' |
222 | 27 |
poolDictionaries:'' |
28 |
privateIn:UIPainter |
|
29 |
! |
|
30 |
||
60 | 31 |
!UIPainter class methodsFor:'documentation'! |
32 |
||
156 | 33 |
copyright |
34 |
" |
|
765 | 35 |
COPYRIGHT (c) 1995-1998 by eXept Software AG |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
36 |
All Rights Reserved |
156 | 37 |
|
38 |
This software is furnished under a license and may be used |
|
39 |
only in accordance with the terms of that license and with the |
|
40 |
inclusion of the above copyright notice. This software may not |
|
41 |
be provided or otherwise made available to, or used by, any |
|
42 |
other person. No title to or ownership of the software is |
|
43 |
hereby transferred. |
|
44 |
" |
|
45 |
||
46 |
! |
|
47 |
||
60 | 48 |
documentation |
49 |
" |
|
765 | 50 |
The GUI Painter provides the user with a graphical user interface for building own |
51 |
interfaces by interactively assembling widgets and defining the behavior of the widgets. |
|
52 |
The resulting interface specifications can be saved as methods on the application |
|
53 |
classes, typically subclasses of the class ApplicationModel. These specifications |
|
54 |
are used by the UIBuilder to generate the application window and its widgets when |
|
55 |
opening the application. |
|
60 | 56 |
|
57 |
[start with:] |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
58 |
UIPainter open |
127 | 59 |
|
156 | 60 |
[author:] |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
61 |
Claus Gittinger, eXept Software AG |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
62 |
Claus Atzkern, eXept Software AG |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
63 |
Thomas Zwick, eXept Software AG |
156 | 64 |
|
127 | 65 |
[see also:] |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
66 |
UIBuilder |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
67 |
ApplicationModel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
68 |
UISpecification |
60 | 69 |
" |
109 | 70 |
|
71 |
! ! |
|
72 |
||
73 |
!UIPainter class methodsFor:'instance creation'! |
|
74 |
||
195
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
75 |
openOnClass:aClass andSelector:aSelector |
743 | 76 |
"open a GUI Painter on aClass and (windowSpec) aSelector |
282 | 77 |
" |
195
350f95af5d9d
check before sending selector to class
Claus Gittinger <cg@exept.de>
parents:
194
diff
changeset
|
78 |
^ self new openOnClass:aClass andSelector:aSelector |
60 | 79 |
! ! |
80 |
||
87 | 81 |
!UIPainter class methodsFor:'ST-80 queries'! |
82 |
||
83 |
preferenceFor:aSymbol |
|
282 | 84 |
"ST-80 compatible; always returns false |
85 |
" |
|
87 | 86 |
^ false |
109 | 87 |
|
88 |
||
89 |
! ! |
|
90 |
||
765 | 91 |
!UIPainter class methodsFor:'accessing'! |
713 | 92 |
|
93 |
defaultNameOfCanvas |
|
765 | 94 |
"returns the default name of the application" |
95 |
||
713 | 96 |
^'NewApplication' |
97 |
||
98 |
! ! |
|
99 |
||
193 | 100 |
!UIPainter class methodsFor:'help specs'! |
101 |
||
102 |
helpSpec |
|
743 | 103 |
"This resource specification was automatically generated |
104 |
by the UIHelpTool of ST/X." |
|
105 |
||
106 |
"Do not manually edit this!! If it is corrupted, |
|
107 |
the UIHelpTool may not be able to read the specification." |
|
295 | 108 |
|
193 | 109 |
" |
743 | 110 |
UIHelpTool openOnClass:UIPainter |
295 | 111 |
" |
112 |
||
743 | 113 |
<resource: #help> |
114 |
||
115 |
^super helpSpec addPairsFrom:#( |
|
193 | 116 |
|
934 | 117 |
#align |
118 |
'Widget alignment functions.' |
|
119 |
||
466 | 120 |
#alignSelectionBottom |
924 | 121 |
'Aligns the selected widgets bottom edges with the bottom of the dominant widget.' |
466 | 122 |
|
123 |
#alignSelectionCenterHor |
|
924 | 124 |
'Aligns the selected widgets centers vertically with the center of the dominant widget.' |
466 | 125 |
|
126 |
#alignSelectionCenterVer |
|
924 | 127 |
'Aligns the selected widgets centers horizontally with the center of the dominant widget.' |
466 | 128 |
|
129 |
#alignSelectionLeft |
|
924 | 130 |
'Aligns the selected widgets left edges with the left edge of the dominant widget.' |
466 | 131 |
|
132 |
#alignSelectionLeftAndRight |
|
924 | 133 |
'Aligns the selected widgets left & right edges with the dominant widget.' |
466 | 134 |
|
135 |
#alignSelectionRight |
|
924 | 136 |
'Aligns the selected widgets right edges with the right edge of the dominant widget.' |
466 | 137 |
|
138 |
#alignSelectionTop |
|
934 | 139 |
'Aligns the selected widgets top edgegs with the top edge of the dominant widget.' |
466 | 140 |
|
141 |
#alignSelectionTopAndBottom |
|
924 | 142 |
'Aligns the selected widgets top and bottom edges with the dominant widget.' |
466 | 143 |
|
144 |
#centerSelectionHor |
|
924 | 145 |
'Centers the selected widgets horizontally within their containing widget.' |
466 | 146 |
|
147 |
#centerSelectionVer |
|
924 | 148 |
'Centers the selected widgets vertically within their containing widget.' |
713 | 149 |
|
150 |
#changePositionDown |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
151 |
'Moves the selected widget(s) towards the bottom.' |
713 | 152 |
|
153 |
#changePositionLeft |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
154 |
'Moves the selected widget(s) towards the left.' |
713 | 155 |
|
156 |
#changePositionRight |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
157 |
'Moves the selected widget(s) towards the right.' |
713 | 158 |
|
159 |
#changePositionUp |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
160 |
'Moves the selected widget(s) towards the top.' |
713 | 161 |
|
162 |
#editDimensionCopyExtent |
|
924 | 163 |
'Copies the extent of the selected widget.' |
713 | 164 |
|
165 |
#editDimensionCopyLayout |
|
924 | 166 |
'Copies the layout of the selected widget.' |
713 | 167 |
|
168 |
#editDimensionDefaultExtent |
|
924 | 169 |
'Sets the selected widget(s) extent to their default.' |
713 | 170 |
|
171 |
#editDimensionDefaultHeight |
|
924 | 172 |
'Sets the selected widget(s) height to their default.' |
713 | 173 |
|
174 |
#editDimensionDefaultWidth |
|
924 | 175 |
'Sets the selected widget(s) width to their default.' |
713 | 176 |
|
177 |
#editDimensionPasteExtent |
|
924 | 178 |
'Sets the extent of the selected widget(s) to the last copied extent.' |
713 | 179 |
|
180 |
#editDimensionPasteHeight |
|
924 | 181 |
'Sets the height of the selected widget(s) to the height of the last copied layout/extent.' |
713 | 182 |
|
183 |
#editDimensionPasteLayout |
|
924 | 184 |
'Sets the layout of the selected widget(s) to the last copied layout.' |
713 | 185 |
|
186 |
#editDimensionPasteWidth |
|
924 | 187 |
'Sets the width of the selected widget(s) to the width of the last copied layout/extent.' |
713 | 188 |
|
724 | 189 |
#editInspectSpec |
190 |
'Opens an inspector on the spec of the selected widget.' |
|
191 |
||
755 | 192 |
#editInspectView |
193 |
'Opens an inspector on the view of the selected widget.' |
|
194 |
||
743 | 195 |
#editOpenSpecDocumentation |
196 |
'Opens the documentation of the selected widget.' |
|
197 |
||
713 | 198 |
#fileBrowseAspectMethods |
934 | 199 |
'Opens a System Browser on the aspect methods.' |
498 | 200 |
|
201 |
#fileLoad |
|
1032 | 202 |
'Opens a dialog to load a window specification from a classes spec method.' |
498 | 203 |
|
533 | 204 |
#fileLoadSubspec |
924 | 205 |
'Opens a dialog to load a sub specification from a classes windowSpec method.' |
533 | 206 |
|
498 | 207 |
#fileNew |
713 | 208 |
'Creates a new window spec.' |
498 | 209 |
|
210 |
#filePickAnInterface |
|
924 | 211 |
'Select a view on the screen, generate a window spec for it and edit this spec.' |
498 | 212 |
|
213 |
#fileSave |
|
924 | 214 |
'Saves the window spec in the current class (as spec method).' |
713 | 215 |
|
216 |
#fileSaveAs |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
217 |
'Opens a dialog to select class and selector for saving the window spec.' |
713 | 218 |
|
219 |
#fileShowWindowSpec |
|
220 |
'Opens a Workspace showing the current window spec.' |
|
221 |
||
222 |
#generateAspectMethods |
|
223 |
'Generates aspect methods for defined aspect selectors of the widgets.' |
|
224 |
||
225 |
#generateHookMethods |
|
226 |
'Generates startup/release methods. (#closeRequest, #postBuildWith:, #postOpenWith:)' |
|
227 |
||
755 | 228 |
#helpExamples |
935 | 229 |
'Show some examples uses of the GUI Painter.' |
755 | 230 |
|
231 |
#helpFunctions |
|
935 | 232 |
'Show the documentation on the GUI Painters menu and button functions.' |
755 | 233 |
|
234 |
#helpLayoutTool |
|
935 | 235 |
'Show the Layout Tools documentation.' |
755 | 236 |
|
237 |
#helpSelectedWidget |
|
935 | 238 |
'Show the documentation of the selected widget.' |
239 |
||
240 |
#helpTutorial |
|
241 |
'Show the GUI Painters documentation.' |
|
755 | 242 |
|
924 | 243 |
#historyMenuItem |
244 |
'Edit this windowSpec.' |
|
245 |
||
713 | 246 |
#moveWidgetDown |
247 |
'Moves the selected widget one step down.' |
|
248 |
||
249 |
#moveWidgetInto |
|
250 |
'Moves the selected widget into next widget as child widget.' |
|
251 |
||
252 |
#moveWidgetOut |
|
253 |
'Moves the selected widget out of its parent widget.' |
|
254 |
||
255 |
#moveWidgetUp |
|
256 |
'Moves the selected widget one step up.' |
|
287 | 257 |
|
466 | 258 |
#pasteBuffer |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
259 |
'Pastes the widgets of the clipboard at the current mouse position.' |
466 | 260 |
|
261 |
#pasteWithLayout |
|
713 | 262 |
'Pastes the widgets of the clipboard without a changing of their layouts.' |
263 |
||
264 |
#settingsCanvas |
|
265 |
'Shows or hides the canvas window.' |
|
266 |
||
267 |
#settingsGallery |
|
268 |
'Shows or hides the gallery window.' |
|
269 |
||
270 |
#settingsGridManager |
|
1032 | 271 |
'Opens a dialog to toggle grid display or to change the grids spacing.' |
713 | 272 |
|
273 |
#settingsRedefineAspectMethods |
|
924 | 274 |
'Toggles the permission to overwrite existing aspect methods.' |
275 |
||
276 |
#settingsAspectsAsInstances |
|
1032 | 277 |
'Generate aspects as instance variables (or bindings, if off).' |
713 | 278 |
|
743 | 279 |
#settingsTranscriptHelp |
924 | 280 |
'Toggles display of help texts (after opening a new GUI Painter).' |
743 | 281 |
|
713 | 282 |
#settingsUndoManager |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
283 |
'Opens a dialog to undo modifications.' |
287 | 284 |
|
285 |
#spreadSelectionHor |
|
713 | 286 |
'Sets the horizontal spaces between the selected widgets as the same.' |
287 | 287 |
|
466 | 288 |
#spreadSelectionVer |
713 | 289 |
'Sets the vertical spaces between the selected widgets as the same.' |
290 |
||
291 |
#testGeometryTestMode |
|
924 | 292 |
'Toggles geometry test mode (to define ratios of variable panels and top-window dimension).' |
498 | 293 |
|
294 |
#testStartApplication |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
295 |
'Starts the application with the current window spec.' |
194 | 296 |
|
193 | 297 |
) |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
298 |
|
935 | 299 |
"Modified: / 31.7.1998 / 19:29:53 / cg" |
193 | 300 |
! ! |
301 |
||
297 | 302 |
!UIPainter class methodsFor:'helpers'! |
303 |
||
368 | 304 |
convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed |
297 | 305 |
"converts a string to a string collection with maximum characters |
306 |
per line |
|
307 |
" |
|
308 |
|stream |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
309 |
max "{ Class:SmallInteger }" |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
310 |
size "{ Class:SmallInteger }" |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
311 |
start "{ Class:SmallInteger }" |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
312 |
stop "{ Class:SmallInteger }" |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
313 |
cpySz "{ Class:SmallInteger }" |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
314 |
lnSz "{ Class:SmallInteger }" |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
315 |
atBeginOfLine| |
297 | 316 |
|
317 |
maxCharactersPerLine < 20 ifFalse:[max := maxCharactersPerLine - 1] |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
318 |
ifTrue:[max := 20]. |
297 | 319 |
|
320 |
(size := aString size) <= max ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
321 |
^ aString |
297 | 322 |
]. |
323 |
start := 1. |
|
324 |
lnSz := 0. |
|
325 |
stream := (String new:size) writeStream. |
|
326 |
||
542 | 327 |
atBeginOfLine := true. |
328 |
||
297 | 329 |
[start <= size] whileTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
330 |
(start := aString indexOfNonSeparatorStartingAt:start) == 0 ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
331 |
^ stream contents |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
332 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
333 |
(aString at:start) == $\ ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
334 |
skipLineFeed ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
335 |
stream nextPut:$\ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
336 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
337 |
start := start + 1. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
338 |
stream cr. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
339 |
start := start + 1. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
340 |
lnSz := 0. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
341 |
] ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
342 |
(stop := aString indexOfSeparatorStartingAt:start) == 0 ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
343 |
stop := size + 1 |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
344 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
345 |
(aString at:(stop - 1)) == $\ ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
346 |
stop := stop - 1 |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
347 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
348 |
cpySz := stop - start. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
349 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
350 |
lnSz == 0 ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
351 |
(lnSz := lnSz + cpySz) >= max ifTrue:[stream cr. lnSz := cpySz. atBeginOfLine := true. ] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
352 |
ifFalse:[stream space. lnSz := lnSz + 1] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
353 |
] ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
354 |
lnSz := cpySz |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
355 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
356 |
stream nextPutAll:aString startingAt:start to:(stop - 1). |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
357 |
start := stop. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
358 |
] |
297 | 359 |
]. |
360 |
^ stream contents |
|
542 | 361 |
|
362 |
"Modified: / 1.2.1998 / 14:42:56 / cg" |
|
297 | 363 |
! ! |
364 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
365 |
!UIPainter class methodsFor:'image specs'! |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
366 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
367 |
iconAlignB |
743 | 368 |
"This resource specification was automatically generated |
369 |
by the ImageEditor of ST/X." |
|
370 |
||
778 | 371 |
"Do not manually edit this!! If it is corrupted, |
743 | 372 |
the ImageEditor may not be able to read the specification." |
373 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
374 |
" |
743 | 375 |
ImageEditor openOnClass:self andSelector:#iconAlignB |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
376 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
377 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
378 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
379 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
380 |
^Icon |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
381 |
constantNamed:#'UIPainter iconAlignB' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
382 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@@@@@@@G@@@@@@@G@E@@@@@G@G@@@@@G@G@@@@@G@G@@@E@G@G@@@G@G@G@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@G C@G @@G'' @G'' @G'' @G'' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' G'''' O??0O??0@@@@@@@C@@@@') ; yourself); yourself] |
778 | 383 |
! |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
384 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
385 |
iconAlignL |
743 | 386 |
"This resource specification was automatically generated |
387 |
by the ImageEditor of ST/X." |
|
388 |
||
778 | 389 |
"Do not manually edit this!! If it is corrupted, |
743 | 390 |
the ImageEditor may not be able to read the specification." |
391 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
392 |
" |
743 | 393 |
ImageEditor openOnClass:self andSelector:#iconAlignL |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
394 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
395 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
396 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
397 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
398 |
^Icon |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
399 |
constantNamed:#'UIPainter iconAlignL' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
400 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@@@@@(@@@@@@@(UUUP@I@(_??0@@@(@@@@@@@(@@@@@@@(@@@@@@@(@@@@@@@(UUUU@@@(_???@@@(@@@@@E@(@@@@@@@(@@@@@@@(@@@@@@@(UU@@@@@(_?@@@@@(@@@@@@@(@@@@@@@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@@@G?>@G?>@G?>@G?>@F@@@F@@@G?? G?? G?? G?? F@@@F@@@G? @G? @G? @G? @F@@@@@@@@@@@') ; yourself); yourself] |
778 | 401 |
! |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
402 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
403 |
iconAlignLR |
743 | 404 |
"This resource specification was automatically generated |
405 |
by the ImageEditor of ST/X." |
|
406 |
||
785 | 407 |
"Do not manually edit this!! If it is corrupted, |
743 | 408 |
the ImageEditor may not be able to read the specification." |
409 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
410 |
" |
743 | 411 |
ImageEditor openOnClass:self andSelector:#iconAlignLR |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
412 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
413 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
414 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
415 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
416 |
^Icon |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
417 |
constantNamed:#'UIPainter iconAlignLR' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
418 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@(@@@B @@(@@@B @@(UUUR I@(_??2 @@(@@@B @@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??2 @@(@@@B E@(@@@B @@(@@@B @@(@@@B @@(UUUR @@(_??B @@(@@@B @@(@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@F@A G?? G?? G?? G?? F@A F@A G?? G?? G?? G?? F@A F@A G?? G?? G?; G?? F@A @@@@@@@@') ; yourself); yourself] |
785 | 419 |
! |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
420 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
421 |
iconAlignR |
743 | 422 |
"This resource specification was automatically generated |
423 |
by the ImageEditor of ST/X." |
|
424 |
||
778 | 425 |
"Do not manually edit this!! If it is corrupted, |
743 | 426 |
the ImageEditor may not be able to read the specification." |
427 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
428 |
" |
743 | 429 |
ImageEditor openOnClass:self andSelector:#iconAlignR |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
430 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
431 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
432 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
433 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
434 |
^Icon |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
435 |
constantNamed:#'UIPainter iconAlignR' |
1432 | 436 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@B @@@@@@B @@@UUUR I@@_??2 @@@@@@B @@@@@@B @@@@@@B @@@@@@B @@EUUUR @@G???2 @@@@@@B E@@@@@B @@@@@@B @@@@@@B @@@@EUR @@@@G?2 @@@@@@B @@@@@@B @@@@@@@@E@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@A A?? A?? A?? A?? @@A @@A G?? G?? G?? G?? @@A @@A @G? @G? @G? @G? @@A @@@@@@@@') ; yourself); yourself] |
437 |
! |
|
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
438 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
439 |
iconAlignT |
743 | 440 |
"This resource specification was automatically generated |
441 |
by the ImageEditor of ST/X." |
|
442 |
||
778 | 443 |
"Do not manually edit this!! If it is corrupted, |
743 | 444 |
the ImageEditor may not be able to read the specification." |
445 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
446 |
" |
743 | 447 |
ImageEditor openOnClass:self andSelector:#iconAlignT |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
448 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
449 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
450 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
451 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
452 |
^Icon |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
453 |
constantNamed:#'UIPainter iconAlignT' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
454 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@K@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@K@G@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@G@@@@@G@@@@@@@G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G'''' G'''' G'''' G''''!!G'''' G'''' G'''' @G'' @G'' @G'' @G'' @G @@G C@@@@@@@@@@@@') ; yourself); yourself] |
778 | 455 |
! |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
456 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
457 |
iconAlignTB |
743 | 458 |
"This resource specification was automatically generated |
459 |
by the ImageEditor of ST/X." |
|
460 |
||
778 | 461 |
"Do not manually edit this!! If it is corrupted, |
743 | 462 |
the ImageEditor may not be able to read the specification." |
463 |
||
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
464 |
" |
743 | 465 |
ImageEditor openOnClass:self andSelector:#iconAlignTB |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
466 |
" |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
467 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
468 |
<resource: #image> |
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
469 |
|
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
470 |
^Icon |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
471 |
constantNamed:#'UIPainter iconAlignTB' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
472 |
ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@A@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@E@E@E@G@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@H@G@G@G@@@G@G@G@A@G@G@G@@@G@G@G@@@G@G@D@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@H@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@C@@@@O??0O??0G'''' G''''!!G'''' G'''' G'''' G'''' G'''' G'''' G''''!!G''''!!G''& G'''' O??0O??2@@@@@@@@@@@@') ; yourself); yourself] |
778 | 473 |
! ! |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
474 |
|
60 | 475 |
!UIPainter class methodsFor:'interface specs'! |
476 |
||
743 | 477 |
dialogSpecForDefiningClassAndSelector |
478 |
"This resource specification was automatically generated |
|
479 |
by the UIPainter of ST/X." |
|
480 |
||
765 | 481 |
"Do not manually edit this!! If it is corrupted, |
743 | 482 |
the UIPainter may not be able to read the specification." |
366 | 483 |
|
484 |
" |
|
743 | 485 |
UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningClassAndSelector |
486 |
UIPainter new openInterface:#dialogSpecForDefiningClassAndSelector |
|
366 | 487 |
" |
488 |
||
489 |
<resource: #canvas> |
|
490 |
||
491 |
^ |
|
446 | 492 |
|
366 | 493 |
#(#FullSpec |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
494 |
#window: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
495 |
#(#WindowSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
496 |
#name: 'GUI Painter' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
497 |
#layout: #(#LayoutFrame 291 0 130 0 637 0 289 0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
498 |
#label: 'GUI Painter' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
499 |
#min: #(#Point 350 160) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
500 |
#max: #(#Point 500 160) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
501 |
#bounds: #(#Rectangle 291 130 638 290) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
502 |
#usePreferredExtent: false |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
503 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
504 |
#component: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
505 |
#(#SpecCollection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
506 |
#collection: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
507 |
#( |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
508 |
#(#FramedBoxSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
509 |
#name: 'FramedBox' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
510 |
#layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
511 |
#component: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
512 |
#(#SpecCollection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
513 |
#collection: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
514 |
#( |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
515 |
#(#LabelSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
516 |
#name: 'selectorLabel' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
517 |
#layout: #(#AlignmentOrigin 67 0.11 29 0 1 0.5) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
518 |
#label: 'Selector:' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
519 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
520 |
#adjust: #right |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
521 |
#resizeForLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
522 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
523 |
#(#InputFieldSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
524 |
#name: 'methodNameField' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
525 |
#layout: #(#LayoutFrame 70 0.11 18 0 4 1.0 40 0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
526 |
#tabable: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
527 |
#model: #methodNameChannel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
528 |
#group: #inputGroup |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
529 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
530 |
#(#LabelSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
531 |
#name: 'classLabel' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
532 |
#layout: #(#AlignmentOrigin 67 0.11 54 0 1 0.5) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
533 |
#label: 'Class:' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
534 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
535 |
#adjust: #right |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
536 |
#resizeForLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
537 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
538 |
#(#InputFieldSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
539 |
#name: 'classNameField' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
540 |
#layout: #(#LayoutFrame 70 0.11 43 0 4 1.0 65 0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
541 |
#tabable: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
542 |
#model: #classNameChannel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
543 |
#group: #inputGroup |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
544 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
545 |
#(#LabelSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
546 |
#name: 'superClassLabel' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
547 |
#layout: #(#AlignmentOrigin 67 0.11 79 0 1 0.5) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
548 |
#label: 'Superclass:' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
549 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
550 |
#adjust: #right |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
551 |
#resizeForLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
552 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
553 |
#(#ComboBoxSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
554 |
#name: 'superclassNameComboBox' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
555 |
#layout: #(#LayoutFrame 70 0.11 68 0 4 1.0 90 0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
556 |
#tabable: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
557 |
#model: #superclassNameChannel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
558 |
#comboList: #superclassNameDefaults |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
559 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
560 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
561 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
562 |
#label: 'Define Class And Selector' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
563 |
#labelPosition: #topLeft |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
564 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
565 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
566 |
#(#UISubSpecification |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
567 |
#name: 'subSpec' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
568 |
#layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
569 |
#majorKey: #ToolApplicationModel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
570 |
#minorKey: #windowSpecForCommitWithoutChannels |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
571 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
572 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
573 |
) |
743 | 574 |
) |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
575 |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
576 |
"Modified: / 13.8.1998 / 19:59:44 / cg" |
743 | 577 |
! |
578 |
||
579 |
dialogSpecForDefiningGridParameters |
|
580 |
"This resource specification was automatically generated |
|
581 |
by the UIPainter of ST/X." |
|
582 |
||
765 | 583 |
"Do not manually edit this!! If it is corrupted, |
743 | 584 |
the UIPainter may not be able to read the specification." |
585 |
||
586 |
" |
|
587 |
UIPainter new openOnClass:UIPainter andSelector:#dialogSpecForDefiningGridParameters |
|
588 |
UIPainter new openInterface:#dialogSpecForDefiningGridParameters |
|
589 |
" |
|
590 |
||
591 |
<resource: #canvas> |
|
592 |
||
593 |
^ |
|
594 |
||
595 |
#(#FullSpec |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
596 |
#window: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
597 |
#(#WindowSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
598 |
#name: 'GUI Painter' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
599 |
#layout: #(#LayoutFrame 291 0 130 0 572 0 327 0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
600 |
#label: 'GUI Painter' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
601 |
#min: #(#Point 300 200) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
602 |
#max: #(#Point 300 200) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
603 |
#bounds: #(#Rectangle 291 130 573 328) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
604 |
#usePreferredExtent: false |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
605 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
606 |
#component: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
607 |
#(#SpecCollection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
608 |
#collection: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
609 |
#( |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
610 |
#(#FramedBoxSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
611 |
#name: 'FramedBox' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
612 |
#layout: #(#LayoutFrame 0 0.0 3 0.0 0 1.0 -35 1.0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
613 |
#component: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
614 |
#(#SpecCollection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
615 |
#collection: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
616 |
#( |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
617 |
#(#CheckBoxSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
618 |
#name: 'ShowGridCheckBox' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
619 |
#layout: #(#Point 13 14) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
620 |
#model: #showGrid |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
621 |
#label: 'Show Grid' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
622 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
623 |
#(#CheckBoxSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
624 |
#name: 'AlignCheckBox' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
625 |
#layout: #(#Point 13 42) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
626 |
#model: #alignToGrid |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
627 |
#label: 'Align To Grid' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
628 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
629 |
#(#LabelSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
630 |
#name: 'HorizontalPixelsLabel' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
631 |
#layout: #(#AlignmentOrigin 138 0 89 0 1 0.5) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
632 |
#label: 'Horizontal Pixels:' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
633 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
634 |
#adjust: #right |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
635 |
#resizeForLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
636 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
637 |
#(#InputFieldSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
638 |
#name: 'HorizontalPixelsField' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
639 |
#layout: #(#LayoutFrame 144 0 77 0 197 0 99 0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
640 |
#model: #hspace |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
641 |
#group: #inputGroup |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
642 |
#type: #numberOrNil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
643 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
644 |
#(#LabelSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
645 |
#name: 'VerticalPixelsLabel' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
646 |
#layout: #(#AlignmentOrigin 139 0 114 0 1 0.5) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
647 |
#label: 'Vertical Pixels:' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
648 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
649 |
#adjust: #right |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
650 |
#resizeForLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
651 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
652 |
#(#InputFieldSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
653 |
#name: 'VerticalPixelsField' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
654 |
#layout: #(#LayoutFrame 144 0 102 0 197 0 124 0) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
655 |
#model: #vspace |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
656 |
#group: #inputGroup |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
657 |
#type: #numberOrNil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
658 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
659 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
660 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
661 |
#label: 'Grid Parameter' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
662 |
#labelPosition: #topLeft |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
663 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
664 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
665 |
#(#UISubSpecification |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
666 |
#name: 'subSpec' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
667 |
#layout: #(#LayoutFrame 0 0.0 -29 1 0 1.0 -5 1) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
668 |
#majorKey: #ToolApplicationModel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
669 |
#minorKey: #windowSpecForCommitWithoutChannels |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
670 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
671 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
672 |
) |
366 | 673 |
) |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
674 |
|
950
3e227dc788be
fixed layout (change with framedBox - sigh)
Claus Gittinger <cg@exept.de>
parents:
939
diff
changeset
|
675 |
"Modified: / 13.8.1998 / 20:00:00 / cg" |
366 | 676 |
! |
677 |
||
743 | 678 |
windowSpec |
679 |
"This resource specification was automatically generated |
|
680 |
by the UIPainter of ST/X." |
|
681 |
||
682 |
"Do not manually edit this!! If it is corrupted, |
|
683 |
the UIPainter may not be able to read the specification." |
|
222 | 684 |
|
685 |
" |
|
743 | 686 |
UIPainter new openOnClass:UIPainter andSelector:#windowSpec |
687 |
UIPainter new openInterface:#windowSpec |
|
688 |
UIPainter open |
|
222 | 689 |
" |
690 |
||
691 |
<resource: #canvas> |
|
692 |
||
1115 | 693 |
^ |
694 |
#(#FullSpec |
|
1317 | 695 |
#name: #windowSpec |
696 |
#window: |
|
1115 | 697 |
#(#WindowSpec |
1317 | 698 |
#label: 'GUI Painter' |
699 |
#name: 'GUI Painter' |
|
700 |
#min: #(#Point 560 460) |
|
701 |
#max: #(#Point 1160 870) |
|
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
702 |
#bounds: #(#Rectangle 16 46 624 569) |
1317 | 703 |
#menu: #menu |
704 |
) |
|
705 |
#component: |
|
1115 | 706 |
#(#SpecCollection |
1317 | 707 |
#collection: #( |
708 |
#(#MenuPanelSpec |
|
709 |
#name: 'menuToolbarView' |
|
710 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
711 |
#tabable: true |
|
712 |
#menu: #menuToolbar |
|
713 |
) |
|
714 |
#(#VariableHorizontalPanelSpec |
|
715 |
#name: 'hpanel' |
|
716 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -26 1.0) |
|
717 |
#level: 1 |
|
718 |
#component: |
|
719 |
#(#SpecCollection |
|
720 |
#collection: #( |
|
721 |
#(#ArbitraryComponentSpec |
|
722 |
#name: 'treeView' |
|
723 |
#tabable: true |
|
724 |
#menu: #menuEdit |
|
725 |
#hasHorizontalScrollBar: true |
|
726 |
#hasVerticalScrollBar: true |
|
727 |
#miniScrollerHorizontal: true |
|
728 |
#miniScrollerVertical: true |
|
729 |
#hasBorder: false |
|
730 |
#component: #treeView |
|
731 |
) |
|
732 |
#(#ViewSpec |
|
733 |
#name: 'specHolderView' |
|
734 |
#borderWidth: 1 |
|
735 |
#component: |
|
736 |
#(#SpecCollection |
|
737 |
#collection: #( |
|
738 |
#(#MenuPanelSpec |
|
739 |
#name: 'menuToolbar2View' |
|
740 |
#layout: #(#LayoutFrame -1 0.0 -2 0 -1 1.0 30 0) |
|
741 |
#enableChannel: #canMoveOrAlignSelection |
|
742 |
#tabable: true |
|
743 |
#menu: #menuToolbar2 |
|
744 |
) |
|
745 |
#(#HorizontalPanelViewSpec |
|
746 |
#name: 'horizontalPanelView1' |
|
747 |
#layout: #(#LayoutFrame -163 1 -1 0 -35 1.0 28 0) |
|
748 |
#horizontalLayout: #fit |
|
749 |
#verticalLayout: #fit |
|
750 |
#horizontalSpace: 0 |
|
751 |
#verticalSpace: 0 |
|
752 |
#component: |
|
753 |
#(#SpecCollection |
|
754 |
#collection: #( |
|
755 |
#(#ArrowButtonSpec |
|
756 |
#name: 'MoveLeftButton' |
|
757 |
#activeHelpKey: #changePositionLeft |
|
758 |
#tabable: true |
|
759 |
#model: #moveSelectionLeft |
|
760 |
#enableChannel: #canMoveOrAlignSelection |
|
761 |
#isTriggerOnDown: true |
|
762 |
#direction: #left |
|
763 |
#useDefaultExtent: true |
|
764 |
) |
|
765 |
#(#ArrowButtonSpec |
|
766 |
#name: 'MoveRightButton' |
|
767 |
#activeHelpKey: #changePositionRight |
|
768 |
#tabable: true |
|
769 |
#model: #moveSelectionRight |
|
770 |
#enableChannel: #canMoveOrAlignSelection |
|
771 |
#isTriggerOnDown: true |
|
772 |
#actionValue: '' |
|
773 |
#direction: #right |
|
774 |
#useDefaultExtent: true |
|
775 |
) |
|
776 |
#(#ArrowButtonSpec |
|
777 |
#name: 'MoveDownButton' |
|
778 |
#activeHelpKey: #changePositionDown |
|
779 |
#tabable: true |
|
780 |
#model: #moveSelectionDown |
|
781 |
#enableChannel: #canMoveOrAlignSelection |
|
782 |
#isTriggerOnDown: true |
|
783 |
#actionValue: '' |
|
784 |
#direction: #down |
|
785 |
#useDefaultExtent: true |
|
786 |
) |
|
787 |
#(#ArrowButtonSpec |
|
788 |
#name: 'MoveUpButton' |
|
789 |
#activeHelpKey: #changePositionUp |
|
790 |
#tabable: true |
|
791 |
#model: #moveSelectionUp |
|
792 |
#enableChannel: #canMoveOrAlignSelection |
|
793 |
#isTriggerOnDown: true |
|
794 |
#actionValue: '' |
|
795 |
#direction: #up |
|
796 |
#useDefaultExtent: true |
|
797 |
) |
|
798 |
) |
|
1115 | 799 |
|
1317 | 800 |
) |
801 |
) |
|
802 |
#(#ActionButtonSpec |
|
803 |
#label: 'helpIcon' |
|
804 |
#name: 'openWidgetDocumentationButton' |
|
805 |
#layout: #(#LayoutFrame -28 1 -1 0 0 1 28 0) |
|
806 |
#activeHelpKey: #editOpenSpecDocumentation |
|
807 |
#hasCharacterOrientedLabel: false |
|
808 |
#tabable: true |
|
809 |
#model: #doOpenWidgetDocumentation |
|
810 |
) |
|
811 |
#(#NoteBookViewSpec |
|
812 |
#name: 'noteBook' |
|
813 |
#layout: #(#LayoutFrame 0 0.0 34 0.0 0 1.0 -30 1.0) |
|
814 |
#enableChannel: #enableChannel |
|
815 |
#tabable: true |
|
816 |
#model: #tabModel |
|
817 |
#menu: #tabList |
|
818 |
#canvas: #noteBookView |
|
819 |
) |
|
1457
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
820 |
#(#HorizontalPanelViewSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
821 |
#name: 'HorizontalPanel1' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
822 |
#layout: #(#LayoutFrame 2 0 -28 1 -2 1 -2 1) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
823 |
#horizontalLayout: #center |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
824 |
#verticalLayout: #center |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
825 |
#horizontalSpace: 3 |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
826 |
#verticalSpace: 3 |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
827 |
#reverseOrderIfOKAtLeft: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
828 |
#component: |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
829 |
#(#SpecCollection |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
830 |
#collection: #( |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
831 |
#(#ActionButtonSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
832 |
#label: 'Cancel' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
833 |
#name: 'cancelButton' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
834 |
#activeHelpKey: #commitCancel |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
835 |
#tabable: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
836 |
#model: #cancel |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
837 |
#enableChannel: #modifiedChannel |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
838 |
#extent: #(#Point 201 24) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
839 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
840 |
#(#ActionButtonSpec |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
841 |
#label: 'OK' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
842 |
#name: 'acceptButton' |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
843 |
#activeHelpKey: #commitOK |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
844 |
#tabable: true |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
845 |
#model: #accept |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
846 |
#enableChannel: #modifiedChannel |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
847 |
#extent: #(#Point 201 24) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
848 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
849 |
) |
8c15098c3469
ok button is left in some viewStyles
Claus Gittinger <cg@exept.de>
parents:
1456
diff
changeset
|
850 |
|
1317 | 851 |
) |
852 |
) |
|
853 |
) |
|
1115 | 854 |
|
1317 | 855 |
) |
856 |
) |
|
857 |
) |
|
1115 | 858 |
|
1317 | 859 |
) |
860 |
#handles: #(#Any 0.318868 1.0) |
|
861 |
) |
|
862 |
#(#UISubSpecification |
|
863 |
#name: 'infoBarSubSpec' |
|
864 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
865 |
#majorKey: #ToolApplicationModel |
|
866 |
#minorKey: #windowSpecForInfoBar |
|
867 |
) |
|
868 |
) |
|
1115 | 869 |
|
1317 | 870 |
) |
222 | 871 |
) |
872 |
! ! |
|
873 |
||
874 |
!UIPainter class methodsFor:'menu specs'! |
|
875 |
||
446 | 876 |
menu |
743 | 877 |
"This resource specification was automatically generated |
878 |
by the MenuEditor of ST/X." |
|
879 |
||
880 |
"Do not manually edit this!! If it is corrupted, |
|
881 |
the MenuEditor may not be able to read the specification." |
|
217 | 882 |
|
883 |
" |
|
446 | 884 |
MenuEditor new openOnClass:UIPainter andSelector:#menu |
885 |
(Menu new fromLiteralArrayEncoding:(UIPainter menu)) startUp |
|
886 |
" |
|
887 |
||
888 |
<resource: #menu> |
|
889 |
||
890 |
^ |
|
891 |
||
892 |
#(#Menu |
|
893 |
||
1498 | 894 |
#( |
895 |
#(#MenuItem |
|
896 |
#label: '&File' |
|
897 |
#translateLabel: true |
|
898 |
#activeHelpKey: #file |
|
899 |
#enabled: #enableChannel |
|
900 |
#submenu: |
|
901 |
#(#Menu |
|
446 | 902 |
|
1498 | 903 |
#( |
904 |
#(#MenuItem |
|
905 |
#label: 'New' |
|
906 |
#translateLabel: true |
|
907 |
#value: #doNew |
|
908 |
#activeHelpKey: #fileNew |
|
909 |
) |
|
910 |
#(#MenuItem |
|
911 |
#label: '-' |
|
912 |
) |
|
913 |
#(#MenuItem |
|
914 |
#label: 'Load...' |
|
915 |
#translateLabel: true |
|
916 |
#value: #doLoad |
|
917 |
#activeHelpKey: #fileLoad |
|
918 |
) |
|
919 |
#(#MenuItem |
|
920 |
#label: 'Load Subspec...' |
|
921 |
#translateLabel: true |
|
922 |
#value: #doLoadSubspec |
|
923 |
#activeHelpKey: #fileLoadSubspec |
|
924 |
) |
|
925 |
#(#MenuItem |
|
926 |
#label: '-' |
|
927 |
) |
|
928 |
#(#MenuItem |
|
929 |
#label: 'Save' |
|
930 |
#translateLabel: true |
|
931 |
#value: #doSave |
|
932 |
#activeHelpKey: #fileSave |
|
933 |
) |
|
934 |
#(#MenuItem |
|
935 |
#label: 'Save As...' |
|
936 |
#translateLabel: true |
|
937 |
#value: #doSaveAs |
|
938 |
#activeHelpKey: #fileSaveAs |
|
939 |
) |
|
940 |
#(#MenuItem |
|
941 |
#label: 'Define Class And Selector...' |
|
942 |
#translateLabel: true |
|
943 |
#value: #doDefineClassAndSelector |
|
944 |
#activeHelpKey: #fileSaveAs |
|
945 |
) |
|
946 |
#(#MenuItem |
|
947 |
#label: '-' |
|
948 |
) |
|
949 |
#(#MenuItem |
|
950 |
#label: 'Pick A Window Spec...' |
|
951 |
#translateLabel: true |
|
952 |
#value: #doPickAView |
|
953 |
#activeHelpKey: #filePickAnInterface |
|
954 |
) |
|
955 |
#(#MenuItem |
|
956 |
#label: '-' |
|
957 |
) |
|
958 |
#(#MenuItem |
|
959 |
#label: 'Show Window Spec' |
|
960 |
#translateLabel: true |
|
961 |
#value: #doWindowSpec |
|
962 |
#activeHelpKey: #fileShowWindowSpec |
|
963 |
) |
|
964 |
#(#MenuItem |
|
965 |
#label: 'Browse Class' |
|
966 |
#translateLabel: true |
|
967 |
#value: #doBrowseClass |
|
968 |
#activeHelpKey: #fileBrowseClass |
|
969 |
#enabled: #hasSpecClass |
|
970 |
) |
|
971 |
#(#MenuItem |
|
972 |
#label: 'Browse Aspect Methods' |
|
973 |
#translateLabel: true |
|
974 |
#value: #doBrowseAspectMethods |
|
975 |
#activeHelpKey: #fileBrowseAspectMethods |
|
976 |
#enabled: #hasSpecClass |
|
977 |
) |
|
978 |
#(#MenuItem |
|
979 |
#label: '-' |
|
980 |
) |
|
981 |
#(#MenuItem |
|
982 |
#label: 'Exit' |
|
983 |
#translateLabel: true |
|
984 |
#value: #closeRequest |
|
985 |
#activeHelpKey: #fileExit |
|
986 |
) |
|
987 |
) nil |
|
988 |
nil |
|
989 |
) |
|
990 |
) |
|
991 |
#(#MenuItem |
|
992 |
#label: 'Edit' |
|
993 |
#translateLabel: true |
|
994 |
#activeHelpKey: #edit |
|
995 |
#submenuChannel: #menuEdit |
|
996 |
) |
|
997 |
#(#MenuItem |
|
998 |
#label: 'Align' |
|
999 |
#translateLabel: true |
|
1000 |
#activeHelpKey: #align |
|
1001 |
#submenuChannel: #menuAlign |
|
1002 |
) |
|
1003 |
#(#MenuItem |
|
1004 |
#label: 'Generate' |
|
1005 |
#translateLabel: true |
|
1006 |
#activeHelpKey: #generate |
|
1007 |
#submenu: |
|
1008 |
#(#Menu |
|
713 | 1009 |
|
1498 | 1010 |
#( |
1011 |
#(#MenuItem |
|
1012 |
#label: 'Aspect Methods' |
|
1013 |
#translateLabel: true |
|
1014 |
#value: #doGenerateAspectMethods |
|
1015 |
#activeHelpKey: #generateAspectMethods |
|
1016 |
#enabled: #hasSpecClass |
|
1017 |
) |
|
1018 |
#(#MenuItem |
|
1019 |
#label: 'Menu Stub Methods' |
|
1020 |
#translateLabel: true |
|
1021 |
#value: #doGenerateMenuMethods |
|
1022 |
) |
|
1023 |
#(#MenuItem |
|
1024 |
#label: '-' |
|
1025 |
) |
|
1026 |
#(#MenuItem |
|
1027 |
#label: 'Hook Methods' |
|
1028 |
#translateLabel: true |
|
1029 |
#value: #doGenerateHookMethods |
|
1030 |
#activeHelpKey: #generateHookMethods |
|
1031 |
#enabled: #hasSpecClass |
|
1032 |
) |
|
1033 |
) nil |
|
1034 |
nil |
|
1035 |
) |
|
1036 |
) |
|
1037 |
#(#MenuItem |
|
1038 |
#label: 'Test' |
|
1039 |
#translateLabel: true |
|
1040 |
#activeHelpKey: #test |
|
1041 |
#submenu: |
|
1042 |
#(#Menu |
|
446 | 1043 |
|
1498 | 1044 |
#( |
1045 |
#(#MenuItem |
|
1046 |
#label: 'Start Application' |
|
1047 |
#translateLabel: true |
|
1048 |
#value: #doStartApplication |
|
1049 |
#activeHelpKey: #testStartApplication |
|
1050 |
) |
|
1051 |
#(#MenuItem |
|
1052 |
#label: '-' |
|
1053 |
) |
|
1054 |
#(#MenuItem |
|
1055 |
#label: 'Geometry Test Mode' |
|
1056 |
#translateLabel: true |
|
1057 |
#activeHelpKey: #testGeometryTestMode |
|
1058 |
#indication: #testMode: |
|
1059 |
) |
|
1060 |
) nil |
|
1061 |
nil |
|
1062 |
) |
|
1063 |
) |
|
1064 |
#(#MenuItem |
|
1065 |
#label: 'Settings' |
|
1066 |
#translateLabel: true |
|
1067 |
#activeHelpKey: #settings |
|
1068 |
#submenu: |
|
1069 |
#(#Menu |
|
446 | 1070 |
|
1498 | 1071 |
#( |
1072 |
#(#MenuItem |
|
1073 |
#label: 'Canvas' |
|
1074 |
#translateLabel: true |
|
1075 |
#activeHelpKey: #settingsCanvas |
|
1076 |
#indication: #painterShown |
|
1077 |
) |
|
1078 |
#(#MenuItem |
|
1079 |
#label: 'Gallery' |
|
1080 |
#translateLabel: true |
|
1081 |
#activeHelpKey: #settingsGallery |
|
1082 |
#indication: #galleryShown |
|
1083 |
) |
|
1084 |
#(#MenuItem |
|
1085 |
#label: '-' |
|
1086 |
) |
|
1087 |
#(#MenuItem |
|
1088 |
#label: 'Redefine Aspect Methods' |
|
1089 |
#translateLabel: true |
|
1090 |
#activeHelpKey: #settingsRedefineAspectMethods |
|
1091 |
#enabled: #hasSpecClass |
|
1092 |
#indication: #redefineAspectMethods: |
|
1093 |
) |
|
1094 |
#(#MenuItem |
|
1095 |
#label: 'Aspects As Instances' |
|
1096 |
#translateLabel: true |
|
1097 |
#activeHelpKey: #settingsAspectsAsInstances |
|
1098 |
#enabled: #hasSpecClass |
|
1099 |
#indication: #generateAspectsAsInstanceVariables: |
|
1100 |
) |
|
1101 |
#(#MenuItem |
|
1102 |
#label: '-' |
|
1103 |
) |
|
1032 | 1104 |
"/ #(#MenuItem |
1105 |
"/ #label: 'Fonts' |
|
1106 |
"/ #submenuChannel: #menuFont |
|
1107 |
"/ ) |
|
1108 |
"/ #(#MenuItem |
|
1109 |
"/ #label: '-' |
|
1110 |
"/ ) |
|
1498 | 1111 |
#(#MenuItem |
1112 |
#label: 'Undo Manager...' |
|
1113 |
#translateLabel: true |
|
1114 |
#value: #openUndoMenu |
|
1115 |
#activeHelpKey: #settingsUndoManager |
|
1116 |
#enabled: #hasUndoHistory |
|
1117 |
) |
|
1118 |
#(#MenuItem |
|
1119 |
#label: 'Grid Manager...' |
|
1120 |
#translateLabel: true |
|
1121 |
#value: #doDefineGrid |
|
1122 |
#activeHelpKey: #settingsGridManager |
|
1123 |
) |
|
1124 |
) nil |
|
1125 |
nil |
|
1126 |
) |
|
1127 |
) |
|
1128 |
#(#MenuItem |
|
1129 |
#label: 'History' |
|
1130 |
#translateLabel: true |
|
1131 |
#activeHelpKey: #history |
|
1132 |
#submenuChannel: #menuHistory |
|
1133 |
) |
|
1134 |
#(#MenuItem |
|
1135 |
#label: 'Help' |
|
1136 |
#translateLabel: true |
|
1137 |
#startGroup: #right |
|
1138 |
#activeHelpKey: #help |
|
1139 |
#submenu: |
|
1140 |
#(#Menu |
|
564 | 1141 |
|
1498 | 1142 |
#( |
1143 |
#(#MenuItem |
|
1144 |
#label: 'Tutorial' |
|
1145 |
#translateLabel: true |
|
1146 |
#value: #openHTMLDocument: |
|
1147 |
#activeHelpKey: #helpTutorial |
|
1148 |
#argument: 'tools/uipainter/TOP.html' |
|
1149 |
) |
|
1150 |
#(#MenuItem |
|
1151 |
#label: '-' |
|
1152 |
) |
|
1153 |
#(#MenuItem |
|
1154 |
#label: 'Functions' |
|
1155 |
#translateLabel: true |
|
1156 |
#value: #openHTMLDocument: |
|
1157 |
#activeHelpKey: #helpFunctions |
|
1158 |
#argument: 'tools/uipainter/Functions.html' |
|
1159 |
) |
|
1160 |
#(#MenuItem |
|
1161 |
#label: 'Examples' |
|
1162 |
#translateLabel: true |
|
1163 |
#value: #openHTMLDocument: |
|
1164 |
#activeHelpKey: #helpExamples |
|
1165 |
#argument: 'tools/uipainter/Examples.html' |
|
1166 |
) |
|
1167 |
#(#MenuItem |
|
1168 |
#label: '-' |
|
1169 |
) |
|
1170 |
#(#MenuItem |
|
1171 |
#label: 'Help Tool' |
|
1172 |
#translateLabel: true |
|
1173 |
#value: #openHTMLDocument: |
|
1174 |
#activeHelpKey: #helpHelpTool |
|
1175 |
#argument: 'tools/uipainter/HelpTool.html' |
|
1176 |
) |
|
1177 |
#(#MenuItem |
|
1178 |
#label: 'Layout Tool' |
|
1179 |
#translateLabel: true |
|
1180 |
#value: #openHTMLDocument: |
|
1181 |
#activeHelpKey: #helpLayoutTool |
|
1182 |
#argument: 'tools/uipainter/LayoutTool.html' |
|
1183 |
) |
|
1184 |
#(#MenuItem |
|
1185 |
#label: '-' |
|
1186 |
) |
|
1187 |
#(#MenuItem |
|
1188 |
#label: 'Selected Widget' |
|
1189 |
#translateLabel: true |
|
1190 |
#value: #doOpenWidgetDocumentation |
|
1191 |
#activeHelpKey: #helpSelectedWidget |
|
1192 |
) |
|
1193 |
#(#MenuItem |
|
1194 |
#label: '-' |
|
1195 |
) |
|
1196 |
#(#MenuItem |
|
1197 |
#label: 'Show Help Texts' |
|
1198 |
#translateLabel: true |
|
1199 |
#activeHelpKey: #helpShowHelp |
|
1200 |
#indication: #showingHelp: |
|
1201 |
) |
|
1499
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1202 |
#(#MenuItem |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1203 |
#label: '-' |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1204 |
) |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1205 |
#(#MenuItem |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1206 |
#label: 'About this Application...' |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1207 |
#translateLabel: true |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1208 |
#value: #openAboutThisApplication |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1209 |
#activeHelpKey: #aboutThisAppliaction |
0c57ab09156b
about menu items moved into the Help-menu
Claus Gittinger <cg@exept.de>
parents:
1498
diff
changeset
|
1210 |
) |
1498 | 1211 |
) nil |
1212 |
nil |
|
1213 |
) |
|
1214 |
) |
|
1215 |
) nil |
|
1216 |
nil |
|
564 | 1217 |
) |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1218 |
|
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
1219 |
"Modified: / 23.8.1998 / 16:09:22 / cg" |
564 | 1220 |
! |
1221 |
||
446 | 1222 |
menuAlign |
743 | 1223 |
"This resource specification was automatically generated |
1224 |
by the MenuEditor of ST/X." |
|
1225 |
||
778 | 1226 |
"Do not manually edit this!! If it is corrupted, |
743 | 1227 |
the MenuEditor may not be able to read the specification." |
446 | 1228 |
|
1229 |
" |
|
1230 |
MenuEditor new openOnClass:UIPainter andSelector:#menuAlign |
|
1231 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuAlign)) startUp |
|
217 | 1232 |
" |
1233 |
||
1234 |
<resource: #menu> |
|
1235 |
||
1236 |
^ |
|
1237 |
||
1238 |
#(#Menu |
|
1239 |
||
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1240 |
#( |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1241 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1242 |
#label: 'Left' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1243 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1244 |
#value: #alignSelectionLeft |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1245 |
#activeHelpKey: #alignSelectionLeft |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1246 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1247 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignL 'Left') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1248 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1249 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1250 |
#label: 'Right' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1251 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1252 |
#value: #alignSelectionRight |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1253 |
#activeHelpKey: #alignSelectionRight |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1254 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1255 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignR 'Right') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1256 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1257 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1258 |
#label: 'Left & Right' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1259 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1260 |
#value: #alignSelectionLeftAndRight |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1261 |
#activeHelpKey: #alignSelectionLeftAndRight |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1262 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1263 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignLR 'Left & Right') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1264 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1265 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1266 |
#label: 'Top' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1267 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1268 |
#value: #alignSelectionTop |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1269 |
#activeHelpKey: #alignSelectionTop |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1270 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1271 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignT 'Top') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1272 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1273 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1274 |
#label: 'Bottom' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1275 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1276 |
#value: #alignSelectionBottom |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1277 |
#activeHelpKey: #alignSelectionBottom |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1278 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1279 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignB 'Bottom') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1280 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1281 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1282 |
#label: 'Top & Bottom' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1283 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1284 |
#value: #alignSelectionTopAndBottom |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1285 |
#activeHelpKey: #alignSelectionTopAndBottom |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1286 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1287 |
#labelImage: #(#ResourceRetriever #UIPainter #iconAlignTB 'Top & Bottom') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1288 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1289 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1290 |
#label: '-' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1291 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1292 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1293 |
#label: 'Centered Horizontal' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1294 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1295 |
#value: #alignSelectionCenterHor |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1296 |
#activeHelpKey: #alignSelectionCenterHor |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1297 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1298 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1299 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1300 |
#label: 'Centered Vertical' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1301 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1302 |
#value: #alignSelectionCenterVer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1303 |
#activeHelpKey: #alignSelectionCenterVer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1304 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1305 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1306 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1307 |
#label: '-' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1308 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1309 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1310 |
#label: 'Center Horizontal In Frame' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1311 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1312 |
#value: #centerSelectionHor |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1313 |
#activeHelpKey: #centerSelectionHor |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1314 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1315 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1316 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1317 |
#label: 'Center Vertical In Frame' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1318 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1319 |
#value: #centerSelectionVer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1320 |
#activeHelpKey: #centerSelectionVer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1321 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1322 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1323 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1324 |
#label: '-' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1325 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1326 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1327 |
#label: 'Spread Horizontal' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1328 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1329 |
#value: #spreadSelectionHor |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1330 |
#activeHelpKey: #spreadSelectionHor |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1331 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1332 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1333 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1334 |
#label: 'Spread Vertical' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1335 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1336 |
#value: #spreadSelectionVer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1337 |
#activeHelpKey: #spreadSelectionVer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1338 |
#enabled: #canMoveOrAlignSelection |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1339 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1340 |
) nil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1341 |
nil |
446 | 1342 |
) |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1343 |
|
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1344 |
"Modified: / 20.5.1998 / 01:42:57 / cg" |
446 | 1345 |
! |
1346 |
||
1347 |
menuEdit |
|
743 | 1348 |
"This resource specification was automatically generated |
1349 |
by the MenuEditor of ST/X." |
|
1350 |
||
755 | 1351 |
"Do not manually edit this!! If it is corrupted, |
743 | 1352 |
the MenuEditor may not be able to read the specification." |
446 | 1353 |
|
1354 |
" |
|
1355 |
MenuEditor new openOnClass:UIPainter andSelector:#menuEdit |
|
1356 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuEdit)) startUp |
|
1357 |
" |
|
1358 |
||
1359 |
<resource: #menu> |
|
1360 |
||
1361 |
^ |
|
1362 |
||
1363 |
#(#Menu |
|
1364 |
||
1230
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1365 |
#( |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1366 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1367 |
#label: 'Undo' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1368 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1369 |
#nameKey: #undo |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1370 |
#value: #undoLast |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1371 |
#activeHelpKey: #editUndo |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1372 |
#enabled: #hasUndoHistory |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1373 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1374 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1375 |
#label: '-' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1376 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1377 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1378 |
#label: 'Cut' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1379 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1380 |
#value: #deleteSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1381 |
#activeHelpKey: #editCut |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1382 |
#enabled: #valueOfCanCut |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1383 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1384 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1385 |
#label: 'Copy' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1386 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1387 |
#value: #copySelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1388 |
#activeHelpKey: #editCopy |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1389 |
#enabled: #valueOfCanCopy |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1390 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1391 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1392 |
#label: 'Paste' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1393 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1394 |
#value: #pasteBuffer |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1395 |
#activeHelpKey: #pasteBuffer |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1396 |
#enabled: #valueOfCanPaste |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1397 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1398 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1399 |
#label: 'Delete' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1400 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1401 |
#value: #deleteTotalSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1402 |
#activeHelpKey: #editDelete |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1403 |
#enabled: #valueOfCanCut |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1404 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1405 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1406 |
#label: '-' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1407 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1408 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1409 |
#label: 'Paste With Layout' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1410 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1411 |
#value: #pasteWithLayout |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1412 |
#activeHelpKey: #pasteWithLayout |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1413 |
#enabled: #valueOfCanPasteWithKeepingLayout |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1414 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1415 |
#(#MenuItem |
1338
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1416 |
#label: 'Paste Keeping Absolute Position' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1417 |
#translateLabel: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1418 |
#value: #pasteKeepingPosition |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1419 |
#activeHelpKey: #editPaste |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1420 |
#enabled: #valueOfCanPasteWithKeepingLayout |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1421 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1422 |
#(#MenuItem |
1230
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1423 |
#label: '-' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1424 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1425 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1426 |
#label: 'Move' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1427 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1428 |
#enabled: #canMoveSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1429 |
#submenuChannel: #menuMove |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1430 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1431 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1432 |
#label: 'Dimension' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1433 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1434 |
#enabled: #hasSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1435 |
#submenu: |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1436 |
#(#Menu |
446 | 1437 |
|
1230
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1438 |
#( |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1439 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1440 |
#label: 'Default Extent' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1441 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1442 |
#value: #setToDefaultExtent |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1443 |
#activeHelpKey: #editDimensionDefaultExtent |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1444 |
#enabled: #canMoveOrAlignSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1445 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1446 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1447 |
#label: 'Default Width' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1448 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1449 |
#value: #setToDefaultWidth |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1450 |
#activeHelpKey: #editDimensionDefaultWidth |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1451 |
#enabled: #canMoveOrAlignSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1452 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1453 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1454 |
#label: 'Default Height' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1455 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1456 |
#value: #setToDefaultHeight |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1457 |
#activeHelpKey: #editDimensionDefaultHeight |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1458 |
#enabled: #canMoveOrAlignSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1459 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1460 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1461 |
#label: '-' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1462 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1463 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1464 |
#label: 'Copy Layout' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1465 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1466 |
#value: #copyLayout |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1467 |
#activeHelpKey: #editDimensionCopyLayout |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1468 |
#enabled: #hasSingleSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1469 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1470 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1471 |
#label: 'Paste Layout' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1472 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1473 |
#value: #pasteLayout |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1474 |
#activeHelpKey: #editDimensionPasteLayout |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1475 |
#enabled: #canMoveOrAlignSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1476 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1477 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1478 |
#label: 'Exchange Layouts' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1479 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1480 |
#value: #exchangeLayouts |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1481 |
#activeHelpKey: #editDimensionExchangeLayouts |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1482 |
#enabled: #canExchangeSelectionLayouts |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1483 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1484 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1485 |
#label: '-' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1486 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1487 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1488 |
#label: 'Copy Extent' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1489 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1490 |
#value: #copyExtent |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1491 |
#activeHelpKey: #editDimensionCopyExtent |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1492 |
#enabled: #hasSingleSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1493 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1494 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1495 |
#label: 'Paste Extent' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1496 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1497 |
#value: #pasteExtent |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1498 |
#activeHelpKey: #editDimensionPasteExtent |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1499 |
#enabled: #canMoveOrAlignSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1500 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1501 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1502 |
#label: 'Paste Width' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1503 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1504 |
#value: #pasteWidth |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1505 |
#activeHelpKey: #editDimensionPasteWidth |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1506 |
#enabled: #canMoveOrAlignSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1507 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1508 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1509 |
#label: 'Paste Height' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1510 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1511 |
#value: #pasteHeight |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1512 |
#activeHelpKey: #editDimensionPasteHeight |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1513 |
#enabled: #canMoveOrAlignSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1514 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1515 |
) nil |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1516 |
nil |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1517 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1518 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1519 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1520 |
#label: '-' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1521 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1522 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1523 |
#label: 'Open Widget Documentation' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1524 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1525 |
#value: #doOpenWidgetDocumentation |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1526 |
#activeHelpKey: #editOpenSpecDocumentation |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1527 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1528 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1529 |
#label: '-' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1530 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1531 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1532 |
#label: 'Inspect View' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1533 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1534 |
#value: #doInspectView |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1535 |
#activeHelpKey: #editInspectView |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1536 |
#enabled: #hasOneSelectionOtherThanCanvas |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1537 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1538 |
#(#MenuItem |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1539 |
#label: 'Inspect Spec' |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1540 |
#translateLabel: true |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1541 |
#value: #doInspectSpec |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1542 |
#activeHelpKey: #editInspectSpec |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1543 |
) |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1544 |
) nil |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1545 |
nil |
498 | 1546 |
) |
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1547 |
|
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
1548 |
"Modified: / 20.5.1998 / 01:46:00 / cg" |
498 | 1549 |
! |
1550 |
||
1551 |
menuMove |
|
743 | 1552 |
"This resource specification was automatically generated |
1553 |
by the MenuEditor of ST/X." |
|
1554 |
||
755 | 1555 |
"Do not manually edit this!! If it is corrupted, |
743 | 1556 |
the MenuEditor may not be able to read the specification." |
498 | 1557 |
|
1558 |
" |
|
1559 |
MenuEditor new openOnClass:UIPainter andSelector:#menuMove |
|
1560 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp |
|
1561 |
" |
|
1562 |
||
1563 |
<resource: #menu> |
|
1564 |
||
1565 |
^ |
|
1566 |
||
1567 |
#(#Menu |
|
1568 |
||
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1569 |
#( |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1570 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1571 |
#label: 'Up' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1572 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1573 |
#value: #doStepUp |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1574 |
#activeHelpKey: #moveWidgetUp |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1575 |
#enabled: #canChangeOrderInContainer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1576 |
#labelImage: #(#ResourceRetriever #Icon #upIcon 'Up') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1577 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1578 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1579 |
#label: 'Down' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1580 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1581 |
#value: #doStepDown |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1582 |
#activeHelpKey: #moveWidgetDown |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1583 |
#enabled: #canChangeOrderInContainer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1584 |
#labelImage: #(#ResourceRetriever #Icon #downIcon 'Down') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1585 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1586 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1587 |
#label: 'Into' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1588 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1589 |
#value: #doStepIn |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1590 |
#activeHelpKey: #moveWidgetInto |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1591 |
#enabled: #canMoveSelectionIntoContainer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1592 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon 'Into') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1593 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1594 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1595 |
#label: 'Out' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1596 |
#translateLabel: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1597 |
#value: #doStepOut |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1598 |
#activeHelpKey: #moveWidgetOut |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1599 |
#enabled: #canMoveSelectionOutOfContainer |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1600 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon 'Out') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1601 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1602 |
) nil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1603 |
nil |
446 | 1604 |
) |
1605 |
! |
|
1606 |
||
1607 |
menuToolbar |
|
743 | 1608 |
"This resource specification was automatically generated |
1609 |
by the MenuEditor of ST/X." |
|
1610 |
||
778 | 1611 |
"Do not manually edit this!! If it is corrupted, |
743 | 1612 |
the MenuEditor may not be able to read the specification." |
446 | 1613 |
|
1614 |
" |
|
1615 |
MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar |
|
1616 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp |
|
1617 |
" |
|
1618 |
||
1619 |
<resource: #menu> |
|
1620 |
||
1621 |
^ |
|
1622 |
||
1623 |
#(#Menu |
|
1624 |
||
1338
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1625 |
#( |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1626 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1627 |
#label: 'Start' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1628 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1629 |
#value: #doStartApplication |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1630 |
#activeHelpKey: #testStartApplication |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1631 |
#labelImage: #(#ResourceRetriever #Icon #startIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1632 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1633 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1634 |
#label: '' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1635 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1636 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1637 |
#label: 'New' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1638 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1639 |
#value: #doNew |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1640 |
#activeHelpKey: #fileNew |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1641 |
#labelImage: #(#ResourceRetriever #Icon #newIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1642 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1643 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1644 |
#label: 'Load' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1645 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1646 |
#value: #doLoad |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1647 |
#activeHelpKey: #fileLoad |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1648 |
#labelImage: #(#ResourceRetriever #Icon #loadIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1649 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1650 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1651 |
#label: 'Save' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1652 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1653 |
#value: #doSave |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1654 |
#activeHelpKey: #fileSave |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1655 |
#labelImage: #(#ResourceRetriever #Icon #saveIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1656 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1657 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1658 |
#label: '' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1659 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1660 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1661 |
#label: 'Cut' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1662 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1663 |
#value: #deleteSelection |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1664 |
#activeHelpKey: #editCut |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1665 |
#enabled: #valueOfCanCut |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1666 |
#labelImage: #(#ResourceRetriever #Icon #cutIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1667 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1668 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1669 |
#label: 'Copy' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1670 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1671 |
#value: #copySelection |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1672 |
#activeHelpKey: #editCopy |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1673 |
#enabled: #valueOfCanCopy |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1674 |
#labelImage: #(#ResourceRetriever #Icon #copyIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1675 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1676 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1677 |
#label: 'Paste With Layout' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1678 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1679 |
#value: #pasteWithLayout |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1680 |
#activeHelpKey: #editPaste |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1681 |
#enabled: #valueOfCanPasteWithKeepingLayout |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1682 |
#labelImage: #(#ResourceRetriever #Icon #pasteIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1683 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1684 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1685 |
#label: 'Delete' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1686 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1687 |
#value: #deleteTotalSelection |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1688 |
#activeHelpKey: #editDelete |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1689 |
#enabled: #valueOfCanCut |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1690 |
#labelImage: #(#ResourceRetriever #Icon #deleteIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1691 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1692 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1693 |
#label: '' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1694 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1695 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1696 |
#label: 'Move Up' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1697 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1698 |
#value: #doStepUp |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1699 |
#activeHelpKey: #moveWidgetUp |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1700 |
#enabled: #canChangeOrderInContainer |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1701 |
#labelImage: #(#ResourceRetriever #Icon #upIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1702 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1703 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1704 |
#label: 'Move Down' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1705 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1706 |
#value: #doStepDown |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1707 |
#activeHelpKey: #moveWidgetDown |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1708 |
#enabled: #canChangeOrderInContainer |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1709 |
#labelImage: #(#ResourceRetriever #Icon #downIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1710 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1711 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1712 |
#label: 'Move Into' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1713 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1714 |
#value: #doStepIn |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1715 |
#activeHelpKey: #moveWidgetInto |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1716 |
#enabled: #canMoveSelectionIntoContainer |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1717 |
#labelImage: #(#ResourceRetriever #Icon #downRightIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1718 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1719 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1720 |
#label: 'Move Out' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1721 |
#isButton: true |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1722 |
#value: #doStepOut |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1723 |
#activeHelpKey: #moveWidgetOut |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1724 |
#enabled: #canMoveSelectionOutOfContainer |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1725 |
#labelImage: #(#ResourceRetriever #Icon #leftDownIcon) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1726 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1727 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1728 |
#label: '' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1729 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1730 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1731 |
#label: 'Canvas' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1732 |
#activeHelpKey: #settingsCanvas |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1733 |
#indication: #painterShown |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1734 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1735 |
#(#MenuItem |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1736 |
#label: 'Gallery' |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1737 |
#activeHelpKey: #settingsGallery |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1738 |
#indication: #galleryShown |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1739 |
) |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1740 |
) nil |
3c1a528c50db
added paste-keeping-absolute-position function
Claus Gittinger <cg@exept.de>
parents:
1319
diff
changeset
|
1741 |
nil |
713 | 1742 |
) |
1743 |
! |
|
1744 |
||
1745 |
menuToolbar2 |
|
743 | 1746 |
"This resource specification was automatically generated |
1747 |
by the MenuEditor of ST/X." |
|
1748 |
||
778 | 1749 |
"Do not manually edit this!! If it is corrupted, |
743 | 1750 |
the MenuEditor may not be able to read the specification." |
713 | 1751 |
|
1752 |
" |
|
1753 |
MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar2 |
|
1754 |
(Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar2)) startUp |
|
1755 |
" |
|
1756 |
||
1757 |
<resource: #menu> |
|
1758 |
||
1759 |
^ |
|
1760 |
||
1761 |
#(#Menu |
|
1762 |
||
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1763 |
#( |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1764 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1765 |
#label: 'Align Left' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1766 |
#isButton: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1767 |
#value: #alignSelectionLeft |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1768 |
#activeHelpKey: #alignSelectionLeft |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1769 |
#labelImage: #(#ResourceRetriever nil #iconAlignL) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1770 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1771 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1772 |
#label: 'Align Right' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1773 |
#isButton: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1774 |
#value: #alignSelectionRight |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1775 |
#activeHelpKey: #alignSelectionRight |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1776 |
#labelImage: #(#ResourceRetriever nil #iconAlignR) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1777 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1778 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1779 |
#label: 'Align Left & Right' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1780 |
#isButton: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1781 |
#value: #alignSelectionLeftAndRight |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1782 |
#activeHelpKey: #alignSelectionLeftAndRight |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1783 |
#labelImage: #(#ResourceRetriever nil #iconAlignLR) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1784 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1785 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1786 |
#label: '' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1787 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1788 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1789 |
#label: 'Align Top' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1790 |
#isButton: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1791 |
#value: #alignSelectionTop |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1792 |
#activeHelpKey: #alignSelectionTop |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1793 |
#labelImage: #(#ResourceRetriever nil #iconAlignT) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1794 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1795 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1796 |
#label: 'Align Bottom' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1797 |
#isButton: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1798 |
#value: #alignSelectionBottom |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1799 |
#activeHelpKey: #alignSelectionBottom |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1800 |
#labelImage: #(#ResourceRetriever nil #iconAlignB) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1801 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1802 |
#(#MenuItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1803 |
#label: 'Align Top & Bottom' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1804 |
#isButton: true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1805 |
#value: #alignSelectionTopAndBottom |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1806 |
#activeHelpKey: #alignSelectionTopAndBottom |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1807 |
#labelImage: #(#ResourceRetriever nil #iconAlignTB) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1808 |
) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1809 |
) nil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1810 |
nil |
217 | 1811 |
) |
446 | 1812 |
! ! |
1813 |
||
60 | 1814 |
!UIPainter methodsFor:'aspects'! |
1815 |
||
724 | 1816 |
aspectFor:aKey |
765 | 1817 |
"returns the aspect for aKey" |
1818 |
||
1819 |
^aspects at:aKey ifAbsent:[ super aspectFor:aKey ] |
|
724 | 1820 |
! |
1821 |
||
565 | 1822 |
canChangeOrderInContainer |
765 | 1823 |
"returns a boolean value holder which is true if the widget order can be changed |
1824 |
within their container" |
|
1825 |
||
565 | 1826 |
^ builder booleanValueAspectFor:#canChangeOrderInContainer |
1827 |
! |
|
1828 |
||
1230
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1829 |
canExchangeSelectionLayouts |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1830 |
"returns a boolean value holder which is true in case that the selection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1831 |
consists of exactly 2 components |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1832 |
and all widgets in the selection can change its layout through to a move or |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1833 |
align operation" |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1834 |
|
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1835 |
^ builder booleanValueAspectFor:#canExchangeSelectionLayouts |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1836 |
! |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
1837 |
|
282 | 1838 |
canMoveOrAlignSelection |
1839 |
"returns a boolean value holder which is true in case that any selection exists |
|
1840 |
and all widgets in the selection can change its layout through to a move or |
|
765 | 1841 |
align operation" |
1842 |
||
282 | 1843 |
^ builder booleanValueAspectFor:#canMoveOrAlignSelection |
222 | 1844 |
! |
1845 |
||
755 | 1846 |
canMoveSelection |
1847 |
||
765 | 1848 |
^self canChangeOrderInContainer value or: [ |
1849 |
self canMoveSelectionOutOfContainer value or: [ |
|
1850 |
self canMoveSelectionOutOfContainer value]] |
|
755 | 1851 |
! |
1852 |
||
282 | 1853 |
canMoveSelectionIntoContainer |
765 | 1854 |
"returns a boolean value holder which is true in case that one widget is selected |
282 | 1855 |
and can change its container widget to the next element in the list which will have |
765 | 1856 |
the same container" |
1857 |
||
282 | 1858 |
^ builder booleanValueAspectFor:#canMoveSelectionIntoContainer |
1859 |
! |
|
1860 |
||
1861 |
canMoveSelectionOutOfContainer |
|
765 | 1862 |
"returns a boolean value holder which is true in case that one widget is selected |
1863 |
which is contained within another component" |
|
1864 |
||
282 | 1865 |
^ builder booleanValueAspectFor:#canMoveSelectionOutOfContainer |
222 | 1866 |
! |
1867 |
||
118 | 1868 |
enableChannel |
765 | 1869 |
"true if modifications are allowed otherwise running test" |
1870 |
||
1871 |
^ self painter enableChannel |
|
109 | 1872 |
! |
1873 |
||
173 | 1874 |
galleryShown |
765 | 1875 |
"returns a boolean value holder which is set to true if the gallery is shown" |
1876 |
||
173 | 1877 |
|holder| |
1878 |
||
1879 |
(holder := builder bindingAt:#galleryShown) isNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1880 |
builder aspectAt:#galleryShown put:(holder := true asValue). |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1881 |
holder addDependent:self |
173 | 1882 |
]. |
1883 |
^ holder |
|
1884 |
||
1885 |
! |
|
1886 |
||
282 | 1887 |
hasOneSelectionOtherThanCanvas |
765 | 1888 |
"returns a value holder which is true in case that one widget is selected |
1889 |
other than the root" |
|
1890 |
||
282 | 1891 |
^ builder booleanValueAspectFor:#hasOneSelectionOtherThanCanvas |
222 | 1892 |
! |
1893 |
||
884 | 1894 |
helpIcon |
1895 |
||
1896 |
^Icon helpIcon |
|
1897 |
! |
|
1898 |
||
109 | 1899 |
noteBookView |
765 | 1900 |
"returns the notebook view; initialize the tools embedded in the notebook" |
1901 |
||
1316 | 1902 |
|noteBook modifiedChannel applBuilder applWindow| |
109 | 1903 |
|
1904 |
(noteBook := builder bindingAt:#noteBookView) isNil ifTrue:[ |
|
1316 | 1905 |
modifiedChannel := self modifiedChannel. |
1906 |
noteBook := View new. |
|
1907 |
builder aspectAt:#noteBookView put:noteBook. |
|
1908 |
||
1314 | 1909 |
layoutTool := UILayoutTool new. |
1316 | 1910 |
layoutTool createBuilder. |
1911 |
applBuilder := layoutTool builder. |
|
1319
6a245b972637
use ApplicationSubView instead of SimpleView; application query
ca
parents:
1317
diff
changeset
|
1912 |
applWindow := ApplicationSubView origin:0.0@0.0 corner:1.0@1.0 in:noteBook. |
1316 | 1913 |
applWindow level:0. |
1314 | 1914 |
layoutTool masterApplication:self. |
1316 | 1915 |
applBuilder window:applWindow. |
1916 |
applWindow client:layoutTool spec:#windowSpec builder:applBuilder. |
|
1917 |
applBuilder window:applWindow. |
|
1314 | 1918 |
layoutTool modifiedHolder:modifiedChannel. |
1316 | 1919 |
|
1920 |
helpTool := UIHelpTool new. |
|
1921 |
helpTool createBuilder. |
|
1922 |
applBuilder := helpTool builder. |
|
1319
6a245b972637
use ApplicationSubView instead of SimpleView; application query
ca
parents:
1317
diff
changeset
|
1923 |
applWindow := ApplicationSubView origin:0.0@0.0 corner:1.0@1.0 in:noteBook. |
1316 | 1924 |
applWindow level:0. |
1925 |
helpTool buildFromClass:specClass. |
|
1926 |
helpTool masterApplication:self. |
|
1927 |
applBuilder window:applWindow. |
|
1928 |
applWindow client:helpTool spec:#windowSpec builder:applBuilder. |
|
1929 |
applBuilder window:applWindow. |
|
1930 |
helpTool modifiedHolder:modifiedChannel. |
|
1931 |
||
1932 |
specTool := UISpecificationTool new. |
|
1933 |
specTool createBuilder. |
|
1934 |
applBuilder := specTool builder. |
|
1319
6a245b972637
use ApplicationSubView instead of SimpleView; application query
ca
parents:
1317
diff
changeset
|
1935 |
applWindow := ApplicationSubView origin:0.0@0.0 corner:1.0@1.0 in:noteBook. |
1316 | 1936 |
specTool masterApplication:self. |
1937 |
applWindow level:0. |
|
1938 |
||
1939 |
applBuilder window:applWindow. |
|
1940 |
applWindow client:specTool spec:#windowSpec builder:applBuilder. |
|
1941 |
applBuilder window:applWindow. |
|
1942 |
||
1943 |
specTool modifiedHolder:modifiedChannel. |
|
109 | 1944 |
]. |
1945 |
^ noteBook |
|
1946 |
! |
|
1947 |
||
282 | 1948 |
painterShown |
765 | 1949 |
"returns a boolean value holder which is set to true if the painter is shown" |
1950 |
||
173 | 1951 |
|holder| |
1952 |
||
1953 |
(holder := builder bindingAt:#painterShown) isNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1954 |
builder aspectAt:#painterShown put:(holder := true asValue). |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1955 |
holder addDependent:self |
173 | 1956 |
]. |
1957 |
^ holder |
|
1958 |
||
1959 |
! |
|
1960 |
||
109 | 1961 |
tabList |
765 | 1962 |
"returns a value holder which keeps a list of the section labels in the notebook" |
1963 |
||
109 | 1964 |
|holder| |
1965 |
||
1966 |
(holder := builder bindingAt:#tabList) isNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1967 |
builder aspectAt:#tabList put:(holder := #(Basics Details Layout) asValue). |
109 | 1968 |
]. |
1969 |
^ holder |
|
1970 |
! |
|
1971 |
||
1972 |
tabModel |
|
765 | 1973 |
"returns a value holder which keeps the label of the current section in the notebook" |
1974 |
||
109 | 1975 |
|holder| |
1976 |
||
1977 |
(holder := builder bindingAt:#tabModel) isNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1978 |
holder := AspectAdaptor new subject:self; forAspect:#tabSelection. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1979 |
builder aspectAt:#tabModel put:holder. |
109 | 1980 |
]. |
1981 |
^ holder |
|
222 | 1982 |
! |
1983 |
||
1984 |
treeView |
|
765 | 1985 |
"returns the tree view which holds all widget" |
1986 |
||
222 | 1987 |
^ treeView |
729 | 1988 |
! |
1989 |
||
1990 |
valueOfCanPasteWithKeepingLayout |
|
1991 |
||
1992 |
|holder| |
|
1993 |
(holder := builder bindingAt:#valueOfCanPasteWithKeepingLayout) isNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
1994 |
builder aspectAt:#valueOfCanPasteWithKeepingLayout put:(holder := false asValue). |
729 | 1995 |
]. |
1996 |
^ holder |
|
1997 |
||
1998 |
||
1999 |
||
60 | 2000 |
! ! |
2001 |
||
587
dd545d089d95
Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents:
572
diff
changeset
|
2002 |
!UIPainter methodsFor:'building editors'! |
513 | 2003 |
|
2004 |
openDataSetColumnEditor |
|
765 | 2005 |
"opens a Table Column Editor on current widget" |
2006 |
||
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2007 |
|cls editor specTool columnHolder tableSelector columns| |
824
1d5adf147721
change mechanism for opening the dataset builder (step 2)
tz
parents:
819
diff
changeset
|
2008 |
|
1d5adf147721
change mechanism for opening the dataset builder (step 2)
tz
parents:
819
diff
changeset
|
2009 |
(cls := self resolveName:specClass) isNil ifTrue:[ |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2010 |
self askForSaving ifTrue:[cls := self resolveName:specClass]. |
1103
ecc91379704b
accept before opening an editor
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
2011 |
]. |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2012 |
cls isNil ifTrue:[^ self]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2013 |
|
1103
ecc91379704b
accept before opening an editor
Claus Gittinger <cg@exept.de>
parents:
1071
diff
changeset
|
2014 |
self modifiedChannel value ifTrue:[ |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2015 |
(self confirm:'Accept changes made to spec ?') ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2016 |
self accept |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2017 |
] |
513 | 2018 |
]. |
743 | 2019 |
|
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2020 |
editor := DataSetBuilder new. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2021 |
specTool := self specTool. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2022 |
|
513 | 2023 |
editor masterApplication:self. |
824
1d5adf147721
change mechanism for opening the dataset builder (step 2)
tz
parents:
819
diff
changeset
|
2024 |
editor specClass: cls. |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2025 |
editor rowClassName:(specTool specification rowClassName). |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2026 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2027 |
columnHolder := specTool aspectFor:#columnHolder. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2028 |
tableSelector := columnHolder value. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2029 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2030 |
tableSelector := tableSelector size ~~ 0 ifTrue:[tableSelector asSymbol] |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2031 |
ifFalse:[nil]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2032 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2033 |
(tableSelector notNil and:[cls class implements:tableSelector]) ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2034 |
editor openModalOnClass:cls andSelector:tableSelector |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2035 |
] ifFalse:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2036 |
columns := specTool specification columns. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2037 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2038 |
columns size ~~ 0 ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2039 |
editor openModalOnResourceSpec:columns |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2040 |
] ifFalse:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2041 |
editor openModal |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2042 |
] |
827
aa8f49da0f22
change mechanism for opening the dataset builder (step 3)
tz
parents:
824
diff
changeset
|
2043 |
]. |
aa8f49da0f22
change mechanism for opening the dataset builder (step 3)
tz
parents:
824
diff
changeset
|
2044 |
|
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2045 |
editor hasSaved ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2046 |
specTool specification columns:nil. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2047 |
specTool specification rowClassName:(editor rowClassName). |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2048 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2049 |
tableSelector = editor specSelector ifFalse:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2050 |
columnHolder value:(editor specSelector). |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2051 |
self accept. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2052 |
]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2053 |
^ self |
827
aa8f49da0f22
change mechanism for opening the dataset builder (step 3)
tz
parents:
824
diff
changeset
|
2054 |
]. |
aa8f49da0f22
change mechanism for opening the dataset builder (step 3)
tz
parents:
824
diff
changeset
|
2055 |
|
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2056 |
(editor modified and:[tableSelector isNil]) ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2057 |
specTool specification columns:(editor columns). |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2058 |
specTool specification rowClassName:(editor rowClassName). |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2059 |
self modifiedChannel value:true. |
827
aa8f49da0f22
change mechanism for opening the dataset builder (step 3)
tz
parents:
824
diff
changeset
|
2060 |
]. |
513 | 2061 |
! |
2062 |
||
2063 |
openEditMenu |
|
765 | 2064 |
"opens a Menu Editor on current widget" |
2065 |
||
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2066 |
|cls selectorOrMenu editor selectedSpec spec holder| |
513 | 2067 |
|
765 | 2068 |
(cls := self resolveName:specClass) isNil ifTrue:[ |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2069 |
self askForSaving ifTrue:[cls := self resolveName:specClass]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2070 |
]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2071 |
cls isNil ifTrue:[^ self]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2072 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2073 |
self modifiedChannel value ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2074 |
(self confirm:'Accept changes made to spec ?') ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2075 |
self accept |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2076 |
] |
513 | 2077 |
]. |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2078 |
spec := self specTool specification. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2079 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2080 |
(selectorOrMenu := spec menuSelector) notNil ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2081 |
selectorOrMenu := selectorOrMenu asSymbol |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2082 |
] ifFalse:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2083 |
"/ cg: q&d hack ... |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2084 |
selectorOrMenu := nil. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2085 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2086 |
(selectedSpec := treeView propertySelected) notNil ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2087 |
Object errorSignal handle:[:ex | |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2088 |
selectorOrMenu := nil. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2089 |
] do:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2090 |
selectorOrMenu := selectedSpec view asMenu. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2091 |
] |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2092 |
]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2093 |
]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2094 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2095 |
editor := MenuEditor new. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2096 |
editor masterApplication:self. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2097 |
editor specClass: cls. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2098 |
editor useHelpTool: self helpTool. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2099 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2100 |
selectorOrMenu class ~~ Menu |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2101 |
ifTrue: [editor openModalOnClass:cls andSelector:selectorOrMenu] |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2102 |
ifFalse: [editor openModalOnMenu:selectorOrMenu]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2103 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2104 |
self helpTool updateList. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2105 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2106 |
editor hasSaved ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2107 |
holder := self specTool aspectFor:#menuSelector. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2108 |
holder value:(editor specSelector). |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2109 |
self accept. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2110 |
^ self |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2111 |
]. |
513 | 2112 |
! |
2113 |
||
2114 |
openHierarchicalListEditor |
|
765 | 2115 |
"opens a Hierarchical List Editor on current widget" |
2116 |
||
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2117 |
|selector editor spec| |
765 | 2118 |
|
2119 |
(self resolveName:specClass) isNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2120 |
self askForSaving ifFalse: [^self] |
513 | 2121 |
]. |
2122 |
||
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2123 |
spec := self specTool specification. |
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2124 |
(selector := spec hierarchicalList) notNil ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2125 |
selector := selector asSymbol |
513 | 2126 |
]. |
735
29c8681ce68d
no picking for hierarchical lists + error handler for the starting phase
tz
parents:
729
diff
changeset
|
2127 |
|
513 | 2128 |
editor := HierarchicalListEditor new. |
2129 |
editor masterApplication:self. |
|
765 | 2130 |
editor openModalOnClass:specClass andSelector:selector. |
2131 |
||
2132 |
editor specSelector ~= selector ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2133 |
editor hasSaved ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2134 |
spec hierarchicalList:editor specSelector. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2135 |
self modifiedChannel value:true. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2136 |
self accept |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2137 |
] |
513 | 2138 |
] |
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2139 |
|
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2140 |
"Modified: / 16.7.1998 / 18:15:46 / cg" |
513 | 2141 |
! |
2142 |
||
729 | 2143 |
openSubSpecGUIPainter |
609
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2144 |
"opens a GUI Painter on the current subspecification" |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2145 |
|
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2146 |
|spec cls meta sel| |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2147 |
|
913
12e73e6c57b4
do open building editors after defining first new app class
tz
parents:
892
diff
changeset
|
2148 |
(self resolveName:specClass) isNil ifTrue:[ |
1523 | 2149 |
self askForSaving ifFalse: [^self] |
913
12e73e6c57b4
do open building editors after defining first new app class
tz
parents:
892
diff
changeset
|
2150 |
]. |
12e73e6c57b4
do open building editors after defining first new app class
tz
parents:
892
diff
changeset
|
2151 |
|
609
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2152 |
spec := self specTool specification. |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2153 |
cls := spec majorKey. |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2154 |
cls isNil ifTrue:[ |
1523 | 2155 |
cls := specClass. |
609
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2156 |
]. |
913
12e73e6c57b4
do open building editors after defining first new app class
tz
parents:
892
diff
changeset
|
2157 |
(cls := self resolveName:cls inClass:(Smalltalk at: specClass asSymbol)) isNil ifTrue:[ |
1523 | 2158 |
spec majorKey isNil ifTrue:[ |
2159 |
^ self warn:'Cannot find class (no majorKey specified).'. |
|
2160 |
]. |
|
2161 |
^ self warn:('Cannot find class ', spec majorKey asBoldText, '.'). |
|
609
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2162 |
]. |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2163 |
sel := spec minorKey. |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2164 |
meta := cls class whichClassIncludesSelector:sel. |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2165 |
meta isNil ifTrue:[ |
1523 | 2166 |
^ self warn:'Cannot find selector #', (sel ? '') asBoldText, ' in class ', cls name asBoldText, '!!' |
609
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2167 |
]. |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2168 |
|
1523 | 2169 |
self class |
2170 |
openOnClass:meta soleInstance |
|
2171 |
andSelector:spec minorKey. |
|
2172 |
||
2173 |
"Modified: / 5.11.2001 / 16:51:46 / cg" |
|
609
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2174 |
! |
60f89fba074a
Allow opening of a GUI Painter for a subSpecification.
Stefan Vogel <sv@exept.de>
parents:
587
diff
changeset
|
2175 |
|
743 | 2176 |
openTabListEditor |
765 | 2177 |
"opens a Tab List Editor on current widget" |
2178 |
||
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2179 |
|selector editor spec cls holder| |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2180 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2181 |
(cls := self resolveName:specClass) isNil ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2182 |
self askForSaving ifTrue:[cls := self resolveName:specClass]. |
513 | 2183 |
]. |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2184 |
cls isNil ifTrue:[^ self]. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2185 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2186 |
self modifiedChannel value ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2187 |
(self confirm:'Accept changes made to spec ?') ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2188 |
self accept |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2189 |
] |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2190 |
]. |
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2191 |
spec := self specTool specification. |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2192 |
|
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2193 |
(selector := spec listSelector) isArray |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2194 |
ifTrue: [^self warn: 'Cannot open the Tab List Editor on an array!!']. |
743 | 2195 |
|
2196 |
editor := TabListEditor new. |
|
513 | 2197 |
editor masterApplication:self. |
1453
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2198 |
editor openModalOnClass:cls andSelector:selector. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2199 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2200 |
editor hasSaved ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2201 |
holder := self specTool aspectFor:#listSelector. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2202 |
|
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2203 |
holder value ~= editor specSelector ifTrue:[ |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2204 |
holder value:editor specSelector. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2205 |
self accept. |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2206 |
] |
0cf534cc29a9
bugfix when after close subtool (table menu ..) when reading selector
ca
parents:
1444
diff
changeset
|
2207 |
]. |
513 | 2208 |
! ! |
2209 |
||
109 | 2210 |
!UIPainter methodsFor:'change & update'! |
2211 |
||
222 | 2212 |
layoutChanged |
282 | 2213 |
"called by the painter/canvas whenever the layout of the current selected |
765 | 2214 |
widget has changed" |
2215 |
||
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2216 |
self isModified ifFalse:[ |
1188 | 2217 |
self layoutTool update. |
2218 |
self clearModifiedFlag |
|
222 | 2219 |
] |
2220 |
! |
|
2221 |
||
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2222 |
propertyChanged |
282 | 2223 |
"called by the painter/canvas whenever the property of the current selected |
765 | 2224 |
widget has changed" |
2225 |
||
1071 | 2226 |
|property spec| |
765 | 2227 |
|
2228 |
(property := treeView propertySelected) notNil ifTrue:[ |
|
1188 | 2229 |
spec := property spec copy. |
2230 |
self specTool specification:spec. |
|
2231 |
self setViewInLayoutTool:(property view) spec:spec. |
|
2232 |
self clearModifiedFlag |
|
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2233 |
] ifFalse:[ |
1188 | 2234 |
self layoutTool layoutView notNil ifTrue:[ |
2235 |
self clearModifiedFlag. |
|
2236 |
self treeSelection |
|
2237 |
] |
|
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2238 |
] |
222 | 2239 |
! |
2240 |
||
2241 |
update:something with:aParameter from:someObject |
|
765 | 2242 |
"catches change notifications" |
2243 |
||
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2244 |
|window| |
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2245 |
|
222 | 2246 |
someObject == treeView model ifTrue:[ |
1186 | 2247 |
(something == #selection |
2248 |
or:[something == #selectionIndex]) ifTrue:[self treeSelection]. |
|
222 | 2249 |
^ self |
173 | 2250 |
]. |
2251 |
||
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2252 |
someObject == self galleryShown ifTrue:[ |
1186 | 2253 |
"/ galleryShown toggle changed |
2254 |
window := selectionPanel window. |
|
2255 |
(someObject value) ifTrue:[ |
|
2256 |
self raiseUIView:window |
|
2257 |
] ifFalse:[ |
|
2258 |
self hideUIView:window |
|
2259 |
]. |
|
173 | 2260 |
^ self |
2261 |
]. |
|
2262 |
||
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2263 |
someObject == self painterShown ifTrue:[ |
1186 | 2264 |
"/ canvasShown toggle changed |
2265 |
window := self painter topView. |
|
2266 |
(someObject value) ifTrue:[ |
|
2267 |
self raiseUIView:window |
|
2268 |
] ifFalse:[ |
|
2269 |
self hideUIView:window |
|
2270 |
]. |
|
173 | 2271 |
^ self |
2272 |
]. |
|
2273 |
||
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2274 |
"Modified: / 16.7.1998 / 19:09:57 / cg" |
884 | 2275 |
! |
2276 |
||
2277 |
updateChannels |
|
2278 |
"updates the channels" |
|
2279 |
||
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2280 |
|canCutOrCopy canPaste clipboard sel treeSelection| |
884 | 2281 |
|
2282 |
self canMoveOrAlignSelection value:(treeView canMoveOrAlignSelection). |
|
1230
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2283 |
self canExchangeSelectionLayouts value:(treeView canExchangeSelectionLayouts). |
884 | 2284 |
self canChangeOrderInContainer value:(treeView canChangeOrderInContainer). |
2285 |
self canMoveSelectionIntoContainer value:(treeView canMoveSelectionIntoContainer). |
|
2286 |
self canMoveSelectionOutOfContainer value:(treeView canMoveSelectionOutOfContainer). |
|
2287 |
self hasOneSelectionOtherThanCanvas value:(treeView hasOneSelectionOtherThanCanvas). |
|
2288 |
||
2289 |
treeView notNil |
|
2290 |
ifTrue: |
|
2291 |
[ |
|
1230
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2292 |
treeSelection := treeView selection. |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2293 |
"/ the top-node cannot be cut, copied or pasted. |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2294 |
canCutOrCopy := treeSelection size >= 1 and:[treeSelection first ~~ 1]. |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2295 |
clipboard := self getSelection. |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2296 |
|
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2297 |
clipboard isCollection ifTrue:[clipboard notEmpty ifTrue:[sel := clipboard first]] |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2298 |
ifFalse:[sel := clipboard]. |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2299 |
|
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2300 |
canPaste := (sel isKindOf:UISpecification) and: |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2301 |
[treeSelection size = 1 |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2302 |
and:[treeSelection first == 1 |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
2303 |
or: [self canPasteInto: treeView selectedNode contents view]]] |
884 | 2304 |
]. |
2305 |
||
2306 |
self valueOfCanCut value: canCutOrCopy. |
|
2307 |
self valueOfCanCopy value: canCutOrCopy. |
|
2308 |
self valueOfCanPaste value: canPaste. |
|
2309 |
self valueOfCanPasteWithKeepingLayout value: (canPaste "& self canKeepLayoutInSelection"). |
|
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2310 |
|
1063
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
2311 |
"/ self modifiedChannel value: false. |
9e710dbc7c92
inputFields use modified & acceptChannels
Claus Gittinger <cg@exept.de>
parents:
1059
diff
changeset
|
2312 |
|
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
2313 |
"Modified: / 16.7.1998 / 19:13:30 / cg" |
109 | 2314 |
! ! |
2315 |
||
952 | 2316 |
!UIPainter methodsFor:'defaults'! |
2317 |
||
2318 |
aboutImage |
|
2319 |
"the image to be displayed in my about-box; |
|
2320 |
If nil is returned, thhe ST/X default image is used." |
|
2321 |
||
2322 |
^ Image fromFile:'bitmaps/xpmBitmaps/misc_tools/setup_windows.xpm' |
|
2323 |
||
2324 |
"Created: / 13.8.1998 / 20:33:05 / cg" |
|
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2325 |
! |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2326 |
|
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2327 |
defaultWindowSpecClass |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2328 |
^ WindowSpec |
952 | 2329 |
! ! |
2330 |
||
109 | 2331 |
!UIPainter methodsFor:'event handling'! |
2332 |
||
2333 |
doesNotUnderstand:aMessage |
|
765 | 2334 |
"if does not understand incoming messages, detour them to painter" |
282 | 2335 |
|
2336 |
|painter| |
|
2337 |
||
2338 |
painter := self painter. |
|
2339 |
||
2340 |
(painter respondsTo:(aMessage selector)) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2341 |
^ aMessage sendTo:painter |
282 | 2342 |
]. |
2343 |
super doesNotUnderstand:aMessage |
|
2344 |
||
2345 |
! ! |
|
2346 |
||
547 | 2347 |
!UIPainter methodsFor:'help'! |
2348 |
||
572 | 2349 |
defaultInfoLabel |
765 | 2350 |
"returns the default info label" |
572 | 2351 |
|
743 | 2352 |
specClass isNil ifTrue: [^'No class and selector defined.']. |
877 | 2353 |
specSelector isNil ifTrue: [^'No selector defined.']. |
572 | 2354 |
^specClass printString, ' >> ', specSelector |
877 | 2355 |
|
2356 |
"Modified: / 20.6.1998 / 16:49:16 / cg" |
|
297 | 2357 |
! ! |
2358 |
||
1521
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
2359 |
!UIPainter methodsFor:'menus - dynamic'! |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
2360 |
|
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
2361 |
menuEdit |
1528 | 2362 |
^ [ |
2363 |
|m i| |
|
2364 |
||
2365 |
m := self class menuEdit. |
|
2366 |
m := m decodeAsLiteralArray. |
|
2367 |
i := m detectItem:[:item | item nameKey == #undo] ifNone:nil. |
|
2368 |
i notNil ifTrue:[ |
|
2369 |
i label:(i label , ' (' , self painter undoHistory labelOfLastUndo , ')') |
|
2370 |
]. |
|
1540
dda0bf556ebc
findGuiResources... now sets the receiver, if not yet set
Claus Gittinger <cg@exept.de>
parents:
1528
diff
changeset
|
2371 |
"/ m receiver:self. -- now done in findGuiResources ... |
1528 | 2372 |
m findGuiResourcesIn:self. |
2373 |
m |
|
2374 |
]. |
|
1521
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
2375 |
! ! |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
2376 |
|
109 | 2377 |
!UIPainter methodsFor:'private'! |
2378 |
||
729 | 2379 |
askForModification |
765 | 2380 |
"asks for window spec modification" |
2381 |
||
1341 | 2382 |
|painter| |
2383 |
||
2384 |
painter := self painter. |
|
2385 |
||
765 | 2386 |
self askForSectionModification. |
729 | 2387 |
|
1341 | 2388 |
|
2389 |
(modified or: [painter isModified or: [self helpTool modified]]) |
|
2390 |
ifTrue:[ |
|
2391 |
((YesNoBox title:(resources string:'Window Spec was modified !!')) |
|
2392 |
noText:(resources string:'Cancel'); |
|
2393 |
yesText:(resources string:'Forget it and proceed'); |
|
2394 |
showAtPointer; |
|
2395 |
accepted) ifFalse: [^false]. |
|
2396 |
modified := false. |
|
2397 |
painter resetModification |
|
729 | 2398 |
]. |
2399 |
^true |
|
838
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
2400 |
|
0ac5a26498c1
help texts & national strings
Claus Gittinger <cg@exept.de>
parents:
827
diff
changeset
|
2401 |
"Modified: / 20.5.1998 / 02:03:16 / cg" |
729 | 2402 |
! |
2403 |
||
808 | 2404 |
askForSaving |
2405 |
"asks for defining an application class" |
|
2406 |
||
2407 |
self askForSectionModification. |
|
2408 |
||
2409 |
((YesNoBox title:'No application class defined yet!!') |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2410 |
noText:'Cancel'; |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2411 |
yesText:'Define'; |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2412 |
showAtPointer; |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2413 |
accepted) ifFalse: [^false]. |
808 | 2414 |
|
2415 |
self doSave. |
|
2416 |
||
2417 |
^true |
|
2418 |
! |
|
2419 |
||
765 | 2420 |
askForSectionModification |
2421 |
"asks for section modification in the notebook" |
|
2422 |
||
2423 |
self isModified ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2424 |
(self confirm:'Accept modifications in section ' , tabSelection printString asBoldText, '?') ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2425 |
self accept |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2426 |
] ifFalse: [ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2427 |
self cancel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2428 |
] |
765 | 2429 |
] |
2430 |
! |
|
2431 |
||
743 | 2432 |
checkClassAndSelector |
765 | 2433 |
"checks for class & superclass" |
743 | 2434 |
|
1211 | 2435 |
|superclass cls| |
743 | 2436 |
|
2437 |
specClass isNil ifTrue:[^ false]. |
|
2438 |
||
2439 |
cls := self resolveName:specClass. |
|
2440 |
||
2441 |
cls isNil ifTrue:[ |
|
1186 | 2442 |
superclass := self resolveName:specSuperclass. |
2443 |
||
2444 |
superclass isNil ifTrue:[ |
|
2445 |
self warn:'No class named ' , specSuperclass , ' exists!!'. |
|
2446 |
^ false. |
|
2447 |
]. |
|
2448 |
||
2449 |
(self confirm:'Create class ' , specClass asBoldText, '?') ifTrue:[ |
|
2450 |
cls := superclass |
|
2451 |
subclass:(specClass asSymbol) |
|
2452 |
instanceVariableNames:'' |
|
2453 |
classVariableNames:'' |
|
2454 |
poolDictionaries:'' |
|
2455 |
category:'Applications'. |
|
2456 |
||
2457 |
cls name ~= specClass ifTrue:[ |
|
2458 |
self information:'Created new class is ' , cls name. |
|
2459 |
specClass := cls name |
|
2460 |
]. |
|
2461 |
^ true. |
|
2462 |
]. |
|
2463 |
^ false. |
|
743 | 2464 |
]. |
2465 |
cls isBehavior ifFalse:[ |
|
1186 | 2466 |
self warn:'A global named ' , specClass , ' exists, but it is no class.'. |
2467 |
^ false. |
|
743 | 2468 |
]. |
2469 |
||
2470 |
specSuperclass isBehavior ifFalse:[ |
|
1186 | 2471 |
specSuperclass isEmpty ifFalse:[ |
2472 |
superclass := self resolveName:specSuperclass |
|
2473 |
] ifTrue:[ |
|
2474 |
specSuperclass := nil. |
|
2475 |
] |
|
743 | 2476 |
] ifTrue:[ |
1186 | 2477 |
superclass := specSuperclass |
743 | 2478 |
]. |
2479 |
||
2480 |
specSuperclass notNil ifTrue:[ |
|
1186 | 2481 |
superclass isNil ifTrue:[ |
2482 |
self warn:'No class named ' , specSuperclass , ' exists!!'. |
|
2483 |
^ false. |
|
2484 |
]. |
|
2485 |
||
2486 |
(cls isSubclassOf:superclass) ifFalse:[ |
|
2487 |
self information:('A global named ' , specClass , ' exists,\' , |
|
2488 |
'but is not a subclass of ' , superclass name , '.\\' , |
|
2489 |
'Check and try again if that is not what you want.') withCRs. |
|
2490 |
] |
|
743 | 2491 |
]. |
2492 |
||
2493 |
superclass isNil ifTrue:[ |
|
1186 | 2494 |
cls notNil ifTrue:[ |
2495 |
specSuperclass := cls superclass name |
|
2496 |
] |
|
743 | 2497 |
]. |
2498 |
||
2499 |
^ true |
|
2500 |
||
2501 |
"Modified: 12.8.1997 / 23:39:10 / cg" |
|
2502 |
! |
|
2503 |
||
173 | 2504 |
hideUIView:aView |
765 | 2505 |
"hides the view which is an application or top view" |
2506 |
||
173 | 2507 |
aView beIndependent. |
2508 |
aView unmap. |
|
2509 |
! |
|
2510 |
||
287 | 2511 |
raiseTabView |
1316 | 2512 |
|appl| |
287 | 2513 |
|
2514 |
self isLayoutToolSelected ifTrue:[ |
|
1316 | 2515 |
helpTool window unmap. |
2516 |
specTool window unmap. |
|
2517 |
layoutTool window realize. |
|
287 | 2518 |
] ifFalse:[ |
1306 | 2519 |
self isHelpToolSelected ifTrue:[ |
1316 | 2520 |
layoutTool window unmap. |
2521 |
specTool window unmap. |
|
2522 |
helpTool window realize. |
|
1306 | 2523 |
] ifFalse:[ |
1316 | 2524 |
specTool selection:tabSelection. |
2525 |
helpTool window unmap. |
|
2526 |
layoutTool window unmap. |
|
2527 |
specTool window realize. |
|
2528 |
||
2529 |
"/ specTool selection:tabSelection. |
|
1306 | 2530 |
] |
287 | 2531 |
] |
1306 | 2532 |
|
173 | 2533 |
! |
2534 |
||
2535 |
raiseUIView:aView |
|
765 | 2536 |
"raise the view which is an application or top view" |
2537 |
||
1193
ada18c876301
partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents:
1192
diff
changeset
|
2538 |
aView remap. |
173 | 2539 |
aView bePartner. |
177
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2540 |
! |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2541 |
|
713 | 2542 |
resourceMessage: aString |
765 | 2543 |
"reads the specClass and the specSelector by evaluating aString" |
713 | 2544 |
|
729 | 2545 |
(aString notNil and: [self askForModification]) |
713 | 2546 |
ifTrue: |
2547 |
[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2548 |
|msg cls sel| |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2549 |
msg := aString asCollectionOfWords. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2550 |
(msg size == 2 and: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2551 |
[(cls := self resolveName:(msg at:1)) notNil]) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2552 |
ifTrue: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2553 |
[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2554 |
self specClass:cls. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2555 |
specSuperclass := cls superclass name. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2556 |
specSelector := (msg at: 2) asSymbol. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2557 |
^true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2558 |
] |
713 | 2559 |
]. |
2560 |
^false |
|
2561 |
! |
|
2562 |
||
177
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2563 |
setClass:cls selector:selector |
765 | 2564 |
"sets the specClass and the specSelector under which the window spec should be saved" |
2565 |
||
177
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2566 |
|clsName superClassName| |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2567 |
|
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2568 |
clsName := cls name. |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2569 |
superClassName := cls superclass name. |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2570 |
|
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2571 |
(self aspectFor:#classNameChannel) value:clsName. |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2572 |
(self aspectFor:#methodNameChannel) value:(selector ? ''). |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2573 |
(self aspectFor:#superclassNameChannel) value:superClassName. |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2574 |
|
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2575 |
self painter |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2576 |
className:clsName |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2577 |
superclassName:superClassName |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2578 |
selector:(selector ? ''). |
177
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2579 |
|
287 | 2580 |
self specClass:clsName. |
177
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2581 |
specSelector := (selector ? ''). |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2582 |
specSuperclass := superClassName. |
eefd69a52f5b
fixed setup of class/selector when picking/fetching via
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
2583 |
|
587
dd545d089d95
Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents:
572
diff
changeset
|
2584 |
specClass notNil & selector notNil ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2585 |
self addToHistory: (specClass, ' ', specSelector) -> #loadFromMessage:. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2586 |
self updateInfoLabel |
446 | 2587 |
]. |
587
dd545d089d95
Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents:
572
diff
changeset
|
2588 |
|
dd545d089d95
Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents:
572
diff
changeset
|
2589 |
"Modified: / 5.2.1998 / 09:44:58 / stefan" |
282 | 2590 |
! |
2591 |
||
1071 | 2592 |
setViewInLayoutTool:aView spec:aSpec |
765 | 2593 |
"sets view for layout tool" |
2594 |
||
287 | 2595 |
|type| |
2596 |
||
2597 |
self painter topView == aView ifTrue:[ |
|
1186 | 2598 |
type := #Extent |
287 | 2599 |
]. |
1071 | 2600 |
self layoutTool layoutView:aView type:type spec:aSpec |
287 | 2601 |
|
2602 |
! |
|
2603 |
||
2604 |
specClass:aClass |
|
765 | 2605 |
"sets the specClass and updates the Help Tool" |
587
dd545d089d95
Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents:
572
diff
changeset
|
2606 |
|
dd545d089d95
Fix typos. Ensure that specClass is a string.
Stefan Vogel <sv@exept.de>
parents:
572
diff
changeset
|
2607 |
specClass := aClass isBehavior ifTrue:[aClass name] |
1188 | 2608 |
ifFalse:[aClass]. |
755 | 2609 |
|
2610 |
self helpTool buildFromClass:specClass. |
|
2611 |
self helpTool updateList. |
|
1188 | 2612 |
self clearModifiedFlag. |
755 | 2613 |
|
287 | 2614 |
! ! |
2615 |
||
2616 |
!UIPainter methodsFor:'private tools'! |
|
2617 |
||
2618 |
helpTool |
|
765 | 2619 |
"returns the help tool" |
2620 |
||
1316 | 2621 |
helpTool isNil ifTrue:[self noteBookView]. |
2622 |
^ helpTool |
|
287 | 2623 |
! |
2624 |
||
2625 |
layoutTool |
|
765 | 2626 |
"returns the layout tool" |
2627 |
||
1316 | 2628 |
layoutTool isNil ifTrue:[self noteBookView]. |
2629 |
^ layoutTool |
|
287 | 2630 |
! |
2631 |
||
2632 |
painter |
|
765 | 2633 |
"returns the canvas view" |
2634 |
||
287 | 2635 |
^ treeView canvas |
2636 |
! |
|
2637 |
||
2638 |
specTool |
|
765 | 2639 |
"returns the spec tool" |
2640 |
||
1316 | 2641 |
specTool isNil ifTrue:[self noteBookView]. |
2642 |
^ specTool |
|
109 | 2643 |
! ! |
2644 |
||
166 | 2645 |
!UIPainter methodsFor:'queries'! |
2646 |
||
217 | 2647 |
hasSpecClass |
765 | 2648 |
"answers whether an application class is defined" |
2649 |
||
328 | 2650 |
^ (self resolveName:specClass) notNil |
217 | 2651 |
! |
2652 |
||
2653 |
hasSpecClassAndSelector |
|
765 | 2654 |
"answers whether an application class and a selector under which |
2655 |
the window spec is stored is defined" |
|
2656 |
||
217 | 2657 |
specSelector size > 1 ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2658 |
^ self hasSpecClass |
217 | 2659 |
]. |
765 | 2660 |
^ false |
217 | 2661 |
! |
2662 |
||
166 | 2663 |
isHelpToolSelected |
765 | 2664 |
"answers whether the current selected section in the noteBook is the Help Tool" |
2665 |
||
287 | 2666 |
^ tabSelection = UIHelpTool label |
166 | 2667 |
! |
2668 |
||
2669 |
isLayoutToolSelected |
|
765 | 2670 |
"answers whether the current selected section in the noteBook is the Layout Tool" |
2671 |
||
287 | 2672 |
^ tabSelection = UILayoutTool label |
217 | 2673 |
! |
2674 |
||
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2675 |
isModified |
765 | 2676 |
"answers whether the current window spec or a layout is modified" |
2677 |
||
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2678 |
^ self modifiedChannel value |
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2679 |
! |
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2680 |
|
217 | 2681 |
isPainterEnabled |
765 | 2682 |
"answers whether I am running in test mode" |
2683 |
||
217 | 2684 |
^ self painter enabled |
166 | 2685 |
! ! |
2686 |
||
109 | 2687 |
!UIPainter methodsFor:'selection'! |
2688 |
||
2689 |
tabSelection |
|
765 | 2690 |
"returns the label of the current section in the notebook" |
2691 |
||
109 | 2692 |
^ tabSelection |
2693 |
! |
|
2694 |
||
2695 |
tabSelection:something |
|
765 | 2696 |
"called whenever the section of the notebook has changed" |
351 | 2697 |
|
2698 |
|whatToDo| |
|
2699 |
||
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2700 |
(something isNil or:[tabSelection = something]) ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2701 |
^ self |
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2702 |
]. |
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2703 |
|
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2704 |
self isModified ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2705 |
whatToDo := DialogBox |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2706 |
confirmWithCancel:'Accept modifications in section ' , tabSelection printString asBoldText, '?' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2707 |
labels:#('Cancel' 'Ignore' 'Accept') |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2708 |
default:3. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2709 |
whatToDo isNil ifTrue:[^self]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2710 |
whatToDo == true ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2711 |
self accept |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2712 |
] ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2713 |
self cancel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2714 |
] |
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2715 |
]. |
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2716 |
|
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2717 |
tabSelection := something. |
287 | 2718 |
self raiseTabView. |
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2719 |
self cancel. |
351 | 2720 |
|
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2721 |
! |
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2722 |
|
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2723 |
treeSelection |
765 | 2724 |
"called whenever the selection of the treeview has changed" |
2725 |
||
890 | 2726 |
|view list spec slices size property tabComponent| |
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2727 |
|
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2728 |
self isModified ifTrue:[ |
1188 | 2729 |
(self confirm:'Accept modifications in section ' , tabSelection printString asBoldText, '?') ifTrue:[ |
2730 |
self accept |
|
2731 |
] |
|
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2732 |
]. |
713 | 2733 |
|
281 | 2734 |
treeView isCanvasSelected ifTrue:[ |
1188 | 2735 |
spec := treeView canvasSpec. |
2736 |
view := self painter topView. |
|
282 | 2737 |
] ifFalse:[ |
1188 | 2738 |
(property := treeView propertySelected) notNil ifTrue:[ |
2739 |
treeView canResizeSelectedWidget ifTrue:[ |
|
2740 |
view := property view. |
|
2741 |
]. |
|
2742 |
spec := property spec copy. |
|
2743 |
] |
|
281 | 2744 |
]. |
282 | 2745 |
tabComponent := builder componentAt:#noteBook. |
1071 | 2746 |
self setViewInLayoutTool:view spec:spec. |
287 | 2747 |
self specTool specification:spec. |
282 | 2748 |
|
2749 |
spec notNil ifTrue:[ |
|
1188 | 2750 |
self helpTool helpKey:(spec activeHelpKey). |
2751 |
slices := spec class slices. |
|
2752 |
size := slices size. |
|
2753 |
||
2754 |
view notNil ifTrue:[ |
|
2755 |
self treeView isCanvasSelected |
|
2756 |
ifFalse: |
|
2757 |
[ |
|
2758 |
list := Array new:(size + 2). |
|
2759 |
list at:(size + 2) put:(UILayoutTool label). |
|
2760 |
] |
|
2761 |
ifTrue: |
|
2762 |
[ |
|
2763 |
list := Array new:(size + 1). |
|
2764 |
list at:(size + 1) put:(UILayoutTool label). |
|
2765 |
]. |
|
2766 |
] ifFalse:[ |
|
2767 |
list := Array new:(size + 1). |
|
2768 |
]. |
|
2769 |
||
2770 |
1 to:size do:[:i| list at:i put:((slices at:i) first asString)]. |
|
2771 |
self treeView isCanvasSelected ifFalse: [list at:(size + 1) put:(UIHelpTool label)]. |
|
2772 |
||
2773 |
self tabList value:list. |
|
2774 |
self showHelp:spec class name for:self. |
|
2775 |
tabComponent enabled:true. |
|
2776 |
||
2777 |
(tabSelection := tabComponent selection) isNil ifTrue:[ |
|
2778 |
tabComponent setSelection:(tabSelection := list first) |
|
2779 |
]. |
|
2780 |
self raiseTabView |
|
282 | 2781 |
] ifFalse:[ |
1188 | 2782 |
self helpTool helpKey:nil. |
2783 |
tabComponent enabled:false. |
|
2784 |
self defaultInfoLabel. |
|
272
99de6af43afa
confirm/cancel changes before switching a section or widget
ca
parents:
271
diff
changeset
|
2785 |
]. |
1188 | 2786 |
self clearModifiedFlag. |
713 | 2787 |
|
884 | 2788 |
self updateChannels |
60 | 2789 |
! ! |
2790 |
||
765 | 2791 |
!UIPainter methodsFor:'settings'! |
2792 |
||
924 | 2793 |
generateAspectsAsInstanceVariables |
2794 |
"if on, aspects are held as instance variables; |
|
2795 |
if off (the default), they are kept in the bindings dictionary. |
|
2796 |
" |
|
2797 |
^ UIPainterView generateAspectsAsInstanceVariables |
|
2798 |
||
2799 |
"Created: / 29.7.1998 / 11:17:59 / cg" |
|
2800 |
! |
|
2801 |
||
2802 |
generateAspectsAsInstanceVariables:aBoolean |
|
2803 |
"if on, aspects are held as instance variables; |
|
2804 |
if off (the default), they are kept in the bindings dictionary. |
|
2805 |
" |
|
2806 |
^ UIPainterView generateAspectsAsInstanceVariables:aBoolean |
|
2807 |
||
2808 |
"Created: / 29.7.1998 / 11:18:20 / cg" |
|
2809 |
! |
|
2810 |
||
765 | 2811 |
redefineAspectMethods |
2812 |
"redefine methods yes or no. If a method is defined in super class |
|
2813 |
should the message be reinstalled ? |
|
2814 |
" |
|
2815 |
^ UIPainterView redefineAspectMethods |
|
2816 |
||
2817 |
||
2818 |
! |
|
2819 |
||
2820 |
redefineAspectMethods:aBoolean |
|
2821 |
"redefine methods yes or no. If a method is defined in super class |
|
2822 |
should the message be reinstalled ? |
|
2823 |
" |
|
2824 |
UIPainterView redefineAspectMethods:aBoolean |
|
2825 |
||
2826 |
||
2827 |
! ! |
|
2828 |
||
109 | 2829 |
!UIPainter methodsFor:'startup / release'! |
2830 |
||
2831 |
closeRequest |
|
765 | 2832 |
"close request" |
713 | 2833 |
|
729 | 2834 |
self askForModification ifFalse:[^self]. |
133 | 2835 |
|
222 | 2836 |
treeView model removeDependent:self. |
2837 |
self painter release. |
|
60 | 2838 |
|
109 | 2839 |
selectionPanel notNil ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2840 |
selectionPanel masterApplication:nil. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2841 |
selectionPanel closeRequest |
109 | 2842 |
]. |
149 | 2843 |
selectionPanel := nil. |
222 | 2844 |
treeView := nil. |
149 | 2845 |
|
109 | 2846 |
super closeRequest. |
2847 |
||
2848 |
! |
|
2849 |
||
2850 |
closeRequestFor:aTopView |
|
765 | 2851 |
"handles a close request for a specific view" |
2852 |
||
173 | 2853 |
|topView| |
60 | 2854 |
|
765 | 2855 |
(topView := self window) == aTopView ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2856 |
super closeRequestFor:aTopView |
109 | 2857 |
] ifFalse:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2858 |
aTopView = selectionPanel window ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2859 |
self galleryShown value:false |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2860 |
] ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2861 |
aTopView == (self painter topView) ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2862 |
self painterShown value:false |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2863 |
] ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2864 |
aTopView closeRequest |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2865 |
] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2866 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2867 |
topView raise. |
109 | 2868 |
]. |
60 | 2869 |
! |
2870 |
||
1185 | 2871 |
loadFromMessage: aMessageString |
2872 |
"loads a window spec by evaluating aMessageString |
|
2873 |
(which is something like 'fooClass windowSpec')" |
|
2874 |
||
2875 |
|readStream aClass aSelector| |
|
2876 |
||
2877 |
((aMessageString size > 0) and: [self askForModification]) |
|
2878 |
ifTrue:[ |
|
2879 |
readStream := aMessageString readStream. |
|
2880 |
(aClass := Smalltalk at: (readStream upTo: $ ) asSymbol) notNil |
|
2881 |
ifTrue:[ |
|
2882 |
aSelector := readStream upToEnd asSymbol. |
|
2883 |
self setClass: aClass selector: aSelector. |
|
2884 |
(aClass respondsTo:aSelector) ifTrue:[ |
|
2885 |
self painter setupFromSpec:(aClass perform:aSelector) |
|
2886 |
] |
|
2887 |
] |
|
743 | 2888 |
] |
2889 |
! |
|
2890 |
||
345 | 2891 |
openInterface:aSymbol |
765 | 2892 |
"opens the interface on the selector aSymbol" |
2893 |
||
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2894 |
|cls painterView painter topView galleryWindow icon name| |
60 | 2895 |
|
729 | 2896 |
modified := false. |
2897 |
||
60 | 2898 |
aspects := IdentityDictionary new. |
2899 |
||
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2900 |
specClass notNil ifTrue:[ |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2901 |
specClass isBehavior ifTrue:[ |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2902 |
name := specClass nameWithoutPrefix. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2903 |
] ifFalse:[ |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2904 |
name := specClass printString string |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2905 |
] |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2906 |
]. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2907 |
|
60 | 2908 |
aspects at:#classNameChannel put:( |
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2909 |
(specClass notNil ifTrue:[specClass] |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2910 |
ifFalse:['NewApplication']) asValue |
60 | 2911 |
). |
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2912 |
|
60 | 2913 |
specSuperclass isNil ifTrue:[ |
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2914 |
specClass notNil ifTrue:[ |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2915 |
(cls := self resolveName:specClass) notNil ifTrue:[ |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2916 |
specSuperclass := cls superclass name. |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2917 |
] |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2918 |
] |
60 | 2919 |
]. |
2920 |
aspects at:#superclassNameChannel put:( |
|
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2921 |
(specSuperclass notNil ifTrue:[specSuperclass] |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2922 |
ifFalse:['ApplicationModel']) asValue |
60 | 2923 |
). |
157
ce974dce3dd4
enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents:
156
diff
changeset
|
2924 |
aspects at:#superclassNameDefaults put:#('ApplicationModel' 'SimpleDialog') asValue. |
60 | 2925 |
aspects at:#methodNameChannel put:( |
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2926 |
(specSelector notNil ifTrue:[specSelector asValue] |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2927 |
ifFalse:[#windowSpec]) asValue |
60 | 2928 |
). |
136 | 2929 |
|
1046 | 2930 |
"/ the canvas ... |
2931 |
||
222 | 2932 |
treeView := TreeView new. |
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2933 |
treeView windowSpecClass:(self defaultWindowSpecClass). |
136 | 2934 |
painterView := StandardSystemView new. |
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2935 |
|
1397 | 2936 |
name := name ? UIPainter defaultNameOfCanvas. |
2937 |
||
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2938 |
painterView name: name. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2939 |
painterView label: name. |
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
2940 |
painterView extent:(treeView windowSpecClass defaultExtentInUIPainter). "/ 300@300. |
136 | 2941 |
|
2942 |
painter := UIPainterView in:painterView. |
|
109 | 2943 |
painter layout:(0.0 @ 0.0 corner:1.0 @ 1.0) asLayout. |
136 | 2944 |
|
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
2945 |
treeView := treeView canvas:painter specName:name. |
222 | 2946 |
painter treeView:treeView. |
2947 |
treeView model addDependent:self. |
|
136 | 2948 |
|
765 | 2949 |
super openInterface:aSymbol. |
743 | 2950 |
|
136 | 2951 |
topView := self window. |
345 | 2952 |
topView label:'GUI Painter'. |
136 | 2953 |
|
785 | 2954 |
painterView openInGroup:(topView windowGroup). |
2955 |
painterView application:self. |
|
794 | 2956 |
|
1046 | 2957 |
"/ the selectionPanel ... |
2958 |
||
1461 | 2959 |
selectionPanel := self selectionPanelClass new. |
785 | 2960 |
selectionPanel allButOpenInterface:#windowSpec. |
1193
ada18c876301
partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents:
1192
diff
changeset
|
2961 |
(galleryWindow := selectionPanel window) openInGroup:(topView windowGroup). |
785 | 2962 |
selectionPanel openWindow. |
2963 |
selectionPanel masterApplication:self. |
|
2964 |
||
1273 | 2965 |
icon := Smalltalk imageFromFileNamed:'UIPainter.xbm' forClass:self class. |
785 | 2966 |
topView iconLabel:'GUI Painter'. |
1270
8e1a2c6db256
try my bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
1247
diff
changeset
|
2967 |
topView icon:icon. |
785 | 2968 |
|
1046 | 2969 |
painterView iconLabel:'GUI Canvas'. |
1270
8e1a2c6db256
try my bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
1247
diff
changeset
|
2970 |
painterView icon:icon. |
785 | 2971 |
|
2972 |
topView bePartner. |
|
2973 |
painterView bePartner. |
|
1193
ada18c876301
partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents:
1192
diff
changeset
|
2974 |
galleryWindow bePartner. |
ada18c876301
partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents:
1192
diff
changeset
|
2975 |
|
ada18c876301
partners must be remapped (at old position)
Claus Gittinger <cg@exept.de>
parents:
1192
diff
changeset
|
2976 |
galleryWindow iconLabel:'GUI Gallery'. |
1270
8e1a2c6db256
try my bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
1247
diff
changeset
|
2977 |
galleryWindow icon:icon. |
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2978 |
|
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2979 |
painterView topView raise. |
60 | 2980 |
! |
2981 |
||
109 | 2982 |
openOnClass:aClass |
765 | 2983 |
"opens the GUI Painter on aClass and #windowSpec" |
2984 |
||
109 | 2985 |
self openOnClass:aClass andSelector:#windowSpec |
2986 |
! |
|
2987 |
||
60 | 2988 |
openOnClass:aClass andSelector:aSelector |
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
2989 |
"opens the GUI Painter on aClass and aSelector |
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
2990 |
" |
157
ce974dce3dd4
enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents:
156
diff
changeset
|
2991 |
aClass isNil ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2992 |
(self confirm:'No class given to the GUI Painter (class was probably renamed?)\\Open anyway (to create a new window spec) ?' withCRs) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
2993 |
ifFalse:[^ nil]. |
157
ce974dce3dd4
enhanced class & method dialog
Claus Gittinger <cg@exept.de>
parents:
156
diff
changeset
|
2994 |
]. |
60 | 2995 |
|
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
2996 |
specSelector := aSelector. |
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
2997 |
specClass := aClass. |
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
2998 |
|
964
476235fbb312
setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents:
952
diff
changeset
|
2999 |
self openInterface. |
476235fbb312
setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents:
952
diff
changeset
|
3000 |
|
476235fbb312
setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents:
952
diff
changeset
|
3001 |
"/ specSelector := aSelector. |
476235fbb312
setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents:
952
diff
changeset
|
3002 |
"/ specClass := aClass. |
476235fbb312
setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents:
952
diff
changeset
|
3003 |
|
476235fbb312
setup class/selector, before opening the interface;
Claus Gittinger <cg@exept.de>
parents:
952
diff
changeset
|
3004 |
"Modified: / 21.8.1998 / 20:59:15 / cg" |
713 | 3005 |
! |
3006 |
||
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3007 |
postBuildWith: aBuilder |
765 | 3008 |
"sets the root of the tree view as first selection; |
3009 |
sets the grid parameters, if defined" |
|
713 | 3010 |
|
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3011 |
|painter settings gridPara hspace vspace cls sel| |
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3012 |
|
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3013 |
super postBuildWith:aBuilder. |
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3014 |
|
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3015 |
cls := specClass. |
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3016 |
cls isString ifTrue:[ |
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3017 |
cls := Smalltalk at:(cls string asSymbol) |
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3018 |
]. |
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3019 |
sel := specSelector. |
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3020 |
specSelector := nil. |
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3021 |
specClass := nil. |
785 | 3022 |
|
3023 |
painter := self painter. |
|
3024 |
settings := self class settings. |
|
3025 |
gridPara := painter gridParameters copy. |
|
1059 | 3026 |
hspace := settings at: #HGridSpace ifAbsent:10. |
3027 |
vspace := settings at: #VGridSpace ifAbsent:10. |
|
785 | 3028 |
gridPara at:1 put:hspace; at:2 put:vspace; at:5 put:hspace; at:6 put:vspace. |
3029 |
painter gridParameters:gridPara. |
|
1059 | 3030 |
painter gridShown: (settings at: #GridShown ifAbsent:false). |
3031 |
painter gridAlign: (settings at: #GridAlign ifAbsent:false). |
|
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3032 |
painter shown ifTrue:[painter clear]. |
743 | 3033 |
|
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3034 |
cls notNil ifTrue:[ |
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3035 |
self setClass:cls selector:sel. |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3036 |
|
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3037 |
(cls respondsTo:sel) ifTrue:[ |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3038 |
painter setupFromSpec:(cls perform:sel). |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3039 |
] |
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3040 |
]. |
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3041 |
|
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3042 |
"Modified: / 22.8.1998 / 17:41:34 / cg" |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3043 |
! |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3044 |
|
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3045 |
postOpenWith: aBuilder |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3046 |
"sets the initial selection" |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3047 |
|
1194 | 3048 |
|myWindow canvasWindow canvasOrg galleryWindow |
3049 |
galleryOrg myOrg myCorner| |
|
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3050 |
|
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3051 |
super postOpenWith: aBuilder. |
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3052 |
treeView selection: #(1). |
1247 | 3053 |
aBuilder keyboardProcessor menuBar:nil. |
798
c1116ba57e66
set window specification after realization of the window
ca
parents:
794
diff
changeset
|
3054 |
|
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3055 |
myWindow := self window. |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3056 |
canvasWindow := self painter topView. |
1456 | 3057 |
[selectionPanel isNil] whileTrue:[ |
3058 |
Delay waitForSeconds:0.1. |
|
3059 |
]. |
|
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3060 |
galleryWindow := selectionPanel window. |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3061 |
|
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3062 |
myOrg := myWindow origin. |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3063 |
myCorner := myWindow corner. |
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3064 |
|
1197
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3065 |
"/ try to lay out things non-overlapping |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3066 |
"/ but only, if the window manager placed all windows |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3067 |
"/ on top of each other |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3068 |
myOrg = canvasWindow origin ifTrue:[ |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3069 |
|
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3070 |
canvasOrg := 10@20. |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3071 |
"/ myOrg := (device width - myWindow width - 20) @ 20. |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3072 |
galleryOrg := (device width - galleryWindow width - 20) |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3073 |
@ |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3074 |
((myWindow height + 20) min:(device height - galleryWindow height - 20)). |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3075 |
myWindow origin:myOrg. |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3076 |
|
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3077 |
canvasWindow origin:canvasOrg. |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3078 |
galleryWindow origin:galleryOrg. |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3079 |
|
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3080 |
galleryWindow raise. |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3081 |
canvasWindow raise. |
ef91ed58b7d4
only move canvas & gallery, if windowManager placed windows
Claus Gittinger <cg@exept.de>
parents:
1195
diff
changeset
|
3082 |
]. |
1192
f3f5c92930c9
do painter setup in postBuild, selection in postOpen.
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
3083 |
|
1195 | 3084 |
"Modified: / 13.7.1999 / 21:26:52 / cg" |
1461 | 3085 |
! |
3086 |
||
3087 |
selectionPanelClass |
|
3088 |
^ UISelectionPanel |
|
60 | 3089 |
! ! |
3090 |
||
743 | 3091 |
!UIPainter methodsFor:'user actions'! |
446 | 3092 |
|
765 | 3093 |
accept |
3094 |
"accepts all modifications done to the attributes of the current section" |
|
3095 |
||
1071 | 3096 |
|painter layout spec layoutTool layoutView t| |
1068 | 3097 |
|
3098 |
self acceptChannel value:true; value:false. "/ force editFields to accept |
|
1188 | 3099 |
self clearModifiedFlag. |
788 | 3100 |
|
765 | 3101 |
painter := self painter. |
1071 | 3102 |
spec := self specTool specification. |
765 | 3103 |
|
3104 |
self isLayoutToolSelected ifTrue:[ |
|
1188 | 3105 |
layoutTool := self layoutTool. |
3106 |
||
3107 |
(layout := layoutTool layout) notNil ifTrue:[ |
|
3108 |
layoutTool layoutType == #Extent ifTrue:[ |
|
3109 |
layoutView := layoutTool layoutView. |
|
3110 |
||
3111 |
layoutView == painter topView ifTrue:[ |
|
3112 |
layoutView extent:layout |
|
3113 |
] ifFalse:[ |
|
3114 |
spec useDefaultExtent:(layoutTool aspectFor:#useDefaultExtent) value. |
|
3115 |
spec useDefaultExtent ifTrue:[ |
|
3116 |
"/ temporarily unfreeze the widgets size |
|
3117 |
"/ (but remember, the old setting, which is actually |
|
3118 |
"/ controlled by the resizeForLabel attribute) |
|
3119 |
t := layoutView sizeFixed. |
|
3120 |
layoutView sizeFixed:false. |
|
3121 |
layout := layoutView preferredExtent. |
|
3122 |
layoutView sizeFixed:t. |
|
3123 |
]. |
|
3124 |
painter setExtent:layout. |
|
3125 |
painter updateFromSpec:spec. |
|
3126 |
] |
|
3127 |
] ifFalse:[ |
|
1444
fec7424dccda
clear the useDefaultExtent flag, if the layout is NOT an extent
martin
parents:
1442
diff
changeset
|
3128 |
spec useDefaultExtent:false. |
1188 | 3129 |
painter setLayout:layout |
3130 |
] |
|
3131 |
] |
|
765 | 3132 |
] ifFalse:[ |
1188 | 3133 |
self isHelpToolSelected ifTrue:[ |
3134 |
self helpTool accept. |
|
3135 |
spec activeHelpKey:self helpTool helpKey. |
|
3136 |
]. |
|
3137 |
painter updateFromSpec:spec |
|
1071 | 3138 |
]. |
3139 |
||
3140 |
modified := false. |
|
765 | 3141 |
! |
3142 |
||
3143 |
addWidget: aSpecClass |
|
3144 |
"adds a widget from aSpecClass to the current widget" |
|
3145 |
||
3146 |
self addWidgetOfSpec: (Array with: (Smalltalk at: aSpecClass) new) |
|
3147 |
||
3148 |
! |
|
3149 |
||
3150 |
addWidgetOfSpec: aSpec |
|
3151 |
"adds a widget from aSpec to the current widget" |
|
3152 |
||
1521
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3153 |
|newSel| |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3154 |
|
765 | 3155 |
(newSel := self pasteSpecifications:aSpec keepLayout:false at:0@0) notNil |
3156 |
ifTrue: |
|
3157 |
[ |
|
1521
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3158 |
self select: newSel |
765 | 3159 |
] |
3160 |
ifFalse: |
|
3161 |
[ |
|
1521
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3162 |
((treeView selection size = 0) or: [treeView selectedNode isNil]) |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3163 |
ifTrue: |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3164 |
[ |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3165 |
treeView selection: #(1). |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3166 |
] |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3167 |
ifFalse: |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3168 |
[ |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3169 |
treeView selectNode: (treeView detectNode: [:n| n = treeView selectedNode parent]) |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3170 |
]. |
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3171 |
self addWidgetOfSpec: aSpec |
765 | 3172 |
] |
3173 |
||
1521
2efd2b9419c4
undo: show type of undo in menu;
Claus Gittinger <cg@exept.de>
parents:
1499
diff
changeset
|
3174 |
"Modified: / 30.10.2001 / 13:22:25 / cg" |
765 | 3175 |
! |
3176 |
||
3177 |
cancel |
|
3178 |
"cancels all modifications done to the attributes of the current section; |
|
3179 |
reread the old attributes" |
|
3180 |
||
3181 |
|spec key view| |
|
3182 |
||
3183 |
self isModified ifTrue:[ |
|
1188 | 3184 |
(spec := self painter specForSelection) notNil ifTrue:[ |
3185 |
key := spec activeHelpKey. |
|
3186 |
]. |
|
3187 |
self helpTool helpKey:key. |
|
3188 |
||
3189 |
treeView isCanvasSelected ifTrue: [ |
|
3190 |
spec := treeView canvasSpec. |
|
3191 |
]. |
|
3192 |
self specTool specification:spec. |
|
3193 |
view := self layoutTool layoutView. |
|
3194 |
||
3195 |
self setViewInLayoutTool:view spec:spec. |
|
3196 |
spec class == DataSetSpec ifTrue:[ |
|
3197 |
view notNil ifTrue:[ |
|
3198 |
view columnDescriptors:(spec columns) |
|
3199 |
] |
|
3200 |
]. |
|
3201 |
self clearModifiedFlag. |
|
3202 |
modified := false |
|
765 | 3203 |
] |
3204 |
! |
|
3205 |
||
446 | 3206 |
doBrowseAspectMethods |
765 | 3207 |
"opens a browser on the aspect methods" |
3208 |
||
3209 |
|methods| |
|
446 | 3210 |
|
3211 |
self painter isModified ifTrue:[ |
|
1392
f6f7a70c5d41
browserClass from preferences
Claus Gittinger <cg@exept.de>
parents:
1391
diff
changeset
|
3212 |
self warn:'The current window spec has not yet been saved!!\\The System Browser may show the code of the old aspect methods.' withCRs. |
446 | 3213 |
]. |
765 | 3214 |
|
3215 |
(methods := self painter aspectMethods) isEmpty ifTrue:[ |
|
1392
f6f7a70c5d41
browserClass from preferences
Claus Gittinger <cg@exept.de>
parents:
1391
diff
changeset
|
3216 |
self warn:'No aspect methods found!!'. |
f6f7a70c5d41
browserClass from preferences
Claus Gittinger <cg@exept.de>
parents:
1391
diff
changeset
|
3217 |
^ self. |
446 | 3218 |
]. |
1487 | 3219 |
UserPreferences systemBrowserClass browseMethods:methods title:'Aspect methods'. |
446 | 3220 |
! |
3221 |
||
713 | 3222 |
doBrowseClass |
765 | 3223 |
"opens a System Browser on the specClass" |
713 | 3224 |
|
3225 |
self painter isModified ifTrue:[ |
|
1392
f6f7a70c5d41
browserClass from preferences
Claus Gittinger <cg@exept.de>
parents:
1391
diff
changeset
|
3226 |
self warn:'The current window spec has not yet been saved!!\\The System Browser will show the code of the old window spec.' withCRs. |
713 | 3227 |
]. |
765 | 3228 |
|
1487 | 3229 |
UserPreferences systemBrowserClass openInClass:(self resolveName:specClass) |
743 | 3230 |
! |
3231 |
||
755 | 3232 |
doDefineClassAndSelector |
765 | 3233 |
"launches a dialog for defining class, superclass, and selector of the application" |
755 | 3234 |
|
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3235 |
|again tmp helpDict helpKey helpTool| |
755 | 3236 |
|
3237 |
[ |
|
1188 | 3238 |
again := false. |
3239 |
||
3240 |
(tmp := specClass) isNil ifTrue:[tmp := 'NewApplication']. |
|
3241 |
aspects at:#classNameChannel put:tmp asValue. |
|
3242 |
||
3243 |
(tmp := specSelector) isNil ifTrue:[tmp := 'windowSpec']. |
|
3244 |
aspects at:#methodNameChannel put:tmp asValue. |
|
3245 |
||
3246 |
(tmp := specSuperclass) isNil ifTrue:[tmp := 'ApplicationModel']. |
|
3247 |
aspects at:#superclassNameChannel put:tmp asValue. |
|
3248 |
||
3249 |
(self openDialogInterface:#dialogSpecForDefiningClassAndSelector) ifTrue:[ |
|
3250 |
||
3251 |
specClass := (self aspectFor:#classNameChannel) value. |
|
3252 |
specSelector := (self aspectFor:#methodNameChannel) value. |
|
3253 |
specSelector notNil ifTrue:[specSelector := specSelector asSymbol]. |
|
3254 |
specSuperclass := (self aspectFor:#superclassNameChannel) value. |
|
3255 |
||
3256 |
(again := self checkClassAndSelector not) ifFalse:[ |
|
3257 |
self painter className:specClass |
|
3258 |
superclassName:specSuperclass |
|
3259 |
selector:specSelector. |
|
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3260 |
]. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3261 |
|
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3262 |
again ifFalse:[ |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3263 |
((Smalltalk at:specClass asSymbol) notNil |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3264 |
and:[ (Smalltalk at:specClass asSymbol) class implements:specSelector ]) |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3265 |
ifTrue:[ |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3266 |
(self confirm:('%1 already implements %2. Overwrite ?' bindWith:specClass with:specSelector)) |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3267 |
ifFalse:[ |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3268 |
again := true. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3269 |
]. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3270 |
]. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3271 |
]. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3272 |
] ifFalse: [ |
1188 | 3273 |
^nil |
3274 |
] |
|
755 | 3275 |
|
3276 |
] doWhile:[again]. |
|
3277 |
||
3278 |
specClass := specClass isBehavior ifTrue:[specClass name] |
|
1188 | 3279 |
ifFalse:[specClass]. |
755 | 3280 |
|
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3281 |
helpTool := self helpTool. |
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3282 |
helpDict := helpTool dictionary. |
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3283 |
helpKey := helpTool helpKey. |
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3284 |
helpTool buildFromClass:specClass. |
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3285 |
helpTool dictionary declareAllFrom: helpDict. |
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3286 |
helpTool updateList. |
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3287 |
helpTool helpKey: helpKey. |
1188 | 3288 |
self clearModifiedFlag. |
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3289 |
helpTool modified: true. |
765 | 3290 |
|
3291 |
self updateInfoLabel |
|
892
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3292 |
|
b200d2d9bf5e
avoid repeated send-sequences
Claus Gittinger <cg@exept.de>
parents:
890
diff
changeset
|
3293 |
"Modified: / 16.7.1998 / 18:26:33 / cg" |
755 | 3294 |
! |
3295 |
||
3296 |
doDefineGrid |
|
765 | 3297 |
"opens a dialog for the grid parameters" |
3298 |
||
755 | 3299 |
|hspace vspace bindings painter gridPara settings| |
3300 |
||
3301 |
painter := self painter. |
|
3302 |
bindings := IdentityDictionary new. |
|
3303 |
gridPara := painter gridParameters copy. |
|
1021 | 3304 |
settings := self class settings. |
3305 |
||
3306 |
bindings at:#showGrid put:((settings at: #GridShown ifAbsent: [painter gridShown]) asValue). |
|
3307 |
bindings at:#alignToGrid put:((settings at: #GridAlign ifAbsent: [painter gridAlign]) asValue). |
|
755 | 3308 |
bindings at:#hspace put:((gridPara at:1) asValue). |
3309 |
bindings at:#vspace put:((gridPara at:2) asValue). |
|
3310 |
||
3311 |
(self openDialogInterface:#dialogSpecForDefiningGridParameters withBindings:bindings) ifFalse:[ |
|
1186 | 3312 |
^ self |
755 | 3313 |
]. |
3314 |
||
3315 |
hspace := (bindings at:#hspace) value ? 5. |
|
3316 |
vspace := (bindings at:#vspace) value ? 5. |
|
3317 |
||
3318 |
gridPara at:1 put:hspace. |
|
3319 |
gridPara at:2 put:vspace. |
|
3320 |
gridPara at:5 put:hspace. |
|
3321 |
gridPara at:6 put:vspace. |
|
3322 |
||
3323 |
painter gridShown:false. |
|
3324 |
painter gridAlign:false. |
|
3325 |
painter gridParameters:gridPara. |
|
3326 |
painter gridAlign:(bindings at:#alignToGrid) value. |
|
3327 |
painter gridShown:(bindings at:#showGrid) value. |
|
1021 | 3328 |
|
755 | 3329 |
settings at: #GridShown put: (bindings at:#showGrid) value. |
3330 |
settings at: #GridAlign put: (bindings at:#alignToGrid) value. |
|
3331 |
settings at: #HGridSpace put: hspace. |
|
3332 |
settings at: #VGridSpace put: vspace. |
|
3333 |
painter clear. |
|
3334 |
||
1021 | 3335 |
"Modified: / 4.2.1999 / 15:36:34 / cg" |
755 | 3336 |
! |
3337 |
||
743 | 3338 |
doGenerateAspectMethods |
765 | 3339 |
"generates aspect and action methods for the application class" |
3340 |
||
3341 |
self askForSectionModification. |
|
3342 |
||
3343 |
(ReadStream on:self painter generateAspectMethods) fileIn. |
|
446 | 3344 |
|
3345 |
! |
|
3346 |
||
1357 | 3347 |
doGenerateAspectSelectorsMethod |
3348 |
"generates aspectSelectors method for the exported aspects" |
|
3349 |
||
3350 |
||
3351 |
self askForSectionModification. |
|
3352 |
||
3353 |
(ReadStream on:self painter generateAspectSelectorsMethod) fileIn. |
|
3354 |
||
3355 |
! |
|
3356 |
||
743 | 3357 |
doGenerateHookMethods |
765 | 3358 |
"generates hook methods for the application class" |
3359 |
||
3360 |
self askForSectionModification. |
|
3361 |
||
3362 |
(ReadStream on:self painter generateHookMethods) fileIn. |
|
3363 |
||
3364 |
! |
|
3365 |
||
966
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3366 |
doGenerateMenuMethods |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3367 |
"generates menu stub methods for the application class" |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3368 |
|
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3369 |
self askForSectionModification. |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3370 |
|
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3371 |
(ReadStream on:self painter generateMenuMethods) fileIn. |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3372 |
|
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3373 |
"Created: / 23.8.1998 / 16:10:04 / cg" |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3374 |
! |
bbea01c1de98
added menu-action code generation
Claus Gittinger <cg@exept.de>
parents:
964
diff
changeset
|
3375 |
|
765 | 3376 |
doInspectSpec |
3377 |
"opens an inspector on the spec of the selected widget" |
|
3378 |
||
3379 |
|spec| |
|
3380 |
||
3381 |
(spec := self specForSelection) isNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3382 |
treeView isCanvasSelected ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3383 |
spec := treeView canvasSpec. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3384 |
] |
446 | 3385 |
]. |
765 | 3386 |
spec notNil ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3387 |
spec inspect |
765 | 3388 |
] |
3389 |
||
3390 |
||
3391 |
! |
|
3392 |
||
3393 |
doInspectView |
|
3394 |
"opens an inspector on the view of the selected widget" |
|
3395 |
||
3396 |
|selection| |
|
3397 |
||
3398 |
((selection := self painter selection) isCollection and: [selection size >= 1]) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3399 |
selection first inspect |
765 | 3400 |
] ifFalse: [ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3401 |
selection inspect |
765 | 3402 |
] |
3403 |
||
446 | 3404 |
! |
3405 |
||
713 | 3406 |
doLoad |
765 | 3407 |
"opens a ResourceSelectionBrowser for loading a window spec from a class" |
713 | 3408 |
|
729 | 3409 |
self askForModification ifFalse: [^nil]. |
3410 |
||
713 | 3411 |
self loadFromMessage: |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3412 |
(ResourceSelectionBrowser |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3413 |
request: 'Load Window Spec From Class' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3414 |
onSuperclass: nil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3415 |
andClass: specClass |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3416 |
andSelector: specSelector ? #windowSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3417 |
withResourceTypes: #(canvas)) |
713 | 3418 |
! |
3419 |
||
3420 |
doLoadSubspec |
|
765 | 3421 |
"opens a ResourceSelectionBrowser for loading a sub spec from a class" |
713 | 3422 |
|
3423 |
|subSpecMessage| |
|
729 | 3424 |
|
765 | 3425 |
self askForSectionModification. |
729 | 3426 |
|
713 | 3427 |
(subSpecMessage := ResourceSelectionBrowser |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3428 |
request: 'Load Subspec From Class' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3429 |
onSuperclass: nil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3430 |
andClass: specClass |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3431 |
andSelector: specSelector |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3432 |
withResourceTypes: #(canvas)) notNil |
713 | 3433 |
ifTrue: |
3434 |
[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3435 |
|readStream aClass aSelector| |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3436 |
readStream := subSpecMessage readStream. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3437 |
(aClass := Smalltalk at: (readStream upTo: $ ) asSymbol) notNil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3438 |
ifTrue: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3439 |
[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3440 |
aSelector := readStream upToEnd asSymbol. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3441 |
(aClass name == specClass and: [aSelector == specSelector]) ifTrue: [^self warn: 'Current interface as subspec not allowed!!']. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3442 |
(aClass respondsTo:aSelector) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3443 |
ifTrue: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3444 |
[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3445 |
self addWidgetOfSpec: (Array with: (UISubSpecification new majorKey: aClass name; minorKey: aSelector)) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3446 |
] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3447 |
] |
713 | 3448 |
] |
446 | 3449 |
! |
3450 |
||
3451 |
doNew |
|
765 | 3452 |
"removes all widgets, specClass, and specSelector" |
729 | 3453 |
|
3454 |
self askForModification ifFalse: [^nil]. |
|
3455 |
specClass := specSelector := nil. |
|
572 | 3456 |
self painter removeAll. |
729 | 3457 |
treeView canvas topView name: UIPainter defaultNameOfCanvas. |
3458 |
treeView canvas topView label: UIPainter defaultNameOfCanvas. |
|
755 | 3459 |
self helpTool doNew. |
785 | 3460 |
self treeSelection. |
3461 |
treeView selectedNode changed. |
|
3462 |
self tabModel value: self tabList value first. |
|
729 | 3463 |
self updateInfoLabel. |
446 | 3464 |
! |
3465 |
||
765 | 3466 |
doOpenWidgetDocumentation |
3467 |
"opens documentation for the selected widget" |
|
3468 |
||
3469 |
|spec document| |
|
3470 |
||
3471 |
(spec := self specForSelection) isNil ifTrue:[ |
|
1204 | 3472 |
treeView isCanvasSelected ifTrue:[ |
3473 |
spec := nil |
|
3474 |
] |
|
765 | 3475 |
]. |
3476 |
spec notNil ifTrue:[ |
|
1204 | 3477 |
document := 'tools/uipainter/', spec documentFileName,'.html' |
765 | 3478 |
] ifFalse: [ |
1204 | 3479 |
document := 'tools/uipainter/WindowSpec.html' |
765 | 3480 |
]. |
3481 |
HTMLDocumentView openFullOnDocumentationFile: document |
|
3482 |
||
3483 |
||
3484 |
! |
|
3485 |
||
446 | 3486 |
doPickAView |
765 | 3487 |
"changes the cursor for picking a view and builds a window spec from it" |
3488 |
||
3489 |
|view| |
|
446 | 3490 |
|
729 | 3491 |
self askForModification ifFalse: [^nil]. |
446 | 3492 |
|
3493 |
(view := Screen current viewFromUser) notNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3494 |
view == Screen current rootView ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3495 |
self painter setupFromSpec:(UISpecification fromView:view topView). |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3496 |
] |
729 | 3497 |
]. |
3498 |
||
3499 |
self updateInfoLabel |
|
3500 |
||
446 | 3501 |
! |
3502 |
||
713 | 3503 |
doSave |
765 | 3504 |
"saves the window spec" |
3505 |
||
1177 | 3506 |
|code painter cls ns| |
713 | 3507 |
|
765 | 3508 |
self askForSectionModification. |
729 | 3509 |
|
713 | 3510 |
self hasSpecClassAndSelector ifFalse:[ |
1341 | 3511 |
self doDefineClassAndSelector isNil ifTrue: [^nil] |
713 | 3512 |
]. |
3513 |
||
1180 | 3514 |
(specClass notNil and: [(cls := Smalltalk at: specClass asSymbol) isClass]) ifFalse:[ |
1341 | 3515 |
self warn:('Oops - cannot save - class not found: ' , specClass). |
3516 |
^nil |
|
1177 | 3517 |
]. |
3518 |
||
1180 | 3519 |
"/ specClass notNil ifTrue:[ |
3520 |
"/ (specClass includes:$:) ifFalse:[ |
|
3521 |
"/ (ns := Smalltalk defaultNameSpace) notNil ifTrue:[ |
|
3522 |
"/ cls := ns at:specClass asSymbol |
|
3523 |
"/ ]. |
|
3524 |
"/ ]. |
|
3525 |
"/ cls isNil ifTrue:[ |
|
3526 |
"/ (specClass startsWith:'Smalltalk::') ifTrue:[ |
|
3527 |
"/ cls := Smalltalk at: (specClass copyFrom:12) asSymbol. |
|
3528 |
"/ ] ifFalse:[ |
|
3529 |
"/ cls := Smalltalk at: specClass asSymbol. |
|
3530 |
"/ ] |
|
3531 |
"/ ]. |
|
3532 |
"/ ns := cls nameSpace. |
|
3533 |
"/ ]. |
|
3534 |
"/ cls isClass ifFalse:[ |
|
3535 |
"/ self warn:('Oops - cannot save - class not found: ' , specClass). |
|
3536 |
"/ ^nil |
|
3537 |
"/ ]. |
|
3538 |
"/ |
|
3539 |
"/ ns ~~ Smalltalk defaultNameSpace ifTrue:[ |
|
3540 |
"/ specClass := ns name , '::' , cls nameWithoutNameSpacePrefix. |
|
3541 |
"/ ] ifFalse:[ |
|
3542 |
"/ specClass := cls name. |
|
3543 |
"/ ]. |
|
713 | 3544 |
|
3545 |
painter := self painter. |
|
1177 | 3546 |
painter |
1341 | 3547 |
className:specClass |
3548 |
superclassName:specSuperclass |
|
3549 |
selector:specSelector. |
|
713 | 3550 |
|
1357 | 3551 |
Transcript showCR:'generating windowSpec code...'. |
3552 |
||
713 | 3553 |
code := painter generateWindowSpecMethodSource withCRs. |
3554 |
(ReadStream on:code) fileIn. |
|
3555 |
||
1357 | 3556 |
self doGenerateAspectSelectorsMethod. |
3557 |
||
724 | 3558 |
self helpTool installHelpSpecsOnClass:specClass. |
713 | 3559 |
|
3560 |
self updateInfoLabel. |
|
729 | 3561 |
modified := false. |
1177 | 3562 |
painter resetModification. |
3563 |
(cls class implements: specSelector) ifTrue:[ |
|
1341 | 3564 |
self addToHistory: (specClass, ' ', specSelector) -> #loadFromMessage:. |
713 | 3565 |
]. |
3566 |
||
3567 |
! |
|
3568 |
||
3569 |
doSaveAs |
|
765 | 3570 |
"opens a ResourceSelectionBrowser for saving the window spec on a class" |
713 | 3571 |
|
3572 |
|resourceMessage| |
|
3573 |
||
765 | 3574 |
self askForSectionModification. |
729 | 3575 |
|
713 | 3576 |
(resourceMessage := ResourceSelectionBrowser |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3577 |
request: 'Save Window Spec In Class' |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3578 |
onSuperclass: #Object |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3579 |
andClass: (specClass ? #ApplicationModel) asSymbol |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3580 |
andSelector: specSelector ? #windowSpec |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3581 |
withResourceTypes: #(canvas)) notNil |
713 | 3582 |
ifTrue: |
3583 |
[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3584 |
modified := false. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3585 |
self painter resetModification. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3586 |
(self resourceMessage: resourceMessage) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3587 |
ifTrue: |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3588 |
[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3589 |
self doSave. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3590 |
^true |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3591 |
] |
713 | 3592 |
] |
3593 |
||
3594 |
! |
|
3595 |
||
446 | 3596 |
doStartApplication |
765 | 3597 |
"starts the application on the editing window spec" |
3598 |
||
1177 | 3599 |
|cls application| |
765 | 3600 |
|
3601 |
self hasSpecClassAndSelector ifFalse:[ |
|
1442
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3602 |
self doSave isNil ifTrue: [^nil]. |
765 | 3603 |
] ifTrue: [ |
1442
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3604 |
self askForSectionModification. |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3605 |
(modified or: [self painter isModified or: [self helpTool modified]]) |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3606 |
ifTrue: |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3607 |
[ |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3608 |
((YesNoBox title:'Window Spec was modified!!') |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3609 |
noText:'Cancel'; |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3610 |
yesText:'Save it and start'; |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3611 |
showAtPointer; |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3612 |
accepted) ifFalse: [^nil]. |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3613 |
self doSave isNil ifTrue: [^nil] |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3614 |
] |
446 | 3615 |
]. |
3616 |
||
1177 | 3617 |
cls := self resolveName:specClass. |
3618 |
cls isNil ifTrue:[ |
|
1442
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3619 |
self warn:'Oops cannot start application - no class:' , specClass. |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3620 |
^ nil |
1177 | 3621 |
]. |
3622 |
((application := cls new) respondsTo:#openInterface:) ifFalse:[ |
|
1442
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3623 |
(self confirm:('The application does not respond to the ''openInterface:'' message.\(maybe the spec is supposed to be used as subApplication/subCanvas)\\Shall I try to open this as a standAlone dialog ?') withCRs) |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3624 |
ifTrue:[ |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3625 |
SimpleDialog new openSpec:(cls perform:specSelector) withBindings:nil. |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3626 |
]. |
ed108e53c783
allow opening a dialog for a non-dialog/appmodel class
Claus Gittinger <cg@exept.de>
parents:
1439
diff
changeset
|
3627 |
^ self. |
446 | 3628 |
]. |
765 | 3629 |
application openInterface:specSelector |
446 | 3630 |
! |
3631 |
||
222 | 3632 |
doStepDown |
765 | 3633 |
"moves the selected widget one step down in the hierarchy" |
3634 |
||
222 | 3635 |
treeView doStepOver:1 |
3636 |
! |
|
3637 |
||
3638 |
doStepIn |
|
765 | 3639 |
"moves the selected widget into the next widget as child" |
3640 |
||
222 | 3641 |
treeView doStepIn |
3642 |
! |
|
3643 |
||
3644 |
doStepOut |
|
765 | 3645 |
"moves the selected widget out of the parent widget" |
3646 |
||
222 | 3647 |
treeView doStepOut |
3648 |
! |
|
3649 |
||
3650 |
doStepUp |
|
765 | 3651 |
"moves the selected widget one step up in the hierarchy" |
3652 |
||
222 | 3653 |
treeView doStepOver:-1 |
743 | 3654 |
! |
3655 |
||
3656 |
doWindowSpec |
|
765 | 3657 |
"opens a code view with the contents of the window spec" |
3658 |
||
3659 |
self askForSectionModification. |
|
3660 |
||
3661 |
CodeView |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3662 |
openWith: self painter generateWindowSpecMethodSource |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3663 |
title: 'Window Spec' |
743 | 3664 |
|
222 | 3665 |
! ! |
3666 |
||
3667 |
!UIPainter::TreeView class methodsFor:'documentation'! |
|
3668 |
||
3669 |
documentation |
|
3670 |
" |
|
3671 |
selection in tree view; only used by the UIPainter |
|
3672 |
||
3673 |
[see also:] |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3674 |
SelectionInTreeView |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3675 |
SelectionInTree |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3676 |
TreeItem |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3677 |
UIPainter |
222 | 3678 |
|
3679 |
[author:] |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3680 |
Claus Atzkern |
222 | 3681 |
" |
3682 |
||
3683 |
||
3684 |
! ! |
|
3685 |
||
3686 |
!UIPainter::TreeView methodsFor:'accessing'! |
|
3687 |
||
3688 |
canvas |
|
765 | 3689 |
"returns the canvas (UIPainterView)" |
3690 |
||
3691 |
^ model root contents view |
|
222 | 3692 |
|
3693 |
||
3694 |
! |
|
3695 |
||
3696 |
canvas:aCanvas |
|
765 | 3697 |
"install canvas (UIPainterView)" |
3698 |
||
1396 | 3699 |
self canvas:aCanvas specName:nil |
281 | 3700 |
! |
3701 |
||
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3702 |
canvas:aCanvas specName:nameOfSpec |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3703 |
"install canvas (UIPainterView)" |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3704 |
|
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3705 |
|props| |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3706 |
|
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3707 |
props := UIPainterView::ViewProperty new. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3708 |
props view:aCanvas. |
1396 | 3709 |
model root:(TreeItem name:(nameOfSpec ? UIPainter defaultNameOfCanvas) asBoldText contents:props). |
1394
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3710 |
model root expand. |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3711 |
self enableChannel:(aCanvas enableChannel). |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3712 |
! |
97a7eeabae40
overwriting existing method check (in #defineClass & selector);
Claus Gittinger <cg@exept.de>
parents:
1392
diff
changeset
|
3713 |
|
281 | 3714 |
canvasSpec |
765 | 3715 |
"returns spec assigned to canvas" |
3716 |
||
1357 | 3717 |
|spec list key block cls canvas modelBlock| |
281 | 3718 |
|
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3719 |
spec := self windowSpecClass new. |
1356 | 3720 |
canvas := self canvas. |
3721 |
||
3722 |
spec fromView:(canvas topView) callBack:nil. |
|
3723 |
||
311 | 3724 |
windowSpec notNil ifTrue:[ |
1356 | 3725 |
spec copyValuesFromSpec:windowSpec. |
311 | 3726 |
]. |
1356 | 3727 |
|
3728 |
spec exportedAspects isNil ifTrue:[ |
|
3729 |
( (cls := canvas className) notNil |
|
1357 | 3730 |
and:[(cls := canvas resolveName:cls) notNil] |
1356 | 3731 |
) ifTrue:[ |
1357 | 3732 |
list := cls perform:#aspectSelectors ifNotUnderstood:nil. |
1356 | 3733 |
]. |
1357 | 3734 |
spec setExportedAspectsFrom:list. |
1360 | 3735 |
windowSpec notNil ifTrue:[ |
3736 |
windowSpec exportedAspects:(spec exportedAspects). |
|
3737 |
] |
|
1356 | 3738 |
]. |
3739 |
||
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3740 |
self propertiesDo:[:aProp| |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3741 |
|propsSpec| |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3742 |
|
1357 | 3743 |
spec exportedAspectsAddKey:(aProp model) type:nil. |
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3744 |
propsSpec := aProp spec. |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3745 |
propsSpec aspectSelectors do:[:aKey|spec exportedAspectsAddKey:aKey type:nil]. |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3746 |
propsSpec actionSelectors do:[:aKey|spec exportedAspectsAddKey:aKey type:#action]. |
1356 | 3747 |
]. |
3748 |
^ spec |
|
282 | 3749 |
! |
3750 |
||
311 | 3751 |
canvasSpec:aSpec |
765 | 3752 |
"update canvas from spec" |
3753 |
||
311 | 3754 |
|spec| |
3755 |
||
3756 |
self setAttributesFromWindowSpec:aSpec. |
|
3757 |
spec := aSpec copy. |
|
3758 |
spec menu:nil. |
|
3759 |
spec flags:nil. |
|
3760 |
||
394 | 3761 |
spec setAttributesIn:(self canvas topView) with:(UIBuilder new isEditing:true). |
311 | 3762 |
! |
3763 |
||
1357 | 3764 |
exportedAspects |
3765 |
"returns spec assigned to canvas" |
|
3766 |
||
3767 |
windowSpec isNil ifTrue:[^ #()]. |
|
3768 |
^ windowSpec exportedAspects ? #() |
|
3769 |
||
3770 |
! |
|
3771 |
||
282 | 3772 |
itemOfView:aView |
765 | 3773 |
"returns item assigned to view or nil" |
3774 |
||
282 | 3775 |
aView notNil ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3776 |
self allItemsDo:[:anItem| |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3777 |
(anItem contents view == aView) ifTrue:[^ anItem] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3778 |
] |
282 | 3779 |
]. |
765 | 3780 |
^ nil |
282 | 3781 |
|
3782 |
||
755 | 3783 |
! |
3784 |
||
3785 |
lastDrawnMaster |
|
765 | 3786 |
"returns the lastDrawnMaster" |
3787 |
||
3788 |
^ lastDrawnMaster |
|
755 | 3789 |
|
3790 |
||
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3791 |
! |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3792 |
|
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3793 |
windowSpecClass |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3794 |
"returns the default windowSpecClass (WindowSpec)" |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3795 |
|
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3796 |
^ windowSpecClass ? WindowSpec |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3797 |
! |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3798 |
|
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3799 |
windowSpecClass:aClass |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3800 |
"set the default windowSpecClass" |
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3801 |
|
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3802 |
^ windowSpecClass := aClass |
222 | 3803 |
! ! |
3804 |
||
3805 |
!UIPainter::TreeView methodsFor:'accessing property'! |
|
3806 |
||
3807 |
propertiesDo:aOneArgBlock |
|
765 | 3808 |
"evaluates the argument a block on each property" |
3809 |
||
222 | 3810 |
self allItemsDo:[:anItem| aOneArgBlock value:(anItem contents)] |
3811 |
||
3812 |
||
3813 |
! |
|
3814 |
||
3815 |
propertyDetect:aOneArgBlock |
|
765 | 3816 |
"evaluates the block on each property" |
3817 |
||
222 | 3818 |
self allItemsDo:[:anItem| |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3819 |
(aOneArgBlock value:(anItem contents)) ifTrue:[^ anItem contents] |
222 | 3820 |
]. |
765 | 3821 |
^ nil |
222 | 3822 |
|
3823 |
! |
|
3824 |
||
3825 |
propertySelected |
|
3826 |
"returns current selected property or nil in case of multi selection |
|
765 | 3827 |
or empty selection " |
3828 |
||
222 | 3829 |
|idx| |
3830 |
||
3831 |
selection size == 1 ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3832 |
(idx := selection first) ~~ 1 ifTrue:[ "canvas: not yet supported" |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3833 |
^ (listOfNodes at:idx) contents |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3834 |
] |
222 | 3835 |
]. |
765 | 3836 |
^ nil |
222 | 3837 |
|
3838 |
! ! |
|
3839 |
||
3840 |
!UIPainter::TreeView methodsFor:'adding & removing'! |
|
3841 |
||
3842 |
addProperty:aProperty |
|
765 | 3843 |
"adds a new item" |
3844 |
||
533 | 3845 |
|parent| |
295 | 3846 |
|
3847 |
parent := self detectItemRespondsToView:(aProperty view superView). |
|
3848 |
||
3849 |
parent notNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3850 |
model add:(TreeItem new contents:aProperty) below:parent |
295 | 3851 |
] |
222 | 3852 |
|
3853 |
! |
|
3854 |
||
3855 |
removeAll |
|
765 | 3856 |
"removes all items other than canvas" |
3857 |
||
222 | 3858 |
lastDrawnMaster := nil. |
311 | 3859 |
windowSpec := nil. |
222 | 3860 |
|
3861 |
self canvas subViews copy do:[:aView| |
|
1186 | 3862 |
"/ care to not destroy the transparent input view |
3863 |
(aView isInputOnly) ifFalse:[aView destroy] |
|
222 | 3864 |
]. |
713 | 3865 |
model root name: UIPainter defaultNameOfCanvas asBoldText. |
774 | 3866 |
model removeAllOtherThanRoot. |
222 | 3867 |
|
3868 |
! |
|
3869 |
||
3870 |
removeView:aView |
|
765 | 3871 |
"removes a view" |
3872 |
||
282 | 3873 |
|item prnt| |
3874 |
||
3875 |
((item := self itemOfView:aView) notNil and:[(prnt := item parent) notNil]) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3876 |
aView destroy. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3877 |
prnt contents view sizeChanged:nil. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3878 |
model remove:item |
222 | 3879 |
] |
3880 |
||
3881 |
||
3882 |
! ! |
|
3883 |
||
311 | 3884 |
!UIPainter::TreeView methodsFor:'building'! |
3885 |
||
1058 | 3886 |
generateFullSpecForComponents:aSpecArray named:specNameSymbol |
765 | 3887 |
"generates a full spec from aSpecArray" |
3888 |
||
351 | 3889 |
|fullSpec winSpec| |
311 | 3890 |
|
3891 |
fullSpec := FullSpec new. |
|
1058 | 3892 |
fullSpec name:specNameSymbol. |
311 | 3893 |
|
3894 |
fullSpec fromBuilder:(self canvas topView) |
|
1186 | 3895 |
components:(SpecCollection new collection:aSpecArray). |
311 | 3896 |
|
3897 |
windowSpec notNil ifTrue:[ |
|
1186 | 3898 |
winSpec := fullSpec window. |
3899 |
winSpec copyValuesFromSpec:windowSpec. |
|
3900 |
winSpec name: winSpec label. |
|
311 | 3901 |
]. |
3902 |
^ fullSpec literalArrayEncoding. |
|
351 | 3903 |
|
311 | 3904 |
! |
3905 |
||
3906 |
setAttributesFromWindowSpec:aWindowSpec |
|
1172
e22253cb348f
set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3907 |
"sets a window spec from aWindowSpec and applies some attributes |
e22253cb348f
set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3908 |
to the canvas." |
e22253cb348f
set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3909 |
|
1391 | 3910 |
|name canvasView builder| |
765 | 3911 |
|
1466
6fecdd5341dc
allow for windowSpecClass to be customized
Claus Gittinger <cg@exept.de>
parents:
1461
diff
changeset
|
3912 |
windowSpec := (self windowSpecClass) new copyValuesFromSpec:aWindowSpec. |
1172
e22253cb348f
set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3913 |
canvasView := self canvas. |
e22253cb348f
set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3914 |
|
e22253cb348f
set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3915 |
builder := UIBuilder new isEditing:true. |
e22253cb348f
set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3916 |
aWindowSpec setAttributesIn:canvasView with:builder. |
e22253cb348f
set the top attributes (especially: viewbackground)
Claus Gittinger <cg@exept.de>
parents:
1167
diff
changeset
|
3917 |
|
1391 | 3918 |
name := aWindowSpec label. |
3919 |
canvasView topView name:name. |
|
3920 |
self canvasNameChanged:name. |
|
785 | 3921 |
self application treeSelection. |
311 | 3922 |
! ! |
3923 |
||
222 | 3924 |
!UIPainter::TreeView methodsFor:'canvas selection'! |
3925 |
||
3926 |
cvsSelection:aSelection |
|
3927 |
"canvas changed its selection |
|
3928 |
" |
|
805 | 3929 |
|sel list size| |
3930 |
||
3931 |
((sel := aSelection) isNil or:[sel isCollection]) ifFalse:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3932 |
sel := Array with:sel |
774 | 3933 |
]. |
805 | 3934 |
|
3935 |
(size := sel size) ~~ 0 ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3936 |
list := OrderedCollection new:size. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3937 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3938 |
sel do:[:aView||item| |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3939 |
(item := self itemOfView:aView) notNil ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3940 |
list add:item. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3941 |
model doMakeVisible:item. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3942 |
] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3943 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3944 |
sel := list collect:[:anItem| self indexOfNode:anItem ]. |
774 | 3945 |
]. |
222 | 3946 |
self cvsEventsDisabledDo:[ self selection:sel ]. |
3947 |
||
3948 |
||
3949 |
||
3950 |
||
3951 |
! |
|
3952 |
||
3953 |
cvsSelectionAdd:aView |
|
3954 |
"canvas adds a view to current selection |
|
3955 |
" |
|
774 | 3956 |
|item index oldSel| |
222 | 3957 |
|
3958 |
item := self itemOfView:aView. |
|
3959 |
||
3960 |
item notNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3961 |
model doMakeVisible:item. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3962 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3963 |
(index := self indexOfNode:item) ~~ 0 ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3964 |
oldSel := selection copy. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3965 |
self addToSelection:index. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3966 |
self selectionChangedFrom:oldSel |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3967 |
] |
774 | 3968 |
] |
222 | 3969 |
|
3970 |
||
3971 |
||
3972 |
! |
|
3973 |
||
3974 |
cvsSelectionRemove:aView |
|
3975 |
"canvas removes a view from current selection |
|
3976 |
" |
|
774 | 3977 |
|item index oldSel| |
3978 |
||
3979 |
( (item := self itemOfView:aView) notNil |
|
3980 |
and:[(index := self indexOfNode:item) ~~ 0 |
|
3981 |
and:[self isInSelection:index]] |
|
3982 |
) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3983 |
oldSel := selection copy. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3984 |
self removeFromSelection:index. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
3985 |
self selectionChangedFrom:oldSel. |
774 | 3986 |
]. |
222 | 3987 |
|
3988 |
||
3989 |
! ! |
|
3990 |
||
3991 |
!UIPainter::TreeView methodsFor:'change & update'! |
|
3992 |
||
281 | 3993 |
canvasNameChanged:aName |
3994 |
"called if identification name assigned to window (canvas) changed |
|
3995 |
" |
|
3996 |
|name node| |
|
3997 |
||
3998 |
node := listOfNodes at:1. |
|
3999 |
||
4000 |
( aName size ~~ 0 |
|
4001 |
and:[(name := aName string withoutSeparators) size ~~ 0 |
|
4002 |
and:[(self propertyDetect:[:p| p name = name]) isNil |
|
4003 |
and:[node name ~= name]]] |
|
4004 |
) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4005 |
node name: name asBoldText. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4006 |
node changed. |
281 | 4007 |
]. |
4008 |
! |
|
4009 |
||
222 | 4010 |
layoutChanged |
4011 |
"layout of any component changed; in case of single selection, the |
|
4012 |
application will be informed to update its layout |
|
4013 |
" |
|
4014 |
selection size == 1 ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4015 |
self application layoutChanged |
222 | 4016 |
] |
4017 |
||
4018 |
||
4019 |
! |
|
4020 |
||
4021 |
propertyChanged:aProperty |
|
4022 |
"property of view derived from argument a property changed |
|
4023 |
" |
|
4024 |
|item idx end| |
|
4025 |
||
4026 |
item := self itemOfView:(aProperty view). |
|
4027 |
||
4028 |
item notNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4029 |
item contents:aProperty. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4030 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4031 |
item name = aProperty name ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4032 |
idx := self firstLineShown. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4033 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4034 |
(end := self lastLineShown) > listOfNodes size ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4035 |
end := listOfNodes size |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4036 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4037 |
item changed. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4038 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4039 |
[idx <= end] whileTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4040 |
(listOfNodes at:idx) == item ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4041 |
self redrawLine:idx. "/ is visible; redraw line |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4042 |
end := 0 |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4043 |
] ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4044 |
idx := idx + 1 |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4045 |
] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4046 |
] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4047 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4048 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4049 |
self selectedNode == item ifTrue:[ "/ inform application |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4050 |
self application propertyChanged |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4051 |
] |
222 | 4052 |
]. |
4053 |
||
4054 |
||
4055 |
! ! |
|
4056 |
||
4057 |
!UIPainter::TreeView methodsFor:'drag & drop'! |
|
4058 |
||
4059 |
canDrop:anObjectOrCollection |
|
765 | 4060 |
"can drop ? delegate to canvas" |
4061 |
||
4062 |
^ self canvas canDrop:anObjectOrCollection |
|
222 | 4063 |
! |
4064 |
||
4065 |
drop:anObjectOrCollection at:aPoint |
|
765 | 4066 |
"drop objects ? delegate to canvas" |
4067 |
||
222 | 4068 |
self canvas drop:anObjectOrCollection at:aPoint |
4069 |
! ! |
|
4070 |
||
282 | 4071 |
!UIPainter::TreeView methodsFor:'enumerating'! |
4072 |
||
4073 |
allItemsDo:aOneArgBlock |
|
765 | 4074 |
"evaluates the argument a block on each item other than the canvas" |
4075 |
||
282 | 4076 |
model root allChildrenDo:aOneArgBlock |
4077 |
||
4078 |
||
4079 |
! ! |
|
4080 |
||
222 | 4081 |
!UIPainter::TreeView methodsFor:'event processing'! |
4082 |
||
4083 |
cvsEventsDisabledDo:aBlock |
|
765 | 4084 |
"evaluates the block without raising selection changed notifications |
4085 |
to canvas" |
|
4086 |
||
222 | 4087 |
|restoreCvsEvents| |
4088 |
||
4089 |
restoreCvsEvents := cvsEventsDisabled. |
|
4090 |
cvsEventsDisabled := true. |
|
4091 |
aBlock value. |
|
4092 |
cvsEventsDisabled := restoreCvsEvents. |
|
4093 |
||
4094 |
||
4095 |
! |
|
4096 |
||
4097 |
doubleClicked |
|
765 | 4098 |
"disables collapsing of the root item" |
4099 |
||
222 | 4100 |
self selectedNode == model root ifFalse:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4101 |
super doubleClicked |
222 | 4102 |
] |
4103 |
||
4104 |
||
805 | 4105 |
! |
4106 |
||
852 | 4107 |
redrawLabelAt:x y:yTop index:anIndex |
805 | 4108 |
"draws a tiny rectangle for indicating the master node (first selected node)" |
4109 |
||
4110 |
|dX| |
|
4111 |
||
852 | 4112 |
super redrawLabelAt:x y:yTop index:anIndex. |
805 | 4113 |
|
4114 |
((selection size > 1) and: [selection first == anIndex]) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4115 |
dX := textInset - 1. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4116 |
self paint:(Color red). "/ self application painter handleMasterColor. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4117 |
self fillRectangleX:(x - dX - 2) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4118 |
y:yTop + ((fontHeight - dX) // 2) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4119 |
width:dX |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4120 |
height:dX |
805 | 4121 |
] |
222 | 4122 |
! ! |
4123 |
||
4124 |
!UIPainter::TreeView methodsFor:'initialization'! |
|
4125 |
||
4126 |
initialize |
|
765 | 4127 |
"initialize the tree view; multiple select and tree item actions" |
4128 |
||
222 | 4129 |
super initialize. |
564 | 4130 |
|
222 | 4131 |
self multipleSelectOk:true. |
368 | 4132 |
cvsEventsDisabled := false. |
440 | 4133 |
self showDirectoryIndicator: true. |
656 | 4134 |
self showDirectoryIndicatorForRoot: false. |
4135 |
||
4136 |
self model iconAction: |
|
4137 |
[:aNode| |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4138 |
|specClass| |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4139 |
(specClass := aNode contents spec) isNil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4140 |
ifTrue: [WindowSpec icon] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4141 |
ifFalse:[specClass class icon] |
656 | 4142 |
]. |
4143 |
||
713 | 4144 |
self model labelAction: |
4145 |
[:aNode| |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4146 |
|spec| |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4147 |
(spec := aNode contents spec) notNil |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4148 |
ifTrue: [self nameForSpecInList:spec] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4149 |
ifFalse:[aNode name] |
713 | 4150 |
] |
222 | 4151 |
! ! |
4152 |
||
4153 |
!UIPainter::TreeView methodsFor:'private'! |
|
4154 |
||
713 | 4155 |
nameForSpecInList:aSpec |
765 | 4156 |
"returns the tree item label for aSpec" |
4157 |
||
713 | 4158 |
^ aSpec name asBoldText, ': [', aSpec viewClass name , ']' |
222 | 4159 |
! |
4160 |
||
4161 |
selectionChangedFrom:oldSelection |
|
4162 |
"selection has changed. update master selection and raise notification |
|
4163 |
to canvas in case of enabled cvs events |
|
4164 |
" |
|
282 | 4165 |
|sel size| |
222 | 4166 |
|
4167 |
super selectionChangedFrom:oldSelection. |
|
282 | 4168 |
size := selection size. |
222 | 4169 |
|
4170 |
cvsEventsDisabled ifFalse:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4171 |
(size ~~ 0 and:[size ~~ 1 or:[selection first ~~ 1]]) ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4172 |
sel := OrderedCollection new. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4173 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4174 |
selection do:[:i| |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4175 |
i ~~ 1 ifTrue:[sel add:(listOfNodes at:i) contents view] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4176 |
] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4177 |
]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4178 |
self canvas updateSelectionFromModel:sel |
778 | 4179 |
]. |
713 | 4180 |
size = 1 ifTrue:[ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4181 |
oldSelection size > 1 ifTrue: [ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4182 |
(listOfNodes at:lastDrawnMaster) retrieveLabel. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4183 |
self redrawLine: lastDrawnMaster. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4184 |
lastDrawnMaster := selection first |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4185 |
] |
713 | 4186 |
]. |
4187 |
size > 1 ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4188 |
selection first ~~ lastDrawnMaster ifTrue: [ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4189 |
(listOfNodes at:selection first) retrieveLabel. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4190 |
lastDrawnMaster notNil ifTrue: [(listOfNodes at:lastDrawnMaster) retrieveLabel]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4191 |
self redrawLine: lastDrawnMaster. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4192 |
self redrawLine: (lastDrawnMaster := selection first) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4193 |
] |
785 | 4194 |
] |
713 | 4195 |
ifFalse: [ |
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4196 |
lastDrawnMaster := nil |
785 | 4197 |
] |
222 | 4198 |
! ! |
4199 |
||
4200 |
!UIPainter::TreeView methodsFor:'queries'! |
|
4201 |
||
565 | 4202 |
canChangeOrderInContainer |
4203 |
"returns true if any selection exists and all widgets in the selection |
|
765 | 4204 |
can change their layout through to a move or align operation" |
565 | 4205 |
|
889 | 4206 |
^(selection size == 1) and: |
4207 |
[(selection at: 1) ~~ 1 and: |
|
4208 |
[self selectedNode parent children size > 1]] |
|
4209 |
||
4210 |
||
565 | 4211 |
! |
4212 |
||
1230
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4213 |
canExchangeSelectionLayouts |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4214 |
"returns true if the selections size is exactly 2 |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4215 |
and all widgets in the selection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4216 |
can change their layout through to a move or align operation" |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4217 |
|
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4218 |
selection size == 2 ifFalse:[ |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4219 |
^ false |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4220 |
]. |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4221 |
^ self canMoveOrAlignSelection |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4222 |
! |
23e5d0c133e8
added exchangeLayouts function
Claus Gittinger <cg@exept.de>
parents:
1211
diff
changeset
|
4223 |
|
282 | 4224 |
canMoveOrAlignSelection |
4225 |
"returns true if any selection exists and all widgets in the selection |
|
765 | 4226 |
can change their layout through to a move or align operation" |
282 | 4227 |
|
4228 |
selection size == 0 ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4229 |
^ false |
282 | 4230 |
]. |
4231 |
||
4232 |
selection do:[:i| |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4233 |
i == 1 ifTrue:[^ false]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4234 |
|
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4235 |
(self canvas canChangeLayoutOfView:((listOfNodes at:i) contents view)) ifFalse:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4236 |
^ false |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4237 |
] |
282 | 4238 |
]. |
4239 |
^ true |
|
4240 |
! |
|
4241 |
||
4242 |
canMoveSelectionIntoContainer |
|
765 | 4243 |
"returns true in case that one widget is selected and can change its container |
4244 |
widget to the next element in the list which will have the same container" |
|
4245 |
||
222 | 4246 |
|item prnt| |
4247 |
||
4248 |
( (item := self selectedNode) isNil |
|
4249 |
or:[(prnt := item parent) isNil |
|
4250 |
or:[(prnt := prnt childAt:((prnt indexOfChild:item) + 1)) isNil |
|
4251 |
or:[prnt contents spec class supportsSubComponents not]]] |
|
4252 |
) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4253 |
^ false |
222 | 4254 |
]. |
765 | 4255 |
^ true |
222 | 4256 |
! |
4257 |
||
282 | 4258 |
canMoveSelectionOutOfContainer |
765 | 4259 |
"returns true in case that one widget is selected which is contained within |
4260 |
another widget" |
|
4261 |
||
222 | 4262 |
|item prnt| |
4263 |
||
4264 |
( (item := self selectedNode) isNil |
|
4265 |
or:[(prnt := item parent) isNil |
|
4266 |
or:[prnt parent isNil]] |
|
4267 |
) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4268 |
^ false |
222 | 4269 |
]. |
765 | 4270 |
^ true |
222 | 4271 |
! |
4272 |
||
301 | 4273 |
canResizeSelectedWidget |
4274 |
"returns true in case of one widget selected and is contained |
|
765 | 4275 |
within a widget which allows to resize sub components" |
4276 |
||
4277 |
|selectedNode| |
|
4278 |
||
4279 |
(selectedNode := self selectedNode) notNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4280 |
(selectedNode := selectedNode parent) notNil ifTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4281 |
^ (selectedNode parent isNil or:[selectedNode contents spec class canResizeSubComponents]) |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4282 |
] |
301 | 4283 |
]. |
4284 |
^ false |
|
4285 |
! |
|
4286 |
||
282 | 4287 |
hasOneSelectionOtherThanCanvas |
765 | 4288 |
"returns true in case that one selection exists other than the canvas" |
4289 |
||
4290 |
^ selection size == 1 and:[selection first ~~ 1] |
|
281 | 4291 |
! |
4292 |
||
4293 |
isCanvasSelected |
|
4294 |
"returns true in case of a single selection and the |
|
765 | 4295 |
selection is the canvas (index 1)" |
4296 |
||
4297 |
^ selection size == 1 and:[self isInSelection:1] |
|
222 | 4298 |
! ! |
4299 |
||
765 | 4300 |
!UIPainter::TreeView methodsFor:'searching'! |
282 | 4301 |
|
4302 |
detectItemRespondsToView:aView |
|
765 | 4303 |
"detects the item responding to the view. The item of the view or the first |
282 | 4304 |
subview providing the item is returned. If no property is detected nil is |
765 | 4305 |
returned" |
4306 |
||
282 | 4307 |
|view item| |
4308 |
||
4309 |
(view := aView) notNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4310 |
[(item := self itemOfView:view) isNil] whileTrue:[ |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4311 |
(view := view superView) isNil ifTrue:[^ listOfNodes at:1] |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4312 |
]. |
282 | 4313 |
]. |
4314 |
^ item |
|
4315 |
||
4316 |
! ! |
|
4317 |
||
1439 | 4318 |
!UIPainter::TreeView methodsFor:'user interaction'! |
222 | 4319 |
|
774 | 4320 |
doChangeHierarchyOf:anItem |
4321 |
||
4322 |
|canvas| |
|
4323 |
||
4324 |
anItem isNil ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4325 |
^ self |
774 | 4326 |
]. |
4327 |
self setSelection:nil. |
|
4328 |
||
4329 |
canvas := self canvas. |
|
4330 |
canvas deleteSelection. |
|
4331 |
canvas setSelection:(anItem contents view) withRedraw:false. |
|
4332 |
canvas pasteWithLayout. |
|
4333 |
! |
|
4334 |
||
222 | 4335 |
doStepIn |
774 | 4336 |
|item prnt| |
222 | 4337 |
|
4338 |
( (item := self selectedNode) isNil |
|
4339 |
or:[(prnt := item parent) isNil |
|
4340 |
or:[(prnt := prnt childAt:((prnt indexOfChild:item) + 1)) isNil |
|
4341 |
or:[prnt contents spec class supportsSubComponents not]]] |
|
4342 |
) ifFalse:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4343 |
self doChangeHierarchyOf:prnt |
222 | 4344 |
] |
4345 |
! |
|
4346 |
||
4347 |
doStepOut |
|
774 | 4348 |
|item| |
4349 |
||
4350 |
((item := self selectedNode) notNil and:[(item := item parent) notNil]) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4351 |
self doChangeHierarchyOf:(item parent) |
222 | 4352 |
]. |
4353 |
! |
|
4354 |
||
4355 |
doStepOver:anIndex |
|
765 | 4356 |
"moves child 'anOffset' forward or backward in list of children" |
4357 |
||
282 | 4358 |
|item idx size prnt spVw view canvas| |
222 | 4359 |
|
4360 |
( (item := self selectedNode) isNil |
|
4361 |
or:[(prnt := item parent) isNil |
|
282 | 4362 |
or:[(size := prnt children size) < 2 |
4363 |
or:[(idx := prnt indexOfChild:item) == 0]]] |
|
4364 |
) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4365 |
^ self |
282 | 4366 |
]. |
4367 |
idx := idx + anIndex. |
|
4368 |
||
4369 |
idx < 1 ifTrue:[idx := size] |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4370 |
ifFalse:[idx > size ifTrue:[idx := 1]]. |
282 | 4371 |
|
774 | 4372 |
self setSelection:nil. |
4373 |
model remove:item. |
|
282 | 4374 |
model add:item beforeIndex:idx below:prnt. |
774 | 4375 |
|
282 | 4376 |
idx := prnt indexOfChild:item. |
4377 |
view := item contents view. |
|
4378 |
spVw := prnt contents view. |
|
4379 |
canvas := self canvas. |
|
4380 |
||
4381 |
canvas hideSelection. |
|
4382 |
||
4383 |
"/ input view might by contained in sequence |
|
4384 |
((size := canvas findInputViewIn:spVw) ~~ 0 and:[idx >= size]) ifTrue:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4385 |
idx := idx + 1 |
282 | 4386 |
]. |
4387 |
spVw changeSequenceOrderFor:view to:idx. |
|
4388 |
||
4389 |
spVw specClass isLayoutContainer ifFalse:[ |
|
984
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4390 |
spVw subViews do:[:v| v raise ]. |
f1b6d6b68510
dont specify the tabViews font (instead, use defaults from styleSheet)
Claus Gittinger <cg@exept.de>
parents:
973
diff
changeset
|
4391 |
canvas inputView raise |
282 | 4392 |
]. |
4393 |
canvas showSelection. |
|
4394 |
self selectNode:item. |
|
222 | 4395 |
! ! |
4396 |
||
60 | 4397 |
!UIPainter class methodsFor:'documentation'! |
4398 |
||
4399 |
version |
|
4400 |
^ '$Header$' |
|
4401 |
! ! |