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