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