17 aspectSelectorHolder aspectChannel nameChannel fgChannel |
17 aspectSelectorHolder aspectChannel nameChannel fgChannel |
18 bgChannel applyAction leftFractionHolder leftOffsetHolder |
18 bgChannel applyAction leftFractionHolder leftOffsetHolder |
19 rightFractionHolder rightOffsetHolder topFractionHolder |
19 rightFractionHolder rightOffsetHolder topFractionHolder |
20 topOffsetHolder bottomFractionHolder bottomOffsetHolder specClass |
20 topOffsetHolder bottomFractionHolder bottomOffsetHolder specClass |
21 specSelector leftAlignmentFractionHolder |
21 specSelector leftAlignmentFractionHolder |
22 topAlignmentFractionHolder propertyShown specShown' |
22 topAlignmentFractionHolder classNameHolder methodNameHolder |
|
23 aspectHolders propertyShown specShown' |
23 classVariableNames:'' |
24 classVariableNames:'' |
24 poolDictionaries:'' |
25 poolDictionaries:'' |
25 category:'Interface-UIPainter' |
26 category:'Interface-UIPainter' |
26 ! |
27 ! |
27 |
28 |
859 #(#WindowSpec |
860 #(#WindowSpec |
860 #'label:' 'unnamed' |
861 #'label:' 'unnamed' |
861 #'bounds:' #(#Rectangle 0 0 255 292) |
862 #'bounds:' #(#Rectangle 0 0 255 292) |
862 ) |
863 ) |
863 ) |
864 ) |
|
865 ! |
|
866 |
|
867 nameAndSelectorSpec |
|
868 "this window spec was automatically generated by the ST/X UIPainter" |
|
869 |
|
870 "do not manually edit this - the painter/builder may not be able to |
|
871 handle the specification if its corrupted." |
|
872 |
|
873 "UIPainter new openOnClass:NewApplication andSelector:#windowSpec" |
|
874 "NewApplication new openInterface:#windowSpec" |
|
875 "NewApplication open" |
|
876 |
|
877 <resource: #canvas> |
|
878 |
|
879 ^ |
|
880 |
|
881 #(#FullSpec |
|
882 #'window:' |
|
883 #(#WindowSpec |
|
884 #'layout:' #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
885 #'label:' 'unnamed' |
|
886 #'bounds:' #(#Rectangle 0 0 300 300) |
|
887 ) |
|
888 #'component:' |
|
889 #(#SpecCollection |
|
890 #'collection:' |
|
891 #( |
|
892 #(#LabelSpec |
|
893 #'name:' 'label1' |
|
894 #'layout:' #(#LayoutFrame 10 0 50 0 110 0 70 0) |
|
895 #'label:' 'class:' |
|
896 #'adjust:' #right |
|
897 ) |
|
898 #(#LabelSpec |
|
899 #'name:' 'label2' |
|
900 #'layout:' #(#LayoutFrame 10 0 90 0 110 0 110 0) |
|
901 #'label:' 'superclass:' |
|
902 #'adjust:' #right |
|
903 ) |
|
904 #(#LabelSpec |
|
905 #'name:' 'label3' |
|
906 #'layout:' #(#LayoutFrame 10 0 130 0 110 0 150 0) |
|
907 #'label:' 'selector:' |
|
908 #'adjust:' #right |
|
909 ) |
|
910 #(#InputFieldSpec |
|
911 #'name:' 'classNameField' |
|
912 #'layout:' #(#LayoutFrame 120 0 50 0 289 0 69 0) |
|
913 #'model:' #classNameChannel |
|
914 #'immediateAccept:' false |
|
915 #'acceptOnLeave:' true |
|
916 #'acceptOnReturn:' true |
|
917 #'acceptOnTab:' true |
|
918 ) |
|
919 #(#InputFieldSpec |
|
920 #'name:' 'superclassNameField' |
|
921 #'layout:' #(#LayoutFrame 120 0 90 0 289 0 109 0) |
|
922 #'model:' #superclassNameChannel |
|
923 #'immediateAccept:' false |
|
924 #'acceptOnLeave:' true |
|
925 #'acceptOnReturn:' true |
|
926 #'acceptOnTab:' true |
|
927 ) |
|
928 #(#InputFieldSpec |
|
929 #'name:' 'methodNameField' |
|
930 #'layout:' #(#LayoutFrame 120 0 130 0 289 0 149 0) |
|
931 #'model:' #methodNameChannel |
|
932 #'immediateAccept:' false |
|
933 #'acceptOnLeave:' true |
|
934 #'acceptOnReturn:' true |
|
935 #'acceptOnTab:' true |
|
936 ) |
|
937 #(#ActionButtonSpec |
|
938 #'name:' 'button1' |
|
939 #'layout:' #(#LayoutFrame 30 0 250 0 129 0 279 0) |
|
940 #'label:' 'cancel' |
|
941 #'model:' #cancelClicked |
|
942 ) |
|
943 #(#ActionButtonSpec |
|
944 #'name:' 'button2' |
|
945 #'layout:' #(#LayoutFrame 160 0 250 0 259 0 279 0) |
|
946 #'label:' 'ok' |
|
947 #'model:' #okClicked |
|
948 ) |
|
949 ) |
|
950 ) |
|
951 ) |
|
952 |
|
953 |
|
954 |
864 ! ! |
955 ! ! |
865 |
956 |
866 !UIPainter methodsFor:'BuilderView interface'! |
957 !UIPainter methodsFor:'BuilderView interface'! |
867 |
958 |
868 setUndoLabel:aString |
959 setUndoLabel:aString |
1106 |
1189 |
1107 "Modified: 5.9.1995 / 23:52:57 / claus" |
1190 "Modified: 5.9.1995 / 23:52:57 / claus" |
1108 ! |
1191 ! |
1109 |
1192 |
1110 initChannels |
1193 initChannels |
|
1194 aspectHolders := IdentityDictionary new. |
|
1195 |
|
1196 aspectHolders at:#classNameChannel put:((specClass notNil ifTrue:[specClass name] ifFalse:['NewApplication']) asValue). |
|
1197 aspectHolders at:#superclassNameChannel put:((specClass notNil ifTrue:[specClass superclass] ifFalse:[ApplicationModel]) name asValue). |
|
1198 aspectHolders at:#methodNameChannel put:(specSelector asValue). |
|
1199 |
|
1200 aspectHolders at:#aspectChannel put:(ValueHolder new). |
|
1201 aspectHolders at:#changeChannel put:(ValueHolder new). |
|
1202 |
|
1203 aspectHolders at:#foregroundChannel put:(ValueHolder new). |
|
1204 aspectHolders at:#backgroundChannel put:(ValueHolder new). |
|
1205 |
1111 |
1206 |
1112 bottomFractionHolder := nil asValue. |
1207 bottomFractionHolder := nil asValue. |
1113 bottomOffsetHolder := nil asValue. |
1208 bottomOffsetHolder := nil asValue. |
1114 leftFractionHolder := nil asValue. |
1209 leftFractionHolder := nil asValue. |
1115 leftOffsetHolder := nil asValue. |
1210 leftOffsetHolder := nil asValue. |
1117 rightOffsetHolder := nil asValue. |
1212 rightOffsetHolder := nil asValue. |
1118 topFractionHolder := nil asValue. |
1213 topFractionHolder := nil asValue. |
1119 topOffsetHolder := nil asValue. |
1214 topOffsetHolder := nil asValue. |
1120 leftAlignmentFractionHolder := nil asValue. |
1215 leftAlignmentFractionHolder := nil asValue. |
1121 topAlignmentFractionHolder := nil asValue. |
1216 topAlignmentFractionHolder := nil asValue. |
1122 |
|
1123 fgChannel := nil asValue. |
|
1124 bgChannel := nil asValue. |
|
1125 |
|
1126 aspectChannel := nil asValue. |
|
1127 changeChannel := nil asValue. |
|
1128 |
1217 |
1129 ! |
1218 ! |
1130 |
1219 |
1131 initPullDownMenu |
1220 initPullDownMenu |
1132 menu labels:(resources array:#( |
1221 menu labels:(resources array:#( |
2572 setModelAspects |
2654 setModelAspects |
2573 "sent when apply is pressen in the model-sub view" |
2655 "sent when apply is pressen in the model-sub view" |
2574 |
2656 |
2575 |aspectSymbol| |
2657 |aspectSymbol| |
2576 |
2658 |
2577 aspectSymbol := aspectChannel value. |
2659 aspectSymbol := (self aspectFor:#aspectChannel) value. |
2578 (aspectSymbol notNil and:[aspectSymbol notEmpty]) ifTrue:[ |
2660 (aspectSymbol notNil and:[aspectSymbol notEmpty]) ifTrue:[ |
2579 aspectSymbol := aspectSymbol asSymbol. |
2661 aspectSymbol := aspectSymbol asSymbol. |
2580 workView singleSelectionDo:[:selectedView | |
2662 workView singleSelectionDo:[:selectedView | |
2581 selectedView ~~ workView ifTrue:[ |
2663 selectedView ~~ workView ifTrue:[ |
2582 workView setAspectSelector:aspectSymbol forView:selectedView |
2664 workView setAspectSelector:aspectSymbol forView:selectedView |