.. | .. |
---|
309 | 309 | //localCopy.parent = null; |
---|
310 | 310 | |
---|
311 | 311 | frame = new JFrame(); |
---|
312 | | - frame.setUndecorated(true); |
---|
| 312 | + frame.setUndecorated(false); |
---|
313 | 313 | objEditor = this; |
---|
314 | 314 | this.callee = callee; |
---|
315 | 315 | |
---|
.. | .. |
---|
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()); |
---|
.. | .. |
---|
698 | 699 | } |
---|
699 | 700 | } |
---|
700 | 701 | |
---|
701 | | -static GraphicsDevice device = GraphicsEnvironment |
---|
702 | | - .getLocalGraphicsEnvironment().getScreenDevices()[0]; |
---|
| 702 | +//static GraphicsDevice device = GraphicsEnvironment |
---|
| 703 | +// .getLocalGraphicsEnvironment().getScreenDevices()[0]; |
---|
703 | 704 | |
---|
704 | 705 | Rectangle keeprect; |
---|
705 | 706 | cRadio radio; |
---|
.. | .. |
---|
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); |
---|
.. | .. |
---|
731 | 741 | else |
---|
732 | 742 | { |
---|
733 | 743 | keeprect = frame.getBounds(); |
---|
734 | | - Rectangle rect = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds(); |
---|
735 | | - Dimension rect2 = frame.getToolkit().getScreenSize(); |
---|
736 | | - frame.setBounds(0, rect2.height - rect.height, rect.width, rect.height); |
---|
| 744 | +// Rectangle rect = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds(); |
---|
| 745 | +// Dimension rect2 = frame.getToolkit().getScreenSize(); |
---|
| 746 | +// frame.setBounds(0, rect2.height - rect.height, rect.width, rect.height); |
---|
737 | 747 | // frame.setState(Frame.MAXIMIZED_BOTH); |
---|
| 748 | + frame.setBounds(frame.getGraphicsConfiguration().getBounds()); |
---|
738 | 749 | } |
---|
739 | 750 | |
---|
740 | 751 | maximized ^= true; |
---|
| 752 | + |
---|
| 753 | + frame.validate(); |
---|
741 | 754 | } |
---|
| 755 | + |
---|
| 756 | + cButton minButton; |
---|
| 757 | + cButton maxButton; |
---|
| 758 | + cButton fullButton; |
---|
742 | 759 | |
---|
743 | 760 | void ToggleFullScreen() |
---|
744 | 761 | { |
---|
| 762 | +GraphicsDevice device = frame.getGraphicsConfiguration().getDevice(); |
---|
| 763 | + |
---|
745 | 764 | cameraView.ToggleFullScreen(); |
---|
746 | 765 | |
---|
747 | 766 | if (!CameraPane.FULLSCREEN) |
---|
748 | 767 | { |
---|
749 | 768 | device.setFullScreenWindow(null); |
---|
| 769 | + frame.dispose(); |
---|
| 770 | + frame.setUndecorated(false); |
---|
| 771 | + frame.validate(); |
---|
| 772 | + frame.setVisible(true); |
---|
| 773 | + |
---|
750 | 774 | //frame.setVisible(false); |
---|
751 | 775 | // frame.removeNotify(); |
---|
752 | 776 | // frame.setUndecorated(false); |
---|
.. | .. |
---|
771 | 795 | // frame.setBounds(0, 0, frame.getToolkit().getScreenSize().width, |
---|
772 | 796 | // frame.getToolkit().getScreenSize().height); |
---|
773 | 797 | //frame.setVisible(false); |
---|
| 798 | + |
---|
| 799 | + frame.dispose(); |
---|
| 800 | + frame.setUndecorated(true); |
---|
774 | 801 | device.setFullScreenWindow(frame); |
---|
| 802 | + frame.validate(); |
---|
| 803 | + frame.setVisible(true); |
---|
775 | 804 | // frame.removeNotify(); |
---|
776 | 805 | // frame.setUndecorated(true); |
---|
777 | 806 | // frame.addNotify(); |
---|
.. | .. |
---|
784 | 813 | radio.layout.doClick(); |
---|
785 | 814 | //frame.setVisible(true); |
---|
786 | 815 | } |
---|
| 816 | + frame.validate(); |
---|
787 | 817 | } |
---|
788 | 818 | |
---|
789 | 819 | private JTextPane createTextPane() |
---|
.. | .. |
---|
1116 | 1146 | namePanel = new cGridBag(); |
---|
1117 | 1147 | |
---|
1118 | 1148 | nameField = AddText(namePanel, copy.GetName()); |
---|
1119 | | - namePanel.add(nameField); |
---|
| 1149 | + namePanel.add(new JScrollPane(nameField, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER)); |
---|
1120 | 1150 | oe.ctrlPanel.add(namePanel); |
---|
1121 | 1151 | |
---|
1122 | 1152 | oe.ctrlPanel.Return(); |
---|
.. | .. |
---|
1141 | 1171 | rewindCB = AddCheckBox(setupPanel2, "Rewind", copy.rewind); |
---|
1142 | 1172 | rewindCB.setToolTipText("Rewind animation"); |
---|
1143 | 1173 | |
---|
1144 | | - randomCB = AddCheckBox(setupPanel2, "Rand", copy.random); |
---|
| 1174 | + randomCB = AddCheckBox(setupPanel2, "Random", copy.random); |
---|
1145 | 1175 | randomCB.setToolTipText("Randomly Rewind (or Go back and forth)"); |
---|
1146 | 1176 | |
---|
1147 | 1177 | if (Globals.ADVANCED) |
---|
.. | .. |
---|
1593 | 1623 | |
---|
1594 | 1624 | frame.setSize(1280, 860); |
---|
1595 | 1625 | |
---|
1596 | | - frame.validate(); |
---|
1597 | | - frame.setVisible(true); |
---|
1598 | | - |
---|
1599 | 1626 | cameraView.requestFocusInWindow(); |
---|
1600 | 1627 | |
---|
1601 | 1628 | gridPanel.setDividerLocation(1.0); |
---|
| 1629 | + |
---|
| 1630 | + frame.validate(); |
---|
| 1631 | + |
---|
| 1632 | + frame.setVisible(true); |
---|
1602 | 1633 | |
---|
1603 | 1634 | frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); |
---|
1604 | 1635 | frame.addWindowListener(new WindowAdapter() |
---|
.. | .. |
---|
1685 | 1716 | texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
1686 | 1717 | colorSection.add(texture); |
---|
1687 | 1718 | |
---|
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 | 1719 | panel.add(new JSeparator()); |
---|
1707 | 1720 | |
---|
1708 | 1721 | panel.add(colorSection); |
---|
.. | .. |
---|
1752 | 1765 | fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1753 | 1766 | fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1754 | 1767 | diffuseSection.add(fakedepth); |
---|
| 1768 | + |
---|
| 1769 | + cGridBag shadowbias = new cGridBag(); |
---|
| 1770 | + shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints); |
---|
| 1771 | + shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1772 | + shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
| 1773 | + diffuseSection.add(shadowbias); |
---|
1755 | 1774 | |
---|
1756 | 1775 | panel.add(new JSeparator()); |
---|
1757 | 1776 | |
---|
.. | .. |
---|
1803 | 1822 | // aConstraints.gridy += 1; |
---|
1804 | 1823 | // aConstraints.gridwidth = 1; |
---|
1805 | 1824 | |
---|
| 1825 | + cGridBag anisoU = new cGridBag(); |
---|
| 1826 | + anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints); |
---|
| 1827 | + anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1828 | + anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1829 | + specularSection.add(anisoU); |
---|
| 1830 | + |
---|
| 1831 | + cGridBag anisoV = new cGridBag(); |
---|
| 1832 | + anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints); |
---|
| 1833 | + anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
| 1834 | + anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
| 1835 | + specularSection.add(anisoV); |
---|
| 1836 | + |
---|
1806 | 1837 | |
---|
1807 | 1838 | panel.add(new JSeparator()); |
---|
1808 | 1839 | |
---|
.. | .. |
---|
1810 | 1841 | |
---|
1811 | 1842 | //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
1812 | 1843 | |
---|
1813 | | - cGridBag globalSection = new cGridBag().setVertical(true); |
---|
| 1844 | + //cGridBag globalSection = new cGridBag().setVertical(true); |
---|
1814 | 1845 | |
---|
1815 | 1846 | cGridBag camera = new cGridBag(); |
---|
1816 | 1847 | camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints); |
---|
1817 | 1848 | cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1818 | 1849 | camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1819 | | - globalSection.add(camera); |
---|
| 1850 | + colorSection.add(camera); |
---|
1820 | 1851 | |
---|
1821 | 1852 | cGridBag ambient = new cGridBag(); |
---|
1822 | 1853 | ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints); |
---|
1823 | 1854 | ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1824 | 1855 | ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1825 | | - globalSection.add(ambient); |
---|
| 1856 | + colorSection.add(ambient); |
---|
1826 | 1857 | |
---|
1827 | 1858 | cGridBag backlit = new cGridBag(); |
---|
1828 | 1859 | backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints); |
---|
1829 | 1860 | backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1830 | 1861 | backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints); |
---|
1831 | | - globalSection.add(backlit); |
---|
| 1862 | + colorSection.add(backlit); |
---|
1832 | 1863 | |
---|
1833 | 1864 | cGridBag opacity = new cGridBag(); |
---|
1834 | 1865 | opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints); |
---|
1835 | 1866 | opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING); |
---|
1836 | 1867 | opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints); |
---|
1837 | | - globalSection.add(opacity); |
---|
| 1868 | + colorSection.add(opacity); |
---|
1838 | 1869 | |
---|
1839 | | - panel.add(new JSeparator()); |
---|
| 1870 | + //panel.add(new JSeparator()); |
---|
1840 | 1871 | |
---|
1841 | | - panel.add(globalSection); |
---|
| 1872 | + //panel.add(globalSection); |
---|
1842 | 1873 | |
---|
1843 | 1874 | //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints); |
---|
1844 | 1875 | |
---|
.. | .. |
---|
3537 | 3568 | |
---|
3538 | 3569 | copy.ExtractBigData(hashtable); |
---|
3539 | 3570 | |
---|
| 3571 | + byte[] compress = Compress(copy); |
---|
| 3572 | + |
---|
3540 | 3573 | //EditorFrame.m_MainFrame.requestFocusInWindow(); |
---|
3541 | | - tab.graphs[tab.undoindex++] = Compress(copy); |
---|
| 3574 | + tab.graphs[tab.undoindex++] = compress; |
---|
3542 | 3575 | |
---|
3543 | 3576 | copy.RestoreBigData(hashtable); |
---|
3544 | 3577 | |
---|