UILayoutTool.st
changeset 1858 4a73301e4eb4
parent 1826 25ddfdfe0bf9
child 1874 e86cfff8fd0b
equal deleted inserted replaced
1857:2265bc87dbb0 1858:4a73301e4eb4
  1582      UIHelpTool openOnClass:UILayoutTool::LayoutFrame    
  1582      UIHelpTool openOnClass:UILayoutTool::LayoutFrame    
  1583     "
  1583     "
  1584 
  1584 
  1585     <resource: #help>
  1585     <resource: #help>
  1586 
  1586 
  1587     ^super helpSpec addPairsFrom:#(
  1587     ^ super helpSpec addPairsFrom:#(
  1588 
  1588 
  1589 #bottomAbsolute
  1589 #bottomAbsolute
  1590 'Offset of the bottom edge; positive is to the bottom, negative to the top.'
  1590 'Offset of the bottom edge; positive is to the bottom, negative to the top.'
  1591 
  1591 
       
  1592 #bigBottomFixPartLayout
       
  1593 'Set layout for a big fixed area at the bottom of the widgets container'
       
  1594 
  1592 #bottomFixPartLayout
  1595 #bottomFixPartLayout
  1593 'Set the layout for a fixed area at the bottom of the widgets containers space'
  1596 'Set layout for a small fixed area at the bottom of the widgets container'
  1594 
  1597 
  1595 #bottomHalfLayout
  1598 #bottomHalfLayout
  1596 'Set the layout for the bottom half of the widgets containers space'
  1599 'Set layout for the bottom half of the widgets container'
  1597 
  1600 
  1598 #bottomLeftQuarterLayout
  1601 #bottomLeftQuarterLayout
  1599 'Set the layout for the bottom-left quarter of the widgets containers space'
  1602 'Set layout for the bottom-left quarter of the widgets container'
  1600 
  1603 
  1601 #bottomRelative
  1604 #bottomRelative
  1602 'Relative corner y of the selected widget.'
  1605 'Relative corner y of the selected widget.'
  1603 
  1606 
  1604 #bottomRightQuarterLayout
  1607 #bottomRightQuarterLayout
  1605 'Set the layout for the bottom-right quarter of the widgets containers space'
  1608 'Set layout for the bottom-right quarter of the widgets container'
       
  1609 
       
  1610 #fullLayout
       
  1611 'Set layout to fill all of the widgets container'
  1606 
  1612 
  1607 #horizontalFixPartLayout
  1613 #horizontalFixPartLayout
  1608 'Set the layout for a fixed-height horizontal area'
  1614 'Set layout for a small fixed-height area centered vertically in the widgets container'
       
  1615 
       
  1616 #bigHorizontalFixPartLayout
       
  1617 'Set layout for a big fixed-height area centered vertically in the widgets container'
  1609 
  1618 
  1610 #leftFixPartLayout
  1619 #leftFixPartLayout
  1611 'Set the layout for a fixed area at the left of the widgets containers space'
  1620 'Set layout for a small fixed area at the left of the widgets container'
  1612 
  1621 
  1613 #leftHalfLayout
  1622 #leftHalfLayout
  1614 'Set the layout for the left half of the widgets containers space'
  1623 'Set layout for the left half of the widgets container'
  1615 
  1624 
  1616 #makeBottomAbsolute
  1625 #makeBottomAbsolute
  1617 'Compute pure-absolute y.'
  1626 'Compute pure-absolute y.'
  1618 
  1627 
  1619 #makeBottomRelative
  1628 #makeBottomRelative
  1620 'Computes pure-fractional y.'
  1629 'Computes pure-fractional y.'
  1621 
  1630 
  1622 #makeBottomRelativeFromBottom
  1631 #makeBottomRelativeFromBottom
  1623 'Compute fraction+offset for y relative to containers bottom.'
  1632 'Compute fraction+offset for y relative to container.'
  1624 
  1633 
  1625 #makeRightAbsolute
  1634 #makeRightAbsolute
  1626 'Compute pure-absolute x.'
  1635 'Compute pure-absolute x.'
  1627 
  1636 
  1628 #makeRightRelative
  1637 #makeRightRelative
  1633 
  1642 
  1634 #rightAbsolute
  1643 #rightAbsolute
  1635 'Offset of the right edge; positive is to the right, negative to the left.'
  1644 'Offset of the right edge; positive is to the right, negative to the left.'
  1636 
  1645 
  1637 #rightFixPartLayout
  1646 #rightFixPartLayout
  1638 'Set the layout for a fixed area at the right of the widgets containers space'
  1647 'Set layout for a small fixed area at the right of the widgets container'
  1639 
  1648 
  1640 #rightHalfLayout
  1649 #rightHalfLayout
  1641 'Set the layout for the right half of the widgets containers space'
  1650 'Set layout for the right half of the widgets container'
  1642 
  1651 
  1643 #rightRelative
  1652 #rightRelative
  1644 'Relative corner x of the selected widget.'
  1653 'Relative corner x of the selected widget.'
  1645 
  1654 
       
  1655 #screenFrameLayout
       
  1656 ''
       
  1657 
  1646 #topFixPartLayout
  1658 #topFixPartLayout
  1647 'Set the layout for a fixed area at the top of the widgets containers space'
  1659 'Set layout for a small fixed area at the top of the widgets container'
       
  1660 
       
  1661 #bigTopFixPartLayout
       
  1662 'Set layout for a big fixed area at the top of the widgets container'
  1648 
  1663 
  1649 #topHalfLayout
  1664 #topHalfLayout
  1650 'Set the layout for the top half of the widgets containers space'
  1665 'Set layout for the top half of the widgets container'
  1651 
  1666 
  1652 #topLeftQuarterLayout
  1667 #topLeftQuarterLayout
  1653 'Set the layout for the top-left quarter of the widgets containers space'
  1668 'Set layout for the top-left quarter of the widgets container'
  1654 
  1669 
  1655 #topRightQuarterLayout
  1670 #topRightQuarterLayout
  1656 'Set the layout for the top-right quarter of the widgets containers space'
  1671 'Set layout for the top-right quarter of the widgets container'
  1657 
  1672 
  1658 #verticalFixPartLayout
  1673 #verticalFixPartLayout
  1659 'Set the layout for a fixed-height vertical area'
  1674 'Set layout for a small fixed-width area centered horizontally in the widgets container'
  1660 
  1675 
  1661 )
  1676 )
  1662 ! !
  1677 ! !
  1663 
  1678 
  1664 !UILayoutTool::LayoutFrame class methodsFor:'image specs'!
  1679 !UILayoutTool::LayoutFrame class methodsFor:'image specs'!
  2456 
  2471 
  2457     "Do not manually edit this!! If it is corrupted,
  2472     "Do not manually edit this!! If it is corrupted,
  2458      the MenuEditor may not be able to read the specification."
  2473      the MenuEditor may not be able to read the specification."
  2459 
  2474 
  2460     "
  2475     "
  2461      MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu2
  2476      MenuEditor new openOnClass:UILayoutTool::LayoutFrame andSelector:#commonFrameLayoutsMenu3
  2462      (Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu2)) startUp
  2477      (Menu new fromLiteralArrayEncoding:(UILayoutTool::LayoutFrame commonFrameLayoutsMenu3)) startUp
  2463     "
  2478     "
  2464 
  2479 
  2465     <resource: #menu>
  2480     <resource: #menu>
  2466 
  2481 
  2467     ^ 
  2482     ^ 
  2468      #(#Menu
  2483      #(Menu
  2469         #(
  2484         (
  2470          #(#MenuItem
  2485          (MenuItem
  2471             #label: 'setScreenFrame'
  2486             activeHelpKey: screenFrameLayout
  2472             #translateLabel: true
  2487             label: 'setScreenFrame'
  2473             #isButton: true
  2488             itemValue: setScreenFrame
  2474             #nameKey: #setScreenFrame
  2489             nameKey: setScreenFrame
  2475             #value: #setScreenFrame
  2490             translateLabel: true
  2476             #activeHelpKey: #screenFrameLayout
  2491             isButton: true
  2477             #enabled: true
  2492             isVisible: false
  2478             #labelImage: #(#ResourceRetriever #'UILayoutTool::LayoutFrame' #setScreenIcon)
  2493             labelImage: (ResourceRetriever #'UILayoutTool::LayoutFrame' setScreenIcon)
  2479           )
  2494           )
  2480          )
  2495          )
  2481         nil
  2496         nil
  2482         nil
  2497         nil
  2483       )
  2498       )