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