Normand Briere
2019-07-19 e79247ef52a0bbb3864d46bb1e2c716005b3ecf3
ObjEditor.java
....@@ -4,6 +4,7 @@
44
55 import java.awt.*;
66 import java.awt.event.*;
7
+import java.awt.image.BufferedImage;
78 import javax.swing.*;
89 import javax.swing.event.*;
910 import javax.swing.text.*;
....@@ -13,6 +14,9 @@
1314 import javax.swing.plaf.metal.MetalLookAndFeel;
1415 //import javax.swing.plaf.ColorUIResource;
1516 //import javax.swing.plaf.metal.DefaultMetalTheme;
17
+
18
+import javax.swing.plaf.basic.BasicSplitPaneDivider;
19
+import javax.swing.plaf.basic.BasicSplitPaneUI;
1620
1721 //import javax.media.opengl.GLCanvas;
1822
....@@ -37,6 +41,51 @@
3741 JFrame frame;
3842
3943 static ObjEditor theFrame;
44
+
45
+ cButton GetButton(String name, boolean border)
46
+ {
47
+ ImageIcon icon = GetIcon(name);
48
+ return new cButton(icon, border);
49
+ }
50
+
51
+ cToggleButton GetToggleButton(String name, boolean border)
52
+ {
53
+ ImageIcon icon = GetIcon(name);
54
+ return new cToggleButton(icon, border);
55
+ }
56
+
57
+ cCheckBox GetCheckBox(String name, boolean border)
58
+ {
59
+ ImageIcon icon = GetIcon(name);
60
+ return new cCheckBox(icon, border);
61
+ }
62
+
63
+ private ImageIcon GetIcon(String name)
64
+ {
65
+ try
66
+ {
67
+ BufferedImage image = javax.imageio.ImageIO.read(getClass().getClassLoader().getResourceAsStream(name));
68
+
69
+ if (image.getWidth() != 24 && image.getHeight() != 24)
70
+ {
71
+ BufferedImage resized = new BufferedImage(24, 24, image.getType());
72
+ Graphics2D g = resized.createGraphics();
73
+ g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
74
+ //g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
75
+ g.drawImage(image, 0, 0, 24, 24, 0, 0, image.getWidth(), image.getHeight(), null);
76
+ g.dispose();
77
+
78
+ image = resized;
79
+ }
80
+
81
+ javax.swing.ImageIcon icon = new javax.swing.ImageIcon(image);
82
+ return icon;
83
+ }
84
+ catch (Exception e)
85
+ {
86
+ return null;
87
+ }
88
+ }
4089
4190 // SCRIPT
4291
....@@ -147,7 +196,7 @@
147196
148197 objEditor.ctrlPanel.remove(namePanel);
149198
150
- if (!GroupEditor.allparams)
199
+ if (!allparams)
151200 return;
152201
153202 // objEditor.ctrlPanel.remove(liveCB);
....@@ -171,7 +220,7 @@
171220
172221 objEditor.ctrlPanel.remove(setupPanel);
173222 objEditor.ctrlPanel.remove(setupPanel2);
174
- objEditor.ctrlPanel.remove(commandsPanel);
223
+ objEditor.ctrlPanel.remove(objectCommandsPanel);
175224 objEditor.ctrlPanel.remove(pushPanel);
176225 //objEditor.ctrlPanel.remove(fillPanel);
177226
....@@ -219,6 +268,12 @@
219268 client = inClient;
220269 copy = client;
221270
271
+ if (copy.versions == null)
272
+ {
273
+ copy.versions = new byte[100][];
274
+ copy.versionindex = -1;
275
+ }
276
+
222277 // "this" is not called: SetupUI2(objEditor);
223278 }
224279
....@@ -232,6 +287,12 @@
232287 client = inClient;
233288 copy = client;
234289
290
+ if (copy.versions == null)
291
+ {
292
+ copy.versions = new byte[100][];
293
+ copy.versionindex = -1;
294
+ }
295
+
235296 SetupUI2(callee.GetEditor());
236297 }
237298
....@@ -246,7 +307,7 @@
246307 //localCopy.parent = null;
247308
248309 frame = new JFrame();
249
- frame.setUndecorated(true);
310
+ frame.setUndecorated(false);
250311 objEditor = this;
251312 this.callee = callee;
252313
....@@ -264,6 +325,12 @@
264325 copy = localCopy;
265326 copy.editWindow = this;
266327
328
+ if (copy.versions == null)
329
+ {
330
+ copy.versions = new byte[100][];
331
+ copy.versionindex = -1;
332
+ }
333
+
267334 SetupMenu();
268335
269336 //SetupName(objEditor); // new
....@@ -277,12 +344,17 @@
277344 return frame.action(event, obj);
278345 }
279346
347
+ // Cannot work without static
348
+ static boolean allparams = true;
349
+
350
+ static java.util.Vector<Object3D> listUI = new java.util.Vector<Object3D>();
351
+
280352 void SetupMenu()
281353 {
282354 frame.setMenuBar(menuBar = new MenuBar());
283355 menuBar.add(fileMenu = new Menu("File"));
284356 fileMenu.add(newItem = new MenuItem("New"));
285
- fileMenu.add(loadItem = new MenuItem("Open..."));
357
+ fileMenu.add(openItem = new MenuItem("Open..."));
286358
287359 //oe.menuBar.add(menu = new Menu("Include"));
288360 Menu menu = new Menu("Import");
....@@ -314,7 +386,7 @@
314386 }
315387
316388 newItem.addActionListener(this);
317
- loadItem.addActionListener(this);
389
+ openItem.addActionListener(this);
318390 saveItem.addActionListener(this);
319391 saveAsItem.addActionListener(this);
320392 exportAsItem.addActionListener(this);
....@@ -323,28 +395,68 @@
323395 closeItem.addActionListener(this);
324396
325397 objectPanel = new JTabbedPane();
398
+
399
+ ChangeListener changeListener = new ChangeListener()
400
+ {
401
+ public void stateChanged(ChangeEvent changeEvent)
402
+ {
403
+// if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Material") && !materialFlushed)
404
+// {
405
+// if (latestObject != null)
406
+// {
407
+// refreshContents(true);
408
+// SetMaterial(latestObject);
409
+// }
410
+//
411
+// materialFlushed = true;
412
+// }
413
+// if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Edit"))
414
+// {
415
+// if (listUI.size() == 0)
416
+// EditSelection(false);
417
+// }
418
+
419
+ refreshContents(false); // To refresh Info tab
420
+ }
421
+ };
422
+ objectPanel.addChangeListener(changeListener);
423
+
326424 toolbarPanel = new JPanel();
327425 toolbarPanel.setName("Toolbar");
426
+
328427 treePanel = new cGridBag();
329428 treePanel.setName("Tree");
429
+
430
+ editPanel = new cGridBag().setVertical(true);
431
+ //editPanel.setName("Edit");
432
+
330433 ctrlPanel = new cGridBag().setVertical(false); // new GridBagLayout());
331
- ctrlPanel.setName("Edit");
434
+
435
+ editCommandsPanel = new cGridBag();
436
+ editPanel.add(editCommandsPanel);
437
+ editPanel.add(ctrlPanel);
438
+
439
+ toolboxPanel = new cGridBag().setVertical(false);
440
+ //toolboxPanel.setName("Toolbox");
441
+
332442 materialPanel = new cGridBag().setVertical(true);
333
- materialPanel.setName("Material");
443
+ //materialPanel.setName("Material");
444
+
334445 /*JTextPane*/
335446 infoarea = createTextPane();
336447 doc = infoarea.getStyledDocument();
337448
338449 infoarea.setEditable(true);
339450 SetText();
451
+
340452 // infoarea.setFont(infoarea.getFont().deriveFont(10, 14f));
341453 // infoarea.setOpaque(false);
342454 // //infoarea.setForeground(textcolor);
343455 // TEXTAREA infoarea.setLineWrap(true);
344456 // TEXTAREA infoarea.setWrapStyleWord(true);
345457 infoPanel = new JScrollPane(infoarea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //AS_NEEDED);
346
- infoPanel.setPreferredSize(new Dimension(50, 200));
347
- infoPanel.setName("Info");
458
+ infoPanel.setPreferredSize(new Dimension(1, 1));
459
+ //infoPanel.setName("Info");
348460 //infoPanel.setLayout(new BorderLayout());
349461 //infoPanel.add(createTextPane());
350462
....@@ -355,7 +467,14 @@
355467 mainPanel.setDividerSize(9);
356468 mainPanel.setDividerLocation(0.5); //1.0);
357469 mainPanel.setResizeWeight(0.5);
358
-
470
+
471
+//mainPanel.setDividerSize((int) (mainPanel.getDividerSize() * 1.5));
472
+ BasicSplitPaneDivider divider = ( (BasicSplitPaneUI) mainPanel.getUI()).getDivider();
473
+ divider.setDividerSize(15);
474
+ divider.setBorder(BorderFactory.createTitledBorder(divider.getBorder(), "Custom border title -- gets rid of the one-touch arrows!"));
475
+
476
+ mainPanel.setUI(new BasicSplitPaneUI());
477
+
359478 //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5));
360479 //mainPanel.setLayout(new GridBagLayout());
361480 toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
....@@ -586,8 +705,8 @@
586705 }
587706 }
588707
589
-static GraphicsDevice device = GraphicsEnvironment
590
- .getLocalGraphicsEnvironment().getScreenDevices()[0];
708
+//static GraphicsDevice device = GraphicsEnvironment
709
+// .getLocalGraphicsEnvironment().getScreenDevices()[0];
591710
592711 Rectangle keeprect;
593712 cRadio radio;
....@@ -603,13 +722,24 @@
603722
604723 boolean maximized;
605724
725
+ cButton fullscreenLayout;
726
+
606727 void Minimize()
607728 {
608729 frame.setState(Frame.ICONIFIED);
730
+ frame.validate();
609731 }
610732
733
+// artifactURI=null, type=0, property=${file.reference.jfxrt.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@6767876f, broken=false, additional={}
734
+// artifactURI=null, type=0, property=${file.reference.mac-ui.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@16bdc817, broken=false, additional={}
735
+// artifactURI=null, type=0, property=${file.reference.classes.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@9daa9c17, broken=false, additional={}
611736 void Maximize()
612737 {
738
+ if (CameraPane.FULLSCREEN)
739
+ {
740
+ ToggleFullScreen();
741
+ }
742
+
613743 if (maximized)
614744 {
615745 frame.setBounds(keeprect.x, keeprect.y, keeprect.width, keeprect.height);
....@@ -617,20 +747,36 @@
617747 else
618748 {
619749 keeprect = frame.getBounds();
620
- Rectangle rect = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
621
- Dimension rect2 = frame.getToolkit().getScreenSize();
622
- frame.setBounds(0, rect2.height - rect.height, rect.width, rect.height);
750
+// Rectangle rect = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
751
+// Dimension rect2 = frame.getToolkit().getScreenSize();
752
+// frame.setBounds(0, rect2.height - rect.height, rect.width, rect.height);
623753 // frame.setState(Frame.MAXIMIZED_BOTH);
754
+ frame.setBounds(frame.getGraphicsConfiguration().getBounds());
624755 }
625756
626757 maximized ^= true;
758
+
759
+ frame.validate();
627760 }
761
+
762
+ cButton minButton;
763
+ cButton maxButton;
764
+ cButton fullButton;
628765
629766 void ToggleFullScreen()
630767 {
631
- if (CameraPane.FULLSCREEN)
768
+GraphicsDevice device = frame.getGraphicsConfiguration().getDevice();
769
+
770
+ cameraView.ToggleFullScreen();
771
+
772
+ if (!CameraPane.FULLSCREEN)
632773 {
633774 device.setFullScreenWindow(null);
775
+ frame.dispose();
776
+ frame.setUndecorated(false);
777
+ frame.validate();
778
+ frame.setVisible(true);
779
+
634780 //frame.setVisible(false);
635781 // frame.removeNotify();
636782 // frame.setUndecorated(false);
....@@ -640,7 +786,7 @@
640786 // X frame.getContentPane().remove(/*"Center",*/bigThree);
641787 // X framePanel.add(bigThree);
642788 // X frame.getContentPane().add(/*"Center",*/framePanel);
643
- framePanel.setDividerLocation(1);
789
+ framePanel.setDividerLocation(46);
644790
645791 //frame.setVisible(true);
646792 radio.layout = keepButton;
....@@ -655,7 +801,12 @@
655801 // frame.setBounds(0, 0, frame.getToolkit().getScreenSize().width,
656802 // frame.getToolkit().getScreenSize().height);
657803 //frame.setVisible(false);
804
+
805
+ frame.dispose();
806
+ frame.setUndecorated(true);
658807 device.setFullScreenWindow(frame);
808
+ frame.validate();
809
+ frame.setVisible(true);
659810 // frame.removeNotify();
660811 // frame.setUndecorated(true);
661812 // frame.addNotify();
....@@ -664,13 +815,34 @@
664815 // X frame.getContentPane().add(/*"Center",*/bigThree);
665816 framePanel.setDividerLocation(0);
666817
667
- radio.layout = twoButton;
818
+ radio.layout = fullscreenLayout;
668819 radio.layout.doClick();
669820 //frame.setVisible(true);
670821 }
671
-
672
- cameraView.ToggleFullScreen();
822
+ frame.validate();
673823 }
824
+
825
+ private byte[] CompressCopy()
826
+ {
827
+ boolean temp = CameraPane.SWITCH;
828
+ CameraPane.SWITCH = false;
829
+
830
+ copy.ExtractBigData(versiontable);
831
+ // if (copy == client)
832
+
833
+ byte[] versions[] = copy.versions;
834
+ copy.versions = null;
835
+
836
+ byte[] compress = Compress(copy);
837
+
838
+ copy.versions = versions;
839
+
840
+ copy.RestoreBigData(versiontable);
841
+
842
+ CameraPane.SWITCH = temp;
843
+
844
+ return compress;
845
+ }
674846
675847 private JTextPane createTextPane()
676848 {
....@@ -810,7 +982,12 @@
810982 JCheckBox speedupCB;
811983 JCheckBox rewindCB;
812984 JCheckBox flipVCB;
985
+
986
+ cCheckBox toggleTextureCB;
987
+ cCheckBox toggleSwitchCB;
988
+
813989 JComboBox texresMenu;
990
+
814991 JButton resetButton;
815992 JButton stepButton;
816993 JButton stepAllButton;
....@@ -819,10 +996,13 @@
819996 JButton fasterButton;
820997 JButton remarkButton;
821998
999
+ cGridBag editPanel;
1000
+ cGridBag editCommandsPanel;
1001
+
8221002 cGridBag namePanel;
8231003 cGridBag setupPanel;
8241004 cGridBag setupPanel2;
825
- cGridBag commandsPanel;
1005
+ cGridBag objectCommandsPanel;
8261006 cGridBag pushPanel;
8271007 cGridBag fillPanel;
8281008
....@@ -994,12 +1174,12 @@
9941174 namePanel = new cGridBag();
9951175
9961176 nameField = AddText(namePanel, copy.GetName());
997
- namePanel.add(nameField);
1177
+ namePanel.add(new JScrollPane(nameField, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER));
9981178 oe.ctrlPanel.add(namePanel);
9991179
10001180 oe.ctrlPanel.Return();
10011181
1002
- if (!GroupEditor.allparams)
1182
+ if (!allparams)
10031183 return;
10041184
10051185 setupPanel = new cGridBag().setVertical(false);
....@@ -1012,20 +1192,21 @@
10121192 hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);
10131193 hideCB.setToolTipText("Hide object");
10141194 markCB = AddCheckBox(setupPanel, "Mark", copy.marked);
1015
- markCB.setToolTipText("Set the animation target transform");
1195
+ markCB.setToolTipText("As animation target transform");
10161196
10171197 setupPanel2 = new cGridBag().setVertical(false);
10181198
10191199 rewindCB = AddCheckBox(setupPanel2, "Rewind", copy.rewind);
10201200 rewindCB.setToolTipText("Rewind animation");
10211201
1022
- randomCB = AddCheckBox(setupPanel2, "Rand", copy.random);
1023
- randomCB.setToolTipText("Randomly Rewind or Go back and forth");
1202
+ randomCB = AddCheckBox(setupPanel2, "Random", copy.random);
1203
+ randomCB.setToolTipText("Randomly Rewind (or Go back and forth)");
10241204
1205
+ link2masterCB = AddCheckBox(setupPanel2, "Support", copy.link2master);
1206
+ link2masterCB.setToolTipText("Attach to support");
1207
+
10251208 if (Globals.ADVANCED)
10261209 {
1027
- link2masterCB = AddCheckBox(setupPanel2, "Supp", copy.link2master);
1028
- link2masterCB.setToolTipText("Attach to support");
10291210 speedupCB = AddCheckBox(setupPanel2, "Speed", copy.speedup);
10301211 speedupCB.setToolTipText("Option motion capture");
10311212 }
....@@ -1035,23 +1216,23 @@
10351216 oe.ctrlPanel.add(setupPanel2);
10361217 oe.ctrlPanel.Return();
10371218
1038
- commandsPanel = new cGridBag().setVertical(false);
1219
+ objectCommandsPanel = new cGridBag().setVertical(false);
10391220
1040
- resetButton = AddButton(commandsPanel, "Reset");
1221
+ resetButton = AddButton(objectCommandsPanel, "Reset");
10411222 resetButton.setToolTipText("Jump to frame zero");
1042
- stepButton = AddButton(commandsPanel, "Step");
1223
+ stepButton = AddButton(objectCommandsPanel, "Step");
10431224 stepButton.setToolTipText("Step one frame");
10441225 // resetAllButton = AddButton(oe, "Reset All");
10451226 // stepAllButton = AddButton(oe, "Step All");
10461227 // Return();
1047
- slowerButton = AddButton(commandsPanel, "Slow");
1228
+ slowerButton = AddButton(objectCommandsPanel, "Slow");
10481229 slowerButton.setToolTipText("Decrease animation speed");
1049
- fasterButton = AddButton(commandsPanel, "Fast");
1230
+ fasterButton = AddButton(objectCommandsPanel, "Fast");
10501231 fasterButton.setToolTipText("Increase animation speed");
1051
- remarkButton = AddButton(commandsPanel, "Remark");
1232
+ remarkButton = AddButton(objectCommandsPanel, "Remark");
10521233 remarkButton.setToolTipText("Set the current transform as the target");
10531234
1054
- oe.ctrlPanel.add(commandsPanel);
1235
+ oe.ctrlPanel.add(objectCommandsPanel);
10551236 oe.ctrlPanel.Return();
10561237
10571238 pushPanel = AddSlider(oe.ctrlPanel, "Push", -1, 1, copy.NORMALPUSH, 1.1); // To have the buttons
....@@ -1299,6 +1480,7 @@
12991480 XYZPanel.addComponent(/*BorderLayout.SOUTH,*/sideView); // Scroll);
13001481 XYZPanel.addComponent(/*BorderLayout.CENTER,*/frontView); // Scroll);
13011482 XYZPanel.addComponent(/*BorderLayout.NORTH,*/topView); // Scroll);
1483
+ //XYZPanel.setName("XYZ");
13021484
13031485 /*
13041486 gridPanel = new JPanel(); //new BorderLayout());
....@@ -1336,12 +1518,23 @@
13361518 //JScrollPane tmp = new JScrollPane(ctrlPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
13371519 //tmp.setName("Edit");
13381520 objectPanel.add(materialPanel);
1521
+ objectPanel.setIconAt(0, GetIcon("icons/material.png"));
13391522 // JPanel north = new JPanel(new BorderLayout());
13401523 // north.setName("Edit");
13411524 // north.add(ctrlPanel, BorderLayout.NORTH);
13421525 // objectPanel.add(north);
1343
- objectPanel.add(ctrlPanel);
1344
- objectPanel.add(infoPanel);
1526
+ objectPanel.add(editPanel);
1527
+ objectPanel.setIconAt(1, GetIcon("icons/write.png"));
1528
+
1529
+ //if (Globals.ADVANCED)
1530
+ objectPanel.add(infoPanel);
1531
+ objectPanel.setIconAt(2, GetIcon("icons/info.png"));
1532
+
1533
+ objectPanel.add(XYZPanel);
1534
+ objectPanel.setIconAt(3, GetIcon("icons/XYZ.png"));
1535
+
1536
+ objectPanel.add(toolboxPanel);
1537
+ objectPanel.setIconAt(4, GetIcon("icons/primitives.png"));
13451538
13461539 /*
13471540 aConstraints.gridx = 0;
....@@ -1350,7 +1543,7 @@
13501543 aConstraints.gridy += 1;
13511544 aConstraints.gridwidth = 1;
13521545 mainPanel.add(objectPanel, aConstraints);
1353
- */
1546
+ */
13541547
13551548 scrollpane = new JScrollPane(mainPanel, ScrollPaneConstants.// VERTICAL_SCROLLBAR_ALWAYS,
13561549 VERTICAL_SCROLLBAR_AS_NEEDED,
....@@ -1362,14 +1555,12 @@
13621555 scrollpane.addMouseWheelListener(this); // Default not fast enough
13631556
13641557 /*JTabbedPane*/ scenePanel = new cGridBag();
1365
- scenePanel.preferredWidth = 6;
1558
+ scenePanel.preferredWidth = 5;
13661559
13671560 JTabbedPane tabbedPane = new JTabbedPane();
13681561 tabbedPane.add(scrollpane);
13691562
1370
- tabbedPane.add(FSPane = new cFileSystemPane(this));
1371
-
1372
- optionsPanel = new cGridBag().setVertical(true);
1563
+ optionsPanel = new cGridBag().setVertical(false);
13731564
13741565 optionsPanel.setName("Options");
13751566
....@@ -1377,6 +1568,8 @@
13771568
13781569 tabbedPane.add(optionsPanel);
13791570
1571
+ tabbedPane.add(FSPane = new cFileSystemPane(this));
1572
+
13801573 scenePanel.add(tabbedPane);
13811574
13821575 /*
....@@ -1440,7 +1633,7 @@
14401633 bigThree = new cGridBag();
14411634 bigThree.addComponent(scenePanel);
14421635 bigThree.addComponent(centralPanel);
1443
- bigThree.addComponent(XYZPanel);
1636
+ //bigThree.addComponent(XYZPanel);
14441637
14451638 // // SIDE EFFECT!!!
14461639 // aConstraints.gridx = 0;
....@@ -1449,9 +1642,9 @@
14491642 // aConstraints.gridheight = 1;
14501643
14511644 framePanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, toolbarPanel, bigThree);
1452
- framePanel.setContinuousLayout(true);
1453
- framePanel.setOneTouchExpandable(true);
1454
- framePanel.setDividerLocation(0.8);
1645
+ framePanel.setContinuousLayout(false);
1646
+ framePanel.setOneTouchExpandable(false);
1647
+ //.setDividerLocation(0.8);
14551648 //framePanel.setDividerSize(15);
14561649 //framePanel.setResizeWeight(0.15);
14571650 framePanel.setName("Frame");
....@@ -1469,11 +1662,14 @@
14691662 // aConstraints = gbc; // (GridBagConstraints) GrafreeD.clone(gbc);
14701663
14711664 frame.setSize(1280, 860);
1472
- frame.setVisible(true);
1473
-
1665
+
14741666 cameraView.requestFocusInWindow();
14751667
14761668 gridPanel.setDividerLocation(1.0);
1669
+
1670
+ frame.validate();
1671
+
1672
+ frame.setVisible(true);
14771673
14781674 frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
14791675 frame.addWindowListener(new WindowAdapter()
....@@ -1560,24 +1756,6 @@
15601756 texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
15611757 colorSection.add(texture);
15621758
1563
- cGridBag anisoU = new cGridBag();
1564
- anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1565
- anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1566
- anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1567
- colorSection.add(anisoU);
1568
-
1569
- cGridBag anisoV = new cGridBag();
1570
- anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1571
- anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1572
- anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1573
- colorSection.add(anisoV);
1574
-
1575
- cGridBag shadowbias = new cGridBag();
1576
- shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1577
- shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1578
- shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1579
- colorSection.add(shadowbias);
1580
-
15811759 panel.add(new JSeparator());
15821760
15831761 panel.add(colorSection);
....@@ -1627,6 +1805,12 @@
16271805 fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16281806 fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
16291807 diffuseSection.add(fakedepth);
1808
+
1809
+ cGridBag shadowbias = new cGridBag();
1810
+ shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1811
+ shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1812
+ shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1813
+ diffuseSection.add(shadowbias);
16301814
16311815 panel.add(new JSeparator());
16321816
....@@ -1678,6 +1862,18 @@
16781862 // aConstraints.gridy += 1;
16791863 // aConstraints.gridwidth = 1;
16801864
1865
+ cGridBag anisoU = new cGridBag();
1866
+ anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1867
+ anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1868
+ anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1869
+ specularSection.add(anisoU);
1870
+
1871
+ cGridBag anisoV = new cGridBag();
1872
+ anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1873
+ anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1874
+ anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1875
+ specularSection.add(anisoV);
1876
+
16811877
16821878 panel.add(new JSeparator());
16831879
....@@ -1685,35 +1881,35 @@
16851881
16861882 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
16871883
1688
- cGridBag globalSection = new cGridBag().setVertical(true);
1884
+ //cGridBag globalSection = new cGridBag().setVertical(true);
16891885
16901886 cGridBag camera = new cGridBag();
16911887 camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints);
16921888 cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16931889 camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1694
- globalSection.add(camera);
1890
+ colorSection.add(camera);
16951891
16961892 cGridBag ambient = new cGridBag();
16971893 ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints);
16981894 ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16991895 ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1700
- globalSection.add(ambient);
1896
+ colorSection.add(ambient);
17011897
17021898 cGridBag backlit = new cGridBag();
17031899 backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints);
17041900 backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
17051901 backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1706
- globalSection.add(backlit);
1902
+ colorSection.add(backlit);
17071903
17081904 cGridBag opacity = new cGridBag();
17091905 opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints);
17101906 opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
17111907 opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1712
- globalSection.add(opacity);
1908
+ colorSection.add(opacity);
17131909
1714
- panel.add(new JSeparator());
1910
+ //panel.add(new JSeparator());
17151911
1716
- panel.add(globalSection);
1912
+ //panel.add(globalSection);
17171913
17181914 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
17191915
....@@ -1820,8 +2016,9 @@
18202016 // 3D models
18212017 if (filename.endsWith(".3ds") || filename.endsWith(".3DS"))
18222018 {
1823
- lastConverter = new com.jmex.model.converters.MaxToJme();
1824
- LoadFile(filename, lastConverter);
2019
+ //lastConverter = new com.jmex.model.converters.MaxToJme();
2020
+ //LoadFile(filename, lastConverter);
2021
+ LoadObjFile(filename); // New 3ds loader
18252022 continue;
18262023 }
18272024 if (filename.endsWith(".dae") || filename.endsWith(".DAE"))
....@@ -2547,6 +2744,7 @@
25472744 LA.matXRotate(((Object3D) group.get(group.size() - 1)).toParent, -Math.PI / 2);
25482745 LA.matXRotate(((Object3D) group.get(group.size() - 1)).fromParent, Math.PI / 2);
25492746 }
2747
+
25502748 //cJME.count++;
25512749 //cJME.count %= 12;
25522750 if (gc)
....@@ -2730,6 +2928,7 @@
27302928 }
27312929 }
27322930 }
2931
+
27332932 cFileSystemPane FSPane;
27342933
27352934 void SetMaterial(cMaterial mat, Object3D.cVector2[] others)
....@@ -2783,11 +2982,14 @@
27832982 }
27842983 }
27852984 }
2985
+
27862986 freezematerial = false;
27872987 }
27882988
27892989 void SetMaterial(Object3D object)
27902990 {
2991
+ latestObject = object;
2992
+
27912993 cMaterial mat = object.material;
27922994
27932995 if (mat == null)
....@@ -2899,12 +3101,17 @@
28993101 // }
29003102
29013103 /**/
2902
- if (deselect)
3104
+ if (deselect || child == null)
29033105 {
29043106 //group.deselectAll();
29053107 //freeze = true;
29063108 GetTree().clearSelection();
29073109 //freeze = false;
3110
+
3111
+ if (child == null)
3112
+ {
3113
+ return;
3114
+ }
29083115 }
29093116
29103117 //group.addSelectee(child);
....@@ -2973,7 +3180,7 @@
29733180 cameraView.ToggleDL();
29743181 cameraView.repaint();
29753182 return;
2976
- } else if (event.getSource() == toggleTextureItem)
3183
+ } else if (event.getSource() == toggleTextureItem || event.getSource() == toggleTextureCB)
29773184 {
29783185 cameraView.ToggleTexture();
29793186 // june 2013 copy.HardTouch();
....@@ -3012,7 +3219,7 @@
30123219 frame.validate();
30133220
30143221 return;
3015
- } else if (event.getSource() == toggleSwitchItem)
3222
+ } else if (event.getSource() == toggleSwitchItem || event.getSource() == toggleSwitchCB)
30163223 {
30173224 cameraView.ToggleSwitch();
30183225 cameraView.repaint();
....@@ -3228,9 +3435,9 @@
32283435 {
32293436 Close();
32303437 //return true;
3231
- } else if (source == loadItem)
3438
+ } else if (source == openItem)
32323439 {
3233
- load();
3440
+ Open();
32343441 //return true;
32353442 } else if (source == newItem)
32363443 {
....@@ -3255,6 +3462,10 @@
32553462 {
32563463 generatePOV();
32573464 //return true;
3465
+ } else if (event.getSource() == archiveItem)
3466
+ {
3467
+ cTools.Archive(frame);
3468
+ return;
32583469 } else if (source == zBufferItem)
32593470 {
32603471 try
....@@ -3306,8 +3517,8 @@
33063517 try
33073518 {
33083519 ByteArrayOutputStream baos = new ByteArrayOutputStream();
3309
- java.util.zip.GZIPOutputStream zstream = new java.util.zip.GZIPOutputStream(baos);
3310
- ObjectOutputStream out = new ObjectOutputStream(zstream);
3520
+// java.util.zip.GZIPOutputStream zstream = new java.util.zip.GZIPOutputStream(baos);
3521
+ ObjectOutputStream out = new ObjectOutputStream(baos); //zstream);
33113522
33123523 Object3D parent = o.parent;
33133524 o.parent = null;
....@@ -3318,10 +3529,14 @@
33183529
33193530 out.flush();
33203531
3321
- zstream.close();
3532
+ baos //zstream
3533
+ .close();
33223534 out.close();
33233535
3324
- return baos.toByteArray();
3536
+ byte[] bytes = baos.toByteArray();
3537
+
3538
+ System.out.println("save #bytes = " + bytes.length);
3539
+ return bytes;
33253540 } catch (Exception e)
33263541 {
33273542 System.err.println(e);
....@@ -3331,13 +3546,16 @@
33313546
33323547 static public Object Uncompress(byte[] bytes)
33333548 {
3334
- System.out.println("#bytes = " + bytes.length);
3549
+ System.out.println("restore #bytes = " + bytes.length);
33353550 try
33363551 {
33373552 ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
3338
- java.util.zip.GZIPInputStream istream = new java.util.zip.GZIPInputStream(bais);
3339
- ObjectInputStream in = new ObjectInputStream(istream);
3553
+ //java.util.zip.GZIPInputStream istream = new java.util.zip.GZIPInputStream(bais);
3554
+ ObjectInputStream in = new ObjectInputStream(bais); // istream);
33403555 Object obj = in.readObject();
3556
+
3557
+ bais //istream
3558
+ .close();
33413559 in.close();
33423560
33433561 return obj;
....@@ -3392,37 +3610,77 @@
33923610 return null;
33933611 }
33943612
3395
- java.util.Hashtable<java.util.UUID, Object3D> hashtable = new java.util.Hashtable<java.util.UUID, Object3D>();
33963613
33973614 public void Save()
33983615 {
3616
+ //Save(true);
3617
+ Replace();
3618
+ }
3619
+
3620
+ private boolean Equal(byte[] compress, byte[] name)
3621
+ {
3622
+ if (compress.length != name.length)
3623
+ {
3624
+ return false;
3625
+ }
3626
+
3627
+ for (int i=compress.length; --i>=0;)
3628
+ {
3629
+ if (compress[i] != name[i])
3630
+ return false;
3631
+ }
3632
+
3633
+ return true;
3634
+ }
3635
+
3636
+ java.util.Hashtable<java.util.UUID, Object3D> versiontable = new java.util.Hashtable<java.util.UUID, Object3D>();
3637
+
3638
+ public boolean Save(boolean user)
3639
+ {
3640
+ System.err.println("Save");
3641
+
33993642 cRadio tab = GetCurrentTab();
34003643
3401
- boolean temp = CameraPane.SWITCH;
3402
- CameraPane.SWITCH = false;
3644
+ byte[] compress = CompressCopy();
34033645
3404
- copy.ExtractBigData(hashtable);
3646
+ boolean thesame = false;
3647
+
3648
+ // Quick heuristic using length. Works only when stream is compressed.
3649
+ if (copy.versionindex > 0 && copy.versions[copy.versionindex-1] != null && Equal(compress, copy.versions[copy.versionindex-1]))
3650
+ {
3651
+ thesame = true;
3652
+ }
34053653
34063654 //EditorFrame.m_MainFrame.requestFocusInWindow();
3407
- tab.graphs[tab.undoindex++] = Compress(copy);
3408
-
3409
- copy.RestoreBigData(hashtable);
3410
-
3411
- CameraPane.SWITCH = temp;
3412
-
3413
- //assert(hashtable.isEmpty());
3414
-
3415
- for (int i = tab.undoindex; i < tab.graphs.length; i++)
3655
+ if (!thesame)
34163656 {
3417
- tab.graphs[i] = null;
3657
+ //tab.user[tab.versionindex] = user;
3658
+ //boolean increment = true; // tab.graphs[tab.versionindex] == null;
3659
+
3660
+ copy.versions[++copy.versionindex] = compress;
3661
+
3662
+ // if (increment)
3663
+ // tab.versionindex++;
34183664 }
34193665
3666
+ //copy.RestoreBigData(versiontable);
3667
+
3668
+ //assert(hashtable.isEmpty());
3669
+
3670
+ for (int i = copy.versionindex+1; i < copy.versions.length; i++)
3671
+ {
3672
+ //tab.user[i] = false;
3673
+ copy.versions[i] = null;
3674
+ }
3675
+
3676
+ SetUndoStates();
3677
+
34203678 // test save
34213679 if (false)
34223680 {
34233681 try
34243682 {
3425
- FileOutputStream ostream = new FileOutputStream("save" + tab.undoindex);
3683
+ FileOutputStream ostream = new FileOutputStream("save" + copy.versionindex);
34263684 ObjectOutputStream p = new ObjectOutputStream(ostream);
34273685
34283686 p.writeObject(copy);
....@@ -3435,14 +3693,18 @@
34353693 e.printStackTrace();
34363694 }
34373695 }
3696
+
3697
+ return !thesame;
34383698 }
34393699
34403700 void CopyChanged(Object3D obj)
34413701 {
3702
+ SetUndoStates();
3703
+
34423704 boolean temp = CameraPane.SWITCH;
34433705 CameraPane.SWITCH = false;
34443706
3445
- copy.ExtractBigData(hashtable);
3707
+ copy.ExtractBigData(versiontable);
34463708
34473709 copy.clear();
34483710
....@@ -3451,7 +3713,7 @@
34513713 copy.add(obj.get(i));
34523714 }
34533715
3454
- copy.RestoreBigData(hashtable);
3716
+ copy.RestoreBigData(versiontable);
34553717
34563718 CameraPane.SWITCH = temp;
34573719
....@@ -3478,40 +3740,130 @@
34783740 refreshContents();
34793741 }
34803742
3481
- public void Undo()
3743
+ cButton undoButton;
3744
+ cButton restoreButton;
3745
+ cButton replaceButton;
3746
+ cButton redoButton;
3747
+
3748
+ boolean muteSlider;
3749
+
3750
+ int VersionCount()
3751
+ {
3752
+ int count = 0;
3753
+
3754
+ for (int i = copy.versions.length; --i >= 0;)
3755
+ {
3756
+ if (copy.versions[i] != null)
3757
+ count++;
3758
+ }
3759
+
3760
+ return count;
3761
+ }
3762
+
3763
+ void SetUndoStates()
34823764 {
34833765 cRadio tab = GetCurrentTab();
34843766
3485
- if (tab.undoindex == 0)
3767
+ restoreButton.setEnabled(copy.versionindex != -1);
3768
+ replaceButton.setEnabled(copy.versionindex != -1);
3769
+
3770
+ undoButton.setEnabled(copy.versionindex > 0);
3771
+ redoButton.setEnabled(copy.versions[copy.versionindex + 1] != null);
3772
+
3773
+ muteSlider = true;
3774
+ versionSlider.setMaximum(VersionCount() - 1);
3775
+ versionSlider.setInteger(copy.versionindex);
3776
+ muteSlider = false;
3777
+ }
3778
+
3779
+ public boolean Undo()
3780
+ {
3781
+ // Option?
3782
+ Replace();
3783
+
3784
+ System.err.println("Undo");
3785
+
3786
+ cRadio tab = GetCurrentTab();
3787
+
3788
+ if (copy.versionindex == 0)
34863789 {
34873790 java.awt.Toolkit.getDefaultToolkit().beep();
3488
- return;
3791
+ return false;
34893792 }
34903793
3491
- if (tab.graphs[tab.undoindex] == null)
3794
+// if (tab.graphs[tab.versionindex] == null) // || !tab.user[tab.versionindex])
3795
+// {
3796
+// if (Save(false))
3797
+// tab.versionindex -= 1;
3798
+// else
3799
+// {
3800
+// if (tab.versionindex <= 0)
3801
+// return false;
3802
+// else
3803
+// tab.versionindex -= 1;
3804
+// }
3805
+// }
3806
+
3807
+ copy.versionindex -= 1;
3808
+
3809
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3810
+
3811
+ return true;
3812
+ }
3813
+
3814
+ public boolean Restore()
3815
+ {
3816
+ System.err.println("Restore");
3817
+
3818
+ cRadio tab = GetCurrentTab();
3819
+
3820
+ if (copy.versionindex == -1 || copy.versions[copy.versionindex] == null)
34923821 {
3493
- Save();
3494
- tab.undoindex -= 1;
3822
+ java.awt.Toolkit.getDefaultToolkit().beep();
3823
+ return false;
34953824 }
34963825
3497
- tab.undoindex -= 1;
3826
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3827
+
3828
+ return true;
3829
+ }
34983830
3499
- CopyChanged((Object3D)Uncompress(tab.graphs[tab.undoindex]));
3831
+ public boolean Replace()
3832
+ {
3833
+ System.err.println("Replace");
3834
+
3835
+ cRadio tab = GetCurrentTab();
3836
+
3837
+ if (copy.versionindex == -1 || copy.versions[copy.versionindex] == null)
3838
+ {
3839
+ // No version yet. OK. java.awt.Toolkit.getDefaultToolkit().beep();
3840
+ return false;
3841
+ }
3842
+
3843
+ copy.versions[copy.versionindex] = CompressCopy();
3844
+
3845
+ return true;
35003846 }
35013847
35023848 public void Redo()
35033849 {
3850
+ // Option?
3851
+ Replace();
3852
+
35043853 cRadio tab = GetCurrentTab();
35053854
3506
- if (tab.graphs[tab.undoindex + 1] == null)
3855
+ if (copy.versions[copy.versionindex + 1] == null)
35073856 {
35083857 java.awt.Toolkit.getDefaultToolkit().beep();
35093858 return;
35103859 }
35113860
3512
- tab.undoindex += 1;
3861
+ copy.versionindex += 1;
35133862
3514
- CopyChanged((Object3D)Uncompress(tab.graphs[tab.undoindex]));
3863
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3864
+
3865
+ //if (!tab.user[tab.versionindex])
3866
+ // tab.graphs[tab.versionindex] = null;
35153867 }
35163868
35173869 void ImportGFD()
....@@ -3663,7 +4015,7 @@
36634015 assert false;
36644016 }
36654017
3666
- void EditSelection()
4018
+ void EditSelection(boolean newWindow)
36674019 {
36684020 }
36694021
....@@ -3807,9 +4159,25 @@
38074159 //copy.Touch();
38084160 }
38094161
4162
+ cNumberSlider versionSlider;
4163
+
38104164 public void stateChanged(ChangeEvent e)
38114165 {
38124166 // assert(false);
4167
+ if (e.getSource() == versionSlider)
4168
+ {
4169
+ if (muteSlider)
4170
+ return;
4171
+
4172
+ int version = versionSlider.getInteger();
4173
+
4174
+ if (copy.versions[version] != null)
4175
+ {
4176
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex = version]));
4177
+ }
4178
+
4179
+ return;
4180
+ }
38134181
38144182 if (freezematerial)
38154183 {
....@@ -4158,7 +4526,8 @@
41584526
41594527 void makeSomething(Object3D thing, boolean resetmodel) // deselect)
41604528 {
4161
- Save();
4529
+ if (Globals.REPLACEONMAKE) // && resetmodel)
4530
+ Save();
41624531 //Tween.set(thing, 0).target(1).start(tweenManager);
41634532 //Tween.to(thing, 0, 0.5f).target(0).start(tweenManager);
41644533 // if (thing instanceof GenericJointDemo)
....@@ -4245,6 +4614,12 @@
42454614 {
42464615 ResetModel();
42474616 Select(thing.GetTreePath(), true, false); // unselect... false);
4617
+
4618
+ if (thing.Size() == 0)
4619
+ {
4620
+ //EditSelection(false);
4621
+ }
4622
+
42484623 refreshContents();
42494624 }
42504625
....@@ -4467,7 +4842,8 @@
44674842
44684843 if (readobj != null)
44694844 {
4470
- Save();
4845
+ //if (Globals.SAVEONMAKE) // A new object cannot share meshes
4846
+ // Save();
44714847 try
44724848 {
44734849 //readobj.deepCopySelf(copy);
....@@ -4522,13 +4898,24 @@
45224898 c.addChild(csg);
45234899 }
45244900
4901
+ copy.versions = readobj.versions;
4902
+ copy.versionindex = readobj.versionindex;
4903
+
4904
+ if (copy.versions == null)
4905
+ {
4906
+ copy.versions = new byte[100][];
4907
+ copy.versionindex = -1;
4908
+ }
4909
+
4910
+ //? SetUndoStates();
4911
+
45254912 ResetModel();
45264913 copy.HardTouch(); // recompile?
45274914 refreshContents();
45284915 }
45294916 }
45304917
4531
- void load() // throws ClassNotFoundException
4918
+ void Open() // throws ClassNotFoundException
45324919 {
45334920 if (Grafreed.standAlone)
45344921 {
....@@ -4645,6 +5032,8 @@
46455032 String filename = browser.getFile();
46465033 if (filename != null && filename.length() > 0)
46475034 {
5035
+ if (!filename.endsWith(".gfd"))
5036
+ filename += ".gfd";
46485037 lastname = browser.getDirectory() + filename;
46495038 save();
46505039 }
....@@ -4811,7 +5200,7 @@
48115200 MenuBar menuBar;
48125201 Menu fileMenu;
48135202 MenuItem newItem;
4814
- MenuItem loadItem;
5203
+ MenuItem openItem;
48155204 MenuItem saveItem;
48165205 MenuItem saveAsItem;
48175206 MenuItem exportAsItem;
....@@ -4834,22 +5223,36 @@
48345223 CheckboxMenuItem toggleSwitchItem;
48355224 CheckboxMenuItem toggleRootItem;
48365225 CheckboxMenuItem animationItem;
5226
+ MenuItem archiveItem;
48375227 CheckboxMenuItem toggleHandleItem;
48385228 CheckboxMenuItem togglePaintItem;
48395229 JSplitPane mainPanel;
48405230 JScrollPane scrollpane;
5231
+
48415232 JPanel toolbarPanel;
5233
+
48425234 cGridBag treePanel;
5235
+
48435236 JPanel radioPanel;
48445237 ButtonGroup buttonGroup;
4845
- cGridBag ctrlPanel;
5238
+
5239
+ cGridBag toolboxPanel;
48465240 cGridBag materialPanel;
5241
+ cGridBag ctrlPanel;
5242
+
48475243 JScrollPane infoPanel;
5244
+
48485245 cGridBag optionsPanel;
5246
+
48495247 JTabbedPane objectPanel;
5248
+ boolean materialFlushed;
5249
+ Object3D latestObject;
5250
+
48505251 cGridBag XYZPanel;
5252
+
48515253 JSplitPane gridPanel;
48525254 JSplitPane bigPanel;
5255
+
48535256 cGridBag bigThree;
48545257 cGridBag scenePanel;
48555258 cGridBag centralPanel;
....@@ -4964,7 +5367,7 @@
49645367 cNumberSlider fogField;
49655368 JLabel opacityPowerLabel;
49665369 cNumberSlider opacityPowerField;
4967
- JTree jTree;
5370
+ cTree jTree;
49685371 //ObjectUI parent;
49695372
49705373 cNumberSlider normalpushField;