.. | .. |
---|
449 | 449 | // TEXTAREA infoarea.setLineWrap(true); |
---|
450 | 450 | // TEXTAREA infoarea.setWrapStyleWord(true); |
---|
451 | 451 | infoPanel = new JScrollPane(infoarea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //AS_NEEDED); |
---|
452 | | - infoPanel.setPreferredSize(new Dimension(50, 200)); |
---|
| 452 | + //infoPanel.setPreferredSize(new Dimension(50, 200)); |
---|
453 | 453 | infoPanel.setName("Info"); |
---|
454 | 454 | //infoPanel.setLayout(new BorderLayout()); |
---|
455 | 455 | //infoPanel.add(createTextPane()); |
---|
.. | .. |
---|
463 | 463 | mainPanel.setResizeWeight(0.5); |
---|
464 | 464 | |
---|
465 | 465 | //mainPanel.setDividerSize((int) (mainPanel.getDividerSize() * 1.5)); |
---|
466 | | -// BasicSplitPaneDivider divider = ( (BasicSplitPaneUI) mainPanel.getUI()).getDivider(); |
---|
467 | | -// divider.setDividerSize(15); |
---|
468 | | -// divider.setBorder(BorderFactory.createTitledBorder(divider.getBorder(), "Custom border title -- gets rid of the one-touch arrows!")); |
---|
| 466 | + BasicSplitPaneDivider divider = ( (BasicSplitPaneUI) mainPanel.getUI()).getDivider(); |
---|
| 467 | + divider.setDividerSize(15); |
---|
| 468 | + divider.setBorder(BorderFactory.createTitledBorder(divider.getBorder(), "Custom border title -- gets rid of the one-touch arrows!")); |
---|
469 | 469 | |
---|
| 470 | + mainPanel.setUI(new BasicSplitPaneUI()); |
---|
470 | 471 | |
---|
471 | 472 | //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5)); |
---|
472 | 473 | //mainPanel.setLayout(new GridBagLayout()); |
---|
.. | .. |
---|
720 | 721 | void Minimize() |
---|
721 | 722 | { |
---|
722 | 723 | frame.setState(Frame.ICONIFIED); |
---|
| 724 | + frame.validate(); |
---|
723 | 725 | } |
---|
724 | 726 | |
---|
| 727 | +// artifactURI=null, type=0, property=${file.reference.jfxrt.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@6767876f, broken=false, additional={} |
---|
| 728 | +// artifactURI=null, type=0, property=${file.reference.mac-ui.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@16bdc817, broken=false, additional={} |
---|
| 729 | +// artifactURI=null, type=0, property=${file.reference.classes.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@9daa9c17, broken=false, additional={} |
---|
725 | 730 | void Maximize() |
---|
726 | 731 | { |
---|
| 732 | + if (CameraPane.FULLSCREEN) |
---|
| 733 | + { |
---|
| 734 | + ToggleFullScreen(); |
---|
| 735 | + } |
---|
| 736 | + |
---|
727 | 737 | if (maximized) |
---|
728 | 738 | { |
---|
729 | 739 | frame.setBounds(keeprect.x, keeprect.y, keeprect.width, keeprect.height); |
---|
.. | .. |
---|
738 | 748 | } |
---|
739 | 749 | |
---|
740 | 750 | maximized ^= true; |
---|
| 751 | + |
---|
| 752 | + frame.validate(); |
---|
741 | 753 | } |
---|
| 754 | + |
---|
| 755 | + cButton minButton; |
---|
| 756 | + cButton maxButton; |
---|
| 757 | + cButton fullButton; |
---|
742 | 758 | |
---|
743 | 759 | void ToggleFullScreen() |
---|
744 | 760 | { |
---|
.. | .. |
---|
747 | 763 | if (!CameraPane.FULLSCREEN) |
---|
748 | 764 | { |
---|
749 | 765 | device.setFullScreenWindow(null); |
---|
| 766 | + frame.validate(); |
---|
| 767 | + |
---|
750 | 768 | //frame.setVisible(false); |
---|
751 | 769 | // frame.removeNotify(); |
---|
752 | 770 | // frame.setUndecorated(false); |
---|
.. | .. |
---|
772 | 790 | // frame.getToolkit().getScreenSize().height); |
---|
773 | 791 | //frame.setVisible(false); |
---|
774 | 792 | device.setFullScreenWindow(frame); |
---|
| 793 | + frame.validate(); |
---|
775 | 794 | // frame.removeNotify(); |
---|
776 | 795 | // frame.setUndecorated(true); |
---|
777 | 796 | // frame.addNotify(); |
---|
.. | .. |
---|
784 | 803 | radio.layout.doClick(); |
---|
785 | 804 | //frame.setVisible(true); |
---|
786 | 805 | } |
---|
| 806 | + frame.validate(); |
---|
787 | 807 | } |
---|
788 | 808 | |
---|
789 | 809 | private JTextPane createTextPane() |
---|
.. | .. |
---|
1116 | 1136 | namePanel = new cGridBag(); |
---|
1117 | 1137 | |
---|
1118 | 1138 | nameField = AddText(namePanel, copy.GetName()); |
---|
1119 | | - namePanel.add(nameField); |
---|
| 1139 | + namePanel.add(new JScrollPane(nameField, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER)); |
---|
1120 | 1140 | oe.ctrlPanel.add(namePanel); |
---|
1121 | 1141 | |
---|
1122 | 1142 | oe.ctrlPanel.Return(); |
---|
.. | .. |
---|
1141 | 1161 | rewindCB = AddCheckBox(setupPanel2, "Rewind", copy.rewind); |
---|
1142 | 1162 | rewindCB.setToolTipText("Rewind animation"); |
---|
1143 | 1163 | |
---|
1144 | | - randomCB = AddCheckBox(setupPanel2, "Rand", copy.random); |
---|
| 1164 | + randomCB = AddCheckBox(setupPanel2, "Random", copy.random); |
---|
1145 | 1165 | randomCB.setToolTipText("Randomly Rewind (or Go back and forth)"); |
---|
1146 | 1166 | |
---|
1147 | 1167 | if (Globals.ADVANCED) |
---|
.. | .. |
---|
1685 | 1705 | texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
1686 | 1706 | colorSection.add(texture); |
---|
1687 | 1707 | |
---|
1688 | | - cGridBag anisoU = new cGridBag(); |
---|
1689 | | - anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints); |
---|
1690 | | - anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1691 | | - anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
1692 | | - colorSection.add(anisoU); |
---|
1693 | | - |
---|
1694 | | - cGridBag anisoV = new cGridBag(); |
---|
1695 | | - anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints); |
---|
1696 | | - anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1697 | | - anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
1698 | | - colorSection.add(anisoV); |
---|
1699 | | - |
---|
1700 | | - cGridBag shadowbias = new cGridBag(); |
---|
1701 | | - shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints); |
---|
1702 | | - shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1703 | | - shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1704 | | - colorSection.add(shadowbias); |
---|
1705 | | - |
---|
1706 | 1708 | panel.add(new JSeparator()); |
---|
1707 | 1709 | |
---|
1708 | 1710 | panel.add(colorSection); |
---|
.. | .. |
---|
1752 | 1754 | fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1753 | 1755 | fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1754 | 1756 | diffuseSection.add(fakedepth); |
---|
| 1757 | + |
---|
| 1758 | + cGridBag shadowbias = new cGridBag(); |
---|
| 1759 | + shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints); |
---|
| 1760 | + shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1761 | + shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1762 | + diffuseSection.add(shadowbias); |
---|
1755 | 1763 | |
---|
1756 | 1764 | panel.add(new JSeparator()); |
---|
1757 | 1765 | |
---|
.. | .. |
---|
1803 | 1811 | // aConstraints.gridy += 1; |
---|
1804 | 1812 | // aConstraints.gridwidth = 1; |
---|
1805 | 1813 | |
---|
| 1814 | + cGridBag anisoU = new cGridBag(); |
---|
| 1815 | + anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints); |
---|
| 1816 | + anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1817 | + anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1818 | + specularSection.add(anisoU); |
---|
| 1819 | + |
---|
| 1820 | + cGridBag anisoV = new cGridBag(); |
---|
| 1821 | + anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints); |
---|
| 1822 | + anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1823 | + anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1824 | + specularSection.add(anisoV); |
---|
| 1825 | + |
---|
1806 | 1826 | |
---|
1807 | 1827 | panel.add(new JSeparator()); |
---|
1808 | 1828 | |
---|
.. | .. |
---|
1810 | 1830 | |
---|
1811 | 1831 | //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
1812 | 1832 | |
---|
1813 | | - cGridBag globalSection = new cGridBag().setVertical(true); |
---|
| 1833 | + //cGridBag globalSection = new cGridBag().setVertical(true); |
---|
1814 | 1834 | |
---|
1815 | 1835 | cGridBag camera = new cGridBag(); |
---|
1816 | 1836 | camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints); |
---|
1817 | 1837 | cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1818 | 1838 | camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1819 | | - globalSection.add(camera); |
---|
| 1839 | + colorSection.add(camera); |
---|
1820 | 1840 | |
---|
1821 | 1841 | cGridBag ambient = new cGridBag(); |
---|
1822 | 1842 | ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints); |
---|
1823 | 1843 | ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1824 | 1844 | ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1825 | | - globalSection.add(ambient); |
---|
| 1845 | + colorSection.add(ambient); |
---|
1826 | 1846 | |
---|
1827 | 1847 | cGridBag backlit = new cGridBag(); |
---|
1828 | 1848 | backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints); |
---|
1829 | 1849 | backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1830 | 1850 | backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1831 | | - globalSection.add(backlit); |
---|
| 1851 | + colorSection.add(backlit); |
---|
1832 | 1852 | |
---|
1833 | 1853 | cGridBag opacity = new cGridBag(); |
---|
1834 | 1854 | opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints); |
---|
1835 | 1855 | opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1836 | 1856 | opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
1837 | | - globalSection.add(opacity); |
---|
| 1857 | + colorSection.add(opacity); |
---|
1838 | 1858 | |
---|
1839 | | - panel.add(new JSeparator()); |
---|
| 1859 | + //panel.add(new JSeparator()); |
---|
1840 | 1860 | |
---|
1841 | | - panel.add(globalSection); |
---|
| 1861 | + //panel.add(globalSection); |
---|
1842 | 1862 | |
---|
1843 | 1863 | //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
1844 | 1864 | |
---|
.. | .. |
---|
3537 | 3557 | |
---|
3538 | 3558 | copy.ExtractBigData(hashtable); |
---|
3539 | 3559 | |
---|
| 3560 | + byte[] compress = Compress(copy); |
---|
| 3561 | + |
---|
3540 | 3562 | //EditorFrame.m_MainFrame.requestFocusInWindow(); |
---|
3541 | | - tab.graphs[tab.undoindex++] = Compress(copy); |
---|
| 3563 | + tab.graphs[tab.undoindex++] = compress; |
---|
3542 | 3564 | |
---|
3543 | 3565 | copy.RestoreBigData(hashtable); |
---|
3544 | 3566 | |
---|