2078
|
1 |
"{ Package: 'stx:libtool2' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Tools }"
|
|
4 |
|
|
5 |
ResourceSpecEditor subclass:#ProjectDefinitionEditor
|
2079
|
6 |
instanceVariableNames:'definitionClass classList extensionsList selectedClassIndexHolder
|
2078
|
7 |
classesTableColumns revisionNrHolder companyNameHolder
|
|
8 |
fileMajorVersionNrHolder minorVersionNrHolder iconFileNameHolder
|
|
9 |
fileReleaseNrHolder productNameHolder majorVersionNrHolder
|
|
10 |
fileRevisionNrHolder fileDescriptionHolder releaseNrHolder
|
|
11 |
fileMinorVersionNrHolder descriptionHolder legalCopyrightHolder
|
|
12 |
isApplicationDefinitionHolder isNonGUIApplicationHolder
|
2079
|
13 |
startSinglethreadedHolder startupClassNameHolder
|
2078
|
14 |
startupSelectorHolder'
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'Interface-Tools'
|
|
18 |
!
|
|
19 |
|
|
20 |
Object subclass:#ClassListEntry
|
|
21 |
instanceVariableNames:'className autoloaded win32 unix'
|
|
22 |
classVariableNames:''
|
|
23 |
poolDictionaries:''
|
|
24 |
privateIn:ProjectDefinitionEditor
|
|
25 |
!
|
|
26 |
|
2079
|
27 |
Object subclass:#ExtensionsListEntry
|
|
28 |
instanceVariableNames:'className selector'
|
|
29 |
classVariableNames:''
|
|
30 |
poolDictionaries:''
|
|
31 |
privateIn:ProjectDefinitionEditor
|
|
32 |
!
|
|
33 |
|
2078
|
34 |
!ProjectDefinitionEditor class methodsFor:'documentation'!
|
|
35 |
|
|
36 |
documentation
|
|
37 |
"
|
|
38 |
unfinished app-definition editor
|
|
39 |
|
|
40 |
[author:]
|
|
41 |
cg (cg@FUSI)
|
|
42 |
|
|
43 |
[instance variables:]
|
|
44 |
|
|
45 |
[class variables:]
|
|
46 |
|
|
47 |
[see also:]
|
|
48 |
|
|
49 |
"
|
|
50 |
!
|
|
51 |
|
|
52 |
examples
|
|
53 |
"
|
|
54 |
Starting the application:
|
|
55 |
[exBegin]
|
|
56 |
(ProjectDefinitionEditor new
|
|
57 |
definitionClass:stx_libbasic) open
|
|
58 |
[exEnd]
|
|
59 |
|
|
60 |
[exBegin]
|
|
61 |
(ProjectDefinitionEditor new
|
|
62 |
definitionClass:bosch_dapasx_application) open
|
|
63 |
[exEnd]
|
|
64 |
"
|
|
65 |
! !
|
|
66 |
|
|
67 |
!ProjectDefinitionEditor class methodsFor:'interface specs'!
|
|
68 |
|
|
69 |
classesSpec
|
|
70 |
"This resource specification was automatically generated
|
|
71 |
by the UIPainter of ST/X."
|
|
72 |
|
|
73 |
"Do not manually edit this!! If it is corrupted,
|
|
74 |
the UIPainter may not be able to read the specification."
|
|
75 |
|
|
76 |
"
|
2080
|
77 |
UIPainter new openOnClass:Tools::ProjectDefinitionEditor andSelector:#classesSpec
|
|
78 |
Tools::ProjectDefinitionEditor new openInterface:#classesSpec
|
2078
|
79 |
"
|
|
80 |
|
|
81 |
<resource: #canvas>
|
|
82 |
|
|
83 |
^
|
|
84 |
#(FullSpec
|
|
85 |
name: classesSpec
|
|
86 |
window:
|
|
87 |
(WindowSpec
|
|
88 |
label: 'NewApplication'
|
|
89 |
name: 'NewApplication'
|
|
90 |
min: (Point 0 0)
|
|
91 |
bounds: (Rectangle 0 0 300 300)
|
|
92 |
)
|
|
93 |
component:
|
|
94 |
(SpecCollection
|
|
95 |
collection: (
|
|
96 |
(DataSetSpec
|
|
97 |
name: 'ClassesTable'
|
|
98 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
99 |
model: selectedClassIndexHolder
|
2080
|
100 |
menu: classListMenu
|
2078
|
101 |
hasHorizontalScrollBar: true
|
|
102 |
hasVerticalScrollBar: true
|
|
103 |
dataList: classList
|
|
104 |
columnHolder: classesTableColumns
|
|
105 |
)
|
|
106 |
)
|
|
107 |
|
|
108 |
)
|
|
109 |
)
|
|
110 |
!
|
|
111 |
|
|
112 |
compilationSpec
|
|
113 |
"This resource specification was automatically generated
|
|
114 |
by the UIPainter of ST/X."
|
|
115 |
|
|
116 |
"Do not manually edit this!! If it is corrupted,
|
|
117 |
the UIPainter may not be able to read the specification."
|
|
118 |
|
|
119 |
"
|
2080
|
120 |
UIPainter new openOnClass:Tools::ProjectDefinitionEditor andSelector:#compilationSpec
|
|
121 |
Tools::ProjectDefinitionEditor new openInterface:#compilationSpec
|
2078
|
122 |
"
|
|
123 |
|
|
124 |
<resource: #canvas>
|
|
125 |
|
|
126 |
^
|
|
127 |
#(FullSpec
|
|
128 |
name: compilationSpec
|
|
129 |
window:
|
|
130 |
(WindowSpec
|
|
131 |
label: 'NewApplication'
|
|
132 |
name: 'NewApplication'
|
|
133 |
min: (Point 0 0)
|
|
134 |
bounds: (Rectangle 0 0 433 300)
|
|
135 |
)
|
|
136 |
component:
|
|
137 |
(SpecCollection
|
|
138 |
collection: (
|
|
139 |
(FramedBoxSpec
|
|
140 |
label: 'Optimization'
|
|
141 |
name: 'FramedBox1'
|
2080
|
142 |
layout: (LayoutFrame 0 0 0 0 0 1 93 0)
|
2078
|
143 |
labelPosition: topLeft
|
|
144 |
translateLabel: true
|
|
145 |
component:
|
|
146 |
(SpecCollection
|
|
147 |
collection: (
|
|
148 |
(LabelSpec
|
|
149 |
label: 'STC Optimization Flags:'
|
|
150 |
name: 'Label1'
|
|
151 |
layout: (LayoutFrame 0 0.0 7 0 160 0 29 0)
|
|
152 |
translateLabel: true
|
|
153 |
adjust: right
|
|
154 |
)
|
|
155 |
(InputFieldSpec
|
|
156 |
name: 'STCOptimizationFlagsEntryField'
|
|
157 |
layout: (LayoutFrame 162 0.0 5 0 0 1.0 27 0)
|
|
158 |
model: stcOptimizationFlagsHolder
|
|
159 |
acceptOnReturn: true
|
|
160 |
acceptOnTab: true
|
|
161 |
acceptOnLostFocus: true
|
|
162 |
acceptOnPointerLeave: false
|
|
163 |
)
|
|
164 |
(LabelSpec
|
|
165 |
label: 'CC Optimization Flags:'
|
|
166 |
name: 'Label2'
|
|
167 |
layout: (LayoutFrame 0 0.0 35 0 160 0 57 0)
|
|
168 |
translateLabel: true
|
|
169 |
adjust: right
|
|
170 |
)
|
|
171 |
(InputFieldSpec
|
|
172 |
name: 'CCOptimizationFlagsEntryField'
|
|
173 |
layout: (LayoutFrame 162 0.0 33 0 0 1.0 55 0)
|
|
174 |
model: ccOptimizationFlagsHolder
|
|
175 |
acceptOnReturn: true
|
|
176 |
acceptOnTab: true
|
|
177 |
acceptOnLostFocus: true
|
|
178 |
acceptOnPointerLeave: false
|
|
179 |
)
|
|
180 |
)
|
|
181 |
|
|
182 |
)
|
|
183 |
)
|
|
184 |
(FramedBoxSpec
|
|
185 |
label: 'Includes'
|
|
186 |
name: 'FramedBox2'
|
2080
|
187 |
layout: (LayoutFrame 0 0 98 0 0 1 160 0)
|
2078
|
188 |
labelPosition: topLeft
|
|
189 |
translateLabel: true
|
|
190 |
component:
|
|
191 |
(SpecCollection
|
|
192 |
collection: (
|
|
193 |
(LabelSpec
|
|
194 |
label: 'Additional Includes:'
|
|
195 |
name: 'Label3'
|
|
196 |
layout: (LayoutFrame 0 0.0 7 0 160 0 29 0)
|
|
197 |
translateLabel: true
|
|
198 |
adjust: right
|
|
199 |
)
|
|
200 |
(InputFieldSpec
|
|
201 |
name: 'IncludeFlagsEntryField'
|
|
202 |
layout: (LayoutFrame 162 0.0 5 0 0 1.0 27 0)
|
|
203 |
model: includeFlagsHolder
|
|
204 |
acceptOnReturn: true
|
|
205 |
acceptOnTab: true
|
|
206 |
acceptOnLostFocus: true
|
|
207 |
acceptOnPointerLeave: false
|
|
208 |
)
|
|
209 |
)
|
|
210 |
|
|
211 |
)
|
|
212 |
)
|
|
213 |
)
|
|
214 |
|
|
215 |
)
|
|
216 |
)
|
|
217 |
!
|
|
218 |
|
|
219 |
descriptionSpec
|
|
220 |
"This resource specification was automatically generated
|
|
221 |
by the UIPainter of ST/X."
|
|
222 |
|
|
223 |
"Do not manually edit this!! If it is corrupted,
|
|
224 |
the UIPainter may not be able to read the specification."
|
|
225 |
|
|
226 |
"
|
|
227 |
UIPainter new openOnClass:ApplicationDefinitionBuilder andSelector:#descriptionSpec
|
|
228 |
ApplicationDefinitionBuilder new openInterface:#descriptionSpec
|
|
229 |
"
|
|
230 |
|
|
231 |
<resource: #canvas>
|
|
232 |
|
|
233 |
^
|
|
234 |
#(FullSpec
|
|
235 |
name: descriptionSpec
|
|
236 |
window:
|
|
237 |
(WindowSpec
|
|
238 |
label: 'NewApplication'
|
|
239 |
name: 'NewApplication'
|
|
240 |
min: (Point 0 0)
|
|
241 |
bounds: (Rectangle 0 0 433 300)
|
|
242 |
)
|
|
243 |
component:
|
|
244 |
(SpecCollection
|
|
245 |
collection: (
|
|
246 |
(LabelSpec
|
|
247 |
label: 'Company:'
|
|
248 |
name: 'CompanyLabel'
|
|
249 |
layout: (LayoutFrame 2 0.0 13 0 160 0 35 0)
|
|
250 |
translateLabel: true
|
|
251 |
adjust: right
|
|
252 |
)
|
|
253 |
(InputFieldSpec
|
|
254 |
name: 'CompanyEntryField'
|
|
255 |
layout: (LayoutFrame 162 0.0 12 0 -2 1.0 34 0)
|
|
256 |
model: companyNameHolder
|
|
257 |
acceptOnReturn: true
|
|
258 |
acceptOnTab: true
|
|
259 |
acceptOnLostFocus: true
|
|
260 |
acceptOnPointerLeave: false
|
|
261 |
)
|
|
262 |
(LabelSpec
|
|
263 |
label: 'Description:'
|
|
264 |
name: 'DescriptionLabel'
|
|
265 |
layout: (LayoutFrame 2 0.0 39 0 160 0 61 0)
|
|
266 |
translateLabel: true
|
|
267 |
adjust: right
|
|
268 |
)
|
|
269 |
(InputFieldSpec
|
|
270 |
name: 'DescriptionEntryField'
|
|
271 |
layout: (LayoutFrame 162 0.0 38 0 -2 1.0 60 0)
|
|
272 |
model: descriptionHolder
|
|
273 |
acceptOnReturn: true
|
|
274 |
acceptOnTab: true
|
|
275 |
acceptOnLostFocus: true
|
|
276 |
acceptOnPointerLeave: false
|
|
277 |
)
|
|
278 |
(LabelSpec
|
|
279 |
label: 'ProductName:'
|
|
280 |
name: 'ProductNameLabel'
|
|
281 |
layout: (LayoutFrame 2 0.0 65 0 160 0 87 0)
|
|
282 |
translateLabel: true
|
|
283 |
adjust: right
|
|
284 |
)
|
|
285 |
(InputFieldSpec
|
|
286 |
name: 'ProductNameEntryField'
|
|
287 |
layout: (LayoutFrame 162 0.0 64 0 -2 1.0 86 0)
|
|
288 |
model: productNameHolder
|
|
289 |
acceptOnReturn: true
|
|
290 |
acceptOnTab: true
|
|
291 |
acceptOnLostFocus: true
|
|
292 |
acceptOnPointerLeave: false
|
|
293 |
)
|
|
294 |
(LabelSpec
|
|
295 |
label: 'ProductVersion:'
|
|
296 |
name: 'ProductVersionLabel'
|
|
297 |
layout: (LayoutFrame 2 0.0 91 0 160 0 113 0)
|
|
298 |
translateLabel: true
|
|
299 |
adjust: right
|
|
300 |
)
|
|
301 |
(InputFieldSpec
|
|
302 |
name: 'MajorVersionNrEntryField'
|
|
303 |
layout: (LayoutFrame 162 0.0 90 0 182 0.0 112 0)
|
|
304 |
model: majorVersionNrHolder
|
|
305 |
type: number
|
|
306 |
acceptOnReturn: true
|
|
307 |
acceptOnTab: true
|
|
308 |
acceptOnLostFocus: true
|
|
309 |
acceptOnPointerLeave: false
|
|
310 |
)
|
|
311 |
(InputFieldSpec
|
|
312 |
name: 'MinorVersionNrEntryField'
|
|
313 |
layout: (LayoutFrame 184 0.0 90 0 204 0.0 112 0)
|
|
314 |
model: minorVersionNrHolder
|
|
315 |
type: numberOrNil
|
|
316 |
acceptOnReturn: true
|
|
317 |
acceptOnTab: true
|
|
318 |
acceptOnLostFocus: true
|
|
319 |
acceptOnPointerLeave: false
|
|
320 |
)
|
|
321 |
(InputFieldSpec
|
|
322 |
name: 'RevisionNrEntryField'
|
|
323 |
layout: (LayoutFrame 206 0.0 90 0 226 0.0 112 0)
|
|
324 |
model: revisionNrHolder
|
|
325 |
type: number
|
|
326 |
acceptOnReturn: true
|
|
327 |
acceptOnTab: true
|
|
328 |
acceptOnLostFocus: true
|
|
329 |
acceptOnPointerLeave: false
|
|
330 |
)
|
|
331 |
(InputFieldSpec
|
|
332 |
name: 'ReleaseNrEntryField'
|
|
333 |
layout: (LayoutFrame 228 0.0 90 0 248 0.0 112 0)
|
|
334 |
model: releaseNrHolder
|
|
335 |
type: number
|
|
336 |
acceptOnReturn: true
|
|
337 |
acceptOnTab: true
|
|
338 |
acceptOnLostFocus: true
|
|
339 |
acceptOnPointerLeave: false
|
|
340 |
)
|
|
341 |
(LabelSpec
|
|
342 |
label: 'LegalCopyright:'
|
|
343 |
name: 'LegalCopyrightLabel'
|
|
344 |
layout: (LayoutFrame 2 0.0 119 0 160 0 141 0)
|
|
345 |
translateLabel: true
|
|
346 |
adjust: right
|
|
347 |
)
|
|
348 |
(InputFieldSpec
|
|
349 |
name: 'LegalCopyrightEntryField'
|
|
350 |
layout: (LayoutFrame 162 0.0 118 0 -2 1.0 140 0)
|
|
351 |
model: legalCopyrightHolder
|
|
352 |
acceptOnReturn: true
|
|
353 |
acceptOnTab: true
|
|
354 |
acceptOnLostFocus: true
|
|
355 |
acceptOnPointerLeave: false
|
|
356 |
)
|
|
357 |
(LabelSpec
|
|
358 |
label: 'FileDescriptionDescription:'
|
|
359 |
name: 'FileDescriptionLabel'
|
|
360 |
layout: (LayoutFrame 2 0.0 161 0 160 0 183 0)
|
|
361 |
translateLabel: true
|
|
362 |
adjust: right
|
|
363 |
)
|
|
364 |
(InputFieldSpec
|
|
365 |
name: 'FileDescriptionEntryField'
|
|
366 |
layout: (LayoutFrame 162 0.0 160 0 -2 1.0 182 0)
|
|
367 |
model: fileDescriptionHolder
|
|
368 |
acceptOnReturn: true
|
|
369 |
acceptOnTab: true
|
|
370 |
acceptOnLostFocus: true
|
|
371 |
acceptOnPointerLeave: false
|
|
372 |
)
|
|
373 |
(LabelSpec
|
|
374 |
label: 'FileVersion:'
|
|
375 |
name: 'FileVersionLabel'
|
|
376 |
layout: (LayoutFrame 2 0.0 187 0 160 0 209 0)
|
|
377 |
translateLabel: true
|
|
378 |
adjust: right
|
|
379 |
)
|
|
380 |
(InputFieldSpec
|
|
381 |
name: 'FileMajorVersionNrEntryField'
|
|
382 |
layout: (LayoutFrame 162 0.0 186 0 182 0.0 208 0)
|
|
383 |
model: fileMajorVersionNrHolder
|
|
384 |
type: number
|
|
385 |
acceptOnReturn: true
|
|
386 |
acceptOnTab: true
|
|
387 |
acceptOnLostFocus: true
|
|
388 |
acceptOnPointerLeave: false
|
|
389 |
)
|
|
390 |
(InputFieldSpec
|
|
391 |
name: 'FileMinorVersionNrEntryField'
|
|
392 |
layout: (LayoutFrame 184 0.0 186 0 204 0.0 208 0)
|
|
393 |
model: fileMinorVersionNrHolder
|
|
394 |
type: number
|
|
395 |
acceptOnReturn: true
|
|
396 |
acceptOnTab: true
|
|
397 |
acceptOnLostFocus: true
|
|
398 |
acceptOnPointerLeave: false
|
|
399 |
)
|
|
400 |
(InputFieldSpec
|
|
401 |
name: 'FileRevisionNrEntryField'
|
|
402 |
layout: (LayoutFrame 206 0.0 186 0 226 0.0 208 0)
|
|
403 |
model: fileRevisionNrHolder
|
|
404 |
type: number
|
|
405 |
acceptOnReturn: true
|
|
406 |
acceptOnTab: true
|
|
407 |
acceptOnLostFocus: true
|
|
408 |
acceptOnPointerLeave: false
|
|
409 |
)
|
|
410 |
(InputFieldSpec
|
|
411 |
name: 'FileReleaseNrEntryField'
|
|
412 |
layout: (LayoutFrame 228 0.0 186 0 248 0.0 208 0)
|
|
413 |
model: fileReleaseNrHolder
|
|
414 |
type: number
|
|
415 |
acceptOnReturn: true
|
|
416 |
acceptOnTab: true
|
|
417 |
acceptOnLostFocus: true
|
|
418 |
acceptOnPointerLeave: false
|
|
419 |
)
|
|
420 |
(LabelSpec
|
|
421 |
label: 'Icon Filename:'
|
|
422 |
name: 'IconFileNameLabel'
|
|
423 |
layout: (LayoutFrame 2 0.0 236 0 160 0 258 0)
|
|
424 |
visibilityChannel: isApplicationDefinitionHolder
|
|
425 |
translateLabel: true
|
|
426 |
adjust: right
|
|
427 |
)
|
|
428 |
(InputFieldSpec
|
|
429 |
name: 'IconFileNameEntryField'
|
|
430 |
layout: (LayoutFrame 162 0.0 234 0 -2 1.0 256 0)
|
|
431 |
visibilityChannel: isApplicationDefinitionHolder
|
|
432 |
model: iconFilenameHolder
|
|
433 |
acceptOnReturn: true
|
|
434 |
acceptOnTab: true
|
|
435 |
acceptOnLostFocus: true
|
|
436 |
acceptOnPointerLeave: false
|
|
437 |
)
|
|
438 |
)
|
|
439 |
|
|
440 |
)
|
|
441 |
)
|
|
442 |
!
|
|
443 |
|
|
444 |
extensionsSpec
|
|
445 |
"This resource specification was automatically generated
|
|
446 |
by the UIPainter of ST/X."
|
|
447 |
|
|
448 |
"Do not manually edit this!! If it is corrupted,
|
|
449 |
the UIPainter may not be able to read the specification."
|
|
450 |
|
|
451 |
"
|
|
452 |
UIPainter new openOnClass:ApplicationDefinitionEditor andSelector:#extensionsSpec
|
|
453 |
ApplicationDefinitionEditor new openInterface:#extensionsSpec
|
|
454 |
"
|
|
455 |
|
|
456 |
<resource: #canvas>
|
|
457 |
|
|
458 |
^
|
|
459 |
#(FullSpec
|
|
460 |
name: extensionsSpec
|
|
461 |
window:
|
|
462 |
(WindowSpec
|
|
463 |
label: 'NewApplication'
|
|
464 |
name: 'NewApplication'
|
|
465 |
min: (Point 0 0)
|
|
466 |
bounds: (Rectangle 0 0 300 300)
|
|
467 |
)
|
|
468 |
component:
|
|
469 |
(SpecCollection
|
|
470 |
collection: (
|
|
471 |
(DataSetSpec
|
|
472 |
name: 'ExtensionsTable'
|
|
473 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
474 |
model: selectedExtensionIndexHolder
|
|
475 |
hasHorizontalScrollBar: true
|
|
476 |
hasVerticalScrollBar: true
|
|
477 |
dataList: extensionsList
|
|
478 |
columnHolder: extensionsTableColumns
|
|
479 |
)
|
|
480 |
)
|
|
481 |
|
|
482 |
)
|
|
483 |
)
|
|
484 |
!
|
|
485 |
|
|
486 |
prerequisitesSpec
|
|
487 |
"This resource specification was automatically generated
|
|
488 |
by the UIPainter of ST/X."
|
|
489 |
|
|
490 |
"Do not manually edit this!! If it is corrupted,
|
|
491 |
the UIPainter may not be able to read the specification."
|
|
492 |
|
|
493 |
"
|
|
494 |
UIPainter new openOnClass:ApplicationDefinitionEditor andSelector:#extensionsSpec
|
|
495 |
ApplicationDefinitionEditor new openInterface:#extensionsSpec
|
|
496 |
"
|
|
497 |
|
|
498 |
<resource: #canvas>
|
|
499 |
|
|
500 |
^
|
|
501 |
#(FullSpec
|
|
502 |
name: extensionsSpec
|
|
503 |
window:
|
|
504 |
(WindowSpec
|
|
505 |
label: 'NewApplication'
|
|
506 |
name: 'NewApplication'
|
|
507 |
min: (Point 0 0)
|
|
508 |
bounds: (Rectangle 0 0 300 300)
|
|
509 |
)
|
|
510 |
component:
|
|
511 |
(SpecCollection
|
|
512 |
collection: (
|
|
513 |
(DataSetSpec
|
|
514 |
name: 'ExtensionsTable'
|
|
515 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
516 |
model: selectedPrerequisitesIndexHolder
|
|
517 |
hasHorizontalScrollBar: true
|
|
518 |
hasVerticalScrollBar: true
|
|
519 |
dataList: prerequisitesList
|
|
520 |
columnHolder: prerequisitesTableColumns
|
|
521 |
)
|
|
522 |
)
|
|
523 |
|
|
524 |
)
|
|
525 |
)
|
|
526 |
|
|
527 |
"Created: / 05-09-2006 / 13:21:32 / cg"
|
|
528 |
!
|
|
529 |
|
|
530 |
startupSpec
|
|
531 |
"This resource specification was automatically generated
|
|
532 |
by the UIPainter of ST/X."
|
|
533 |
|
|
534 |
"Do not manually edit this!! If it is corrupted,
|
|
535 |
the UIPainter may not be able to read the specification."
|
|
536 |
|
|
537 |
"
|
2080
|
538 |
UIPainter new openOnClass:Tools::ProjectDefinitionEditor andSelector:#startupSpec
|
|
539 |
Tools::ProjectDefinitionEditor new openInterface:#startupSpec
|
2078
|
540 |
"
|
|
541 |
|
|
542 |
<resource: #canvas>
|
|
543 |
|
|
544 |
^
|
|
545 |
#(FullSpec
|
|
546 |
name: startupSpec
|
|
547 |
window:
|
|
548 |
(WindowSpec
|
|
549 |
label: 'NewApplication'
|
|
550 |
name: 'NewApplication'
|
|
551 |
min: (Point 0 0)
|
|
552 |
bounds: (Rectangle 0 0 433 300)
|
|
553 |
)
|
|
554 |
component:
|
|
555 |
(SpecCollection
|
|
556 |
collection: (
|
|
557 |
(FramedBoxSpec
|
|
558 |
label: 'Startup'
|
|
559 |
name: 'FramedBox1'
|
2080
|
560 |
layout: (LayoutFrame 0 0 0 0 0 1 93 0)
|
2078
|
561 |
labelPosition: topLeft
|
|
562 |
translateLabel: true
|
|
563 |
component:
|
|
564 |
(SpecCollection
|
|
565 |
collection: (
|
|
566 |
(LabelSpec
|
|
567 |
label: 'Startup Class:'
|
|
568 |
name: 'Label1'
|
|
569 |
layout: (LayoutFrame 0 0.0 7 0 160 0 29 0)
|
|
570 |
translateLabel: true
|
|
571 |
adjust: right
|
|
572 |
)
|
|
573 |
(InputFieldSpec
|
|
574 |
name: 'StartupClassEntryField'
|
|
575 |
layout: (LayoutFrame 162 0.0 5 0 0 1.0 27 0)
|
2079
|
576 |
model: startupClassNameHolder
|
2078
|
577 |
acceptOnReturn: true
|
|
578 |
acceptOnTab: true
|
|
579 |
acceptOnLostFocus: true
|
|
580 |
acceptOnPointerLeave: false
|
|
581 |
)
|
|
582 |
(LabelSpec
|
|
583 |
label: 'Startup Selector:'
|
|
584 |
name: 'Label2'
|
|
585 |
layout: (LayoutFrame 0 0.0 35 0 160 0 57 0)
|
|
586 |
translateLabel: true
|
|
587 |
adjust: right
|
|
588 |
)
|
|
589 |
(InputFieldSpec
|
|
590 |
name: 'StartupSelectorEntryField'
|
|
591 |
layout: (LayoutFrame 162 0.0 33 0 0 1.0 55 0)
|
|
592 |
model: startupSelectorHolder
|
|
593 |
acceptOnReturn: true
|
|
594 |
acceptOnTab: true
|
|
595 |
acceptOnLostFocus: true
|
|
596 |
acceptOnPointerLeave: false
|
|
597 |
)
|
|
598 |
)
|
|
599 |
|
|
600 |
)
|
|
601 |
)
|
|
602 |
(FramedBoxSpec
|
|
603 |
label: 'Execution'
|
|
604 |
name: 'FramedBox2'
|
2080
|
605 |
layout: (LayoutFrame 0 0 97 0 0 1 160 0)
|
2078
|
606 |
labelPosition: topLeft
|
|
607 |
translateLabel: true
|
|
608 |
component:
|
|
609 |
(SpecCollection
|
|
610 |
collection: (
|
|
611 |
(CheckBoxSpec
|
|
612 |
label: 'Non-GUI Application'
|
|
613 |
name: 'CheckBox1'
|
|
614 |
layout: (LayoutFrame 0 0.0 7 0 0 0.5 29 0)
|
|
615 |
model: isNonGUIApplicationHolder
|
|
616 |
translateLabel: true
|
|
617 |
)
|
|
618 |
(CheckBoxSpec
|
|
619 |
label: 'Singlethreaded'
|
|
620 |
name: 'CheckBox2'
|
|
621 |
layout: (LayoutFrame 0 0.5 7 0 0 1 29 0)
|
|
622 |
enableChannel: isNonGUIApplicationHolder
|
|
623 |
model: startSinglethreadedHolder
|
|
624 |
translateLabel: true
|
|
625 |
)
|
|
626 |
)
|
|
627 |
|
|
628 |
)
|
|
629 |
)
|
|
630 |
)
|
|
631 |
|
|
632 |
)
|
|
633 |
)
|
|
634 |
!
|
|
635 |
|
|
636 |
windowSpec
|
|
637 |
"This resource specification was automatically generated
|
|
638 |
by the UIPainter of ST/X."
|
|
639 |
|
|
640 |
"Do not manually edit this!! If it is corrupted,
|
|
641 |
the UIPainter may not be able to read the specification."
|
|
642 |
|
|
643 |
"
|
|
644 |
UIPainter new openOnClass:ApplicationDefinitionBuilder andSelector:#windowSpec
|
|
645 |
ApplicationDefinitionBuilder new openInterface:#windowSpec
|
|
646 |
ApplicationDefinitionBuilder open
|
|
647 |
"
|
|
648 |
|
|
649 |
<resource: #canvas>
|
|
650 |
|
|
651 |
^
|
|
652 |
#(FullSpec
|
|
653 |
name: windowSpec
|
|
654 |
window:
|
|
655 |
(WindowSpec
|
|
656 |
label: 'ApplicationDefinitionBuilder'
|
|
657 |
name: 'ApplicationDefinitionBuilder'
|
|
658 |
min: (Point 10 10)
|
|
659 |
max: (Point 1024 768)
|
|
660 |
bounds: (Rectangle 0 0 596 339)
|
|
661 |
menu: mainMenu
|
|
662 |
)
|
|
663 |
component:
|
|
664 |
(SpecCollection
|
|
665 |
collection: (
|
|
666 |
(NoteBookViewSpec
|
|
667 |
name: 'NoteBook1'
|
|
668 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
669 |
model: selectedTabIndexHolder
|
|
670 |
menu: tabList
|
|
671 |
useIndex: true
|
|
672 |
)
|
|
673 |
)
|
|
674 |
|
|
675 |
)
|
|
676 |
)
|
|
677 |
|
|
678 |
"Modified: / 03-09-2006 / 10:57:33 / cg"
|
|
679 |
! !
|
|
680 |
|
|
681 |
!ProjectDefinitionEditor class methodsFor:'list specs'!
|
|
682 |
|
2079
|
683 |
tabList
|
|
684 |
^ self tabListForApplication.
|
|
685 |
|
|
686 |
"Created: / 06-09-2006 / 13:38:03 / cg"
|
|
687 |
!
|
|
688 |
|
2078
|
689 |
tabListForApplication
|
|
690 |
"This resource specification was automatically generated
|
|
691 |
by the TabListEditor of ST/X."
|
|
692 |
|
|
693 |
"Do not manually edit this!! If it is corrupted,
|
|
694 |
the TabListEditor may not be able to read the specification."
|
|
695 |
|
|
696 |
"
|
|
697 |
TabListEditor new openOnClass: self andSelector:#tabList
|
|
698 |
"
|
|
699 |
|
|
700 |
<resource: #tabList>
|
|
701 |
|
|
702 |
^ #(
|
|
703 |
(TabItem
|
2079
|
704 |
label: 'Description'
|
|
705 |
minorKey: descriptionSpec
|
|
706 |
)
|
|
707 |
(TabItem
|
2078
|
708 |
label: 'Classes'
|
|
709 |
createNewBuilder: false
|
|
710 |
translateLabel: true
|
|
711 |
minorKey: classesSpec
|
|
712 |
)
|
|
713 |
(TabItem
|
|
714 |
label: 'Extensions'
|
|
715 |
minorKey: extensionsSpec
|
|
716 |
)
|
|
717 |
(TabItem
|
|
718 |
label: 'Prerequisites'
|
|
719 |
minorKey: prerequisitesSpec
|
|
720 |
)
|
|
721 |
(TabItem
|
|
722 |
label: 'Compilation'
|
|
723 |
minorKey: compilationSpec
|
|
724 |
)
|
|
725 |
(TabItem
|
|
726 |
label: 'Startup'
|
|
727 |
minorKey: startupSpec
|
|
728 |
)
|
|
729 |
)
|
|
730 |
|
|
731 |
collect:[:aTab| TabItem new fromLiteralArrayEncoding:aTab ]
|
|
732 |
|
|
733 |
"Created: / 05-09-2006 / 16:24:48 / cg"
|
2079
|
734 |
"Modified: / 06-09-2006 / 18:44:34 / cg"
|
2078
|
735 |
!
|
|
736 |
|
|
737 |
tabListForLibrary
|
|
738 |
"This resource specification was automatically generated
|
|
739 |
by the TabListEditor of ST/X."
|
|
740 |
|
|
741 |
"Do not manually edit this!! If it is corrupted,
|
|
742 |
the TabListEditor may not be able to read the specification."
|
|
743 |
|
|
744 |
"
|
|
745 |
TabListEditor new openOnClass: self andSelector:#tabList
|
|
746 |
"
|
|
747 |
|
|
748 |
<resource: #tabList>
|
|
749 |
|
|
750 |
^ #(
|
|
751 |
(TabItem
|
2079
|
752 |
label: 'Description'
|
|
753 |
minorKey: descriptionSpec
|
|
754 |
)
|
|
755 |
(TabItem
|
2078
|
756 |
label: 'Classes'
|
|
757 |
createNewBuilder: false
|
|
758 |
translateLabel: true
|
|
759 |
minorKey: classesSpec
|
|
760 |
)
|
|
761 |
(TabItem
|
|
762 |
label: 'Extensions'
|
|
763 |
minorKey: extensionsSpec
|
|
764 |
)
|
|
765 |
(TabItem
|
|
766 |
label: 'Prerequisites'
|
|
767 |
minorKey: prerequisitesSpec
|
|
768 |
)
|
|
769 |
(TabItem
|
|
770 |
label: 'Compilation'
|
|
771 |
minorKey: compilationSpec
|
|
772 |
)
|
|
773 |
)
|
|
774 |
|
|
775 |
collect:[:aTab| TabItem new fromLiteralArrayEncoding:aTab ]
|
|
776 |
|
|
777 |
"Created: / 05-09-2006 / 16:24:52 / cg"
|
2079
|
778 |
"Modified: / 06-09-2006 / 18:44:38 / cg"
|
2078
|
779 |
! !
|
|
780 |
|
|
781 |
!ProjectDefinitionEditor class methodsFor:'menu specs'!
|
|
782 |
|
|
783 |
classListMenu
|
|
784 |
"This resource specification was automatically generated
|
|
785 |
by the MenuEditor of ST/X."
|
|
786 |
|
|
787 |
"Do not manually edit this!! If it is corrupted,
|
|
788 |
the MenuEditor may not be able to read the specification."
|
|
789 |
|
|
790 |
"
|
|
791 |
MenuEditor new openOnClass:ApplicationDefinitionEditor andSelector:#classListMenu
|
|
792 |
(Menu new fromLiteralArrayEncoding:(ApplicationDefinitionEditor classListMenu)) startUp
|
|
793 |
"
|
|
794 |
|
|
795 |
<resource: #menu>
|
|
796 |
|
|
797 |
^
|
|
798 |
#(Menu
|
|
799 |
(
|
|
800 |
(MenuItem
|
|
801 |
label: 'Generate'
|
|
802 |
itemValue: menuGenerateClassList
|
|
803 |
translateLabel: true
|
|
804 |
)
|
|
805 |
(MenuItem
|
|
806 |
label: '-'
|
|
807 |
)
|
|
808 |
(MenuItem
|
|
809 |
label: 'Add...'
|
|
810 |
itemValue: menuAddClass
|
|
811 |
translateLabel: true
|
|
812 |
)
|
|
813 |
(MenuItem
|
|
814 |
label: 'Remove...'
|
|
815 |
itemValue: menuRemoveClass
|
|
816 |
translateLabel: true
|
|
817 |
)
|
|
818 |
)
|
|
819 |
nil
|
|
820 |
nil
|
|
821 |
)
|
|
822 |
!
|
|
823 |
|
|
824 |
extensionsListMenu
|
|
825 |
"This resource specification was automatically generated
|
|
826 |
by the MenuEditor of ST/X."
|
|
827 |
|
|
828 |
"Do not manually edit this!! If it is corrupted,
|
|
829 |
the MenuEditor may not be able to read the specification."
|
|
830 |
|
|
831 |
"
|
|
832 |
MenuEditor new openOnClass:ApplicationDefinitionEditor andSelector:#extensionsListMenu
|
|
833 |
(Menu new fromLiteralArrayEncoding:(ApplicationDefinitionEditor extensionsListMenu)) startUp
|
|
834 |
"
|
|
835 |
|
|
836 |
<resource: #menu>
|
|
837 |
|
|
838 |
^
|
|
839 |
#(Menu
|
|
840 |
(
|
|
841 |
(MenuItem
|
|
842 |
label: 'Generate'
|
|
843 |
itemValue: menuGenerateExtensionsList
|
|
844 |
translateLabel: true
|
|
845 |
)
|
|
846 |
(MenuItem
|
|
847 |
label: '-'
|
|
848 |
)
|
|
849 |
(MenuItem
|
|
850 |
label: 'Add...'
|
|
851 |
itemValue: menuAddExtension
|
|
852 |
translateLabel: true
|
|
853 |
)
|
|
854 |
(MenuItem
|
|
855 |
label: 'Remove...'
|
|
856 |
itemValue: menuRemoveExtension
|
|
857 |
translateLabel: true
|
|
858 |
)
|
|
859 |
)
|
|
860 |
nil
|
|
861 |
nil
|
|
862 |
)
|
|
863 |
!
|
|
864 |
|
|
865 |
mainMenu
|
|
866 |
"This resource specification was automatically generated
|
|
867 |
by the MenuEditor of ST/X."
|
|
868 |
|
|
869 |
"Do not manually edit this!! If it is corrupted,
|
|
870 |
the MenuEditor may not be able to read the specification."
|
|
871 |
|
|
872 |
"
|
|
873 |
MenuEditor new openOnClass:ApplicationDefinitionEditor andSelector:#mainMenu
|
|
874 |
(Menu new fromLiteralArrayEncoding:(ApplicationDefinitionEditor mainMenu)) startUp
|
|
875 |
"
|
|
876 |
|
|
877 |
<resource: #menu>
|
|
878 |
|
|
879 |
^
|
|
880 |
#(Menu
|
|
881 |
(
|
|
882 |
(MenuItem
|
|
883 |
label: 'File'
|
|
884 |
translateLabel: true
|
|
885 |
submenu:
|
|
886 |
(Menu
|
|
887 |
(
|
|
888 |
(MenuItem
|
|
889 |
label: 'New'
|
|
890 |
itemValue: menuNew
|
|
891 |
translateLabel: true
|
|
892 |
)
|
|
893 |
(MenuItem
|
|
894 |
label: '-'
|
|
895 |
)
|
|
896 |
(MenuItem
|
|
897 |
label: 'Open...'
|
|
898 |
itemValue: menuOpen
|
|
899 |
translateLabel: true
|
|
900 |
)
|
|
901 |
(MenuItem
|
|
902 |
label: '-'
|
|
903 |
)
|
|
904 |
(MenuItem
|
|
905 |
label: 'Save'
|
|
906 |
itemValue: menuSave
|
|
907 |
translateLabel: true
|
|
908 |
)
|
|
909 |
(MenuItem
|
|
910 |
label: 'Save As...'
|
|
911 |
itemValue: menuSaveAs
|
|
912 |
translateLabel: true
|
|
913 |
)
|
|
914 |
(MenuItem
|
|
915 |
label: '-'
|
|
916 |
)
|
|
917 |
(MenuItem
|
|
918 |
label: 'Exit'
|
|
919 |
itemValue: closeRequest
|
|
920 |
translateLabel: true
|
|
921 |
)
|
|
922 |
)
|
|
923 |
nil
|
|
924 |
nil
|
|
925 |
)
|
|
926 |
)
|
|
927 |
(MenuItem
|
|
928 |
label: 'Classes'
|
|
929 |
translateLabel: true
|
|
930 |
isVisible: classesMenuVisibleHolder
|
|
931 |
submenuChannel: classListMenu
|
|
932 |
keepLinkedMenu: true
|
|
933 |
)
|
|
934 |
(MenuItem
|
|
935 |
label: 'Extensions'
|
|
936 |
translateLabel: true
|
|
937 |
isVisible: extensionsMenuVisibleHolder
|
|
938 |
submenuChannel: extensionsListMenu
|
|
939 |
keepLinkedMenu: true
|
|
940 |
)
|
|
941 |
(MenuItem
|
|
942 |
label: 'Prerequisites'
|
|
943 |
translateLabel: true
|
|
944 |
isVisible: prerequisitesMenuVisibleHolder
|
|
945 |
submenuChannel: prerequisitesListMenu
|
|
946 |
keepLinkedMenu: true
|
|
947 |
)
|
|
948 |
(MenuItem
|
|
949 |
label: 'Help'
|
|
950 |
translateLabel: true
|
|
951 |
startGroup: right
|
|
952 |
submenu:
|
|
953 |
(Menu
|
|
954 |
(
|
|
955 |
(MenuItem
|
|
956 |
label: 'Documentation'
|
|
957 |
itemValue: openDocumentation
|
|
958 |
translateLabel: true
|
|
959 |
)
|
|
960 |
(MenuItem
|
|
961 |
label: '-'
|
|
962 |
)
|
|
963 |
(MenuItem
|
|
964 |
label: 'About this Application...'
|
|
965 |
itemValue: openAboutThisApplication
|
|
966 |
translateLabel: true
|
|
967 |
)
|
|
968 |
)
|
|
969 |
nil
|
|
970 |
nil
|
|
971 |
)
|
|
972 |
)
|
|
973 |
)
|
|
974 |
nil
|
|
975 |
nil
|
|
976 |
)
|
|
977 |
!
|
|
978 |
|
|
979 |
prerequisitesListMenu
|
|
980 |
"This resource specification was automatically generated
|
|
981 |
by the MenuEditor of ST/X."
|
|
982 |
|
|
983 |
"Do not manually edit this!! If it is corrupted,
|
|
984 |
the MenuEditor may not be able to read the specification."
|
|
985 |
|
|
986 |
"
|
|
987 |
MenuEditor new openOnClass:ApplicationDefinitionEditor andSelector:#extensionsListMenu
|
|
988 |
(Menu new fromLiteralArrayEncoding:(ApplicationDefinitionEditor extensionsListMenu)) startUp
|
|
989 |
"
|
|
990 |
|
|
991 |
<resource: #menu>
|
|
992 |
|
|
993 |
^
|
|
994 |
#(Menu
|
|
995 |
(
|
|
996 |
(MenuItem
|
|
997 |
label: 'Generate'
|
|
998 |
itemValue: menuGeneratePrerequisitesList
|
|
999 |
translateLabel: true
|
|
1000 |
)
|
|
1001 |
(MenuItem
|
|
1002 |
label: '-'
|
|
1003 |
)
|
|
1004 |
(MenuItem
|
|
1005 |
label: 'Add...'
|
|
1006 |
itemValue: menuAddPrerequisite
|
|
1007 |
translateLabel: true
|
|
1008 |
)
|
|
1009 |
(MenuItem
|
|
1010 |
label: 'Remove...'
|
|
1011 |
itemValue: menuRemovePrerequisite
|
|
1012 |
translateLabel: true
|
|
1013 |
)
|
|
1014 |
)
|
|
1015 |
nil
|
|
1016 |
nil
|
|
1017 |
)
|
|
1018 |
|
|
1019 |
"Modified: / 05-09-2006 / 13:24:58 / cg"
|
|
1020 |
! !
|
|
1021 |
|
|
1022 |
!ProjectDefinitionEditor class methodsFor:'tableColumns specs'!
|
|
1023 |
|
|
1024 |
classesTableColumns
|
|
1025 |
"This resource specification was automatically generated
|
|
1026 |
by the DataSetBuilder of ST/X."
|
|
1027 |
|
|
1028 |
"Do not manually edit this!! If it is corrupted,
|
|
1029 |
the DataSetBuilder may not be able to read the specification."
|
|
1030 |
|
|
1031 |
"
|
2079
|
1032 |
DataSetBuilder new openOnClass:Tools::ProjectDefinitionEditor andSelector:#classesTableColumns
|
2078
|
1033 |
"
|
|
1034 |
|
|
1035 |
<resource: #tableColumns>
|
|
1036 |
|
|
1037 |
^#(
|
|
1038 |
(DataSetColumnSpec
|
|
1039 |
label: 'Auto'
|
|
1040 |
labelButtonType: Button
|
|
1041 |
rendererType: CheckToggle
|
|
1042 |
model: autoloaded
|
2079
|
1043 |
canSelect: false
|
2078
|
1044 |
)
|
|
1045 |
(DataSetColumnSpec
|
|
1046 |
label: 'Win32'
|
|
1047 |
labelButtonType: Button
|
|
1048 |
rendererType: CheckToggle
|
|
1049 |
model: win32
|
2079
|
1050 |
canSelect: false
|
2078
|
1051 |
)
|
|
1052 |
(DataSetColumnSpec
|
|
1053 |
label: 'Unix'
|
|
1054 |
labelButtonType: Button
|
|
1055 |
rendererType: CheckToggle
|
|
1056 |
model: unix
|
2079
|
1057 |
canSelect: false
|
2078
|
1058 |
)
|
|
1059 |
(DataSetColumnSpec
|
|
1060 |
label: 'Class'
|
2080
|
1061 |
labelAlignment: left
|
2078
|
1062 |
labelButtonType: Button
|
|
1063 |
model: className
|
2079
|
1064 |
canSelect: false
|
2078
|
1065 |
)
|
|
1066 |
)
|
|
1067 |
|
|
1068 |
!
|
|
1069 |
|
|
1070 |
extensionsTableColumns
|
|
1071 |
"This resource specification was automatically generated
|
|
1072 |
by the DataSetBuilder of ST/X."
|
|
1073 |
|
|
1074 |
"Do not manually edit this!! If it is corrupted,
|
|
1075 |
the DataSetBuilder may not be able to read the specification."
|
|
1076 |
|
|
1077 |
"
|
2079
|
1078 |
DataSetBuilder new openOnClass:Tools::ProjectDefinitionEditor andSelector:#extensionsTableColumns
|
2078
|
1079 |
"
|
|
1080 |
|
|
1081 |
<resource: #tableColumns>
|
|
1082 |
|
|
1083 |
^#(
|
|
1084 |
(DataSetColumnSpec
|
|
1085 |
label: 'Class'
|
2080
|
1086 |
labelAlignment: left
|
2078
|
1087 |
labelButtonType: Button
|
|
1088 |
model: className
|
2079
|
1089 |
canSelect: false
|
2078
|
1090 |
)
|
|
1091 |
(DataSetColumnSpec
|
|
1092 |
label: 'Selector'
|
2080
|
1093 |
labelAlignment: left
|
2078
|
1094 |
labelButtonType: Button
|
|
1095 |
model: selector
|
2079
|
1096 |
canSelect: false
|
2078
|
1097 |
)
|
|
1098 |
)
|
|
1099 |
|
|
1100 |
!
|
|
1101 |
|
|
1102 |
prerequisitesTableColumns
|
|
1103 |
"This resource specification was automatically generated
|
|
1104 |
by the DataSetBuilder of ST/X."
|
|
1105 |
|
|
1106 |
"Do not manually edit this!! If it is corrupted,
|
|
1107 |
the DataSetBuilder may not be able to read the specification."
|
|
1108 |
|
|
1109 |
"
|
2080
|
1110 |
DataSetBuilder new openOnClass:Tools::ProjectDefinitionEditor andSelector:#prerequisitesTableColumns
|
2078
|
1111 |
"
|
|
1112 |
|
|
1113 |
<resource: #tableColumns>
|
|
1114 |
|
|
1115 |
^#(
|
|
1116 |
(DataSetColumnSpec
|
|
1117 |
label: 'Package'
|
2080
|
1118 |
labelAlignment: left
|
2078
|
1119 |
labelButtonType: Button
|
|
1120 |
model: package
|
|
1121 |
)
|
|
1122 |
)
|
|
1123 |
|
|
1124 |
! !
|
|
1125 |
|
|
1126 |
!ProjectDefinitionEditor methodsFor:'accessing'!
|
|
1127 |
|
|
1128 |
definitionClass
|
|
1129 |
^ definitionClass
|
|
1130 |
|
|
1131 |
"Created: / 04-09-2006 / 16:30:09 / cg"
|
|
1132 |
!
|
|
1133 |
|
|
1134 |
definitionClass:aClass
|
|
1135 |
definitionClass := aClass.
|
|
1136 |
self isApplicationDefinitionHolder value:( definitionClass isApplicationDefinition ).
|
2080
|
1137 |
self fetchValues.
|
2078
|
1138 |
|
|
1139 |
"Created: / 04-09-2006 / 16:30:18 / cg"
|
2080
|
1140 |
"Modified: / 06-09-2006 / 19:25:15 / cg"
|
|
1141 |
!
|
|
1142 |
|
|
1143 |
specClass:aClass
|
|
1144 |
super specClass:aClass.
|
|
1145 |
self definitionClass:aClass theNonMetaclass.
|
|
1146 |
|
|
1147 |
"Created: / 06-09-2006 / 19:24:10 / cg"
|
2078
|
1148 |
! !
|
|
1149 |
|
|
1150 |
!ProjectDefinitionEditor methodsFor:'aspects'!
|
|
1151 |
|
|
1152 |
classList
|
|
1153 |
classList isNil ifTrue:[
|
|
1154 |
classList := #() asValue.
|
|
1155 |
].
|
|
1156 |
^ classList.
|
|
1157 |
|
|
1158 |
"Modified: / 05-09-2006 / 10:22:35 / cg"
|
|
1159 |
!
|
|
1160 |
|
|
1161 |
classesTableColumns
|
|
1162 |
classesTableColumns isNil ifTrue:[
|
|
1163 |
classesTableColumns := self class classesTableColumns asValue.
|
|
1164 |
].
|
|
1165 |
^ classesTableColumns.
|
|
1166 |
|
|
1167 |
"Modified: / 04-09-2006 / 17:58:09 / cg"
|
|
1168 |
!
|
|
1169 |
|
|
1170 |
companyNameHolder
|
|
1171 |
companyNameHolder isNil ifTrue:[
|
|
1172 |
companyNameHolder := ValueHolder new.
|
|
1173 |
].
|
|
1174 |
^ companyNameHolder.
|
|
1175 |
|
|
1176 |
"Created: / 04-09-2006 / 17:58:02 / cg"
|
|
1177 |
!
|
|
1178 |
|
|
1179 |
descriptionHolder
|
|
1180 |
descriptionHolder isNil ifTrue:[
|
|
1181 |
descriptionHolder := ValueHolder new.
|
|
1182 |
].
|
|
1183 |
^ descriptionHolder.
|
|
1184 |
|
|
1185 |
"Modified: / 04-09-2006 / 17:58:15 / cg"
|
|
1186 |
!
|
|
1187 |
|
2079
|
1188 |
extensionsList
|
|
1189 |
extensionsList isNil ifTrue:[
|
|
1190 |
extensionsList := #() asValue.
|
|
1191 |
].
|
|
1192 |
^ extensionsList.
|
|
1193 |
|
|
1194 |
"Created: / 06-09-2006 / 18:47:54 / cg"
|
|
1195 |
!
|
|
1196 |
|
2078
|
1197 |
fileDescriptionHolder
|
|
1198 |
fileDescriptionHolder isNil ifTrue:[
|
|
1199 |
fileDescriptionHolder := ValueHolder new.
|
|
1200 |
].
|
|
1201 |
^ fileDescriptionHolder.
|
|
1202 |
|
|
1203 |
"Modified: / 04-09-2006 / 17:58:19 / cg"
|
|
1204 |
!
|
|
1205 |
|
|
1206 |
fileMajorVersionNrHolder
|
|
1207 |
"automatically generated by UIPainter ..."
|
|
1208 |
|
|
1209 |
"*** the code below creates a default model when invoked."
|
|
1210 |
"*** (which may not be the one you wanted)"
|
|
1211 |
"*** Please change as required and accept it in the browser."
|
|
1212 |
"*** (and replace this comment by something more useful ;-)"
|
|
1213 |
|
|
1214 |
fileMajorVersionNrHolder isNil ifTrue:[
|
|
1215 |
fileMajorVersionNrHolder := ValueHolder new.
|
|
1216 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1217 |
"/ fileMajorVersionNrHolder addDependent:self.
|
|
1218 |
"/ fileMajorVersionNrHolder onChangeSend:#fileMajorVersionNrHolderChanged to:self.
|
|
1219 |
].
|
|
1220 |
^ fileMajorVersionNrHolder.
|
|
1221 |
!
|
|
1222 |
|
|
1223 |
fileMinorVersionNrHolder
|
|
1224 |
"automatically generated by UIPainter ..."
|
|
1225 |
|
|
1226 |
"*** the code below creates a default model when invoked."
|
|
1227 |
"*** (which may not be the one you wanted)"
|
|
1228 |
"*** Please change as required and accept it in the browser."
|
|
1229 |
"*** (and replace this comment by something more useful ;-)"
|
|
1230 |
|
|
1231 |
fileMinorVersionNrHolder isNil ifTrue:[
|
|
1232 |
fileMinorVersionNrHolder := ValueHolder new.
|
|
1233 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1234 |
"/ fileMinorVersionNrHolder addDependent:self.
|
|
1235 |
"/ fileMinorVersionNrHolder onChangeSend:#fileMinorVersionNrHolderChanged to:self.
|
|
1236 |
].
|
|
1237 |
^ fileMinorVersionNrHolder.
|
|
1238 |
!
|
|
1239 |
|
|
1240 |
fileReleaseNrHolder
|
|
1241 |
"automatically generated by UIPainter ..."
|
|
1242 |
|
|
1243 |
"*** the code below creates a default model when invoked."
|
|
1244 |
"*** (which may not be the one you wanted)"
|
|
1245 |
"*** Please change as required and accept it in the browser."
|
|
1246 |
"*** (and replace this comment by something more useful ;-)"
|
|
1247 |
|
|
1248 |
fileReleaseNrHolder isNil ifTrue:[
|
|
1249 |
fileReleaseNrHolder := ValueHolder new.
|
|
1250 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1251 |
"/ fileReleaseNrHolder addDependent:self.
|
|
1252 |
"/ fileReleaseNrHolder onChangeSend:#fileReleaseNrHolderChanged to:self.
|
|
1253 |
].
|
|
1254 |
^ fileReleaseNrHolder.
|
|
1255 |
!
|
|
1256 |
|
|
1257 |
fileRevisionNrHolder
|
|
1258 |
"automatically generated by UIPainter ..."
|
|
1259 |
|
|
1260 |
"*** the code below creates a default model when invoked."
|
|
1261 |
"*** (which may not be the one you wanted)"
|
|
1262 |
"*** Please change as required and accept it in the browser."
|
|
1263 |
"*** (and replace this comment by something more useful ;-)"
|
|
1264 |
|
|
1265 |
fileRevisionNrHolder isNil ifTrue:[
|
|
1266 |
fileRevisionNrHolder := ValueHolder new.
|
|
1267 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1268 |
"/ fileRevisionNrHolder addDependent:self.
|
|
1269 |
"/ fileRevisionNrHolder onChangeSend:#fileRevisionNrHolderChanged to:self.
|
|
1270 |
].
|
|
1271 |
^ fileRevisionNrHolder.
|
|
1272 |
!
|
|
1273 |
|
|
1274 |
iconFileNameHolder
|
|
1275 |
iconFileNameHolder isNil ifTrue:[
|
|
1276 |
iconFileNameHolder := ValueHolder new.
|
|
1277 |
].
|
|
1278 |
^ iconFileNameHolder.
|
|
1279 |
|
|
1280 |
"Created: / 04-09-2006 / 18:01:22 / cg"
|
|
1281 |
!
|
|
1282 |
|
|
1283 |
iconFilenameHolder
|
|
1284 |
"automatically generated by UIPainter ..."
|
|
1285 |
|
|
1286 |
"*** the code below creates a default model when invoked."
|
|
1287 |
"*** (which may not be the one you wanted)"
|
|
1288 |
"*** Please change as required and accept it in the browser."
|
|
1289 |
"*** (and replace this comment by something more useful ;-)"
|
|
1290 |
|
|
1291 |
iconFilenameHolder isNil ifTrue:[
|
|
1292 |
iconFilenameHolder := ValueHolder new.
|
|
1293 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1294 |
"/ iconFilenameHolder addDependent:self.
|
|
1295 |
"/ iconFilenameHolder onChangeSend:#iconFilenameHolderChanged to:self.
|
|
1296 |
].
|
|
1297 |
^ iconFilenameHolder.
|
|
1298 |
!
|
|
1299 |
|
|
1300 |
isApplicationDefinitionHolder
|
|
1301 |
isApplicationDefinitionHolder isNil ifTrue:[
|
|
1302 |
isApplicationDefinitionHolder := false asValue
|
|
1303 |
].
|
|
1304 |
^ isApplicationDefinitionHolder.
|
|
1305 |
|
|
1306 |
"Created: / 04-09-2006 / 19:22:47 / cg"
|
|
1307 |
!
|
|
1308 |
|
|
1309 |
isNonGUIApplicationHolder
|
|
1310 |
isNonGUIApplicationHolder isNil ifTrue:[
|
|
1311 |
isNonGUIApplicationHolder := false asValue.
|
|
1312 |
].
|
|
1313 |
^ isNonGUIApplicationHolder.
|
|
1314 |
|
|
1315 |
"Created: / 05-09-2006 / 13:34:31 / cg"
|
|
1316 |
!
|
|
1317 |
|
|
1318 |
legalCopyrightHolder
|
|
1319 |
"automatically generated by UIPainter ..."
|
|
1320 |
|
|
1321 |
"*** the code below creates a default model when invoked."
|
|
1322 |
"*** (which may not be the one you wanted)"
|
|
1323 |
"*** Please change as required and accept it in the browser."
|
|
1324 |
"*** (and replace this comment by something more useful ;-)"
|
|
1325 |
|
|
1326 |
legalCopyrightHolder isNil ifTrue:[
|
|
1327 |
legalCopyrightHolder := ValueHolder new.
|
|
1328 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1329 |
"/ legalCopyrightHolder addDependent:self.
|
|
1330 |
"/ legalCopyrightHolder onChangeSend:#legalCopyrightHolderChanged to:self.
|
|
1331 |
].
|
|
1332 |
^ legalCopyrightHolder.
|
|
1333 |
!
|
|
1334 |
|
|
1335 |
majorVersionNrHolder
|
|
1336 |
"automatically generated by UIPainter ..."
|
|
1337 |
|
|
1338 |
"*** the code below creates a default model when invoked."
|
|
1339 |
"*** (which may not be the one you wanted)"
|
|
1340 |
"*** Please change as required and accept it in the browser."
|
|
1341 |
"*** (and replace this comment by something more useful ;-)"
|
|
1342 |
|
|
1343 |
majorVersionNrHolder isNil ifTrue:[
|
|
1344 |
majorVersionNrHolder := ValueHolder new.
|
|
1345 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1346 |
"/ majorVersionNrHolder addDependent:self.
|
|
1347 |
"/ majorVersionNrHolder onChangeSend:#majorVersionNrHolderChanged to:self.
|
|
1348 |
].
|
|
1349 |
^ majorVersionNrHolder.
|
|
1350 |
!
|
|
1351 |
|
|
1352 |
minorVersionNrHolder
|
|
1353 |
"automatically generated by UIPainter ..."
|
|
1354 |
|
|
1355 |
"*** the code below creates a default model when invoked."
|
|
1356 |
"*** (which may not be the one you wanted)"
|
|
1357 |
"*** Please change as required and accept it in the browser."
|
|
1358 |
"*** (and replace this comment by something more useful ;-)"
|
|
1359 |
|
|
1360 |
minorVersionNrHolder isNil ifTrue:[
|
|
1361 |
minorVersionNrHolder := ValueHolder new.
|
|
1362 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1363 |
"/ minorVersionNrHolder addDependent:self.
|
|
1364 |
"/ minorVersionNrHolder onChangeSend:#minorVersionNrHolderChanged to:self.
|
|
1365 |
].
|
|
1366 |
^ minorVersionNrHolder.
|
|
1367 |
!
|
|
1368 |
|
|
1369 |
productNameHolder
|
|
1370 |
"automatically generated by UIPainter ..."
|
|
1371 |
|
|
1372 |
"*** the code below creates a default model when invoked."
|
|
1373 |
"*** (which may not be the one you wanted)"
|
|
1374 |
"*** Please change as required and accept it in the browser."
|
|
1375 |
"*** (and replace this comment by something more useful ;-)"
|
|
1376 |
|
|
1377 |
productNameHolder isNil ifTrue:[
|
|
1378 |
productNameHolder := ValueHolder new.
|
|
1379 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1380 |
"/ productNameHolder addDependent:self.
|
|
1381 |
"/ productNameHolder onChangeSend:#productNameHolderChanged to:self.
|
|
1382 |
].
|
|
1383 |
^ productNameHolder.
|
|
1384 |
!
|
|
1385 |
|
|
1386 |
releaseNrHolder
|
|
1387 |
"automatically generated by UIPainter ..."
|
|
1388 |
|
|
1389 |
"*** the code below creates a default model when invoked."
|
|
1390 |
"*** (which may not be the one you wanted)"
|
|
1391 |
"*** Please change as required and accept it in the browser."
|
|
1392 |
"*** (and replace this comment by something more useful ;-)"
|
|
1393 |
|
|
1394 |
releaseNrHolder isNil ifTrue:[
|
|
1395 |
releaseNrHolder := ValueHolder new.
|
|
1396 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1397 |
"/ releaseNrHolder addDependent:self.
|
|
1398 |
"/ releaseNrHolder onChangeSend:#releaseNrHolderChanged to:self.
|
|
1399 |
].
|
|
1400 |
^ releaseNrHolder.
|
|
1401 |
!
|
|
1402 |
|
|
1403 |
revisionNrHolder
|
|
1404 |
"automatically generated by UIPainter ..."
|
|
1405 |
|
|
1406 |
"*** the code below creates a default model when invoked."
|
|
1407 |
"*** (which may not be the one you wanted)"
|
|
1408 |
"*** Please change as required and accept it in the browser."
|
|
1409 |
"*** (and replace this comment by something more useful ;-)"
|
|
1410 |
|
|
1411 |
revisionNrHolder isNil ifTrue:[
|
|
1412 |
revisionNrHolder := ValueHolder new.
|
|
1413 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1414 |
"/ revisionNrHolder addDependent:self.
|
|
1415 |
"/ revisionNrHolder onChangeSend:#revisionNrHolderChanged to:self.
|
|
1416 |
].
|
|
1417 |
^ revisionNrHolder.
|
|
1418 |
!
|
|
1419 |
|
|
1420 |
selectedClassIndexHolder
|
|
1421 |
"automatically generated by UIPainter ..."
|
|
1422 |
|
|
1423 |
"*** the code below creates a default model when invoked."
|
|
1424 |
"*** (which may not be the one you wanted)"
|
|
1425 |
"*** Please change as required and accept it in the browser."
|
|
1426 |
"*** (and replace this comment by something more useful ;-)"
|
|
1427 |
|
|
1428 |
selectedClassIndexHolder isNil ifTrue:[
|
|
1429 |
selectedClassIndexHolder := ValueHolder new.
|
|
1430 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
1431 |
"/ selectedClassIndexHolder addDependent:self.
|
|
1432 |
"/ selectedClassIndexHolder onChangeSend:#selectedClassIndexHolderChanged to:self.
|
|
1433 |
].
|
|
1434 |
^ selectedClassIndexHolder.
|
|
1435 |
!
|
|
1436 |
|
|
1437 |
startSinglethreadedHolder
|
|
1438 |
startSinglethreadedHolder isNil ifTrue:[
|
|
1439 |
startSinglethreadedHolder := false asValue.
|
|
1440 |
].
|
|
1441 |
^ startSinglethreadedHolder.
|
|
1442 |
|
|
1443 |
"Created: / 05-09-2006 / 13:34:54 / cg"
|
|
1444 |
!
|
|
1445 |
|
2079
|
1446 |
startupClassNameHolder
|
|
1447 |
startupClassNameHolder isNil ifTrue:[
|
|
1448 |
startupClassNameHolder := '' asValue.
|
2078
|
1449 |
].
|
2079
|
1450 |
^ startupClassNameHolder.
|
2078
|
1451 |
|
2079
|
1452 |
"Created: / 06-09-2006 / 18:41:52 / cg"
|
2078
|
1453 |
!
|
|
1454 |
|
|
1455 |
startupSelectorHolder
|
|
1456 |
startupSelectorHolder isNil ifTrue:[
|
|
1457 |
startupSelectorHolder := '' asValue.
|
|
1458 |
].
|
|
1459 |
^ startupSelectorHolder.
|
|
1460 |
|
|
1461 |
"Created: / 05-09-2006 / 13:34:20 / cg"
|
|
1462 |
!
|
|
1463 |
|
|
1464 |
tabList
|
|
1465 |
"Generated by the TabListEditor"
|
|
1466 |
|
|
1467 |
|list|
|
|
1468 |
|
|
1469 |
(list := builder bindingAt:#tabList) isNil ifTrue:[
|
|
1470 |
builder aspectAt:#tabList put:(list := self class tabListForApplication asValue).
|
|
1471 |
].
|
|
1472 |
^ list
|
|
1473 |
|
2079
|
1474 |
"Modified: / 06-09-2006 / 17:58:08 / cg"
|
2078
|
1475 |
! !
|
|
1476 |
|
|
1477 |
!ProjectDefinitionEditor methodsFor:'aspects-menu'!
|
|
1478 |
|
|
1479 |
classesMenuVisibleHolder
|
|
1480 |
^ builder booleanValueAspectFor:#'classesMenuVisibleHolder'
|
|
1481 |
|
|
1482 |
"Modified: / 03-09-2006 / 10:57:00 / cg"
|
|
1483 |
!
|
|
1484 |
|
|
1485 |
extensionsMenuVisibleHolder
|
|
1486 |
^ builder booleanValueAspectFor:#'extensionsMenuVisibleHolder'
|
|
1487 |
|
|
1488 |
"Created: / 05-09-2006 / 13:03:16 / cg"
|
|
1489 |
!
|
|
1490 |
|
|
1491 |
prerequisitesMenuVisibleHolder
|
|
1492 |
^ builder booleanValueAspectFor:#'prerequisitesMenuVisibleHolder'
|
|
1493 |
|
|
1494 |
"Created: / 05-09-2006 / 13:26:45 / cg"
|
|
1495 |
!
|
|
1496 |
|
|
1497 |
selectedTabIndexHolder
|
|
1498 |
|h|
|
|
1499 |
|
|
1500 |
h := builder valueAspectFor:#'selectedTabIndexHolder' initialValue:nil.
|
|
1501 |
h addDependent:self.
|
|
1502 |
^ h
|
|
1503 |
|
|
1504 |
"Created: / 03-09-2006 / 10:58:05 / cg"
|
|
1505 |
! !
|
|
1506 |
|
|
1507 |
!ProjectDefinitionEditor methodsFor:'change & update'!
|
|
1508 |
|
|
1509 |
fetchClassListEntries
|
|
1510 |
|entries|
|
|
1511 |
|
|
1512 |
entries := OrderedCollection new.
|
|
1513 |
definitionClass
|
|
1514 |
classNamesAndAttributesDo:[:className :attributes |
|
|
1515 |
|entry|
|
|
1516 |
|
|
1517 |
entry := ClassListEntry new.
|
|
1518 |
entry
|
|
1519 |
className:className
|
|
1520 |
autoloaded:(attributes includes:#autoload)
|
|
1521 |
win32:(attributes includes:#win32)
|
|
1522 |
unix:(attributes includes:#unix).
|
|
1523 |
entries add:entry.
|
|
1524 |
].
|
|
1525 |
|
|
1526 |
^ entries.
|
|
1527 |
|
|
1528 |
"Created: / 05-09-2006 / 12:31:26 / cg"
|
|
1529 |
!
|
|
1530 |
|
2079
|
1531 |
fetchExtensionsListEntries
|
|
1532 |
|entries|
|
|
1533 |
|
|
1534 |
entries := OrderedCollection new.
|
|
1535 |
definitionClass
|
|
1536 |
extensionMethodNames pairWiseDo:[:className :selector |
|
|
1537 |
|entry|
|
|
1538 |
|
|
1539 |
entry := ExtensionsListEntry new.
|
|
1540 |
entry className:className selector:selector.
|
|
1541 |
entries add:entry.
|
|
1542 |
].
|
|
1543 |
|
|
1544 |
^ entries.
|
|
1545 |
|
|
1546 |
"Created: / 06-09-2006 / 18:45:15 / cg"
|
|
1547 |
!
|
|
1548 |
|
2078
|
1549 |
fetchValues
|
|
1550 |
|definitionClass isApplicationDefinition|
|
|
1551 |
|
|
1552 |
definitionClass := self definitionClass.
|
|
1553 |
definitionClass isNil ifTrue:[^ self ].
|
|
1554 |
|
|
1555 |
isApplicationDefinition := definitionClass isApplicationDefinition.
|
|
1556 |
|
|
1557 |
self isApplicationDefinitionHolder value:isApplicationDefinition.
|
|
1558 |
isApplicationDefinition ifTrue:[
|
2079
|
1559 |
self startupClassNameHolder value:(definitionClass startupClassName).
|
2078
|
1560 |
self startupSelectorHolder value:(definitionClass startupSelector).
|
|
1561 |
self iconFileNameHolder value:(definitionClass iconFileName).
|
|
1562 |
self tabList value:(self class tabListForApplication).
|
|
1563 |
] ifFalse:[
|
|
1564 |
self tabList value:(self class tabListForLibrary).
|
|
1565 |
].
|
|
1566 |
|
|
1567 |
self companyNameHolder value:(definitionClass companyName).
|
|
1568 |
self descriptionHolder value:(definitionClass description).
|
|
1569 |
self legalCopyrightHolder value:(definitionClass legalCopyright).
|
|
1570 |
self productNameHolder value:(definitionClass productName).
|
|
1571 |
self majorVersionNrHolder value:(definitionClass majorVersionNr asInteger).
|
|
1572 |
self minorVersionNrHolder value:(definitionClass minorVersionNr asInteger).
|
|
1573 |
self revisionNrHolder value:(definitionClass revisionNr asInteger).
|
|
1574 |
self releaseNrHolder value:(definitionClass releaseNr asInteger).
|
|
1575 |
|
|
1576 |
self fileDescriptionHolder value:(definitionClass fileDescription).
|
|
1577 |
self fileMajorVersionNrHolder value:(definitionClass fileMajorVersionNr asInteger).
|
|
1578 |
self fileMinorVersionNrHolder value:(definitionClass fileMinorVersionNr asInteger).
|
|
1579 |
self fileRevisionNrHolder value:(definitionClass fileRevisionNr asInteger).
|
|
1580 |
self fileReleaseNrHolder value:(definitionClass fileReleaseNr asInteger).
|
|
1581 |
|
|
1582 |
self classList value:(self fetchClassListEntries).
|
2079
|
1583 |
self extensionsList value:(self fetchExtensionsListEntries).
|
2078
|
1584 |
|
|
1585 |
self window
|
|
1586 |
label:(isApplicationDefinition
|
|
1587 |
ifTrue:'Application'
|
|
1588 |
ifFalse:'Library' )
|
|
1589 |
, ' Definition: ',definitionClass name.
|
|
1590 |
|
|
1591 |
"Created: / 04-09-2006 / 16:34:39 / cg"
|
2079
|
1592 |
"Modified: / 06-09-2006 / 18:45:45 / cg"
|
2078
|
1593 |
!
|
|
1594 |
|
|
1595 |
update:something with:parameter from:changedObject
|
|
1596 |
changedObject == self selectedTabIndexHolder ifTrue:[
|
|
1597 |
self updateMenuVisibility.
|
|
1598 |
^ self.
|
|
1599 |
].
|
|
1600 |
^ super update:something with:parameter from:changedObject
|
|
1601 |
|
|
1602 |
"Created: / 03-09-2006 / 10:59:42 / cg"
|
|
1603 |
!
|
|
1604 |
|
|
1605 |
updateMenuVisibility
|
|
1606 |
self classesMenuVisibleHolder value:(self hasClassesTabSelected).
|
|
1607 |
self extensionsMenuVisibleHolder value:(self hasExtensionsTabSelected).
|
|
1608 |
self prerequisitesMenuVisibleHolder value:(self hasPrerequisitesTabSelected).
|
|
1609 |
|
|
1610 |
"Created: / 03-09-2006 / 11:01:48 / cg"
|
|
1611 |
"Modified: / 05-09-2006 / 13:27:10 / cg"
|
|
1612 |
! !
|
|
1613 |
|
|
1614 |
!ProjectDefinitionEditor methodsFor:'initialization & release'!
|
|
1615 |
|
|
1616 |
closeRequest
|
|
1617 |
(self hasUnsavedChanges) ifTrue:[
|
|
1618 |
(self confirm:(resources string:'Close without saving ?')) ifFalse:[
|
|
1619 |
^ self
|
|
1620 |
]
|
|
1621 |
].
|
|
1622 |
|
|
1623 |
^ super closeRequest
|
|
1624 |
|
|
1625 |
"Modified: / 03-09-2006 / 10:53:14 / cg"
|
|
1626 |
!
|
|
1627 |
|
|
1628 |
postBuildWith:aBuilder
|
|
1629 |
super postBuildWith:aBuilder.
|
|
1630 |
self selectedTabIndexHolder value:1.
|
|
1631 |
self updateMenuVisibility.
|
|
1632 |
self fetchValues.
|
|
1633 |
|
|
1634 |
"Modified: / 04-09-2006 / 16:28:09 / cg"
|
|
1635 |
!
|
|
1636 |
|
|
1637 |
postOpenWith:aBuilder
|
|
1638 |
"This is a hook method generated by the Browser.
|
|
1639 |
It will be invoked right after the applications window has been opened.
|
|
1640 |
Add any app-specific actions here (starting background processes etc.).
|
|
1641 |
See also #postBuildWith:, which is invoked before opening."
|
|
1642 |
|
|
1643 |
"/ add any code here ...
|
|
1644 |
|
|
1645 |
^ super postOpenWith:aBuilder
|
|
1646 |
! !
|
|
1647 |
|
|
1648 |
!ProjectDefinitionEditor methodsFor:'menu actions'!
|
|
1649 |
|
2080
|
1650 |
menuGenerateClassList
|
|
1651 |
masterApplication
|
|
1652 |
generateProjectDefinitionsIn:(Array with:self definitionClass).
|
|
1653 |
|
|
1654 |
self classList value:(self fetchClassListEntries).
|
|
1655 |
|
|
1656 |
"Modified: / 06-09-2006 / 21:36:44 / cg"
|
|
1657 |
!
|
|
1658 |
|
2078
|
1659 |
menuNew
|
|
1660 |
"This method was generated by the Browser.
|
|
1661 |
It will be invoked when the menu-item 'new' is selected."
|
|
1662 |
|
|
1663 |
"/ change below and add any actions as required here ...
|
|
1664 |
self warn:'no action for ''new'' available.'.
|
|
1665 |
!
|
|
1666 |
|
|
1667 |
menuOpen
|
|
1668 |
self warn:'no action for ''open'' defined.'.
|
|
1669 |
|
|
1670 |
"Modified: / 05-09-2006 / 16:28:51 / cg"
|
|
1671 |
!
|
|
1672 |
|
2080
|
1673 |
menuRemoveClass
|
|
1674 |
|classListHolder|
|
|
1675 |
|
|
1676 |
classListHolder := self classList.
|
|
1677 |
classListHolder value removeIndex:(self selectedClassIndexHolder value).
|
|
1678 |
classListHolder changed.
|
|
1679 |
|
|
1680 |
"Created: / 06-09-2006 / 21:31:05 / cg"
|
|
1681 |
!
|
|
1682 |
|
2078
|
1683 |
menuSave
|
|
1684 |
self menuSaveAs:definitionClass name
|
|
1685 |
|
|
1686 |
"Modified: / 05-09-2006 / 13:48:27 / cg"
|
|
1687 |
!
|
|
1688 |
|
|
1689 |
menuSaveAs
|
|
1690 |
|className class newPackage|
|
|
1691 |
|
|
1692 |
className := Dialog
|
|
1693 |
requestClassName:'Name of new Definition class'
|
|
1694 |
okLabel:'Create'
|
|
1695 |
initialAnswer:'privete_myProject'.
|
|
1696 |
className isEmptyOrNil ifTrue:[^ self].
|
|
1697 |
class := Smalltalk classNamed:className.
|
|
1698 |
class notNil ifTrue:[
|
|
1699 |
Dialog warn:(resources
|
|
1700 |
string:'A class named %1 already exists'
|
|
1701 |
with:className).
|
|
1702 |
^ self.
|
|
1703 |
].
|
|
1704 |
newPackage := className copy replaceAll:$_ with:$/.
|
|
1705 |
newPackage replace:$/ with:$:.
|
|
1706 |
class := ApplicationDefinition newNamed:className package:newPackage.
|
|
1707 |
self menuSaveAs:class.
|
|
1708 |
|
|
1709 |
"Modified: / 05-09-2006 / 16:20:16 / cg"
|
|
1710 |
!
|
|
1711 |
|
|
1712 |
menuSaveAs:aClassName
|
|
1713 |
self halt.
|
|
1714 |
|
|
1715 |
"Created: / 05-09-2006 / 13:48:03 / cg"
|
|
1716 |
!
|
|
1717 |
|
|
1718 |
openAboutThisApplication
|
|
1719 |
"This method was generated by the Browser.
|
|
1720 |
It will be invoked when the menu-item 'help-about' is selected."
|
|
1721 |
|
|
1722 |
"/ could open a customized aboutBox here ...
|
|
1723 |
super openAboutThisApplication
|
|
1724 |
!
|
|
1725 |
|
|
1726 |
openDocumentation
|
|
1727 |
"This method was generated by the Browser.
|
|
1728 |
It will be invoked when the menu-item 'help-documentation' is selected."
|
|
1729 |
|
|
1730 |
"/ change below as required ...
|
|
1731 |
|
|
1732 |
"/ to open an HTML viewer on some document (under 'doc/online/<language>/' ):
|
|
1733 |
HTMLDocumentView openFullOnDocumentationFile:'TOP.html'.
|
|
1734 |
|
|
1735 |
"/ add application-specific help files under the 'doc/online/<language>/help/appName'
|
|
1736 |
"/ directory, and open a viewer with:
|
|
1737 |
"/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'.
|
|
1738 |
! !
|
|
1739 |
|
|
1740 |
!ProjectDefinitionEditor methodsFor:'queries'!
|
|
1741 |
|
|
1742 |
hasClassesTabSelected
|
2080
|
1743 |
^ self selectedTabIndex == 2
|
2078
|
1744 |
|
|
1745 |
"Created: / 03-09-2006 / 11:00:39 / cg"
|
2080
|
1746 |
"Modified: / 06-09-2006 / 21:20:21 / cg"
|
2078
|
1747 |
!
|
|
1748 |
|
|
1749 |
hasExtensionsTabSelected
|
2080
|
1750 |
^ self selectedTabIndex == 3
|
2078
|
1751 |
|
|
1752 |
"Created: / 05-09-2006 / 13:02:26 / cg"
|
2080
|
1753 |
"Modified: / 06-09-2006 / 21:20:25 / cg"
|
2078
|
1754 |
!
|
|
1755 |
|
|
1756 |
hasPrerequisitesTabSelected
|
2080
|
1757 |
^ self selectedTabIndex == 4
|
2078
|
1758 |
|
|
1759 |
"Created: / 05-09-2006 / 13:27:16 / cg"
|
2080
|
1760 |
"Modified: / 06-09-2006 / 21:20:33 / cg"
|
2078
|
1761 |
!
|
|
1762 |
|
|
1763 |
hasUnsavedChanges
|
|
1764 |
^ false
|
|
1765 |
|
|
1766 |
"Created: / 03-09-2006 / 10:53:05 / cg"
|
|
1767 |
!
|
|
1768 |
|
2080
|
1769 |
selectedClass
|
|
1770 |
|item|
|
|
1771 |
|
|
1772 |
item := self classList value at:(self selectedClassIndexHolder value).
|
|
1773 |
self halt.
|
|
1774 |
|
|
1775 |
"Created: / 06-09-2006 / 21:32:20 / cg"
|
|
1776 |
!
|
|
1777 |
|
2078
|
1778 |
selectedTabIndex
|
|
1779 |
^ self selectedTabIndexHolder value
|
|
1780 |
|
|
1781 |
"Created: / 03-09-2006 / 11:00:48 / cg"
|
|
1782 |
! !
|
|
1783 |
|
|
1784 |
!ProjectDefinitionEditor::ClassListEntry methodsFor:'accessing'!
|
|
1785 |
|
|
1786 |
autoloaded
|
|
1787 |
^ autoloaded
|
|
1788 |
!
|
|
1789 |
|
|
1790 |
autoloaded:something
|
|
1791 |
autoloaded := something.
|
|
1792 |
!
|
|
1793 |
|
|
1794 |
className
|
|
1795 |
^ className
|
|
1796 |
!
|
|
1797 |
|
|
1798 |
className:something
|
|
1799 |
className := something.
|
|
1800 |
!
|
|
1801 |
|
|
1802 |
className:classNameArg autoloaded:autoloadedArg win32:win32Arg unix:unixArg
|
|
1803 |
className := classNameArg.
|
|
1804 |
autoloaded := autoloadedArg.
|
|
1805 |
win32 := win32Arg.
|
|
1806 |
unix := unixArg.
|
|
1807 |
!
|
|
1808 |
|
|
1809 |
unix
|
|
1810 |
^ unix
|
|
1811 |
!
|
|
1812 |
|
|
1813 |
unix:something
|
|
1814 |
unix := something.
|
|
1815 |
!
|
|
1816 |
|
|
1817 |
win32
|
|
1818 |
^ win32
|
|
1819 |
!
|
|
1820 |
|
|
1821 |
win32:something
|
|
1822 |
win32 := something.
|
|
1823 |
! !
|
|
1824 |
|
2079
|
1825 |
!ProjectDefinitionEditor::ExtensionsListEntry methodsFor:'accessing'!
|
|
1826 |
|
|
1827 |
className
|
|
1828 |
^ className
|
|
1829 |
!
|
|
1830 |
|
|
1831 |
className:classNameArg selector:selectorArg
|
|
1832 |
className := classNameArg.
|
|
1833 |
selector := selectorArg.
|
|
1834 |
!
|
|
1835 |
|
|
1836 |
selector
|
|
1837 |
^ selector
|
|
1838 |
! !
|
|
1839 |
|
2078
|
1840 |
!ProjectDefinitionEditor class methodsFor:'documentation'!
|
|
1841 |
|
|
1842 |
version
|
|
1843 |
^ '$Header$'
|
|
1844 |
! !
|