Changeset 814
- Timestamp:
- 02/03/14 16:02:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameKeyboardActions.java
r778 r814 1534 1534 return newItemText; 1535 1535 } 1536 1537 private static boolean refreshAnchors(Collection<Item> items) { 1538 boolean bReparse = false; 1539 1540 for(Item i : items) { 1541 Float anchorLeft = i.getAnchorLeft(); 1542 Float anchorRight = i.getAnchorRight(); 1543 Float anchorTop = i.getAnchorTop(); 1544 Float anchorBottom = i.getAnchorBottom(); 1545 1546 1547 if (anchorLeft != null) { 1548 i.setAnchorLeft(anchorLeft); 1549 if (i.hasVector()) { 1550 bReparse = true; 1551 } 1552 } 1553 1554 if (anchorRight != null) { 1555 i.setAnchorRight(anchorRight); 1556 if (i.hasVector()) { 1557 bReparse = true; 1558 } 1559 } 1560 1561 if (anchorTop != null) { 1562 i.setAnchorTop(anchorTop); 1563 if (i.hasVector()) { 1564 bReparse = true; 1565 } 1566 } 1567 1568 if (anchorBottom != null) { 1569 i.setAnchorBottom(anchorBottom); 1570 if (i.hasVector()) { 1571 bReparse = true; 1572 } 1573 } 1574 } 1575 return bReparse; 1576 } 1536 1577 1537 1578 /** … … 1568 1609 // scale the entire frame 1569 1610 ScaleFrameset.scaleFrame(DisplayIO.getCurrentFrame(), (float) (diff > 0 ? 1.1 : 0.909090909)); 1611 DisplayIO.getCurrentFrame().refreshSize(); 1570 1612 FrameKeyboardActions.Refresh(); 1571 1613 // MessageBay.displayMessage("Can not resize the frame name"); … … 1695 1737 } 1696 1738 } 1739 // refresh anchored items 1740 if(refreshAnchors(toSize)) { 1741 FrameUtils.Parse(DisplayIO.getCurrentFrame(), false); 1742 } 1697 1743 // notify widgets they were resized 1698 1744 for(InteractiveWidget iw : widgets) { … … 1755 1801 if (toSet != null) 1756 1802 toSet.getParent().setChanged(true); 1803 1804 // refresh anchored items 1805 if(refreshAnchors(toSize)) { 1806 FrameUtils.Parse(DisplayIO.getCurrentFrame(), false); 1807 } 1757 1808 1758 1809 // notify widgets they were resized … … 2161 2212 public static void Refresh() { 2162 2213 Frame currentFrame = DisplayIO.getCurrentFrame(); 2214 2215 if(FrameMouseActions.isShiftDown()) { 2216 currentFrame.refreshSize(); 2217 } 2163 2218 2164 2219 // Refresh widgets that use its self as a data source
Note:
See TracChangeset
for help on using the changeset viewer.