UIPainter.st
changeset 2901 4c010c4a4166
parent 2883 bee1a24df6e4
child 2920 a7ddf89e20e3
equal deleted inserted replaced
2900:1a7874e7d36a 2901:4c010c4a4166
   200     <resource: #help>
   200     <resource: #help>
   201 
   201 
   202     ^ super helpSpec addPairsFrom:#(
   202     ^ super helpSpec addPairsFrom:#(
   203 
   203 
   204 #align
   204 #align
   205 'Widget alignment functions.'
   205 'Widget alignment functions'
   206 
   206 
   207 #alignSelectionBottom
   207 #alignSelectionBottom
   208 'Aligns the selected widgets'' bottom edges with the bottom of the dominant widget.'
   208 'Aligns the selected widgets'' bottom edges with the bottom of the dominant widget'
   209 
   209 
   210 #alignResizeSelectionBottom
   210 #alignResizeSelectionBottom
   211 'Resize the selected widgets'' bottom edges to align them with the bottom of the dominant widget.'
   211 'Resize the selected widgets'' bottom edges to align them with the bottom of the dominant widget'
   212 
   212 
   213 #alignSelectionCenterHor
   213 #alignSelectionCenterHor
   214 'Aligns the selected widgets'' centers vertically with the center of the dominant widget.'
   214 'Aligns the selected widgets'' centers vertically with the center of the dominant widget'
   215 
   215 
   216 #alignSelectionCenterVer
   216 #alignSelectionCenterVer
   217 'Aligns the selected widgets'' centers horizontally with the center of the dominant widget.'
   217 'Aligns the selected widgets'' centers horizontally with the center of the dominant widget'
   218 
   218 
   219 #alignSelectionLeft
   219 #alignSelectionLeft
   220 'Aligns the selected widgets'' left edges with the left edge of the dominant widget.'
   220 'Aligns the selected widgets'' left edges with the left edge of the dominant widget'
   221 
   221 
   222 #alignResizeSelectionLeft
   222 #alignResizeSelectionLeft
   223 'Resize the selected widgets'' left edges to align them with the left edge of the dominant widget.'
   223 'Resize the selected widgets'' left edges to align them with the left edge of the dominant widget'
   224 
   224 
   225 #alignSelectionLeftAndRight
   225 #alignSelectionLeftAndRight
   226 'Aligns the selected widgets'' left & right edges with the dominant widget.'
   226 'Aligns the selected widgets'' left & right edges with the dominant widget'
   227 
   227 
   228 #alignSelectionRight
   228 #alignSelectionRight
   229 'Aligns the selected widgets'' right edges with the right edge of the dominant widget.'
   229 'Aligns the selected widgets'' right edges with the right edge of the dominant widget'
   230 
   230 
   231 #alignResizeSelectionRight
   231 #alignResizeSelectionRight
   232 'Resize the selected widgets'' right edges to align them with the right edge of the dominant widget.'
   232 'Resize the selected widgets'' right edges to align them with the right edge of the dominant widget'
   233 
   233 
   234 #alignSelectionTop
   234 #alignSelectionTop
   235 'Aligns the selected widgets'' top edges with the top edge of the dominant widget.'
   235 'Aligns the selected widgets'' top edges with the top edge of the dominant widget'
   236 
   236 
   237 #alignResizeSelectionTop
   237 #alignResizeSelectionTop
   238 'Resize the selected widgets'' top edges to align them with the top edge of the dominant widget.'
   238 'Resize the selected widgets'' top edges to align them with the top edge of the dominant widget'
   239 
   239 
   240 #alignSelectionTopAndBottom
   240 #alignSelectionTopAndBottom
   241 'Aligns the selected widgets'' top and bottom edges with the dominant widget.'
   241 'Aligns the selected widgets'' top and bottom edges with the dominant widget'
   242 
   242 
   243 #centerSelectionHor
   243 #centerSelectionHor
   244 'Centers the selected widgets horizontally within their containing widget.'
   244 'Centers the selected widgets horizontally within their containing widget'
   245 
   245 
   246 #centerSelectionVer
   246 #centerSelectionVer
   247 'Centers the selected widgets vertically within their containing widget.'
   247 'Centers the selected widgets vertically within their containing widget'
   248 
   248 
   249 #changePositionDown
   249 #changePositionDown
   250 'Moves the selected widget(s) towards the bottom.'
   250 'Moves the selected widget(s) towards the bottom'
   251 
   251 
   252 #changePositionLeft
   252 #changePositionLeft
   253 'Moves the selected widget(s) towards the left.'
   253 'Moves the selected widget(s) towards the left'
   254 
   254 
   255 #changePositionRight
   255 #changePositionRight
   256 'Moves the selected widget(s) towards the right.'
   256 'Moves the selected widget(s) towards the right'
   257 
   257 
   258 #changePositionUp
   258 #changePositionUp
   259 'Moves the selected widget(s) towards the top.'
   259 'Moves the selected widget(s) towards the top'
   260 
   260 
   261 #drawEdit
   261 #drawEdit
   262 ''
   262 ''
   263 
   263 
   264 #editBrowseViewClass
   264 #editBrowseViewClass
   265 'Opens a browser on the class of the selected widget.'
   265 'Opens a browser on the class of the selected widget'
   266 
   266 
   267 #editDimensionCopyExtent
   267 #editDimensionCopyExtent
   268 'Copies the extent of the selected widget.'
   268 'Copies the extent of the selected widget'
   269 
   269 
   270 #editDimensionCopyLayout
   270 #editDimensionCopyLayout
   271 'Copies the layout of the selected widget.'
   271 'Copies the layout of the selected widget'
   272 
   272 
   273 #editDimensionDefaultExtent
   273 #editDimensionDefaultExtent
   274 'Sets the selected widget(s) extent to their default.'
   274 'Sets the selected widget(s) extent to their default'
   275 
   275 
   276 #editDimensionDefaultHeight
   276 #editDimensionDefaultHeight
   277 'Sets the selected widget(s) height to their default.'
   277 'Sets the selected widget(s) height to their default'
   278 
   278 
   279 #editDimensionDefaultWidth
   279 #editDimensionDefaultWidth
   280 'Sets the selected widget(s) width to their default.'
   280 'Sets the selected widget(s) width to their default'
   281 
   281 
   282 #editDimensionPasteExtent
   282 #editDimensionPasteExtent
   283 'Sets the extent of the selected widget(s) to the last copied extent.'
   283 'Sets the extent of the selected widget(s) to the last copied extent'
   284 
   284 
   285 #editDimensionPasteHeight
   285 #editDimensionPasteHeight
   286 'Sets the height of the selected widget(s) to the height of the last copied layout/extent.'
   286 'Sets the height of the selected widget(s) to the height of the last copied layout/extent'
   287 
   287 
   288 #editDimensionPasteLayout
   288 #editDimensionPasteLayout
   289 'Sets the layout of the selected widget(s) to the last copied layout.'
   289 'Sets the layout of the selected widget(s) to the last copied layout'
   290 
   290 
   291 #editDimensionPasteWidth
   291 #editDimensionPasteWidth
   292 'Sets the width of the selected widget(s) to the width of the last copied layout/extent.'
   292 'Sets the width of the selected widget(s) to the width of the last copied layout/extent'
   293 
   293 
   294 #editInspectSpec
   294 #editInspectSpec
   295 'Opens an inspector on the spec of the selected widget.'
   295 'Opens an inspector on the spec of the selected widget'
   296 
   296 
   297 #editInspectView
   297 #editInspectView
   298 'Opens an inspector on the selected widget.'
   298 'Opens an inspector on the selected widget'
   299 
   299 
   300 #editOpenSpecDocumentation
   300 #editOpenSpecDocumentation
   301 'Opens the documentation of the selected widget.'
   301 'Opens the documentation of the selected widget'
   302 
   302 
   303 #fileBrowseAspectMethods
   303 #fileBrowseAspectMethods
   304 'Opens a System Browser on the application''s aspect methods.'
   304 'Opens a System Browser on the application''s aspect methods'
   305 
   305 
   306 #fileBrowseClass
   306 #fileBrowseClass
   307 'Open a System Browser on the application''s class.'
   307 'Open a System Browser on the application''s class'
   308 
   308 
   309 #fileLoad
   309 #fileLoad
   310 'Opens a dialog to load a window specification from a classes spec method.'
   310 'Opens a dialog to load a window specification from a classes spec method'
   311 
   311 
   312 #fileLoadSubspec
   312 #fileLoadSubspec
   313 'Opens a dialog to load a sub specification from a classes windowSpec method.'
   313 'Opens a dialog to load a sub specification from a classes windowSpec method'
   314 
   314 
   315 #fileNew
   315 #fileNew
   316 'Creates a new window spec.'
   316 'Creates a new window spec'
   317 
   317 
   318 #filePickAnInterface
   318 #filePickAnInterface
   319 'Select a view on the screen, generate a window spec for it and edit this spec.'
   319 'Select a view on the screen, generate a window spec for it and edit this spec'
   320 
   320 
   321 #fileSave
   321 #fileSave
   322 'Saves the window spec in the current class (as spec method).'
   322 'Saves the window spec in the current class (as spec method)'
   323 
   323 
   324 #fileSaveAs
   324 #fileSaveAs
   325 'Opens a dialog to select class and selector for saving the window spec.'
   325 'Opens a dialog to select class and selector for saving the window spec'
   326 
   326 
   327 #fileShowWindowSpec
   327 #fileShowWindowSpec
   328 'Opens a Workspace showing the current window spec.'
   328 'Opens a Workspace showing the current window spec'
   329 
   329 
   330 #generateAspectMethods
   330 #generateAspectMethods
   331 'Generates aspect methods for defined aspect selectors of the widgets.'
   331 'Generates aspect methods for defined aspect selectors of the widgets'
   332 
   332 
   333 #generateHookMethods
   333 #generateHookMethods
   334 'Generates startup/release methods. (#closeRequest, #postBuildWith:, #postOpenWith:)'
   334 'Generates startup/release methods. (#closeRequest, #postBuildWith:, #postOpenWith:)'
   335 
   335 
   336 #group
   336 #group
   337 ''
   337 ''
   338 
   338 
   339 #helpExamples
   339 #helpExamples
   340 'Show some examples uses of the GUI Painter.'
   340 'Show some examples uses of the GUI Painter'
   341 
   341 
   342 #helpFunctions
   342 #helpFunctions
   343 'Show the documentation on the GUI Painters menu and button functions.'
   343 'Show the documentation on the GUI Painters menu and button functions'
   344 
   344 
   345 #helpLayoutTool
   345 #helpLayoutTool
   346 'Show the Layout Tools documentation.'
   346 'Show the Layout Tools documentation'
   347 
   347 
   348 #helpSelectedWidget
   348 #helpSelectedWidget
   349 'Show the documentation of the selected widget.'
   349 'Show the documentation of the selected widget'
   350 
   350 
   351 #helpTutorial
   351 #helpTutorial
   352 'Show the GUI Painters documentation.'
   352 'Show the GUI Painters documentation'
   353 
   353 
   354 #historyMenuItem
   354 #historyMenuItem
   355 'Edit this windowSpec.'
   355 'Edit this windowSpec'
   356 
   356 
   357 #moveWidgetDown
   357 #moveWidgetDown
   358 'Moves the selected widget down in the list (brings it to the front).'
   358 'Moves the selected widget down in the list (brings it to the front)'
   359 
   359 
   360 #moveWidgetInto
   360 #moveWidgetInto
   361 'Moves the selected widget into next widget as child widget.'
   361 'Moves the selected widget into next widget as child widget'
   362 
   362 
   363 #moveWidgetOut
   363 #moveWidgetOut
   364 'Moves the selected widget out of its parent widget.'
   364 'Moves the selected widget out of its parent widget'
   365 
   365 
   366 #moveWidgetUp
   366 #moveWidgetUp
   367 'Moves the selected widget up in the list (brings it to the back).'
   367 'Moves the selected widget up in the list (brings it to the back)'
   368 
   368 
   369 #pasteBuffer
   369 #pasteBuffer
   370 'Pastes the widgets of the clipboard at the current mouse position.'
   370 'Pastes the widgets of the clipboard at the current mouse position'
   371 
   371 
   372 #pasteWithLayout
   372 #pasteWithLayout
   373 'Pastes the widgets of the clipboard without changing their layouts.'
   373 'Pastes the widgets of the clipboard without changing their layouts'
   374 
   374 
   375 #referToCOnfigDatabase
   375 #referToCOnfigDatabase
   376 ''
   376 ''
   377 
   377 
   378 #settingsAspectsAsInstances
   378 #settingsAspectsAsInstances
   379 'Generate aspects as instance variables (or bindings, if off).'
   379 'Generate aspects as instance variables (or bindings, if off)'
   380 
   380 
   381 #settingsCanvas
   381 #settingsCanvas
   382 'Shows or hides the canvas window.'
   382 'Shows or hides the canvas window'
   383 
   383 
   384 #settingsGallery
   384 #settingsGallery
   385 'Shows or hides the gallery window.'
   385 'Shows or hides the gallery window'
   386 
   386 
   387 #settingsGenerateCommentedCode
   387 #settingsGenerateCommentedCode
   388 ''
   388 ''
   389 
   389 
   390 #settingsGridManager
   390 #settingsGridManager
   391 'Opens a dialog to toggle grid display or to change the grids spacing.'
   391 'Opens a dialog to toggle grid display or to change the grids spacing'
   392 
   392 
   393 #settingsRedefineAspectMethods
   393 #settingsRedefineAspectMethods
   394 'Toggles the permission to overwrite existing aspect methods.'
   394 'Toggles the permission to overwrite existing aspect methods'
   395 
   395 
   396 #settingsTranscriptHelp
   396 #settingsTranscriptHelp
   397 'Toggles display of help texts (after opening a new GUI Painter).'
   397 'Toggles display of help texts (after opening a new GUI Painter)'
   398 
   398 
   399 #settingsUndoManager
   399 #settingsUndoManager
   400 'Opens a dialog to undo modifications.'
   400 'Opens a dialog to undo modifications'
   401 
   401 
   402 #showGrid
   402 #showGrid
   403 'Raster zeigen'
   403 'Raster zeigen'
   404 
   404 
   405 #alignToGrid
   405 #alignToGrid
   407 
   407 
   408 #sortItems
   408 #sortItems
   409 'Sort the selected items by position (left to right, top to bottom)'
   409 'Sort the selected items by position (left to right, top to bottom)'
   410 
   410 
   411 #spreadSelectionHor
   411 #spreadSelectionHor
   412 'Sets the horizontal spaces between the selected widgets to the same value.'
   412 'Sets the horizontal spaces between the selected widgets to the same value'
   413 
   413 
   414 #spreadSelectionVer
   414 #spreadSelectionVer
   415 'Sets the vertical spaces between the selected widgets to the same value.'
   415 'Sets the vertical spaces between the selected widgets to the same value'
   416 
   416 
   417 #testGeometryTestMode
   417 #testGeometryTestMode
   418 'Toggles geometry test mode (to define ratios of variable panels and top-window dimension).'
   418 'Toggles geometry test mode (to define ratios of variable panels and top-window dimension)'
   419 
   419 
   420 #testStartApplication
   420 #testStartApplication
   421 'Starts the application with the current window spec.'
   421 'Starts the application with the current window spec'
   422 
   422 
   423 shadesOfRed
   423 shadesOfRed
   424 'Red color tones'
   424 'Red color tones'
   425 
   425 
   426 shadesOfGreen
   426 shadesOfGreen
   453 useDefaultColorToggle
   453 useDefaultColorToggle
   454 'Toggle between default and explicit color'
   454 'Toggle between default and explicit color'
   455 
   455 
   456 )
   456 )
   457 
   457 
   458     "Modified: / 28-07-2010 / 10:02:50 / cg"
   458     "Modified: / 09-08-2012 / 09:40:53 / cg"
   459 ! !
   459 ! !
   460 
   460 
   461 !UIPainter class methodsFor:'helpers'!
   461 !UIPainter class methodsFor:'helpers'!
   462 
   462 
   463 convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed
   463 convertString:aString maxLineSize:maxCharactersPerLine skipLineFeed:skipLineFeed