Normand Briere
2019-07-18 d7a17c35c443e2cb6c09eaa3cfeaf590a571faa1
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
....@@ -35,6 +39,67 @@
3539
3640 GroupEditor callee;
3741 JFrame frame;
42
+
43
+ static ObjEditor theFrame;
44
+
45
+ cButton GetButton(String name, boolean border)
46
+ {
47
+ try
48
+ {
49
+ ImageIcon icon = GetIcon(name);
50
+ return new cButton(icon, border);
51
+ }
52
+ catch (Exception e)
53
+ {
54
+ return new cButton(name, border);
55
+ }
56
+ }
57
+
58
+ cToggleButton GetToggleButton(String name, boolean border)
59
+ {
60
+ try
61
+ {
62
+ ImageIcon icon = GetIcon(name);
63
+ return new cToggleButton(icon, border);
64
+ }
65
+ catch (Exception e)
66
+ {
67
+ return new cToggleButton(name, border);
68
+ }
69
+ }
70
+
71
+ cCheckBox GetCheckBox(String name, boolean border)
72
+ {
73
+ try
74
+ {
75
+ ImageIcon icon = GetIcon(name);
76
+ return new cCheckBox(icon, border);
77
+ }
78
+ catch (Exception e)
79
+ {
80
+ return new cCheckBox(name, border);
81
+ }
82
+ }
83
+
84
+ private ImageIcon GetIcon(String name) throws IOException
85
+ {
86
+ BufferedImage image = javax.imageio.ImageIO.read(getClass().getClassLoader().getResourceAsStream(name));
87
+
88
+ if (image.getWidth() != 24 && image.getHeight() != 24)
89
+ {
90
+ BufferedImage resized = new BufferedImage(24, 24, image.getType());
91
+ Graphics2D g = resized.createGraphics();
92
+ g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
93
+ //g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
94
+ g.drawImage(image, 0, 0, 24, 24, 0, 0, image.getWidth(), image.getHeight(), null);
95
+ g.dispose();
96
+
97
+ image = resized;
98
+ }
99
+
100
+ javax.swing.ImageIcon icon = new javax.swing.ImageIcon(image);
101
+ return icon;
102
+ }
38103
39104 // SCRIPT
40105
....@@ -145,7 +210,7 @@
145210
146211 objEditor.ctrlPanel.remove(namePanel);
147212
148
- if (!GroupEditor.allparams)
213
+ if (!allparams)
149214 return;
150215
151216 // objEditor.ctrlPanel.remove(liveCB);
....@@ -169,7 +234,7 @@
169234
170235 objEditor.ctrlPanel.remove(setupPanel);
171236 objEditor.ctrlPanel.remove(setupPanel2);
172
- objEditor.ctrlPanel.remove(commandsPanel);
237
+ objEditor.ctrlPanel.remove(objectCommandsPanel);
173238 objEditor.ctrlPanel.remove(pushPanel);
174239 //objEditor.ctrlPanel.remove(fillPanel);
175240
....@@ -217,6 +282,12 @@
217282 client = inClient;
218283 copy = client;
219284
285
+ if (copy.versions == null)
286
+ {
287
+ copy.versions = new byte[100][];
288
+ copy.versionindex = -1;
289
+ }
290
+
220291 // "this" is not called: SetupUI2(objEditor);
221292 }
222293
....@@ -230,6 +301,12 @@
230301 client = inClient;
231302 copy = client;
232303
304
+ if (copy.versions == null)
305
+ {
306
+ copy.versions = new byte[100][];
307
+ copy.versionindex = -1;
308
+ }
309
+
233310 SetupUI2(callee.GetEditor());
234311 }
235312
....@@ -244,6 +321,7 @@
244321 //localCopy.parent = null;
245322
246323 frame = new JFrame();
324
+ frame.setUndecorated(false);
247325 objEditor = this;
248326 this.callee = callee;
249327
....@@ -261,6 +339,12 @@
261339 copy = localCopy;
262340 copy.editWindow = this;
263341
342
+ if (copy.versions == null)
343
+ {
344
+ copy.versions = new byte[100][];
345
+ copy.versionindex = -1;
346
+ }
347
+
264348 SetupMenu();
265349
266350 //SetupName(objEditor); // new
....@@ -274,12 +358,17 @@
274358 return frame.action(event, obj);
275359 }
276360
361
+ // Cannot work without static
362
+ static boolean allparams = true;
363
+
364
+ static java.util.Vector<Object3D> listUI = new java.util.Vector<Object3D>();
365
+
277366 void SetupMenu()
278367 {
279368 frame.setMenuBar(menuBar = new MenuBar());
280369 menuBar.add(fileMenu = new Menu("File"));
281370 fileMenu.add(newItem = new MenuItem("New"));
282
- fileMenu.add(loadItem = new MenuItem("Open..."));
371
+ fileMenu.add(openItem = new MenuItem("Open..."));
283372
284373 //oe.menuBar.add(menu = new Menu("Include"));
285374 Menu menu = new Menu("Import");
....@@ -311,7 +400,7 @@
311400 }
312401
313402 newItem.addActionListener(this);
314
- loadItem.addActionListener(this);
403
+ openItem.addActionListener(this);
315404 saveItem.addActionListener(this);
316405 saveAsItem.addActionListener(this);
317406 exportAsItem.addActionListener(this);
....@@ -320,14 +409,52 @@
320409 closeItem.addActionListener(this);
321410
322411 objectPanel = new JTabbedPane();
412
+
413
+ ChangeListener changeListener = new ChangeListener()
414
+ {
415
+ public void stateChanged(ChangeEvent changeEvent)
416
+ {
417
+// if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Material") && !materialFlushed)
418
+// {
419
+// if (latestObject != null)
420
+// {
421
+// refreshContents(true);
422
+// SetMaterial(latestObject);
423
+// }
424
+//
425
+// materialFlushed = true;
426
+// }
427
+// if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Edit"))
428
+// {
429
+// if (listUI.size() == 0)
430
+// EditSelection(false);
431
+// }
432
+
433
+ refreshContents(false); // To refresh Info tab
434
+ }
435
+ };
436
+ objectPanel.addChangeListener(changeListener);
437
+
323438 toolbarPanel = new JPanel();
324439 toolbarPanel.setName("Toolbar");
325440 treePanel = new cGridBag();
326441 treePanel.setName("Tree");
442
+
443
+ editPanel = new cGridBag().setVertical(true);
444
+ editPanel.setName("Edit");
445
+
327446 ctrlPanel = new cGridBag().setVertical(false); // new GridBagLayout());
328
- ctrlPanel.setName("Edit");
447
+
448
+ editCommandsPanel = new cGridBag();
449
+ editPanel.add(editCommandsPanel);
450
+ editPanel.add(ctrlPanel);
451
+
452
+ toolboxPanel = new cGridBag().setVertical(false);
453
+ toolboxPanel.setName("Toolbox");
454
+
329455 materialPanel = new cGridBag().setVertical(true);
330456 materialPanel.setName("Material");
457
+
331458 /*JTextPane*/
332459 infoarea = createTextPane();
333460 doc = infoarea.getStyledDocument();
....@@ -340,7 +467,7 @@
340467 // TEXTAREA infoarea.setLineWrap(true);
341468 // TEXTAREA infoarea.setWrapStyleWord(true);
342469 infoPanel = new JScrollPane(infoarea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //AS_NEEDED);
343
- infoPanel.setPreferredSize(new Dimension(50, 200));
470
+ infoPanel.setPreferredSize(new Dimension(1, 1));
344471 infoPanel.setName("Info");
345472 //infoPanel.setLayout(new BorderLayout());
346473 //infoPanel.add(createTextPane());
....@@ -352,7 +479,14 @@
352479 mainPanel.setDividerSize(9);
353480 mainPanel.setDividerLocation(0.5); //1.0);
354481 mainPanel.setResizeWeight(0.5);
355
-
482
+
483
+//mainPanel.setDividerSize((int) (mainPanel.getDividerSize() * 1.5));
484
+ BasicSplitPaneDivider divider = ( (BasicSplitPaneUI) mainPanel.getUI()).getDivider();
485
+ divider.setDividerSize(15);
486
+ divider.setBorder(BorderFactory.createTitledBorder(divider.getBorder(), "Custom border title -- gets rid of the one-touch arrows!"));
487
+
488
+ mainPanel.setUI(new BasicSplitPaneUI());
489
+
356490 //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5));
357491 //mainPanel.setLayout(new GridBagLayout());
358492 toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
....@@ -583,21 +717,144 @@
583717 }
584718 }
585719
720
+//static GraphicsDevice device = GraphicsEnvironment
721
+// .getLocalGraphicsEnvironment().getScreenDevices()[0];
722
+
723
+ Rectangle keeprect;
724
+ cRadio radio;
725
+
726
+cButton keepButton;
727
+ cButton twoButton; // Full 3D
728
+ cButton sixButton;
729
+ cButton threeButton;
730
+ cButton sevenButton;
731
+ cButton fourButton; // full panel
732
+ cButton oneButton; // full XYZ
733
+ //cButton currentLayout;
734
+
735
+ boolean maximized;
736
+
737
+ cButton fullscreenLayout;
738
+
739
+ void Minimize()
740
+ {
741
+ frame.setState(Frame.ICONIFIED);
742
+ frame.validate();
743
+ }
744
+
745
+// artifactURI=null, type=0, property=${file.reference.jfxrt.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@6767876f, broken=false, additional={}
746
+// artifactURI=null, type=0, property=${file.reference.mac-ui.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@16bdc817, broken=false, additional={}
747
+// artifactURI=null, type=0, property=${file.reference.classes.jar}, object=org.netbeans.modules.java.api.common.classpath.ClassPathSupport$RelativePath@9daa9c17, broken=false, additional={}
748
+ void Maximize()
749
+ {
750
+ if (CameraPane.FULLSCREEN)
751
+ {
752
+ ToggleFullScreen();
753
+ }
754
+
755
+ if (maximized)
756
+ {
757
+ frame.setBounds(keeprect.x, keeprect.y, keeprect.width, keeprect.height);
758
+ }
759
+ else
760
+ {
761
+ keeprect = frame.getBounds();
762
+// Rectangle rect = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
763
+// Dimension rect2 = frame.getToolkit().getScreenSize();
764
+// frame.setBounds(0, rect2.height - rect.height, rect.width, rect.height);
765
+// frame.setState(Frame.MAXIMIZED_BOTH);
766
+ frame.setBounds(frame.getGraphicsConfiguration().getBounds());
767
+ }
768
+
769
+ maximized ^= true;
770
+
771
+ frame.validate();
772
+ }
773
+
774
+ cButton minButton;
775
+ cButton maxButton;
776
+ cButton fullButton;
777
+
586778 void ToggleFullScreen()
587779 {
588
- if (CameraPane.FULLSCREEN)
780
+GraphicsDevice device = frame.getGraphicsConfiguration().getDevice();
781
+
782
+ cameraView.ToggleFullScreen();
783
+
784
+ if (!CameraPane.FULLSCREEN)
589785 {
590
- frame.getContentPane().remove(/*"Center",*/bigThree);
591
- framePanel.add(bigThree);
592
- frame.getContentPane().add(/*"Center",*/framePanel);
786
+ device.setFullScreenWindow(null);
787
+ frame.dispose();
788
+ frame.setUndecorated(false);
789
+ frame.validate();
790
+ frame.setVisible(true);
791
+
792
+ //frame.setVisible(false);
793
+// frame.removeNotify();
794
+// frame.setUndecorated(false);
795
+// frame.addNotify();
796
+ //frame.setBounds(keeprect.x, keeprect.y, keeprect.width, keeprect.height);
797
+
798
+// X frame.getContentPane().remove(/*"Center",*/bigThree);
799
+// X framePanel.add(bigThree);
800
+// X frame.getContentPane().add(/*"Center",*/framePanel);
801
+ framePanel.setDividerLocation(46);
802
+
803
+ //frame.setVisible(true);
804
+ radio.layout = keepButton;
805
+ //theFrame = null;
806
+ keepButton = null;
807
+ radio.layout.doClick();
808
+
593809 } else
594810 {
595
- frame.getContentPane().remove(/*"Center",*/framePanel);
596
- framePanel.remove(bigThree);
597
- frame.getContentPane().add(/*"Center",*/bigThree);
811
+ keepButton = radio.layout;
812
+ //keeprect = frame.getBounds();
813
+// frame.setBounds(0, 0, frame.getToolkit().getScreenSize().width,
814
+// frame.getToolkit().getScreenSize().height);
815
+ //frame.setVisible(false);
816
+
817
+ frame.dispose();
818
+ frame.setUndecorated(true);
819
+ device.setFullScreenWindow(frame);
820
+ frame.validate();
821
+ frame.setVisible(true);
822
+// frame.removeNotify();
823
+// frame.setUndecorated(true);
824
+// frame.addNotify();
825
+// X frame.getContentPane().remove(/*"Center",*/framePanel);
826
+// X framePanel.remove(bigThree);
827
+// X frame.getContentPane().add(/*"Center",*/bigThree);
828
+ framePanel.setDividerLocation(0);
829
+
830
+ radio.layout = fullscreenLayout;
831
+ radio.layout.doClick();
832
+ //frame.setVisible(true);
598833 }
599
- cameraView.ToggleFullScreen();
834
+ frame.validate();
600835 }
836
+
837
+ private byte[] CompressCopy()
838
+ {
839
+ boolean temp = CameraPane.SWITCH;
840
+ CameraPane.SWITCH = false;
841
+
842
+ copy.ExtractBigData(versiontable);
843
+ // if (copy == client)
844
+
845
+ byte[] versions[] = copy.versions;
846
+ copy.versions = null;
847
+
848
+ byte[] compress = Compress(copy);
849
+
850
+ copy.versions = versions;
851
+
852
+ copy.RestoreBigData(versiontable);
853
+
854
+ CameraPane.SWITCH = temp;
855
+
856
+ return compress;
857
+ }
601858
602859 private JTextPane createTextPane()
603860 {
....@@ -737,7 +994,12 @@
737994 JCheckBox speedupCB;
738995 JCheckBox rewindCB;
739996 JCheckBox flipVCB;
997
+
998
+ cCheckBox toggleTextureCB;
999
+ cCheckBox toggleSwitchCB;
1000
+
7401001 JComboBox texresMenu;
1002
+
7411003 JButton resetButton;
7421004 JButton stepButton;
7431005 JButton stepAllButton;
....@@ -746,10 +1008,13 @@
7461008 JButton fasterButton;
7471009 JButton remarkButton;
7481010
1011
+ cGridBag editPanel;
1012
+ cGridBag editCommandsPanel;
1013
+
7491014 cGridBag namePanel;
7501015 cGridBag setupPanel;
7511016 cGridBag setupPanel2;
752
- cGridBag commandsPanel;
1017
+ cGridBag objectCommandsPanel;
7531018 cGridBag pushPanel;
7541019 cGridBag fillPanel;
7551020
....@@ -921,12 +1186,12 @@
9211186 namePanel = new cGridBag();
9221187
9231188 nameField = AddText(namePanel, copy.GetName());
924
- namePanel.add(nameField);
1189
+ namePanel.add(new JScrollPane(nameField, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER));
9251190 oe.ctrlPanel.add(namePanel);
9261191
9271192 oe.ctrlPanel.Return();
9281193
929
- if (!GroupEditor.allparams)
1194
+ if (!allparams)
9301195 return;
9311196
9321197 setupPanel = new cGridBag().setVertical(false);
....@@ -939,20 +1204,21 @@
9391204 hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);
9401205 hideCB.setToolTipText("Hide object");
9411206 markCB = AddCheckBox(setupPanel, "Mark", copy.marked);
942
- markCB.setToolTipText("Set the animation target transform");
1207
+ markCB.setToolTipText("As animation target transform");
9431208
9441209 setupPanel2 = new cGridBag().setVertical(false);
9451210
9461211 rewindCB = AddCheckBox(setupPanel2, "Rewind", copy.rewind);
9471212 rewindCB.setToolTipText("Rewind animation");
9481213
949
- randomCB = AddCheckBox(setupPanel2, "Rand", copy.random);
950
- randomCB.setToolTipText("Rewind or Go back and forth randomly");
1214
+ randomCB = AddCheckBox(setupPanel2, "Random", copy.random);
1215
+ randomCB.setToolTipText("Randomly Rewind (or Go back and forth)");
9511216
1217
+ link2masterCB = AddCheckBox(setupPanel2, "Support", copy.link2master);
1218
+ link2masterCB.setToolTipText("Attach to support");
1219
+
9521220 if (Globals.ADVANCED)
9531221 {
954
- link2masterCB = AddCheckBox(setupPanel2, "Supp", copy.link2master);
955
- link2masterCB.setToolTipText("Attach to support");
9561222 speedupCB = AddCheckBox(setupPanel2, "Speed", copy.speedup);
9571223 speedupCB.setToolTipText("Option motion capture");
9581224 }
....@@ -962,23 +1228,23 @@
9621228 oe.ctrlPanel.add(setupPanel2);
9631229 oe.ctrlPanel.Return();
9641230
965
- commandsPanel = new cGridBag().setVertical(false);
1231
+ objectCommandsPanel = new cGridBag().setVertical(false);
9661232
967
- resetButton = AddButton(commandsPanel, "Reset");
1233
+ resetButton = AddButton(objectCommandsPanel, "Reset");
9681234 resetButton.setToolTipText("Jump to frame zero");
969
- stepButton = AddButton(commandsPanel, "Step");
1235
+ stepButton = AddButton(objectCommandsPanel, "Step");
9701236 stepButton.setToolTipText("Step one frame");
9711237 // resetAllButton = AddButton(oe, "Reset All");
9721238 // stepAllButton = AddButton(oe, "Step All");
9731239 // Return();
974
- slowerButton = AddButton(commandsPanel, "Slow");
1240
+ slowerButton = AddButton(objectCommandsPanel, "Slow");
9751241 slowerButton.setToolTipText("Decrease animation speed");
976
- fasterButton = AddButton(commandsPanel, "Fast");
1242
+ fasterButton = AddButton(objectCommandsPanel, "Fast");
9771243 fasterButton.setToolTipText("Increase animation speed");
978
- remarkButton = AddButton(commandsPanel, "Remark");
1244
+ remarkButton = AddButton(objectCommandsPanel, "Remark");
9791245 remarkButton.setToolTipText("Set the current transform as the target");
9801246
981
- oe.ctrlPanel.add(commandsPanel);
1247
+ oe.ctrlPanel.add(objectCommandsPanel);
9821248 oe.ctrlPanel.Return();
9831249
9841250 pushPanel = AddSlider(oe.ctrlPanel, "Push", -1, 1, copy.NORMALPUSH, 1.1); // To have the buttons
....@@ -1184,8 +1450,11 @@
11841450 //worldPanel.setName("World");
11851451 centralPanel = new cGridBag();
11861452 centralPanel.preferredWidth = 20;
1187
- timelinePanel = new JPanel(new BorderLayout());
1188
- timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel);
1453
+
1454
+ if (Globals.ADVANCED)
1455
+ {
1456
+ timelinePanel = new JPanel(new BorderLayout());
1457
+ timelineMenubar = new timeflow.app.TimeflowApp().TimeFlowWindow(timelinePanel);
11891458
11901459 cameraPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, cameraView, timelinePanel);
11911460 cameraPanel.setContinuousLayout(true);
....@@ -1194,7 +1463,10 @@
11941463 // cameraPanel.setDividerSize(9);
11951464 cameraPanel.setResizeWeight(1.0);
11961465
1466
+ }
1467
+
11971468 centralPanel.add(cameraView);
1469
+ centralPanel.setFocusable(true);
11981470 //frame.setJMenuBar(timelineMenubar);
11991471 //centralPanel.add(timelinePanel);
12001472
....@@ -1261,8 +1533,12 @@
12611533 // north.setName("Edit");
12621534 // north.add(ctrlPanel, BorderLayout.NORTH);
12631535 // objectPanel.add(north);
1264
- objectPanel.add(ctrlPanel);
1265
- objectPanel.add(infoPanel);
1536
+ objectPanel.add(editPanel);
1537
+
1538
+ //if (Globals.ADVANCED)
1539
+ objectPanel.add(infoPanel);
1540
+
1541
+ objectPanel.add(toolboxPanel);
12661542
12671543 /*
12681544 aConstraints.gridx = 0;
....@@ -1271,7 +1547,7 @@
12711547 aConstraints.gridy += 1;
12721548 aConstraints.gridwidth = 1;
12731549 mainPanel.add(objectPanel, aConstraints);
1274
- */
1550
+ */
12751551
12761552 scrollpane = new JScrollPane(mainPanel, ScrollPaneConstants.// VERTICAL_SCROLLBAR_ALWAYS,
12771553 VERTICAL_SCROLLBAR_AS_NEEDED,
....@@ -1288,9 +1564,7 @@
12881564 JTabbedPane tabbedPane = new JTabbedPane();
12891565 tabbedPane.add(scrollpane);
12901566
1291
- tabbedPane.add(FSPane = new cFileSystemPane(this));
1292
-
1293
- optionsPanel = new cGridBag().setVertical(true);
1567
+ optionsPanel = new cGridBag().setVertical(false);
12941568
12951569 optionsPanel.setName("Options");
12961570
....@@ -1298,6 +1572,8 @@
12981572
12991573 tabbedPane.add(optionsPanel);
13001574
1575
+ tabbedPane.add(FSPane = new cFileSystemPane(this));
1576
+
13011577 scenePanel.add(tabbedPane);
13021578
13031579 /*
....@@ -1370,9 +1646,9 @@
13701646 // aConstraints.gridheight = 1;
13711647
13721648 framePanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT, toolbarPanel, bigThree);
1373
- framePanel.setContinuousLayout(true);
1374
- framePanel.setOneTouchExpandable(true);
1375
- framePanel.setDividerLocation(0.8);
1649
+ framePanel.setContinuousLayout(false);
1650
+ framePanel.setOneTouchExpandable(false);
1651
+ //.setDividerLocation(0.8);
13761652 //framePanel.setDividerSize(15);
13771653 //framePanel.setResizeWeight(0.15);
13781654 framePanel.setName("Frame");
....@@ -1390,9 +1666,14 @@
13901666 // aConstraints = gbc; // (GridBagConstraints) GrafreeD.clone(gbc);
13911667
13921668 frame.setSize(1280, 860);
1393
- frame.setVisible(true);
1394
-
1669
+
1670
+ cameraView.requestFocusInWindow();
1671
+
13951672 gridPanel.setDividerLocation(1.0);
1673
+
1674
+ frame.validate();
1675
+
1676
+ frame.setVisible(true);
13961677
13971678 frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
13981679 frame.addWindowListener(new WindowAdapter()
....@@ -1479,24 +1760,6 @@
14791760 texture.add(textureField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
14801761 colorSection.add(texture);
14811762
1482
- cGridBag anisoU = new cGridBag();
1483
- anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1484
- anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1485
- anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1486
- colorSection.add(anisoU);
1487
-
1488
- cGridBag anisoV = new cGridBag();
1489
- anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1490
- anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1491
- anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1492
- colorSection.add(anisoV);
1493
-
1494
- cGridBag shadowbias = new cGridBag();
1495
- shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1496
- shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1497
- shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1498
- colorSection.add(shadowbias);
1499
-
15001763 panel.add(new JSeparator());
15011764
15021765 panel.add(colorSection);
....@@ -1546,6 +1809,12 @@
15461809 fakedepthLabel.setHorizontalAlignment(SwingConstants.TRAILING);
15471810 fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
15481811 diffuseSection.add(fakedepth);
1812
+
1813
+ cGridBag shadowbias = new cGridBag();
1814
+ shadowbias.add(shadowbiasLabel = new JLabel("Shadowbias")); // , aConstraints);
1815
+ shadowbiasLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1816
+ shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1817
+ diffuseSection.add(shadowbias);
15491818
15501819 panel.add(new JSeparator());
15511820
....@@ -1597,6 +1866,18 @@
15971866 // aConstraints.gridy += 1;
15981867 // aConstraints.gridwidth = 1;
15991868
1869
+ cGridBag anisoU = new cGridBag();
1870
+ anisoU.add(anisoLabel = new JLabel("AnisoU")); // , aConstraints);
1871
+ anisoLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1872
+ anisoU.add(anisoField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1873
+ specularSection.add(anisoU);
1874
+
1875
+ cGridBag anisoV = new cGridBag();
1876
+ anisoV.add(anisoVLabel = new JLabel("AnisoV")); // , aConstraints);
1877
+ anisoVLabel.setHorizontalAlignment(SwingConstants.TRAILING);
1878
+ anisoV.add(anisoVField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1879
+ specularSection.add(anisoV);
1880
+
16001881
16011882 panel.add(new JSeparator());
16021883
....@@ -1604,35 +1885,35 @@
16041885
16051886 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
16061887
1607
- cGridBag globalSection = new cGridBag().setVertical(true);
1888
+ //cGridBag globalSection = new cGridBag().setVertical(true);
16081889
16091890 cGridBag camera = new cGridBag();
16101891 camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints);
16111892 cameraLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16121893 camera.add(cameraField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1613
- globalSection.add(camera);
1894
+ colorSection.add(camera);
16141895
16151896 cGridBag ambient = new cGridBag();
16161897 ambient.add(ambientLabel = new JLabel("Ambient")); // , aConstraints);
16171898 ambientLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16181899 ambient.add(ambientField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1619
- globalSection.add(ambient);
1900
+ colorSection.add(ambient);
16201901
16211902 cGridBag backlit = new cGridBag();
16221903 backlit.add(backlitLabel = new JLabel("Backlit")); // , aConstraints);
16231904 backlitLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16241905 backlit.add(backlitField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
1625
- globalSection.add(backlit);
1906
+ colorSection.add(backlit);
16261907
16271908 cGridBag opacity = new cGridBag();
16281909 opacity.add(opacityLabel = new JLabel("Opacity")); // , aConstraints);
16291910 opacityLabel.setHorizontalAlignment(SwingConstants.TRAILING);
16301911 opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1631
- globalSection.add(opacity);
1912
+ colorSection.add(opacity);
16321913
1633
- panel.add(new JSeparator());
1914
+ //panel.add(new JSeparator());
16341915
1635
- panel.add(globalSection);
1916
+ //panel.add(globalSection);
16361917
16371918 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
16381919
....@@ -1739,8 +2020,9 @@
17392020 // 3D models
17402021 if (filename.endsWith(".3ds") || filename.endsWith(".3DS"))
17412022 {
1742
- lastConverter = new com.jmex.model.converters.MaxToJme();
1743
- LoadFile(filename, lastConverter);
2023
+ //lastConverter = new com.jmex.model.converters.MaxToJme();
2024
+ //LoadFile(filename, lastConverter);
2025
+ LoadObjFile(filename); // New 3ds loader
17442026 continue;
17452027 }
17462028 if (filename.endsWith(".dae") || filename.endsWith(".DAE"))
....@@ -2466,6 +2748,7 @@
24662748 LA.matXRotate(((Object3D) group.get(group.size() - 1)).toParent, -Math.PI / 2);
24672749 LA.matXRotate(((Object3D) group.get(group.size() - 1)).fromParent, Math.PI / 2);
24682750 }
2751
+
24692752 //cJME.count++;
24702753 //cJME.count %= 12;
24712754 if (gc)
....@@ -2649,6 +2932,7 @@
26492932 }
26502933 }
26512934 }
2935
+
26522936 cFileSystemPane FSPane;
26532937
26542938 void SetMaterial(cMaterial mat, Object3D.cVector2[] others)
....@@ -2702,11 +2986,14 @@
27022986 }
27032987 }
27042988 }
2989
+
27052990 freezematerial = false;
27062991 }
27072992
27082993 void SetMaterial(Object3D object)
27092994 {
2995
+ latestObject = object;
2996
+
27102997 cMaterial mat = object.material;
27112998
27122999 if (mat == null)
....@@ -2818,12 +3105,17 @@
28183105 // }
28193106
28203107 /**/
2821
- if (deselect)
3108
+ if (deselect || child == null)
28223109 {
28233110 //group.deselectAll();
28243111 //freeze = true;
28253112 GetTree().clearSelection();
28263113 //freeze = false;
3114
+
3115
+ if (child == null)
3116
+ {
3117
+ return;
3118
+ }
28273119 }
28283120
28293121 //group.addSelectee(child);
....@@ -2892,7 +3184,7 @@
28923184 cameraView.ToggleDL();
28933185 cameraView.repaint();
28943186 return;
2895
- } else if (event.getSource() == toggleTextureItem)
3187
+ } else if (event.getSource() == toggleTextureItem || event.getSource() == toggleTextureCB)
28963188 {
28973189 cameraView.ToggleTexture();
28983190 // june 2013 copy.HardTouch();
....@@ -2931,7 +3223,7 @@
29313223 frame.validate();
29323224
29333225 return;
2934
- } else if (event.getSource() == toggleSwitchItem)
3226
+ } else if (event.getSource() == toggleSwitchItem || event.getSource() == toggleSwitchCB)
29353227 {
29363228 cameraView.ToggleSwitch();
29373229 cameraView.repaint();
....@@ -3147,9 +3439,9 @@
31473439 {
31483440 Close();
31493441 //return true;
3150
- } else if (source == loadItem)
3442
+ } else if (source == openItem)
31513443 {
3152
- load();
3444
+ Open();
31533445 //return true;
31543446 } else if (source == newItem)
31553447 {
....@@ -3174,6 +3466,10 @@
31743466 {
31753467 generatePOV();
31763468 //return true;
3469
+ } else if (event.getSource() == archiveItem)
3470
+ {
3471
+ cTools.Archive(frame);
3472
+ return;
31773473 } else if (source == zBufferItem)
31783474 {
31793475 try
....@@ -3225,8 +3521,8 @@
32253521 try
32263522 {
32273523 ByteArrayOutputStream baos = new ByteArrayOutputStream();
3228
- java.util.zip.GZIPOutputStream zstream = new java.util.zip.GZIPOutputStream(baos);
3229
- ObjectOutputStream out = new ObjectOutputStream(zstream);
3524
+// java.util.zip.GZIPOutputStream zstream = new java.util.zip.GZIPOutputStream(baos);
3525
+ ObjectOutputStream out = new ObjectOutputStream(baos); //zstream);
32303526
32313527 Object3D parent = o.parent;
32323528 o.parent = null;
....@@ -3237,10 +3533,14 @@
32373533
32383534 out.flush();
32393535
3240
- zstream.close();
3536
+ baos //zstream
3537
+ .close();
32413538 out.close();
32423539
3243
- return baos.toByteArray();
3540
+ byte[] bytes = baos.toByteArray();
3541
+
3542
+ System.out.println("save #bytes = " + bytes.length);
3543
+ return bytes;
32443544 } catch (Exception e)
32453545 {
32463546 System.err.println(e);
....@@ -3250,13 +3550,16 @@
32503550
32513551 static public Object Uncompress(byte[] bytes)
32523552 {
3253
- System.out.println("#bytes = " + bytes.length);
3553
+ System.out.println("restore #bytes = " + bytes.length);
32543554 try
32553555 {
32563556 ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
3257
- java.util.zip.GZIPInputStream istream = new java.util.zip.GZIPInputStream(bais);
3258
- ObjectInputStream in = new ObjectInputStream(istream);
3557
+ //java.util.zip.GZIPInputStream istream = new java.util.zip.GZIPInputStream(bais);
3558
+ ObjectInputStream in = new ObjectInputStream(bais); // istream);
32593559 Object obj = in.readObject();
3560
+
3561
+ bais //istream
3562
+ .close();
32603563 in.close();
32613564
32623565 return obj;
....@@ -3311,37 +3614,77 @@
33113614 return null;
33123615 }
33133616
3314
- java.util.Hashtable<java.util.UUID, Object3D> hashtable = new java.util.Hashtable<java.util.UUID, Object3D>();
33153617
33163618 public void Save()
33173619 {
3620
+ //Save(true);
3621
+ Replace();
3622
+ }
3623
+
3624
+ private boolean Equal(byte[] compress, byte[] name)
3625
+ {
3626
+ if (compress.length != name.length)
3627
+ {
3628
+ return false;
3629
+ }
3630
+
3631
+ for (int i=compress.length; --i>=0;)
3632
+ {
3633
+ if (compress[i] != name[i])
3634
+ return false;
3635
+ }
3636
+
3637
+ return true;
3638
+ }
3639
+
3640
+ java.util.Hashtable<java.util.UUID, Object3D> versiontable = new java.util.Hashtable<java.util.UUID, Object3D>();
3641
+
3642
+ public boolean Save(boolean user)
3643
+ {
3644
+ System.err.println("Save");
3645
+
33183646 cRadio tab = GetCurrentTab();
33193647
3320
- boolean temp = CameraPane.SWITCH;
3321
- CameraPane.SWITCH = false;
3648
+ byte[] compress = CompressCopy();
33223649
3323
- copy.ExtractBigData(hashtable);
3650
+ boolean thesame = false;
3651
+
3652
+ // Quick heuristic using length. Works only when stream is compressed.
3653
+ if (copy.versionindex > 0 && copy.versions[copy.versionindex-1] != null && Equal(compress, copy.versions[copy.versionindex-1]))
3654
+ {
3655
+ thesame = true;
3656
+ }
33243657
33253658 //EditorFrame.m_MainFrame.requestFocusInWindow();
3326
- tab.graphs[tab.undoindex++] = Compress(copy);
3327
-
3328
- copy.RestoreBigData(hashtable);
3329
-
3330
- CameraPane.SWITCH = temp;
3331
-
3332
- //assert(hashtable.isEmpty());
3333
-
3334
- for (int i = tab.undoindex; i < tab.graphs.length; i++)
3659
+ if (!thesame)
33353660 {
3336
- tab.graphs[i] = null;
3661
+ //tab.user[tab.versionindex] = user;
3662
+ //boolean increment = true; // tab.graphs[tab.versionindex] == null;
3663
+
3664
+ copy.versions[++copy.versionindex] = compress;
3665
+
3666
+ // if (increment)
3667
+ // tab.versionindex++;
33373668 }
33383669
3670
+ //copy.RestoreBigData(versiontable);
3671
+
3672
+ //assert(hashtable.isEmpty());
3673
+
3674
+ for (int i = copy.versionindex+1; i < copy.versions.length; i++)
3675
+ {
3676
+ //tab.user[i] = false;
3677
+ copy.versions[i] = null;
3678
+ }
3679
+
3680
+ SetUndoStates();
3681
+
33393682 // test save
33403683 if (false)
33413684 {
33423685 try
33433686 {
3344
- FileOutputStream ostream = new FileOutputStream("save" + tab.undoindex);
3687
+ FileOutputStream ostream = new FileOutputStream("save" + copy.versionindex);
33453688 ObjectOutputStream p = new ObjectOutputStream(ostream);
33463689
33473690 p.writeObject(copy);
....@@ -3354,14 +3697,18 @@
33543697 e.printStackTrace();
33553698 }
33563699 }
3700
+
3701
+ return !thesame;
33573702 }
33583703
33593704 void CopyChanged(Object3D obj)
33603705 {
3706
+ SetUndoStates();
3707
+
33613708 boolean temp = CameraPane.SWITCH;
33623709 CameraPane.SWITCH = false;
33633710
3364
- copy.ExtractBigData(hashtable);
3711
+ copy.ExtractBigData(versiontable);
33653712
33663713 copy.clear();
33673714
....@@ -3370,7 +3717,7 @@
33703717 copy.add(obj.get(i));
33713718 }
33723719
3373
- copy.RestoreBigData(hashtable);
3720
+ copy.RestoreBigData(versiontable);
33743721
33753722 CameraPane.SWITCH = temp;
33763723
....@@ -3397,40 +3744,130 @@
33973744 refreshContents();
33983745 }
33993746
3400
- public void Undo()
3747
+ cButton undoButton;
3748
+ cButton restoreButton;
3749
+ cButton replaceButton;
3750
+ cButton redoButton;
3751
+
3752
+ boolean muteSlider;
3753
+
3754
+ int VersionCount()
3755
+ {
3756
+ int count = 0;
3757
+
3758
+ for (int i = copy.versions.length; --i >= 0;)
3759
+ {
3760
+ if (copy.versions[i] != null)
3761
+ count++;
3762
+ }
3763
+
3764
+ return count;
3765
+ }
3766
+
3767
+ void SetUndoStates()
34013768 {
34023769 cRadio tab = GetCurrentTab();
34033770
3404
- if (tab.undoindex == 0)
3771
+ restoreButton.setEnabled(copy.versionindex != -1);
3772
+ replaceButton.setEnabled(copy.versionindex != -1);
3773
+
3774
+ undoButton.setEnabled(copy.versionindex > 0);
3775
+ redoButton.setEnabled(copy.versions[copy.versionindex + 1] != null);
3776
+
3777
+ muteSlider = true;
3778
+ versionSlider.setMaximum(VersionCount() - 1);
3779
+ versionSlider.setInteger(copy.versionindex);
3780
+ muteSlider = false;
3781
+ }
3782
+
3783
+ public boolean Undo()
3784
+ {
3785
+ // Option?
3786
+ Replace();
3787
+
3788
+ System.err.println("Undo");
3789
+
3790
+ cRadio tab = GetCurrentTab();
3791
+
3792
+ if (copy.versionindex == 0)
34053793 {
34063794 java.awt.Toolkit.getDefaultToolkit().beep();
3407
- return;
3795
+ return false;
34083796 }
34093797
3410
- if (tab.graphs[tab.undoindex] == null)
3798
+// if (tab.graphs[tab.versionindex] == null) // || !tab.user[tab.versionindex])
3799
+// {
3800
+// if (Save(false))
3801
+// tab.versionindex -= 1;
3802
+// else
3803
+// {
3804
+// if (tab.versionindex <= 0)
3805
+// return false;
3806
+// else
3807
+// tab.versionindex -= 1;
3808
+// }
3809
+// }
3810
+
3811
+ copy.versionindex -= 1;
3812
+
3813
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3814
+
3815
+ return true;
3816
+ }
3817
+
3818
+ public boolean Restore()
3819
+ {
3820
+ System.err.println("Restore");
3821
+
3822
+ cRadio tab = GetCurrentTab();
3823
+
3824
+ if (copy.versionindex == -1 || copy.versions[copy.versionindex] == null)
34113825 {
3412
- Save();
3413
- tab.undoindex -= 1;
3826
+ java.awt.Toolkit.getDefaultToolkit().beep();
3827
+ return false;
34143828 }
34153829
3416
- tab.undoindex -= 1;
3830
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3831
+
3832
+ return true;
3833
+ }
34173834
3418
- CopyChanged((Object3D)Uncompress(tab.graphs[tab.undoindex]));
3835
+ public boolean Replace()
3836
+ {
3837
+ System.err.println("Replace");
3838
+
3839
+ cRadio tab = GetCurrentTab();
3840
+
3841
+ if (copy.versionindex == -1 || copy.versions[copy.versionindex] == null)
3842
+ {
3843
+ // No version yet. OK. java.awt.Toolkit.getDefaultToolkit().beep();
3844
+ return false;
3845
+ }
3846
+
3847
+ copy.versions[copy.versionindex] = CompressCopy();
3848
+
3849
+ return true;
34193850 }
34203851
34213852 public void Redo()
34223853 {
3854
+ // Option?
3855
+ Replace();
3856
+
34233857 cRadio tab = GetCurrentTab();
34243858
3425
- if (tab.graphs[tab.undoindex + 1] == null)
3859
+ if (copy.versions[copy.versionindex + 1] == null)
34263860 {
34273861 java.awt.Toolkit.getDefaultToolkit().beep();
34283862 return;
34293863 }
34303864
3431
- tab.undoindex += 1;
3865
+ copy.versionindex += 1;
34323866
3433
- CopyChanged((Object3D)Uncompress(tab.graphs[tab.undoindex]));
3867
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex]));
3868
+
3869
+ //if (!tab.user[tab.versionindex])
3870
+ // tab.graphs[tab.versionindex] = null;
34343871 }
34353872
34363873 void ImportGFD()
....@@ -3582,7 +4019,7 @@
35824019 assert false;
35834020 }
35844021
3585
- void EditSelection()
4022
+ void EditSelection(boolean newWindow)
35864023 {
35874024 }
35884025
....@@ -3726,9 +4163,25 @@
37264163 //copy.Touch();
37274164 }
37284165
4166
+ cNumberSlider versionSlider;
4167
+
37294168 public void stateChanged(ChangeEvent e)
37304169 {
37314170 // assert(false);
4171
+ if (e.getSource() == versionSlider)
4172
+ {
4173
+ if (muteSlider)
4174
+ return;
4175
+
4176
+ int version = versionSlider.getInteger();
4177
+
4178
+ if (copy.versions[version] != null)
4179
+ {
4180
+ CopyChanged((Object3D)Uncompress(copy.versions[copy.versionindex = version]));
4181
+ }
4182
+
4183
+ return;
4184
+ }
37324185
37334186 if (freezematerial)
37344187 {
....@@ -4077,7 +4530,8 @@
40774530
40784531 void makeSomething(Object3D thing, boolean resetmodel) // deselect)
40794532 {
4080
- Save();
4533
+ if (Globals.REPLACEONMAKE) // && resetmodel)
4534
+ Save();
40814535 //Tween.set(thing, 0).target(1).start(tweenManager);
40824536 //Tween.to(thing, 0, 0.5f).target(0).start(tweenManager);
40834537 // if (thing instanceof GenericJointDemo)
....@@ -4164,6 +4618,12 @@
41644618 {
41654619 ResetModel();
41664620 Select(thing.GetTreePath(), true, false); // unselect... false);
4621
+
4622
+ if (thing.Size() == 0)
4623
+ {
4624
+ //EditSelection(false);
4625
+ }
4626
+
41674627 refreshContents();
41684628 }
41694629
....@@ -4386,7 +4846,8 @@
43864846
43874847 if (readobj != null)
43884848 {
4389
- Save();
4849
+ //if (Globals.SAVEONMAKE) // A new object cannot share meshes
4850
+ // Save();
43904851 try
43914852 {
43924853 //readobj.deepCopySelf(copy);
....@@ -4441,13 +4902,24 @@
44414902 c.addChild(csg);
44424903 }
44434904
4905
+ copy.versions = readobj.versions;
4906
+ copy.versionindex = readobj.versionindex;
4907
+
4908
+ if (copy.versions == null)
4909
+ {
4910
+ copy.versions = new byte[100][];
4911
+ copy.versionindex = -1;
4912
+ }
4913
+
4914
+ //? SetUndoStates();
4915
+
44444916 ResetModel();
44454917 copy.HardTouch(); // recompile?
44464918 refreshContents();
44474919 }
44484920 }
44494921
4450
- void load() // throws ClassNotFoundException
4922
+ void Open() // throws ClassNotFoundException
44514923 {
44524924 if (Grafreed.standAlone)
44534925 {
....@@ -4564,6 +5036,8 @@
45645036 String filename = browser.getFile();
45655037 if (filename != null && filename.length() > 0)
45665038 {
5039
+ if (!filename.endsWith(".gfd"))
5040
+ filename += ".gfd";
45675041 lastname = browser.getDirectory() + filename;
45685042 save();
45695043 }
....@@ -4730,7 +5204,7 @@
47305204 MenuBar menuBar;
47315205 Menu fileMenu;
47325206 MenuItem newItem;
4733
- MenuItem loadItem;
5207
+ MenuItem openItem;
47345208 MenuItem saveItem;
47355209 MenuItem saveAsItem;
47365210 MenuItem exportAsItem;
....@@ -4753,22 +5227,36 @@
47535227 CheckboxMenuItem toggleSwitchItem;
47545228 CheckboxMenuItem toggleRootItem;
47555229 CheckboxMenuItem animationItem;
5230
+ MenuItem archiveItem;
47565231 CheckboxMenuItem toggleHandleItem;
47575232 CheckboxMenuItem togglePaintItem;
47585233 JSplitPane mainPanel;
47595234 JScrollPane scrollpane;
5235
+
47605236 JPanel toolbarPanel;
5237
+
47615238 cGridBag treePanel;
5239
+
47625240 JPanel radioPanel;
47635241 ButtonGroup buttonGroup;
4764
- cGridBag ctrlPanel;
5242
+
5243
+ cGridBag toolboxPanel;
47655244 cGridBag materialPanel;
5245
+ cGridBag ctrlPanel;
5246
+
47665247 JScrollPane infoPanel;
5248
+
47675249 cGridBag optionsPanel;
5250
+
47685251 JTabbedPane objectPanel;
5252
+ boolean materialFlushed;
5253
+ Object3D latestObject;
5254
+
47695255 cGridBag XYZPanel;
5256
+
47705257 JSplitPane gridPanel;
47715258 JSplitPane bigPanel;
5259
+
47725260 cGridBag bigThree;
47735261 cGridBag scenePanel;
47745262 cGridBag centralPanel;
....@@ -4883,7 +5371,7 @@
48835371 cNumberSlider fogField;
48845372 JLabel opacityPowerLabel;
48855373 cNumberSlider opacityPowerField;
4886
- JTree jTree;
5374
+ cTree jTree;
48875375 //ObjectUI parent;
48885376
48895377 cNumberSlider normalpushField;