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