367 #'label:' 'selector:' |
367 #'label:' 'selector:' |
368 #'adjust:' #right |
368 #'adjust:' #right |
369 ) |
369 ) |
370 #(#InputFieldSpec |
370 #(#InputFieldSpec |
371 #'name:' 'classNameField' |
371 #'name:' 'classNameField' |
372 #'layout:' #(#LayoutFrame 120 0 50 0 289 0 72 0) |
372 #'layout:' #(#LayoutFrame 120 0 50 0 -2 1.0 72 0) |
|
373 #'tabable:' true |
373 #'model:' #classNameChannel |
374 #'model:' #classNameChannel |
374 #'tabable:' true |
|
375 ) |
|
376 #(#InputFieldSpec |
|
377 #'name:' 'superclassNameField' |
|
378 #'layout:' #(#LayoutFrame 120 0 90 0 289 0 112 0) |
|
379 #'model:' #superclassNameChannel |
|
380 #'tabable:' true |
|
381 ) |
375 ) |
382 #(#InputFieldSpec |
376 #(#InputFieldSpec |
383 #'name:' 'methodNameField' |
377 #'name:' 'methodNameField' |
384 #'layout:' #(#LayoutFrame 120 0 130 0 289 0 152 0) |
378 #'layout:' #(#LayoutFrame 120 0 130 0 -2 1.0 152 0) |
|
379 #'tabable:' true |
385 #'model:' #methodNameChannel |
380 #'model:' #methodNameChannel |
386 #'tabable:' true |
|
387 ) |
381 ) |
388 #(#ActionButtonSpec |
382 #(#ActionButtonSpec |
389 #'name:' 'button1' |
383 #'name:' 'button1' |
390 #'layout:' #(#LayoutFrame 30 0 180 0 129 0 209 0) |
384 #'layout:' #(#AlignmentOrigin -2 0.5 195 0 1 0.5) |
391 #'label:' 'cancel' |
385 #'label:' 'cancel' |
392 #'tabable:' true |
386 #'tabable:' true |
393 #'model:' #cancel |
387 #'model:' #cancel |
394 #'isTriggerOnDown:' false |
|
395 #'autoRepeat:' false |
|
396 ) |
388 ) |
397 #(#ActionButtonSpec |
389 #(#ActionButtonSpec |
398 #'name:' 'button2' |
390 #'name:' 'button2' |
399 #'layout:' #(#LayoutFrame 160 0 180 0 259 0 209 0) |
391 #'layout:' #(#AlignmentOrigin 2 0.5 195 0 0 0.5) |
400 #'label:' 'ok' |
392 #'label:' 'ok' |
401 #'tabable:' true |
393 #'tabable:' true |
402 #'isDefault:' true |
394 #'isDefault:' true |
403 #'model:' #accept |
395 #'model:' #accept |
404 #'isTriggerOnDown:' false |
|
405 #'autoRepeat:' false |
|
406 ) |
396 ) |
407 #(#LabelSpec |
397 #(#LabelSpec |
408 #'name:' 'boxLabel' |
398 #'name:' 'boxLabel' |
409 #'layout:' #(#LayoutFrame 0 0.0 11 0 0 1.0 32 0) |
399 #'layout:' #(#LayoutFrame 0 0.0 11 0 0 1.0 32 0) |
410 #'label:' 'class & selector for code:' |
400 #'label:' 'class & selector for code:' |
411 #'adjust:' #left |
401 #'adjust:' #left |
412 ) |
402 ) |
|
403 #(#ComboBoxSpec |
|
404 #'name:' 'comboBox1' |
|
405 #'layout:' #(#LayoutFrame 120 0 90 0 -2 1.0 112 0) |
|
406 #'tabable:' true |
|
407 #'model:' #superclassNameChannel |
|
408 #'immediateAccept:' false |
|
409 #'acceptOnLeave:' true |
|
410 #'acceptOnLostFocus:' true |
|
411 #'comboList:' #superclassNameDefaults |
|
412 ) |
413 ) |
413 ) |
414 ) |
414 ) |
415 ) |
415 ) |
|
416 |
|
417 "Modified: 17.6.1997 / 13:02:12 / cg" |
416 ! |
418 ! |
417 |
419 |
418 windowSpec |
420 windowSpec |
419 "this window spec was automatically generated by the ST/X UIPainter" |
421 "this window spec was automatically generated by the ST/X UIPainter" |
420 |
422 |
977 ]. |
979 ]. |
978 aspects at:#superclassNameChannel put:( |
980 aspects at:#superclassNameChannel put:( |
979 (specSuperclass notNil ifTrue:[specSuperclass] |
981 (specSuperclass notNil ifTrue:[specSuperclass] |
980 ifFalse:['ApplicationModel']) asValue |
982 ifFalse:['ApplicationModel']) asValue |
981 ). |
983 ). |
|
984 aspects at:#superclassNameDefaults put:#('ApplicationModel' 'SimpleDialog') asValue. |
982 aspects at:#methodNameChannel put:( |
985 aspects at:#methodNameChannel put:( |
983 (specSelector notNil ifTrue:[specSelector] |
986 (specSelector notNil ifTrue:[specSelector] |
984 ifFalse:[#windowSpec]) asValue |
987 ifFalse:[#windowSpec]) asValue |
985 ). |
988 ). |
986 |
989 |
1034 "open up an interface builder, fetching a spec from someClass |
1038 "open up an interface builder, fetching a spec from someClass |
1035 via some selector |
1039 via some selector |
1036 " |
1040 " |
1037 |painter| |
1041 |painter| |
1038 |
1042 |
|
1043 aClass isNil ifTrue:[ |
|
1044 self warn:'nil class given (class was probably renamed ?)'. |
|
1045 ]. |
|
1046 |
1039 self openInterface. |
1047 self openInterface. |
1040 |
1048 |
1041 painter := self painter. |
1049 aClass notNil ifTrue:[ |
1042 specClass := aClass name. |
1050 painter := self painter. |
1043 specSuperclass := aClass superclass name. |
1051 specClass := aClass name. |
1044 specSelector := aSelector. |
1052 specSuperclass := aClass superclass name. |
1045 |
1053 specSelector := aSelector. |
1046 painter className:aClass name. |
1054 |
1047 painter methodName:aSelector. |
1055 (aspects at:#classNameChannel) value:specClass. |
1048 painter setupFromSpec:(aClass perform:aSelector). |
1056 (aspects at:#superclassNameChannel) value:specSuperclass. |
1049 |
1057 (aspects at:#methodNameChannel) value:specSelector. |
|
1058 |
|
1059 painter className:aClass name. |
|
1060 painter methodName:aSelector. |
|
1061 painter setupFromSpec:(aClass perform:aSelector). |
|
1062 ] |
|
1063 |
|
1064 "Modified: 17.6.1997 / 13:04:48 / cg" |
1050 ! ! |
1065 ! ! |
1051 |
1066 |
1052 !UIPainter methodsFor:'user interaction - dialog'! |
1067 !UIPainter methodsFor:'user interaction - dialog'! |
1053 |
1068 |
1054 checkClassAndSelector |
1069 checkClassAndSelector |