116 " |
116 " |
117 |
117 |
118 ^ super helpSpec addPairsFrom:#( |
118 ^ super helpSpec addPairsFrom:#( |
119 |
119 |
120 #accept |
120 #accept |
121 'write back changes' |
121 'Writes back changes.' |
122 |
122 |
123 #alignSelectionBottom |
123 #alignSelectionBottom |
124 'align selected widgets to the bottom edge of the dominant widget' |
124 'Aligns selected widgets to the bottom edge of the dominant widget.' |
125 |
125 |
126 #alignSelectionCenterHor |
126 #alignSelectionCenterHor |
127 'align selected widgets vertical to the center of the dominant widget' |
127 'Aligns selected widgets vertical to the center of the dominant widget.' |
128 |
128 |
129 #alignSelectionCenterVer |
129 #alignSelectionCenterVer |
130 'align selected widgets horizontal to the center of the dominant widget' |
130 'Aligns selected widgets horizontal to the center of the dominant widget.' |
131 |
131 |
132 #alignSelectionLeft |
132 #alignSelectionLeft |
133 'align selected widgets to the left edge of the dominant widget' |
133 'Aligns selected widgets to the left edge of the dominant widget.' |
134 |
134 |
135 #alignSelectionLeftAndRight |
135 #alignSelectionLeftAndRight |
136 'align selected widgets to the right and left edge of the dominant widget' |
136 'Aligns selected widgets to the right and left edge of the dominant widget.' |
137 |
137 |
138 #alignSelectionRight |
138 #alignSelectionRight |
139 'align selected widgets to the right edge of the dominant widget' |
139 'Aligns selected widgets to the right edge of the dominant widget.' |
140 |
140 |
141 #alignSelectionTop |
141 #alignSelectionTop |
142 'align selected widgets to the top edge of the dominant widget' |
142 'Aligns selected widgets to the top edge of the dominant widget.' |
143 |
143 |
144 #alignSelectionTopAndBottom |
144 #alignSelectionTopAndBottom |
145 'align selected widgets to the top and bottom edge of the dominant widget' |
145 'Aligns selected widgets to the top and bottom edge of the dominant widget.' |
146 |
146 |
147 #cancel |
147 #cancel |
148 'reread specification and layout' |
148 'Rereads specification and layout.' |
149 |
149 |
150 #centerSelectionHor |
150 #centerSelectionHor |
151 'center widgets horizontal to their top widget' |
151 'Centers widgets horizontal to their top widget.' |
152 |
152 |
153 #centerSelectionVer |
153 #centerSelectionVer |
154 'center vertical horizontal in contained view' |
154 'Centers vertical horizontal in contained view.' |
155 |
155 |
156 #copyExtent |
156 #copyExtent |
157 'copy extent of the selected widget' |
157 'Copies extent of the selected widget.' |
158 |
158 |
159 #copyLayout |
159 #copyLayout |
160 'copy layout of the selected widget' |
160 'Copies layout of the selected widget.' |
|
161 |
|
162 #fileLoad |
|
163 'Opens dialog to load an interface from a class.' |
|
164 |
|
165 #fileNew |
|
166 'Creates new interface.' |
|
167 |
|
168 #filePickAnInterface |
|
169 'Changes the cursor for moving it over another view to load its interface.' |
|
170 |
|
171 #fileSave |
|
172 'Saves current interface.' |
161 |
173 |
162 #galleryShown |
174 #galleryShown |
163 'show or hide gallery view' |
175 'Shows or hide gallery view.' |
164 |
176 |
165 #menuAlignment |
177 #menuAlignment |
166 'provides a set of alignment operation on the current selected widgets' |
178 'Provides a set of alignment operation on the current selected widgets.' |
167 |
|
168 #menuChangeHierarchy |
|
169 'change hierarchy of the selected widget' |
|
170 |
179 |
171 #moveSelectionDown |
180 #moveSelectionDown |
172 'move selected widgets down while pressing the button' |
181 'Moves selected widgets down.' |
173 |
182 |
174 #moveSelectionLeft |
183 #moveSelectionLeft |
175 'move selected widgets left while pressing the button' |
184 'Moves selected widgets out of parent widget.' |
176 |
185 |
177 #moveSelectionRight |
186 #moveSelectionRight |
178 'move selected widgets right while pressing the button' |
187 'Moves selected widgets into next widget as child.' |
179 |
188 |
180 #moveSelectionUp |
189 #moveSelectionUp |
181 'move selected widgets up while pressing the button' |
190 'Moves selected widgets up.' |
182 |
191 |
183 #painterShown |
192 #painterShown |
184 'show or hide painter view' |
193 'Shows or hide painter view.' |
185 |
194 |
186 #pasteBuffer |
195 #pasteBuffer |
187 'paste widgets at current mouse position' |
196 'Pastes widgets at current mouse position.' |
188 |
197 |
189 #pasteExtent |
198 #pasteExtent |
190 'change extent of all selected widgets to the last copied extent' |
199 'Changes extent of all selected widgets to the last copied extent.' |
191 |
200 |
192 #pasteHeight |
201 #pasteHeight |
193 'change height of all selected widgets to the last copied extent height' |
202 'Changes height of all selected widgets to the last copied extent height.' |
194 |
203 |
195 #pasteLayout |
204 #pasteLayout |
196 'change layout of all selected widgets to the last copied layout' |
205 'Changes layout of all selected widgets to the last copied layout.' |
197 |
206 |
198 #pasteWidth |
207 #pasteWidth |
199 'change width of all selected widgets to the last copied extent width' |
208 'Changes width of all selected widgets to the last copied extent width.' |
200 |
209 |
201 #pasteWithLayout |
210 #pasteWithLayout |
202 'paste widgets without changing their layouts' |
211 'Pastes widgets without changing their layouts.' |
203 |
212 |
204 #setToDefaultExtent |
213 #setToDefaultExtent |
205 'set selected widgets to their default extent' |
214 'Sets selected widgets to their default extent.' |
206 |
215 |
207 #setToDefaultHeight |
216 #setToDefaultHeight |
208 'set selected widgets to their default height' |
217 'Sets selected widgets to their default height.' |
209 |
218 |
210 #setToDefaultWidth |
219 #setToDefaultWidth |
211 'set selected widgets to their default width' |
220 'Sets selected widgets to their default width.' |
212 |
221 |
213 #spreadSelectionHor |
222 #spreadSelectionHor |
214 'horizontal spacing between selected widgets is made the same' |
223 'Sets horizontal spaces between selected widgets as the same.' |
215 |
224 |
216 #spreadSelectionVer |
225 #spreadSelectionVer |
217 'vertical spacing between selected widgets is made the same' |
226 'Sets vertical spaces between selected widgets as the same.' |
|
227 |
|
228 #testStartApplication |
|
229 'Starts current application on loaded interface.' |
218 |
230 |
219 ) |
231 ) |
220 ! ! |
232 ! ! |
221 |
233 |
222 !UIPainter class methodsFor:'helpers'! |
234 !UIPainter class methodsFor:'helpers'! |
1075 ) |
1102 ) |
1076 ) nil |
1103 ) nil |
1077 nil |
1104 nil |
1078 ) |
1105 ) |
1079 ) |
1106 ) |
1080 #(#MenuItem |
|
1081 #'label:' 'Align' |
|
1082 #'submenuChannel:' #menuAlign |
|
1083 ) |
|
1084 ) nil |
1107 ) nil |
1085 nil |
1108 nil |
1086 ) |
1109 ) |
1087 ! |
1110 ! |
1088 |
1111 |
1089 menuToolbar |
1112 menuMove |
1090 "this window spec was automatically generated by the ST/X MenuEditor" |
1113 "this window spec was automatically generated by the ST/X MenuEditor" |
1091 |
1114 |
1092 "do not manually edit this - the builder may not be able to |
1115 "do not manually edit this - the builder may not be able to |
1093 handle the specification if its corrupted." |
1116 handle the specification if its corrupted." |
1094 |
1117 |
1095 " |
1118 " |
1096 MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar |
1119 MenuEditor new openOnClass:UIPainter andSelector:#menuMove |
1097 (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp |
1120 (Menu new fromLiteralArrayEncoding:(UIPainter menuMove)) startUp |
1098 " |
1121 " |
1099 |
1122 |
1100 <resource: #menu> |
1123 <resource: #menu> |
1101 |
1124 |
1102 ^ |
1125 ^ |
1103 |
1126 |
1104 #(#Menu |
1127 #(#Menu |
1105 |
1128 |
1106 #( |
1129 #( |
1107 #(#MenuItem |
1130 #(#MenuItem |
1108 #'label:' 'Run' |
1131 #'label:' 'Move Up' |
|
1132 #'value:' #doStepUp |
|
1133 #'activeHelpKey:' #moveSelectionUp |
|
1134 #'enabled:' #canMoveOrAlignSelection |
|
1135 #'labelImage:' #(#ResourceRetriever #ToolApplicationModel #upIcon 'Move Up') |
|
1136 ) |
|
1137 #(#MenuItem |
|
1138 #'label:' 'Move Down' |
|
1139 #'value:' #doStepDown |
|
1140 #'activeHelpKey:' #moveSelectionDown |
|
1141 #'enabled:' #canMoveOrAlignSelection |
|
1142 #'labelImage:' #(#ResourceRetriever #ToolApplicationModel #downIcon 'Move Down') |
|
1143 ) |
|
1144 #(#MenuItem |
|
1145 #'label:' 'Move In' |
|
1146 #'value:' #doStepIn |
|
1147 #'activeHelpKey:' #moveSelectionRight |
|
1148 #'enabled:' #canMoveSelectionIntoContainer |
|
1149 #'labelImage:' #(#ResourceRetriever #ToolApplicationModel #downRightIcon 'Move In') |
|
1150 ) |
|
1151 #(#MenuItem |
|
1152 #'label:' 'Move Out' |
|
1153 #'value:' #doStepOut |
|
1154 #'activeHelpKey:' #moveSelectionLeft |
|
1155 #'enabled:' #canMoveSelectionOutOfContainer |
|
1156 #'labelImage:' #(#ResourceRetriever #ToolApplicationModel #leftDownIcon 'Move Out') |
|
1157 ) |
|
1158 ) nil |
|
1159 nil |
|
1160 ) |
|
1161 ! |
|
1162 |
|
1163 menuToolbar |
|
1164 "this window spec was automatically generated by the ST/X MenuEditor" |
|
1165 |
|
1166 "do not manually edit this - the builder may not be able to |
|
1167 handle the specification if its corrupted." |
|
1168 |
|
1169 " |
|
1170 MenuEditor new openOnClass:UIPainter andSelector:#menuToolbar |
|
1171 (Menu new fromLiteralArrayEncoding:(UIPainter menuToolbar)) startUp |
|
1172 " |
|
1173 |
|
1174 <resource: #menu> |
|
1175 |
|
1176 ^ |
|
1177 |
|
1178 #(#Menu |
|
1179 |
|
1180 #( |
|
1181 #(#MenuItem |
|
1182 #'label:' 'Start' |
1109 #'isButton:' true |
1183 #'isButton:' true |
1110 #'value:' #doStartApplication |
1184 #'value:' #doStartApplication |
1111 #'labelImage:' #(#ResourceRetriever nil #runIcon) |
1185 #'activeHelpKey:' #testStartApplication |
|
1186 #'labelImage:' #(#ResourceRetriever nil #startIcon) |
1112 ) |
1187 ) |
1113 #(#MenuItem |
1188 #(#MenuItem |
1114 #'label:' '-' |
1189 #'label:' '-' |
1115 ) |
1190 ) |
1116 #(#MenuItem |
1191 #(#MenuItem |
1117 #'label:' 'New' |
1192 #'label:' 'New' |
1118 #'isButton:' true |
1193 #'isButton:' true |
1119 #'value:' #doNew |
1194 #'value:' #doNew |
|
1195 #'activeHelpKey:' #fileNew |
1120 #'labelImage:' #(#ResourceRetriever nil #newIcon) |
1196 #'labelImage:' #(#ResourceRetriever nil #newIcon) |
1121 ) |
1197 ) |
1122 #(#MenuItem |
1198 #(#MenuItem |
1123 #'label:' 'Load' |
1199 #'label:' 'Load' |
1124 #'isButton:' true |
1200 #'isButton:' true |
1125 #'value:' #doFromClass |
1201 #'value:' #doFromClass |
|
1202 #'activeHelpKey:' #fileLoad |
1126 #'labelImage:' #(#ResourceRetriever nil #loadIcon) |
1203 #'labelImage:' #(#ResourceRetriever nil #loadIcon) |
1127 ) |
1204 ) |
1128 #(#MenuItem |
1205 #(#MenuItem |
1129 #'label:' 'Save' |
1206 #'label:' 'Save' |
1130 #'isButton:' true |
1207 #'isButton:' true |
1131 #'value:' #doInstallSpec |
1208 #'value:' #doInstallSpec |
|
1209 #'activeHelpKey:' #fileSave |
1132 #'labelImage:' #(#ResourceRetriever nil #saveIcon) |
1210 #'labelImage:' #(#ResourceRetriever nil #saveIcon) |
1133 ) |
1211 ) |
1134 #(#MenuItem |
1212 #(#MenuItem |
1135 #'label:' '-' |
1213 #'label:' '-' |
1136 ) |
1214 ) |
1137 #(#MenuItem |
1215 #(#MenuItem |
1138 #'label:' 'stepUp' |
1216 #'label:' 'Move Up' |
1139 #'isButton:' true |
1217 #'isButton:' true |
1140 #'value:' #doStepUp |
1218 #'value:' #doStepUp |
1141 #'enabled:' #enabledStepOver |
1219 #'activeHelpKey:' #moveSelectionUp |
|
1220 #'enabled:' #canMoveOrAlignSelection |
1142 #'labelImage:' #(#ResourceRetriever nil #upIcon) |
1221 #'labelImage:' #(#ResourceRetriever nil #upIcon) |
1143 ) |
1222 ) |
1144 #(#MenuItem |
1223 #(#MenuItem |
1145 #'label:' 'stepDown' |
1224 #'label:' 'Move Down' |
1146 #'isButton:' true |
1225 #'isButton:' true |
1147 #'value:' #doStepDown |
1226 #'value:' #doStepDown |
1148 #'enabled:' #enabledStepOver |
1227 #'activeHelpKey:' #moveSelectionDown |
|
1228 #'enabled:' #canMoveOrAlignSelection |
1149 #'labelImage:' #(#ResourceRetriever nil #downIcon) |
1229 #'labelImage:' #(#ResourceRetriever nil #downIcon) |
1150 ) |
1230 ) |
1151 #(#MenuItem |
1231 #(#MenuItem |
1152 #'label:' 'stepIn' |
1232 #'label:' 'Move In' |
1153 #'isButton:' true |
1233 #'isButton:' true |
1154 #'value:' #doStepIn |
1234 #'value:' #doStepIn |
1155 #'enabled:' #enabledStepIn |
1235 #'activeHelpKey:' #moveSelectionRight |
|
1236 #'enabled:' #canMoveSelectionIntoContainer |
1156 #'labelImage:' #(#ResourceRetriever nil #downRightIcon) |
1237 #'labelImage:' #(#ResourceRetriever nil #downRightIcon) |
1157 ) |
1238 ) |
1158 #(#MenuItem |
1239 #(#MenuItem |
1159 #'label:' 'stepOut' |
1240 #'label:' 'Move Out' |
1160 #'isButton:' true |
1241 #'isButton:' true |
1161 #'value:' #doStepOut |
1242 #'value:' #doStepOut |
1162 #'enabled:' #enabledStepOut |
1243 #'activeHelpKey:' #moveSelectionLeft |
|
1244 #'enabled:' #canMoveSelectionOutOfContainer |
1163 #'labelImage:' #(#ResourceRetriever nil #leftDownIcon) |
1245 #'labelImage:' #(#ResourceRetriever nil #leftDownIcon) |
1164 ) |
1246 ) |
1165 #(#MenuItem |
1247 #(#MenuItem |
1166 #'label:' '-' |
1248 #'label:' '-' |
1167 ) |
1249 ) |
1168 #(#MenuItem |
1250 #(#MenuItem |
1169 #'label:' 'align left' |
1251 #'label:' 'Align left' |
1170 #'isButton:' true |
1252 #'isButton:' true |
1171 #'value:' #alignSelectionLeft |
1253 #'value:' #alignSelectionLeft |
1172 #'activeHelpKey:' #alignSelectionLeft |
1254 #'activeHelpKey:' #alignSelectionLeft |
1173 #'labelImage:' #(#ResourceRetriever nil #iconAlignL) |
1255 #'labelImage:' #(#ResourceRetriever nil #iconAlignL) |
1174 ) |
1256 ) |
1175 #(#MenuItem |
1257 #(#MenuItem |
1176 #'label:' 'align right' |
1258 #'label:' 'Align right' |
1177 #'isButton:' true |
1259 #'isButton:' true |
1178 #'value:' #alignSelectionRight |
1260 #'value:' #alignSelectionRight |
1179 #'activeHelpKey:' #alignSelectionRight |
1261 #'activeHelpKey:' #alignSelectionRight |
1180 #'labelImage:' #(#ResourceRetriever nil #iconAlignR) |
1262 #'labelImage:' #(#ResourceRetriever nil #iconAlignR) |
1181 ) |
1263 ) |
1182 #(#MenuItem |
1264 #(#MenuItem |
1183 #'label:' 'align left & right' |
1265 #'label:' 'Align left & right' |
1184 #'isButton:' true |
1266 #'isButton:' true |
1185 #'value:' #alignSelectionLeftAndRight |
1267 #'value:' #alignSelectionLeftAndRight |
1186 #'activeHelpKey:' #alignSelectionLeftAndRight |
1268 #'activeHelpKey:' #alignSelectionLeftAndRight |
1187 #'labelImage:' #(#ResourceRetriever nil #iconAlignLR) |
1269 #'labelImage:' #(#ResourceRetriever nil #iconAlignLR) |
1188 ) |
1270 ) |
1189 #(#MenuItem |
1271 #(#MenuItem |
1190 #'label:' 'align top' |
1272 #'label:' 'Align top' |
1191 #'isButton:' true |
1273 #'isButton:' true |
1192 #'value:' #alignSelectionTop |
1274 #'value:' #alignSelectionTop |
1193 #'activeHelpKey:' #alignSelectionTop |
1275 #'activeHelpKey:' #alignSelectionTop |
1194 #'labelImage:' #(#ResourceRetriever nil #iconAlignT) |
1276 #'labelImage:' #(#ResourceRetriever nil #iconAlignT) |
1195 ) |
1277 ) |
1196 #(#MenuItem |
1278 #(#MenuItem |
1197 #'label:' 'align bottom' |
1279 #'label:' 'Align bottom' |
1198 #'isButton:' true |
1280 #'isButton:' true |
1199 #'value:' #alignSelectionBottom |
1281 #'value:' #alignSelectionBottom |
1200 #'activeHelpKey:' #alignSelectionBottom |
1282 #'activeHelpKey:' #alignSelectionBottom |
1201 #'labelImage:' #(#ResourceRetriever nil #iconAlignB) |
1283 #'labelImage:' #(#ResourceRetriever nil #iconAlignB) |
1202 ) |
1284 ) |
1203 #(#MenuItem |
1285 #(#MenuItem |
1204 #'label:' 'align top & bottom' |
1286 #'label:' 'Align top & bottom' |
1205 #'isButton:' true |
1287 #'isButton:' true |
1206 #'value:' #alignSelectionTopAndBottom |
1288 #'value:' #alignSelectionTopAndBottom |
1207 #'activeHelpKey:' #alignSelectionTopAndBottom |
1289 #'activeHelpKey:' #alignSelectionTopAndBottom |
1208 #'labelImage:' #(#ResourceRetriever nil #iconAlignTB) |
1290 #'labelImage:' #(#ResourceRetriever nil #iconAlignTB) |
1209 ) |
1291 ) |
1210 #(#MenuItem |
1292 #(#MenuItem |
1211 #'label:' '-' |
1293 #'label:' '-' |
1212 ) |
1294 ) |
1213 #(#MenuItem |
1295 #(#MenuItem |
1214 #'label:' 'align centered horizontal' |
1296 #'label:' 'Align centered horizontal' |
1215 #'isButton:' true |
1297 #'isButton:' true |
1216 #'value:' #alignSelectionCenterHor |
1298 #'value:' #alignSelectionCenterHor |
1217 #'activeHelpKey:' #alignSelectionCenterHor |
1299 #'activeHelpKey:' #alignSelectionCenterHor |
1218 #'labelImage:' #(#ResourceRetriever nil #iconAlignCenterH) |
1300 #'labelImage:' #(#ResourceRetriever nil #iconAlignCenterH) |
1219 ) |
1301 ) |
1220 #(#MenuItem |
1302 #(#MenuItem |
1221 #'label:' 'align centered vertical' |
1303 #'label:' 'Align centered vertical' |
1222 #'isButton:' true |
1304 #'isButton:' true |
1223 #'value:' #alignSelectionCenterVer |
1305 #'value:' #alignSelectionCenterVer |
1224 #'activeHelpKey:' #alignSelectionCenterVer |
1306 #'activeHelpKey:' #alignSelectionCenterVer |
1225 #'labelImage:' #(#ResourceRetriever nil #iconAlignCenterV) |
1307 #'labelImage:' #(#ResourceRetriever nil #iconAlignCenterV) |
1226 ) |
1308 ) |